Skip to content

Commit a709398

Browse files
Nicholas Kazlauskasalexdeucher
authored andcommitted
drm/amd/display: Fix white screen page fault for gpuvm
[Why] The "base_addr_is_mc_addr" field was added for dcn3.1 support but pa_config was never updated to set it to false. Uninitialized memory causes it to be set to true which results in address mistranslation and white screen. [How] Use memset to ensure all fields are initialized to 0 by default. Fixes: 64b1d0e ("drm/amd/display: Add DCN3.1 HWSEQ") Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Acked-by: Aaron Liu <aaron.liu@amd.com> Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
1 parent cd51a57 commit a709398

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -998,6 +998,8 @@ static void mmhub_read_system_context(struct amdgpu_device *adev, struct dc_phy_
998998
uint32_t agp_base, agp_bot, agp_top;
999999
PHYSICAL_ADDRESS_LOC page_table_start, page_table_end, page_table_base;
10001000

1001+
memset(pa_config, 0, sizeof(*pa_config));
1002+
10011003
logical_addr_low = min(adev->gmc.fb_start, adev->gmc.agp_start) >> 18;
10021004
pt_base = amdgpu_gmc_pd_addr(adev->gart.bo);
10031005

0 commit comments

Comments
 (0)