Skip to content

drm: Check polling initialized before

Shradha Gupta dri-devel intel-gfx lkml 4 versions – Applied

Status from this message: Applied to drm-misc-next now, thanks for your patches!

Get series with b4
b4 am 1706856176-9483-1-git-send-email-shradhagupta@linux.microsoft.com

Versions newest first · linked by author and title

  1. v4 Latest2 patches 3 repliesApplied
  2. v31 patch 2 repliesSuperseded
  3. v21 patch 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch3 repliesSuperseded

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/2drm: Check output polling initialized before disablingdrivers/gpu/drm/drm_modeset_helper.c drivers/gpu/drm/drm_probe_helper.c+27 -50 replies
2/2drm: Check polling initialized before enabling in drm_helper_probe_single_connector_modesdrivers/gpu/drm/drm_probe_helper.c+6 -20 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDaniel Vetter
SeriesR-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/2] drm: Check polling initialized before

This patchset consists of sanity checks before enabling/disabling output polling to make sure we do not call polling enable and disable functions when polling for the device is not initialized or is now uninitialized(by drm_kms_helper_poll_fini() function)

The first patch consists of these checks in drm_kms_helper_poll_disable() and drm_kms_helper_poll_enable() calls. It further flags a warning if a caller violates this. It also adds these checks in drm_mode_config_helper_resume() and drm_mode_config_helper_suspend() calls to avoid this warning.

The second patch adds a similar missing check in drm_helper_probe_single_connector_modes() function that is exposed by the new warning introduced in the first patch.

Shradha Gupta (2):
drm: Check output polling initialized before disabling
drm: Check polling initialized before enabling in
drm_helper_probe_single_connector_modes

 drivers/gpu/drm/drm_modeset_helper.c | 19 ++++++++++++++++---
 drivers/gpu/drm/drm_probe_helper.c   | 21 +++++++++++++++++----
 2 files changed, 33 insertions(+), 7 deletions(-)
Signature · 1 line
2.34.1