drm/msm/dsi: remove bpc > 8 entries from allow list
PATCH 1/1 drm/msm/dsi: remove bpc > 8 entries from allow list
In upstream the msm, for bpc greater than 8 are not supported yet, although the hardware block supports this. Remove them until we support them.
--- drivers/gpu/drm/msm/dsi/dsi_host.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
drivers/gpu/drm/msm/dsi/dsi_host.c +2 -5
@@ -1824,12 +1824,9 @@ static int dsi_populate_dsc_params(struct msm_dsi_host *msm_host, struct drm_dscswitch (dsc->bits_per_component) {case 8 : -case 10 : -case 12 :/* -* Only 8, 10, and 12 bpc are supported for DSC 1.1 block. -* If additional bpc values need to be supported, update -* this quard with the appropriate DSC version verification. +* In the upstream msm, only 8 bpc is supported for DSC 1.1/1.2 +* block. */ break ;default :
Signature · 1 line
2.53.0
Quoted 6 lines · Pengyu Luo
In upstream the msm, for bpc greater than 8 are not supported yet, although the hardware block supports this. Remove them until we support them.
Fixes b0e71c2637d1 ("drm/msm/dsi: Allow values of 10 and 12 for bits per component")Signed-off-by Pengyu Luo <[email protected]>
I hope Marijn, Danila or Eugeny can comment. The patch series with this patchset added 10 bpc panel and used it for one of the phones.
Quoted 26 lines
--- drivers/gpu/drm/msm/dsi/dsi_host.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)drivers/gpu/drm/msm/dsi/dsi_host.c +2
-5@@ -1824,12 +1824,9 @@ static int dsi_populate_dsc_params(struct msm_dsi_host *msm_host, struct drm_dscswitch (dsc->bits_per_component) {case 8 : -case 10 : -case 12 :/* -* Only 8, 10, and 12 bpc are supported for DSC 1.1 block. -* If additional bpc values need to be supported, update -* this quard with the appropriate DSC version verification. +* In the upstream msm, only 8 bpc is supported for DSC 1.1/1.2 +* block. */ break ;default :Signature · 1 line
2.53.0
Signature · 2 lines
With best wishes Dmitry
Hi,
I have a concern regarding this patch. The Nothing Phone (1) (sm7325-nothing-spacewar), which is already supported in mainline, utilizes a panel with bpc=10 and bpp=8 (DSC) [1].
Currently, this configuration works properly. While I have encountered minor graphical artifacts during brightness changes, the display output is otherwise reliable across all supported refresh rates (60/90/120 Hz).
Since this panel is already upstreamed, this patch might cause regressions.
Best regards,
Eugene Lepshy
пт, 6 мар. 2026 г. в 21:47, Dmitry Baryshkov
<[email protected]>:
Quoted 42 lines · Pengyu Luo
Quoted 6 lines
In upstream the msm, for bpc greater than 8 are not supported yet, although the hardware block supports this. Remove them until we support them.
Fixes b0e71c2637d1 ("drm/msm/dsi: Allow values of 10 and 12 for bits per component")Signed-off-by Pengyu Luo <[email protected]>I hope Marijn, Danila or Eugeny can comment. The patch series with this patchset added 10 bpc panel and used it for one of the phones.
Quoted 24 lines
--- drivers/gpu/drm/msm/dsi/dsi_host.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)drivers/gpu/drm/msm/dsi/dsi_host.c +2
-6@@ -1824,12 +1824,9 @@ static int dsi_populate_dsc_params(struct msm_dsi_host *msm_host, struct drm_dscswitch (dsc->bits_per_component) {case 8 : -case 10 : -case 12 :/* -* Only 8, 10, and 12 bpc are supported for DSC 1.1 block. -* If additional bpc values need to be supported, update -* this quard with the appropriate DSC version verification. +* In the upstream msm, only 8 bpc is supported for DSC 1.1/1.2 +* block. */ break ;default : --Quoted 2 lines
2.53.0
--
With best wishes
Dmitry
Quoted 7 lines · Евгений Лепший
Hi,
I have a concern regarding this patch. The Nothing Phone (1) (sm7325-nothing-spacewar), which is already supported in mainline, utilizes a panel with bpc=10 and bpp=8 (DSC) [1].
Quoted 9 lines
Currently, this configuration works properly. While I have encountered minor graphical artifacts during brightness changes, the display output is otherwise reliable across all supported refresh rates (60/90/120 Hz).
Since this panel is already upstreamed, this patch might cause regressions.
Oh, I see. I messed up bpc, it is fine now. Recently, encoders have supported src bpc > 8, dsi don't support dst bpc > 8. But the nothing phone panel does not require dsi to support it.
Since the panel is a 8-bit panel, and src bpc != dst bpc. Although they are equal on some devices(they are, on my 8-bit or 10-bit devices).
i.e. qcom,mdss-dsc-bit-per-component != qcom,mdss-dsi-bpp / 3
Please ignore this patch.
Best wishes,
Pengyu
Quoted 47 lines
Best regards,
Eugene Lepshyпт, 6 мар. 2026 г. в 21:47, Dmitry Baryshkov
<[email protected]>:Quoted 42 lines · Pengyu Luo
Quoted 6 lines
In upstream the msm, for bpc greater than 8 are not supported yet, although the hardware block supports this. Remove them until we support them.
Fixes b0e71c2637d1 ("drm/msm/dsi: Allow values of 10 and 12 for bits per component")Signed-off-by Pengyu Luo <[email protected]>I hope Marijn, Danila or Eugeny can comment. The patch series with this patchset added 10 bpc panel and used it for one of the phones.
Quoted 24 lines
--- drivers/gpu/drm/msm/dsi/dsi_host.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)drivers/gpu/drm/msm/dsi/dsi_host.c +2
-6@@ -1824,12 +1824,9 @@ static int dsi_populate_dsc_params(struct msm_dsi_host *msm_host, struct drm_dscswitch (dsc->bits_per_component) {case 8 : -case 10 : -case 12 :/* -* Only 8, 10, and 12 bpc are supported for DSC 1.1 block. -* If additional bpc values need to be supported, update -* this quard with the appropriate DSC version verification. +* In the upstream msm, only 8 bpc is supported for DSC 1.1/1.2 +* block. */ break ;default : --Quoted 2 lines
2.53.0
--
With best wishes
Dmitry
Hi,
I have a concern regarding this patch. The Nothing Phone (1) (sm7325-nothing-spacewar), which is already supported in mainline, utilizes a panel with bpc=10 and bpp=8 (DSC) [1].
Currently, this configuration works properly. While I have encountered minor graphical artifacts during brightness changes, the display output is otherwise reliable across all supported refresh rates (60/90/120 Hz).
Since this panel is already upstreamed, this patch might cause regressions.
Best regards,
Eugene Lepshy
Quoted 41 lines · Dmitry Baryshkov
Quoted 6 lines · Pengyu Luo
In upstream the msm, for bpc greater than 8 are not supported yet, although the hardware block supports this. Remove them until we support them.
Fixes b0e71c2637d1 ("drm/msm/dsi: Allow values of 10 and 12 for bits per component")Signed-off-by Pengyu Luo <[email protected]>I hope Marijn, Danila or Eugeny can comment. The patch series with this patchset added 10 bpc panel and used it for one of the phones.
Quoted 26 lines
--- drivers/gpu/drm/msm/dsi/dsi_host.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)drivers/gpu/drm/msm/dsi/dsi_host.c +2
-5@@ -1824,12 +1824,9 @@ static int dsi_populate_dsc_params(struct msm_dsi_host *msm_host, struct drm_dscswitch (dsc->bits_per_component) {case 8 : -case 10 : -case 12 :/* -* Only 8, 10, and 12 bpc are supported for DSC 1.1 block. -* If additional bpc values need to be supported, update -* this quard with the appropriate DSC version verification. +* In the upstream msm, only 8 bpc is supported for DSC 1.1/1.2 +* block. */ break ;default :Signature · 1 line
2.53.0Signature · 2 lines
With best wishes Dmitry