Skip to contentSkip to conversation

drm/msm: enable separate_gpu_kms by default

PATCH In review Mahadevan P 3 participants 8 messages Feb 22 – Mar 3

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/msm: enable separate_gpu_kms by default

On targets with multiple display subsystems, such as SA8775P, the GPU binds to the first display subsystem that probes. This implicit binding prevents subsequent display subsystems from probing successfully, breaking multi-display support.

Enable separate_gpu_kms by default to decouple GPU and display subsystem probing. This allows each display subsystem to initialize independently, ensuring that all display subsystems are probed.

---
Depends on:

	https://lore.kernel.org/lkml/[email protected]/
	https://lore.kernel.org/all/[email protected]/
---
 drivers/gpu/drm/msm/msm_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/msm_drv.c +1 -1
index ed2a61c66ac9..65119fb3dfa2 100644
@@ -54,7 +54,7 @@ static bool modeset = true;
 MODULE_PARM_DESC(modeset, "Use kernel modesetting [KMS] (1=on (default), 0=disable)");
 module_param(modeset, bool, 0600);
 
-static bool separate_gpu_kms;
+static bool separate_gpu_kms = true;
 MODULE_PARM_DESC(separate_gpu_drm, "Use separate DRM device for the GPU (0=single DRM device for both GPU and display (default), 1=two DRM devices)");
 module_param(separate_gpu_kms, bool, 0400);
 

---
base-commit: 50f68cc7be0a2cbf54d8f6aaf17df32fb01acc3f
change-id: 20260219-seperate_gpu_kms-97870cb36aaf

Best regards,

Signature · 1 line
Mahadevan P <[email protected]>
#1 lore raw
Quoted 9 lines · Mahadevan P

On targets with multiple display subsystems, such as SA8775P, the GPU binds to the first display subsystem that probes. This implicit binding prevents subsequent display subsystems from probing successfully, breaking multi-display support.

Enable separate_gpu_kms by default to decouple GPU and display subsystem probing. This allows each display subsystem to initialize independently, ensuring that all display subsystems are probed.

Quoted 5 lines

---
Depends on:

	https://lore.kernel.org/lkml/[email protected]/
	https://lore.kernel.org/all/[email protected]/

What exactly depends on this patchset?

Quoted 9 lines
---
 drivers/gpu/drm/msm/msm_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/msm_drv.c +0 -0
index ed2a61c66ac9..65119fb3dfa2 100644

drivers/gpu/drm/msm/msm_drv.c static bool modeset = true; · line 59

Quoted 7 lines
drivers/gpu/drm/msm/msm_drv.c +1 -1
@@ -54,7 +54,7 @@ static bool modeset = true;
 MODULE_PARM_DESC(modeset, "Use kernel modesetting [KMS] (1=on (default), 0=disable)");
 module_param(modeset, bool, 0600);
 
-static bool separate_gpu_kms;
+static bool separate_gpu_kms = true;
 MODULE_PARM_DESC(separate_gpu_drm, "Use separate DRM device for the GPU (0=single DRM device for both GPU and display (default), 1=two DRM devices)");
 module_param(separate_gpu_kms, bool, 0400);

The patch LGTM, but I'd prefer to get confirmation from Rob.

BTW: have you tested it with X11? Are you still getting accelerated GPU?

Signature · 2 lines
With best wishes
Dmitry
#2 lore raw
Quoted 6 lines · Dmitry Baryshkov
Quoted 5 lines · Mahadevan P

On targets with multiple display subsystems, such as SA8775P, the GPU binds to the first display subsystem that probes. This implicit binding prevents subsequent display subsystems from probing successfully, breaking multi-display support.

Quoted 7 lines
Quoted 7 lines

Enable separate_gpu_kms by default to decouple GPU and display subsystem probing. This allows each display subsystem to initialize independently, ensuring that all display subsystems are probed.

---
Depends on:

	[1]
Quoted 1 line
Quoted 1 line
	https://lore.kernel.org/lkml/[email protected]/
	[2]
Quoted 3 lines
Quoted 1 line
	https://lore.kernel.org/all/[email protected]/

What exactly depends on this patchset?

The dependency is as follows:
As we separate out module loading of adreno and mdss with separate_gpu_kms=1 autoloading of msm.ko fails. With change [1] on bootup, msm.ko is loaded and gpu card is created.

The main reason to bring this patch here in upstream is for enabling of dual dpu configuration in Lemans hence added [2] as dependency.

Quoted 13 lines
Quoted 13 lines
---
  drivers/gpu/drm/msm/msm_drv.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/msm_drv.c +0 -0
index ed2a61c66ac9..65119fb3dfa2 100644
@@ -54,7 +54,7 @@ static bool modeset = true;
  MODULE_PARM_DESC(modeset, "Use kernel modesetting [KMS] (1=on (default), 0=disable)");
  module_param(modeset, bool, 0600);
 
Quoted 8 lines

drivers/gpu/drm/msm/msm_drv.c static bool modeset = true; · line 59

Quoted 4 lines
drivers/gpu/drm/msm/msm_drv.c +1 -1
-static bool separate_gpu_kms;
+static bool separate_gpu_kms = true;
  MODULE_PARM_DESC(separate_gpu_drm, "Use separate DRM device for the GPU (0=single DRM device for both GPU and display (default), 1=two DRM devices)");
  module_param(separate_gpu_kms, bool, 0400);

The patch LGTM, but I'd prefer to get confirmation from Rob.

BTW: have you tested it with X11? Are you still getting accelerated GPU?

Yes, tested today with X11 app(xterm), GPU rendering is used.

Quoted 1 line

Thanks,
Mahadevan

#3 lore raw
Quoted 21 lines · Mahadevan P
Quoted 6 lines · Dmitry Baryshkov
Quoted 5 lines · Mahadevan P

On targets with multiple display subsystems, such as SA8775P, the GPU binds to the first display subsystem that probes. This implicit binding prevents subsequent display subsystems from probing successfully, breaking multi-display support.

Quoted 7 lines
Quoted 7 lines

Enable separate_gpu_kms by default to decouple GPU and display subsystem probing. This allows each display subsystem to initialize independently, ensuring that all display subsystems are probed.

---
Depends on:

	[1]
Quoted 1 line
Quoted 1 line
	https://lore.kernel.org/lkml/[email protected]/
	[2]
Quoted 2 lines
Quoted 1 line
	https://lore.kernel.org/all/[email protected]/
Quoted 8 lines
Quoted 1 line

What exactly depends on this patchset?

The dependency is as follows:
As we separate out module loading of adreno and mdss with separate_gpu_kms=1 autoloading of msm.ko fails. With change [1] on bootup, msm.ko is loaded and gpu card is created.

The main reason to bring this patch here in upstream is for enabling of dual dpu configuration in Lemans hence added [2] as dependency.

None of that describes why they are dependencies (i.e. must be applied _before_ this patch, which otherwise will be broken).

Quoted 27 lines
Quoted 20 lines
Quoted 11 lines

---
  drivers/gpu/drm/msm/msm_drv.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/msm_drv.c +0 -0
index ed2a61c66ac9..65119fb3dfa2 100644

drivers/gpu/drm/msm/msm_drv.c static bool modeset = true; · line 58

Quoted 6 lines
drivers/gpu/drm/msm/msm_drv.c +1 -1
@@ -54,7 +54,7 @@ static bool modeset = true;
  MODULE_PARM_DESC(modeset, "Use kernel modesetting [KMS] (1=on (default), 0=disable)");
  module_param(modeset, bool, 0600);
-static bool separate_gpu_kms;
+static bool separate_gpu_kms = true;
  MODULE_PARM_DESC(separate_gpu_drm, "Use separate DRM device for the GPU (0=single DRM device for both GPU and display (default), 1=two DRM devices)");
  module_param(separate_gpu_kms, bool, 0400);

The patch LGTM, but I'd prefer to get confirmation from Rob.

Quoted 1 line

BTW: have you tested it with X11? Are you still getting accelerated GPU?

Yes, tested today with X11 app(xterm), GPU rendering is used.

Quoted 1 line

Thanks,
Mahadevan

Signature · 2 lines
With best wishes
Dmitry
#4 lore raw
In reply to Dmitry Baryshkov
Quoted 31 lines · Dmitry Baryshkov
Quoted 9 lines · Mahadevan P

On targets with multiple display subsystems, such as SA8775P, the GPU binds to the first display subsystem that probes. This implicit binding prevents subsequent display subsystems from probing successfully, breaking multi-display support.

Enable separate_gpu_kms by default to decouple GPU and display subsystem probing. This allows each display subsystem to initialize independently, ensuring that all display subsystems are probed.

Quoted 5 lines

---
Depends on:

      https://lore.kernel.org/lkml/[email protected]/
      https://lore.kernel.org/all/[email protected]/

What exactly depends on this patchset?

Quoted 12 lines
---
 drivers/gpu/drm/msm/msm_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/msm_drv.c +0 -0
index ed2a61c66ac9..65119fb3dfa2 100644
@@ -54,7 +54,7 @@ static bool modeset = true;
 MODULE_PARM_DESC(modeset, "Use kernel modesetting [KMS] (1=on (default), 0=disable)");
 module_param(modeset, bool, 0600);
 
Quoted 6 lines

drivers/gpu/drm/msm/msm_drv.c static bool modeset = true; · line 59

Quoted 4 lines
drivers/gpu/drm/msm/msm_drv.c +1 -1
-static bool separate_gpu_kms;
+static bool separate_gpu_kms = true;
 MODULE_PARM_DESC(separate_gpu_drm, "Use separate DRM device for the GPU (0=single DRM device for both GPU and display (default), 1=two DRM devices)");
 module_param(separate_gpu_kms, bool, 0400);

The patch LGTM, but I'd prefer to get confirmation from Rob.

I prefer to be a bit more paranoid.. perhaps switch this to a tri-state:

-1: separate drm devices if there is more than one dpu or gpu,
otherwise, single combined drm device [default]
0: single drm device (matching up pairs of dpu and gpu if needed) 1: separate drm devices

This way we aren't changing (or breaking) things for existing users.

BR,
-R

Quoted 5 lines

BTW: have you tested it with X11? Are you still getting accelerated GPU?

--
With best wishes
Dmitry

#5 lore raw
Quoted 40 lines · Rob Clark
Quoted 31 lines · Dmitry Baryshkov
Quoted 9 lines · Mahadevan P

On targets with multiple display subsystems, such as SA8775P, the GPU binds to the first display subsystem that probes. This implicit binding prevents subsequent display subsystems from probing successfully, breaking multi-display support.

Enable separate_gpu_kms by default to decouple GPU and display subsystem probing. This allows each display subsystem to initialize independently, ensuring that all display subsystems are probed.

Quoted 5 lines

---
Depends on:

      https://lore.kernel.org/lkml/[email protected]/
      https://lore.kernel.org/all/[email protected]/

What exactly depends on this patchset?

Quoted 12 lines
---
 drivers/gpu/drm/msm/msm_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/msm_drv.c +0 -0
index ed2a61c66ac9..65119fb3dfa2 100644
@@ -54,7 +54,7 @@ static bool modeset = true;
 MODULE_PARM_DESC(modeset, "Use kernel modesetting [KMS] (1=on (default), 0=disable)");
 module_param(modeset, bool, 0600);
 
Quoted 6 lines

drivers/gpu/drm/msm/msm_drv.c static bool modeset = true; · line 59

Quoted 4 lines
drivers/gpu/drm/msm/msm_drv.c +1 -1
-static bool separate_gpu_kms;
+static bool separate_gpu_kms = true;
 MODULE_PARM_DESC(separate_gpu_drm, "Use separate DRM device for the GPU (0=single DRM device for both GPU and display (default), 1=two DRM devices)");
 module_param(separate_gpu_kms, bool, 0400);

The patch LGTM, but I'd prefer to get confirmation from Rob.

Quoted 8 lines

I prefer to be a bit more paranoid.. perhaps switch this to a tri-state:

-1: separate drm devices if there is more than one dpu or gpu,
otherwise, single combined drm device [default]
0: single drm device (matching up pairs of dpu and gpu if needed) 1: separate drm devices

This way we aren't changing (or breaking) things for existing users.

I'd rather break things and hear about them being broken.

Quoted 9 lines

BR,
-R

Quoted 5 lines

BTW: have you tested it with X11? Are you still getting accelerated GPU?

--
With best wishes
Dmitry

Signature · 2 lines
With best wishes
Dmitry
#6 lore raw
Quoted 44 lines · Dmitry Baryshkov
Quoted 42 lines · Rob Clark
Quoted 31 lines · Dmitry Baryshkov
Quoted 9 lines · Mahadevan P

On targets with multiple display subsystems, such as SA8775P, the GPU binds to the first display subsystem that probes. This implicit binding prevents subsequent display subsystems from probing successfully, breaking multi-display support.

Enable separate_gpu_kms by default to decouple GPU and display subsystem probing. This allows each display subsystem to initialize independently, ensuring that all display subsystems are probed.

Quoted 5 lines

---
Depends on:

      https://lore.kernel.org/lkml/[email protected]/
      https://lore.kernel.org/all/[email protected]/

What exactly depends on this patchset?

Quoted 12 lines
---
 drivers/gpu/drm/msm/msm_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/msm_drv.c +0 -0
index ed2a61c66ac9..65119fb3dfa2 100644
@@ -54,7 +54,7 @@ static bool modeset = true;
 MODULE_PARM_DESC(modeset, "Use kernel modesetting [KMS] (1=on (default), 0=disable)");
 module_param(modeset, bool, 0600);
 
Quoted 6 lines

drivers/gpu/drm/msm/msm_drv.c static bool modeset = true; · line 59

Quoted 4 lines
drivers/gpu/drm/msm/msm_drv.c +1 -1
-static bool separate_gpu_kms;
+static bool separate_gpu_kms = true;
 MODULE_PARM_DESC(separate_gpu_drm, "Use separate DRM device for the GPU (0=single DRM device for both GPU and display (default), 1=two DRM devices)");
 module_param(separate_gpu_kms, bool, 0400);

The patch LGTM, but I'd prefer to get confirmation from Rob.

I prefer to be a bit more paranoid.. perhaps switch this to a tri-state:

Quoted 8 lines
Quoted 6 lines

-1: separate drm devices if there is more than one dpu or gpu,
otherwise, single combined drm device [default]
0: single drm device (matching up pairs of dpu and gpu if needed) 1: separate drm devices

This way we aren't changing (or breaking) things for existing users.

I'd rather break things and hear about them being broken.

You are assuming you'd hear about the non-obvious breakages immediately.. I don't think that is a good assumption.

To be clear, I'll NAK any change to the default for "normal" hw configurations. If you want to change the modparam to tri-state so that "weird" hw configurations get split devices, I guess I'd be ok with that. At least it limits the potential fallout.

BR,
-R

Quoted 13 lines
Quoted 9 lines

BR,
-R

Quoted 5 lines

BTW: have you tested it with X11? Are you still getting accelerated GPU?

--
With best wishes
Dmitry

--
With best wishes
Dmitry

#7 lore raw
Quoted 55 lines · Rob Clark
Quoted 44 lines · Dmitry Baryshkov
Quoted 42 lines · Rob Clark
Quoted 31 lines · Dmitry Baryshkov
Quoted 9 lines · Mahadevan P

On targets with multiple display subsystems, such as SA8775P, the GPU binds to the first display subsystem that probes. This implicit binding prevents subsequent display subsystems from probing successfully, breaking multi-display support.

Enable separate_gpu_kms by default to decouple GPU and display subsystem probing. This allows each display subsystem to initialize independently, ensuring that all display subsystems are probed.

Quoted 5 lines

---
Depends on:

      https://lore.kernel.org/lkml/[email protected]/
      https://lore.kernel.org/all/[email protected]/

What exactly depends on this patchset?

Quoted 12 lines
---
 drivers/gpu/drm/msm/msm_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/msm_drv.c +0 -0
index ed2a61c66ac9..65119fb3dfa2 100644
@@ -54,7 +54,7 @@ static bool modeset = true;
 MODULE_PARM_DESC(modeset, "Use kernel modesetting [KMS] (1=on (default), 0=disable)");
 module_param(modeset, bool, 0600);
 
Quoted 6 lines

drivers/gpu/drm/msm/msm_drv.c static bool modeset = true; · line 59

Quoted 4 lines
drivers/gpu/drm/msm/msm_drv.c +1 -1
-static bool separate_gpu_kms;
+static bool separate_gpu_kms = true;
 MODULE_PARM_DESC(separate_gpu_drm, "Use separate DRM device for the GPU (0=single DRM device for both GPU and display (default), 1=two DRM devices)");
 module_param(separate_gpu_kms, bool, 0400);

The patch LGTM, but I'd prefer to get confirmation from Rob.

I prefer to be a bit more paranoid.. perhaps switch this to a tri-state:

Quoted 8 lines
Quoted 6 lines

-1: separate drm devices if there is more than one dpu or gpu,
otherwise, single combined drm device [default]
0: single drm device (matching up pairs of dpu and gpu if needed) 1: separate drm devices

This way we aren't changing (or breaking) things for existing users.

I'd rather break things and hear about them being broken.

Quoted 7 lines

You are assuming you'd hear about the non-obvious breakages immediately.. I don't think that is a good assumption.

To be clear, I'll NAK any change to the default for "normal" hw configurations. If you want to change the modparam to tri-state so that "weird" hw configurations get split devices, I guess I'd be ok with that. At least it limits the potential fallout.

Ack :-)

Quoted 17 lines

BR,
-R

Quoted 13 lines
Quoted 9 lines

BR,
-R

Quoted 5 lines

BTW: have you tested it with X11? Are you still getting accelerated GPU?

--
With best wishes
Dmitry

--
With best wishes
Dmitry

Signature · 2 lines
With best wishes
Dmitry