diff options
author | 2020-02-07 16:53:28 -0500 | |
---|---|---|
committer | 2020-02-25 11:03:54 -0500 | |
commit | 0062972b9d9f888d0273c6496769d02e8f509135 (patch) | |
tree | ba1e6accd537dbca70ed54ad1387b12cffd057ee /drivers/gpu/drm/amd/display/modules/freesync | |
parent | drm/amd/display: do not force UCLK DPM to stay at highest state during display off in DCN2 (diff) | |
download | wireguard-linux-0062972b9d9f888d0273c6496769d02e8f509135.tar.xz wireguard-linux-0062972b9d9f888d0273c6496769d02e8f509135.zip |
drm/amd/display: System crashes when add_ptb_to_table() gets called
[Why]
Unused VMIDs were not evicted correctly
[How]
1. evict_vmids() logic was fixed;
2. Added boundary check for add_ptb_to_table() and
clear_entry_from_vmid_table() to avoid crash caused by array out of
boundary;
3. For mod_vmid_get_for_ptb(), vimd is changed from unsigned to signed
due to vimd is signed.
Signed-off-by: Peikang Zhang <peikang.zhang@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules/freesync')
0 files changed, 0 insertions, 0 deletions