drm/amd/display: use the proper fb offset for DM
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 28 Nov 2022 15:38:53 +0000 (10:38 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Dec 2022 20:21:34 +0000 (15:21 -0500)
commit949933b0f34f42af180a9ae59c263fcf4b76b710
tree3b938587cc2be45349255831d76ce75ed0d8903e
parent39dd895d05002ddbc69ed90fd1ac254696c79f73
drm/amd/display: use the proper fb offset for DM

This fixes DMCU initialization in APU GPU passthrough.  The
DMCU needs the GPU physical address, not the CPU physical
address.  This ends up working out on bare metal because
we always use the physical address, but doesn't work in
passthrough because the addresses are different.

Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c