Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v7 0/3] drm: Use full allocated minor range for DRM
@ 2024-08-23 16:30 Michał Winiarski
  2024-08-23 16:30 ` [PATCH v7 1/3] drm: Use XArray instead of IDR for minors Michał Winiarski
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: Michał Winiarski @ 2024-08-23 16:30 UTC (permalink / raw)
  To: dri-devel, linux-kernel, intel-gfx, intel-xe
  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,
	Alex Deucher, Michał Winiarski

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

Additionally, convert minors to use XArray instead of IDR to simplify
the locking.

Corresponding libdrm changes were merged in:
https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/305

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

v6 -> v7:
Drop the force_extended_minors patch intended for debug
Rebase on latest drm-tip
Update the cover letter, pointing out libdrm changes

Michał Winiarski (3):
  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

 drivers/accel/drm_accel.c      | 110 +++------------------------------
 drivers/gpu/drm/drm_drv.c      |  97 ++++++++++++++---------------
 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, 62 insertions(+), 174 deletions(-)

-- 
2.46.0


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

end of thread, other threads:[~2024-08-26 18:07 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-23 16:30 [PATCH v7 0/3] drm: Use full allocated minor range for DRM Michał Winiarski
2024-08-23 16:30 ` [PATCH v7 1/3] drm: Use XArray instead of IDR for minors Michał Winiarski
2024-08-23 16:30 ` [PATCH v7 2/3] accel: " Michał Winiarski
2024-08-23 16:30 ` [PATCH v7 3/3] drm: Expand max DRM device number to full MINORBITS Michał Winiarski
2024-08-23 17:10 ` ✓ CI.Patch_applied: success for drm: Use full allocated minor range for DRM Patchwork
2024-08-23 17:11 ` ✓ CI.checkpatch: " Patchwork
2024-08-23 17:12 ` ✓ CI.KUnit: " Patchwork
2024-08-23 17:31 ` ✓ CI.Build: " Patchwork
2024-08-23 17:34 ` ✓ CI.Hooks: " Patchwork
2024-08-23 17:35 ` ✗ CI.checksparse: warning " Patchwork
2024-08-23 18:07 ` ✓ CI.BAT: success " Patchwork
2024-08-23 23:59 ` ✗ CI.FULL: failure " Patchwork
2024-08-26 18:07 ` [PATCH v7 0/3] " Christian König

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