diff options
| author | Sefa Eyeoglu <[email protected]> | 2021-03-16 21:50:06 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-04-09 20:44:40 +0000 |
| commit | 7df4ceb60fa9a3c5160cfd5b696657291934a2c9 (patch) | |
| tree | e998a9d9c5d9d225731755f4e4553081f919268b /drivers/gpu/drm/amd/amdgpu/cik_sdma.c | |
| parent | drm/amd/display: Allow idle optimization based on vblank. (diff) | |
| download | kernel-7df4ceb60fa9a3c5160cfd5b696657291934a2c9.tar.gz kernel-7df4ceb60fa9a3c5160cfd5b696657291934a2c9.zip | |
drm/amd/display: check fb of primary plane
Sometimes the primary plane might not be initialized (yet), which
causes dm_check_crtc_cursor to divide by zero.
Apparently a weird state before a S3-suspend causes the aforementioned
divide-by-zero error when resuming from S3. This was explained in
bug 212293 on Bugzilla.
To avoid this divide-by-zero error we check if the primary plane's fb
isn't NULL. If it's NULL the src_w and src_h attributes will be 0,
which would cause a divide-by-zero.
This fixes Bugzilla report 212293
Bug: https://bugzilla.kernel.org/show_bug.cgi?id=212293
Fixes: 12f4849a1cfd69f3 ("drm/amd/display: check cursor scaling")
Reviewed-by: Simon Ser <[email protected]>
Reviewed-by: Harry Wentland <[email protected]>
Signed-off-by: Sefa Eyeoglu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/cik_sdma.c')
0 files changed, 0 insertions, 0 deletions
