public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v6 0/4] drm: Use full allocated minor range for DRM
@ 2023-07-24 21:14 Michał Winiarski
  2023-07-24 21:14 ` [PATCH v6 1/4] drm: Use XArray instead of IDR for minors Michał Winiarski
                   ` (5 more replies)
  0 siblings, 6 replies; 23+ messages in thread
From: Michał Winiarski @ 2023-07-24 21:14 UTC (permalink / raw)
  To: dri-devel, linux-kernel, intel-gfx
  Cc: David Airlie, Daniel Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Simon Ser, Matthew Wilcox, Oded Gabbay,
	Christian König, James Zhu, Pekka Paalanen, Emil Velikov,
	Michał Winiarski

64 DRM device nodes is not enough for everyone.
Upgrade it to ~512K (which definitely is more than enough).

To allow testing userspace support for >64 devices, add additional DRM
modparam (force_extended_minors) which causes DRM to skip allocating minors
in 0-192 range.
Additionally - convert minors to use XArray instead of IDR to simplify the
locking.

v1 -> v2:
Don't touch DRM_MINOR_CONTROL and its range (Simon Ser)

v2 -> v3:
Don't use legacy scheme for >=192 minor range (Dave Airlie)
Add modparam for testing (Dave Airlie)
Add lockdep annotation for IDR (Daniel Vetter)

v3 -> v4:
Convert from IDR to XArray (Matthew Wilcox)

v4 -> v5:
Fixup IDR to XArray conversion (Matthew Wilcox)

v5 -> v6:
Also convert Accel to XArray
Rename skip_legacy_minors to force_extended_minors

Michał Winiarski (4):
  drm: Use XArray instead of IDR for minors
  accel: Use XArray instead of IDR for minors
  drm: Expand max DRM device number to full MINORBITS
  drm: Introduce force_extended_minors modparam

 drivers/accel/drm_accel.c      | 110 +++------------------------------
 drivers/gpu/drm/drm_drv.c      | 105 ++++++++++++++++---------------
 drivers/gpu/drm/drm_file.c     |   2 +-
 drivers/gpu/drm/drm_internal.h |   4 --
 include/drm/drm_accel.h        |  18 +-----
 include/drm/drm_file.h         |   5 ++
 6 files changed, 69 insertions(+), 175 deletions(-)

-- 
2.41.0


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

end of thread, other threads:[~2024-08-14 19:30 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-24 21:14 [PATCH v6 0/4] drm: Use full allocated minor range for DRM Michał Winiarski
2023-07-24 21:14 ` [PATCH v6 1/4] drm: Use XArray instead of IDR for minors Michał Winiarski
     [not found]   ` <10bb9689-9226-d47c-4cf1-7bf9d599456c@amd.com>
2023-08-28 21:08     ` Michał Winiarski
2023-08-29 17:34       ` James Zhu
2023-08-29 18:33         ` Matthew Wilcox
2023-08-29 18:35           ` James Zhu
2023-08-29 18:37             ` Matthew Wilcox
2023-07-24 21:14 ` [PATCH v6 2/4] accel: " Michał Winiarski
2023-07-24 21:14 ` [PATCH v6 3/4] drm: Expand max DRM device number to full MINORBITS Michał Winiarski
2023-07-26 18:15   ` Simon Ser
2023-07-27 12:01     ` Christian König
2023-07-28 14:22       ` Simon Ser
2023-08-08 13:55         ` Christian König
2023-08-08 15:04           ` James Zhu
2023-08-23 10:53             ` Simon Ser
2023-08-23 10:58               ` Simon Ser
2023-08-23 14:06               ` James Zhu
2023-07-24 21:14 ` [PATCH v6 4/4] drm: Introduce force_extended_minors modparam Michał Winiarski
2024-05-03  1:22 ` [PATCH v6 0/4] drm: Use full allocated minor range for DRM Eric Pilmore
2024-08-12 17:38 ` Alex Deucher
2024-08-14  0:18   ` Michał Winiarski
2024-08-14  4:20     ` James Zhu
2024-08-14 19:29     ` Alex Deucher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox