diff options
| author | Simon Ser <[email protected]> | 2020-11-20 20:18:55 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2020-11-24 17:09:52 +0000 |
| commit | 24f99d2b21db3be1da2800470fecfa583a181929 (patch) | |
| tree | d69df40783de7fe77339276d60d639d6469791d8 /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | |
| parent | drm/amdgpu/dce_virtual: Enable vBlank control for vf (diff) | |
| download | kernel-24f99d2b21db3be1da2800470fecfa583a181929.tar.gz kernel-24f99d2b21db3be1da2800470fecfa583a181929.zip | |
drm/amd/display: add cursor FB size check
This patch expands the cursor checks added in "drm/amd/display: add basic
atomic check for cursor plane" to also include a FB size check. Without
this patch, setting a FB smaller than max_cursor_size with an invalid
width would result in amdgpu error messages and a fallback to a 64-byte
width:
[drm:hubp1_cursor_set_attributes [amdgpu]] *ERROR* Invalid cursor pitch of 100. Only 64/128/256 is supported on DCN.
Note that DC uses the word "pitch" when actually checking the FB width.
Indeed, the function handle_cursor_update does this:
attributes.pitch = attributes.width;
In my tests, the cursor FB actually had a pitch of 512 bytes.
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Simon Ser <[email protected]>
Reported-by: Pierre-Loup A. Griffais <[email protected]>
Cc: Alex Deucher <[email protected]>
Cc: Harry Wentland <[email protected]>
Cc: Nicholas Kazlauskas <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
0 files changed, 0 insertions, 0 deletions
