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>
Thu, 9 Feb 2023 03:16:52 +0000 (22:16 -0500)
commit5c4e8c71d1202cd84d870e7e5cb8d6b52f9c3507
treeb4d424cafb52efe79acc914d693c8be05c21671e
parent077e9659581acab70f2dcc04b5bc799aca3a056b
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>
Cc: stable@vger.kernel.org # 6.1.x
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c