]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fix white screen page fault for gpuvm
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Mon, 13 Sep 2021 18:56:44 +0000 (14:56 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Sep 2021 13:56:24 +0000 (09:56 -0400)
commit9c261e390f008b1d28df0b701e2f6907bbb74fb4
tree48c2a200b7d9c754ef95e22458145ad0db5730a3
parent19c8a733c62852136e1e4d584e02c62228477d04
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: d1e7c7a38796 ("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
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c