drm/amd/display: properly handling AGP aperture in vm setup
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 31 Jan 2023 14:56:46 +0000 (09:56 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Feb 2023 20:42:00 +0000 (15:42 -0500)
commit0294868fd803b48dc354f7cd7ef7ba26a60e5a9b
treec9eaeb43190f95c0f5fc1f29b2ceb19d401b69b1
parentf081cd4ca2658752a8c0e2353d50aec80d07c65f
drm/amd/display: properly handling AGP aperture in vm setup

Take into account whether or not the AGP aperture is
enabled or not when calculating the system aperture.

Fixes white screens with DCN 3.1.4.

Based on a patch from Yifan Zhang <yifan1.zhang@amd.com>

Cc: Yifan Zhang <yifan1.zhang@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Yifan Zhang <yifan1.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c