linux/drivers/gpu/drm/amd/display/amdgpu_dm
Sefa Eyeoglu 7df4ceb60f 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: 12f4849a1c ("drm/amd/display: check cursor scaling")
Reviewed-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2021-04-09 16:44:40 -04:00
..
amdgpu_dm_color.c drm/amd/display/amdgpu_dm/amdgpu_dm_color: Demote a misuse and fix another kernel-doc header 2020-12-01 16:04:45 -05:00
amdgpu_dm_crc.c drm/amd/display: Fix secure display lock problems 2021-03-23 23:32:50 -04:00
amdgpu_dm_crc.h drm/amd/display: Use PSP TA to read out crc 2021-03-05 15:12:09 -05:00
amdgpu_dm_debugfs.c drm/amd/display: Fix debugfs link_settings entry 2021-04-09 16:40:53 -04:00
amdgpu_dm_debugfs.h drm/amd/display: Support crc on specific region 2021-03-05 15:11:47 -05:00
amdgpu_dm_hdcp.c drm/amdgpu/display: remove hdcp_srm sysfs on device removal 2021-02-18 16:43:08 -05:00
amdgpu_dm_hdcp.h drm/amdgpu/display: remove hdcp_srm sysfs on device removal 2021-02-18 16:43:08 -05:00
amdgpu_dm_helpers.c drm/amd/display: Log DMCUB trace buffer events 2021-04-09 16:40:43 -04:00
amdgpu_dm_irq_params.h drm/amd/display: Support crc on specific region 2021-03-05 15:11:47 -05:00
amdgpu_dm_irq.c drm/amd/display: Deallocate IRQ handlers on amdgpu_dm_irq_fini 2021-04-09 16:41:12 -04:00
amdgpu_dm_irq.h
amdgpu_dm_mst_types.c drm/amd/display: Support for DMUB AUX 2021-03-02 14:05:41 -05:00
amdgpu_dm_mst_types.h
amdgpu_dm_pp_smu.c drm/amd/pm: make DAL communicate with SMU through unified interfaces 2021-04-09 16:42:37 -04:00
amdgpu_dm_services.c drm/amd/display: Decouple amdgpu_dm_trace from service 2020-10-26 13:33:59 -04:00
amdgpu_dm_trace.h drm/amd/display: Log DMCUB trace buffer events 2021-04-09 16:40:43 -04:00
amdgpu_dm.c drm/amd/display: check fb of primary plane 2021-04-09 16:44:40 -04:00
amdgpu_dm.h drm/amd/display: Log DMCUB trace buffer events 2021-04-09 16:40:43 -04:00
Makefile