diff options
| author | Wenjing Liu <[email protected]> | 2024-01-18 20:14:15 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-01-31 22:29:58 +0000 |
| commit | 39079fe8e660851abbafa90cd55cbf029210661f (patch) | |
| tree | 606ea05c824e35141438eb4260be77f3b9216e9a /drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | |
| parent | drm/amd/display: Fix DPSTREAM CLK on and off sequence (diff) | |
| download | kernel-39079fe8e660851abbafa90cd55cbf029210661f.tar.gz kernel-39079fe8e660851abbafa90cd55cbf029210661f.zip | |
drm/amd/display: fix incorrect mpc_combine array size
[why]
MAX_SURFACES is per stream, while MAX_PLANES is per asic. The
mpc_combine is an array that records all the planes per asic. Therefore
MAX_PLANES should be used as the array size. Using MAX_SURFACES causes
array overflow when there are more than 3 planes.
[how]
Use the MAX_PLANES for the mpc_combine array size.
Cc: Mario Limonciello <[email protected]>
Cc: Alex Deucher <[email protected]>
Cc: [email protected]
Reviewed-by: Rodrigo Siqueira <[email protected]>
Reviewed-by: Nevenko Stupar <[email protected]>
Reviewed-by: Chaitanya Dhere <[email protected]>
Acked-by: Tom Chung <[email protected]>
Signed-off-by: Wenjing Liu <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c')
0 files changed, 0 insertions, 0 deletions
