linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] drm: update the ioctl handler
@ 2021-08-13  8:54 Desmond Cheong Zhi Xi
  2021-08-13  8:54 ` [PATCH 1/2] drm: avoid races with modesetting rights Desmond Cheong Zhi Xi
  2021-08-13  8:54 ` [PATCH 2/2] drm: unexport drm_ioctl_permit Desmond Cheong Zhi Xi
  0 siblings, 2 replies; 6+ messages in thread
From: Desmond Cheong Zhi Xi @ 2021-08-13  8:54 UTC (permalink / raw)
  To: maarten.lankhorst, mripard, tzimmermann, airlied, daniel,
	sumit.semwal, christian.koenig
  Cc: Desmond Cheong Zhi Xi, dri-devel, linux-kernel, linux-media,
	linaro-mm-sig, intel-gfx, skhan, gregkh, linux-kernel-mentees

Hi,

Finally got around to it. This patchset implements some updates to the
drm ioctl handler that were first raised by Daniel Vetter in [1].
Namely:

- Flush concurrent processes that can change the modeset when
DRM masters are set/dropped or a lease is revoked
- Unexport drm_ioctl_permit()

Thoughts and comments would be very appreciated.

Link: https://lore.kernel.org/lkml/YN9kAFcfGoB13x7f@phenom.ffwll.local/ [1]

Best wishes,
Desmond

Desmond Cheong Zhi Xi (2):
  drm: avoid races with modesetting rights
  drm: unexport drm_ioctl_permit

 drivers/gpu/drm/drm_auth.c           | 17 +++++++++---
 drivers/gpu/drm/drm_client_modeset.c | 10 ++++---
 drivers/gpu/drm/drm_drv.c            |  2 ++
 drivers/gpu/drm/drm_fb_helper.c      | 20 ++++++++------
 drivers/gpu/drm/drm_internal.h       |  5 ++--
 drivers/gpu/drm/drm_ioctl.c          | 40 +++++++++++++++-------------
 include/drm/drm_device.h             | 11 ++++++++
 include/drm/drm_ioctl.h              |  8 +++++-
 8 files changed, 77 insertions(+), 36 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-08-15  7:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-13  8:54 [PATCH 0/2] drm: update the ioctl handler Desmond Cheong Zhi Xi
2021-08-13  8:54 ` [PATCH 1/2] drm: avoid races with modesetting rights Desmond Cheong Zhi Xi
2021-08-13 15:49   ` Daniel Vetter
2021-08-15  7:10     ` Desmond Cheong Zhi Xi
2021-08-13  8:54 ` [PATCH 2/2] drm: unexport drm_ioctl_permit Desmond Cheong Zhi Xi
2021-08-13 15:51   ` Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).