[PATCH RFT v2] drm/msm/dpu: enable virtual planes by default

Dmitry Baryshkov posted 1 patch 1 month, 1 week ago
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH RFT v2] drm/msm/dpu: enable virtual planes by default
Posted by Dmitry Baryshkov 1 month, 1 week ago
Turn on the switch and use virtual planes by default, enhancing
utilisation of the display pipelines. It is still possible to use legacy
implementation by using `msm.dpu_use_virtual_planes=false` kernel boot
parameter.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
This is being sent as an RFT for now. Please give it a test with your
compositor of choice. X11. Weston. Sway. Wlroot. CrOS. I plan to turn
the switch for 7.1
---
Changes in v2:
- Rebased on msm-next
- Updated the cover letter, targeting the switch to 7.1
- Link to v1: https://lore.kernel.org/r/20250514-dpu-enable-virt-planes-v1-1-bf5ba0088007@oss.qualcomm.com
---
 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c
index 0623f1dbed97..7c5b3495bddf 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c
+++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c
@@ -52,7 +52,7 @@
 #define DPU_DEBUGFS_DIR "msm_dpu"
 #define DPU_DEBUGFS_HWMASKNAME "hw_log_mask"
 
-bool dpu_use_virtual_planes;
+bool dpu_use_virtual_planes = true;
 module_param(dpu_use_virtual_planes, bool, 0);
 
 static int dpu_kms_hw_init(struct msm_kms *kms);

---
base-commit: 50c4a49f7292b33b454ea1a16c4f77d6965405dc
change-id: 20250514-dpu-enable-virt-planes-7b7ce0a6ce2a

Best regards,
-- 
With best wishes
Dmitry
Re: [PATCH RFT v2] drm/msm/dpu: enable virtual planes by default
Posted by Dmitry Baryshkov 1 week, 3 days ago
On Thu, 26 Feb 2026 15:49:02 +0200, Dmitry Baryshkov wrote:
> Turn on the switch and use virtual planes by default, enhancing
> utilisation of the display pipelines. It is still possible to use legacy
> implementation by using `msm.dpu_use_virtual_planes=false` kernel boot
> parameter.

Applied to msm-next, thanks!

[1/1] drm/msm/dpu: enable virtual planes by default
      https://gitlab.freedesktop.org/lumag/msm/-/commit/b0907ee59e24

Best regards,
-- 
With best wishes
Dmitry
Re: [PATCH RFT v2] drm/msm/dpu: enable virtual planes by default
Posted by Val Packett 3 weeks, 2 days ago
On 2/26/26 10:49 AM, Dmitry Baryshkov wrote:

> Turn on the switch and use virtual planes by default, enhancing
> utilisation of the display pipelines. It is still possible to use legacy
> implementation by using `msm.dpu_use_virtual_planes=false` kernel boot
> parameter.
>
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> ---
> This is being sent as an RFT for now. Please give it a test with your
> compositor of choice. X11. Weston. Sway. Wlroot. CrOS. I plan to turn
> the switch for 7.1

Tested-by: Val Packett <val@packett.cool> # x1e80100-dell-latitude-7455, 
with niri

Running with this for a few days, seems like no change, everything works 
as before. Any way to confirm virtual planes are being used?

~val
Re: [PATCH RFT v2] drm/msm/dpu: enable virtual planes by default
Posted by Dmitry Baryshkov 3 weeks, 1 day ago
On Sat, Mar 14, 2026 at 04:06:37PM -0300, Val Packett wrote:
> On 2/26/26 10:49 AM, Dmitry Baryshkov wrote:
> 
> > Turn on the switch and use virtual planes by default, enhancing
> > utilisation of the display pipelines. It is still possible to use legacy
> > implementation by using `msm.dpu_use_virtual_planes=false` kernel boot
> > parameter.
> > 
> > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> > ---
> > This is being sent as an RFT for now. Please give it a test with your
> > compositor of choice. X11. Weston. Sway. Wlroot. CrOS. I plan to turn
> > the switch for 7.1
> 
> Tested-by: Val Packett <val@packett.cool> # x1e80100-dell-latitude-7455,
> with niri
> 
> Running with this for a few days, seems like no change, everything works as
> before. Any way to confirm virtual planes are being used?

You can compare, which SSPPs are used by checking
/sys/kernel/debug/dri/*/state.

-- 
With best wishes
Dmitry
Re: [PATCH RFT v2] drm/msm/dpu: enable virtual planes by default
Posted by Konrad Dybcio 1 month ago
On 2/26/26 2:49 PM, Dmitry Baryshkov wrote:
> Turn on the switch and use virtual planes by default, enhancing
> utilisation of the display pipelines. It is still possible to use legacy
> implementation by using `msm.dpu_use_virtual_planes=false` kernel boot
> parameter.
> 
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> ---
> This is being sent as an RFT for now. Please give it a test with your
> compositor of choice. X11. Weston. Sway. Wlroot. CrOS. I plan to turn
> the switch for 7.1
> ---

No immediate issues on x13s + sddm + plasma-wayland

Acked-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad
Re: [PATCH RFT v2] drm/msm/dpu: enable virtual planes by default
Posted by Neil Armstrong 1 month ago
On 2/26/26 14:49, Dmitry Baryshkov wrote:
> Turn on the switch and use virtual planes by default, enhancing
> utilisation of the display pipelines. It is still possible to use legacy
> implementation by using `msm.dpu_use_virtual_planes=false` kernel boot
> parameter.
> 
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> ---
> This is being sent as an RFT for now. Please give it a test with your
> compositor of choice. X11. Weston. Sway. Wlroot. CrOS. I plan to turn
> the switch for 7.1
> ---
> Changes in v2:
> - Rebased on msm-next
> - Updated the cover letter, targeting the switch to 7.1
> - Link to v1: https://lore.kernel.org/r/20250514-dpu-enable-virt-planes-v1-1-bf5ba0088007@oss.qualcomm.com
> ---
>   drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c
> index 0623f1dbed97..7c5b3495bddf 100644
> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c
> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c
> @@ -52,7 +52,7 @@
>   #define DPU_DEBUGFS_DIR "msm_dpu"
>   #define DPU_DEBUGFS_HWMASKNAME "hw_log_mask"
>   
> -bool dpu_use_virtual_planes;
> +bool dpu_use_virtual_planes = true;
>   module_param(dpu_use_virtual_planes, bool, 0);
>   
>   static int dpu_kms_hw_init(struct msm_kms *kms);
> 
> ---
> base-commit: 50c4a49f7292b33b454ea1a16c4f77d6965405dc
> change-id: 20250514-dpu-enable-virt-planes-7b7ce0a6ce2a
> 
> Best regards,

LGTM

Acked-by: Neil Armstrong <neil.armstrong@linaro.org>

Thanks,
Neil