drm/amdgpu: fix the incorrect external id for raven series
authorHuang Rui <ray.huang@amd.com>
Wed, 30 Jan 2019 11:50:04 +0000 (19:50 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 1 Feb 2019 05:12:17 +0000 (00:12 -0500)
commit7e4545d372b560df10fa47281ef0783a479ce435
tree6554f658dec8c9ab5f16d98e2b5b99adfd611ada
parent12292519d919ecde92e7e7c8acbcdb9f0c7c6013
drm/amdgpu: fix the incorrect external id for raven series

This patch fixes the incorrect external id that kernel reports to user mode
driver. Raven2's rev_id is starts from 0x8, so its external id (0x81) should
start from rev_id + 0x79 (0x81 - 0x8). And Raven's rev_id should be 0x21 while
rev_id == 1.

Reported-by: Crystal Jin <Crystal.Jin@amd.com>
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc15.c