diff mbox series

drm: register more drm device nodes

Message ID 20240530153439.4331-1-James.Zhu@amd.com (mailing list archive)
State New, archived
Headers show
Series drm: register more drm device nodes | expand

Commit Message

James Zhu May 30, 2024, 3:34 p.m. UTC
Since the default number 256 can't handle large modern systems
with large numbers of GPUs, specify a more reasonable default.

Signed-off-by: James Zhu <James.Zhu@amd.com>
---
 drivers/gpu/drm/drm_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c
index 243cacb3575c..719ea57a70ab 100644
--- a/drivers/gpu/drm/drm_drv.c
+++ b/drivers/gpu/drm/drm_drv.c
@@ -1086,7 +1086,7 @@  static int __init drm_core_init(void)
 
 	drm_debugfs_root = debugfs_create_dir("dri", NULL);
 
-	ret = register_chrdev(DRM_MAJOR, "drm", &drm_stub_fops);
+	ret = __register_chrdev(DRM_MAJOR, 0, 1024, "drm", &drm_stub_fops);
 	if (ret < 0)
 		goto error;