drm/amdgpu: fix aper_base for APU
authorRoman Li <Roman.Li@amd.com>
Wed, 25 May 2022 21:20:21 +0000 (17:20 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jun 2022 19:56:59 +0000 (15:56 -0400)
commitae969b62e7a1e17affae24b815b217b9b87a62f4
tree0d1b0b4e4bf0c988290559ae60f6419568dc2584
parent97e50305542f384741a5b45699aba349fe9fca73
drm/amdgpu: fix aper_base for APU

[Why]
Wrong fb offset results in dmub f/w errors and white screen.
[drm:dc_dmub_srv_wait_idle [amdgpu]] *ERROR* Error waiting for DMUB idle: status=3

[How]
Read aper_base from mmhub because GC is off by default

v2: use BAR for passthrough (Alex)

Signed-off-by: Roman Li <Roman.Li@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c