Skip to contentSkip to conversation

drm/msm/dpu: fix DSC for DSI video mode

PATCH Superseded Jun Nie 3 participants 9 messages Mar 28, 2024 – Mar 29, 2024

Subsystems (6)

v1 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

Jun Nie

author
#0 lore raw

PATCH 1/3 drm/msm/dpu: fix DSC for DSI video mode

Fix DSC timing and control configurations in DPU for DSI video mode. Only compression ratio 3:1 is handled and tested.

This patch is modified from patchs of Jonathan Marek.

---
 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c   |  2 +-
 .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h  |  2 +-
 .../drm/msm/disp/dpu1/dpu_encoder_phys_vid.c  | 12 +++++
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c   | 10 +++-
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.h   |  1 +
 drivers/gpu/drm/msm/dsi/dsi.xml.h             |  1 +
 drivers/gpu/drm/msm/dsi/dsi_host.c            | 48 +++++++++++--------
 include/drm/display/drm_dsc.h                 |  4 ++
 8 files changed, 56 insertions(+), 24 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c +1 -1
index 6a4b489d44e5..c1b9da06dde2 100644
@@ -2440,7 +2440,7 @@ enum dpu_intf_mode dpu_encoder_get_intf_mode(struct drm_encoder *encoder)
 	return INTF_MODE_NONE;
 }
 
-unsigned int dpu_encoder_helper_get_dsc(struct dpu_encoder_phys *phys_enc)
+unsigned int dpu_encoder_helper_get_dsc(const struct dpu_encoder_phys *phys_enc)
 {
 	struct drm_encoder *encoder = phys_enc->parent;
 	struct dpu_encoder_virt *dpu_enc = to_dpu_encoder_virt(encoder);
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h +1 -1
index 993f26343331..5000fa22ad40 100644
@@ -339,7 +339,7 @@ static inline enum dpu_3d_blend_mode dpu_encoder_helper_get_3d_blend_mode(
  *   used for this encoder.
  * @phys_enc: Pointer to physical encoder structure
  */
-unsigned int dpu_encoder_helper_get_dsc(struct dpu_encoder_phys *phys_enc);
+unsigned int dpu_encoder_helper_get_dsc(const struct dpu_encoder_phys *phys_enc);
 
 /**
  * dpu_encoder_helper_split_config - split display configuration helper function
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c +12 -0
index d0f56c5c4cce..c0ff39450e66 100644
@@ -102,6 +102,8 @@ static void drm_mode_to_intf_timing_params(
 	}
 
 	timing->wide_bus_en = dpu_encoder_is_widebus_enabled(phys_enc->parent);
+	if (dpu_encoder_helper_get_dsc(phys_enc))
+		timing->dsc_en = true;
 
 	/*
 	 * for DP, divide the horizonal parameters by 2 when
@@ -114,6 +116,16 @@ static void drm_mode_to_intf_timing_params(
 		timing->h_front_porch = timing->h_front_porch >> 1;
 		timing->hsync_pulse_width = timing->hsync_pulse_width >> 1;
 	}
+
+	/*
+	 * for DSI, if compression is enabled, then divide the horizonal active
+	 * timing parameters by compression ratio.
+	 */
+	if (phys_enc->hw_intf->cap->type != INTF_DP && timing->dsc_en) {
+		/* TODO: handle non 3:1 compression ratio, such as 30bpp case */
+		timing->width = timing->width / 3;
+		timing->xres = timing->width;
+	}
 }
 
 static u32 get_horizontal_total(const struct dpu_hw_intf_timing_params *timing)
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c +9 -1
index 6bba531d6dc4..e2f6fa542883 100644
@@ -168,10 +168,18 @@ static void dpu_hw_intf_setup_timing_engine(struct dpu_hw_intf *ctx,
 	 * video timing. It is recommended to enable it for all cases, except
 	 * if compression is enabled in 1 pixel per clock mode
 	 */
+	if (!p->dsc_en || p->wide_bus_en)
+		intf_cfg2 |= INTF_CFG2_DATA_HCTL_EN;
+
 	if (p->wide_bus_en)
-		intf_cfg2 |= INTF_CFG2_DATABUS_WIDEN | INTF_CFG2_DATA_HCTL_EN;
+		intf_cfg2 |= INTF_CFG2_DATABUS_WIDEN;
+
+	if (p->dsc_en)
+		intf_cfg2 |= INTF_CFG2_DCE_DATA_COMPRESS;
 
 	data_width = p->width;
+	if (p->wide_bus_en && !dp_intf)
+		data_width = p->width >> 1;
 
 	hsync_data_start_x = hsync_start_x;
 	hsync_data_end_x =  hsync_start_x + data_width - 1;
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.h +1 -0
index 0bd57a32144a..b452e3557d10 100644
@@ -33,6 +33,7 @@ struct dpu_hw_intf_timing_params {
 	u32 hsync_skew;
 
 	bool wide_bus_en;
+	bool dsc_en;
 };
 
 struct dpu_hw_intf_prog_fetch {
drivers/gpu/drm/msm/dsi/dsi.xml.h +1 -0
index 2a7d980e12c3..f0b3cdc020a1 100644
@@ -231,6 +231,7 @@ static inline uint32_t DSI_VID_CFG0_TRAFFIC_MODE(enum dsi_traffic_mode val)
 #define DSI_VID_CFG0_HSA_POWER_STOP				0x00010000
 #define DSI_VID_CFG0_HBP_POWER_STOP				0x00100000
 #define DSI_VID_CFG0_HFP_POWER_STOP				0x01000000
+#define DSI_VID_CFG0_DATABUS_WIDEN				0x02000000
 #define DSI_VID_CFG0_PULSE_MODE_HSA_HE				0x10000000
 
 #define REG_DSI_VID_CFG1					0x0000001c
drivers/gpu/drm/msm/dsi/dsi_host.c +27 -21

114 lines not on this page · raw message

include/drm/display/drm_dsc.h +4 -0
index bc90273d06a6..01642bc9f016 100644
@@ -92,6 +92,10 @@ struct drm_dsc_config {
 	 * @slice_count: Number fo slices per line used by the DSC encoder
 	 */
 	u8 slice_count;
+	/**
+	 * @slice_per_pkt: Number fo slices per packet in the encoded bit stream
+	 */
+	u8 slice_per_pkt;
 	/**
 	 *  @slice_width: Width of each slice in pixels
 	 */
Signature · 1 line
2.34.1
author
#1 lore raw

PATCH 2/3 dt-bindings: display: panel: visionox, vtdr6130: Add mode property

Add DSI mode property and compression mode property

---
 .../bindings/display/panel/visionox,vtdr6130.yaml         | 8 ++++++++
 1 file changed, 8 insertions(+)
Documentation/devicetree/bindings/display/panel/visionox,vtdr6130.yaml +8 -0
index d5a8295106c1..36ae94fa96ec 100644
@@ -26,6 +26,14 @@ properties:
   port: true
   reset-gpios: true
 
+  enforce-cmd-mode:
+    type: boolean
+    description: Set DSI as command mode. Video mode by default.
+
+  enable-dsc:
+    type: boolean
+    description: Enable display stream compression
+
 additionalProperties: false
 
 required:
Signature · 1 line
2.34.1
#2 lore raw

Re: [PATCH 2/3] dt-bindings: display: panel: visionox,vtdr6130: Add mode property

Quoted 14 lines · Jun Nie

Add DSI mode property and compression mode property

---
 .../bindings/display/panel/visionox,vtdr6130.yaml         | 8 ++++++++
 1 file changed, 8 insertions(+)
Documentation/devicetree/bindings/display/panel/visionox,vtdr6130.yaml +0 -0
index d5a8295106c1..36ae94fa96ec 100644
@@ -26,6 +26,14 @@ properties:
   port: true

Documentation/devicetree/bindings/display/panel/visionox,vtdr6130.yaml properties: · line 36

Quoted 10 lines
Documentation/devicetree/bindings/display/panel/visionox,vtdr6130.yaml +8 -0
   reset-gpios: true
 
+  enforce-cmd-mode:
+    type: boolean
+    description: Set DSI as command mode. Video mode by default.
+
+  enable-dsc:
+    type: boolean
+    description: Enable display stream compression
+

Bindings describe the hardware, so this is a no-go.

Quoted 6 lines
Documentation/devicetree/bindings/display/panel/visionox,vtdr6130.yaml +0 -1
 additionalProperties: false
 
 required:
--

2.34.1

Signature · 2 lines
With best wishes
Dmitry
#3 lore raw

Re: [PATCH 2/3] dt-bindings: display: panel: visionox, vtdr6130: Add mode property

In reply to Jun Nie
Quoted 7 lines · Jun Nie

Add DSI mode property and compression mode property

---
 .../bindings/display/panel/visionox,vtdr6130.yaml         | 8 ++++++++
 1 file changed, 8 insertions(+)

Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.

Tools like b4 or scripts/get_maintainer.pl provide you proper list of people, so fix your workflow. Tools might also fail if you work on some ancient tree (don't, instead use mainline), work on fork of kernel (don't, instead use mainline) or you ignore some maintainers (really don't). Just use b4 and everything should be fine, although remember about b4 prep --auto-to-cc if you added new patches to the patchset.

You missed at least devicetree list (maybe more), so this won't be tested by automated tooling. Performing review on untested code might be a waste of time, thus I will skip this patch entirely till you follow the process allowing the patch to be tested.

Please kindly resend and include all necessary To/Cc entries.

Best regards,
Krzysztof

author
#4 lore raw

PATCH 3/3 drm/panel: Enable DSC for Visionox VTDR6130 panel

In reply to Jun Nie

Enable display compression (DSC v1.2) for 1080x2400 Visionox VTDR6130 AMOLED DSI panel. DTS property is needed to enable DSC. Default configuration is video mode + non-DSC for any back compatibility.

Below modes works on SM8650. While cmd mode does not work yet.
- video mode + DSC
- video mode
- cmd mode + DSC

---
 .../gpu/drm/panel/panel-visionox-vtdr6130.c   | 58 ++++++++++++++++++-
 1 file changed, 57 insertions(+), 1 deletion(-)
drivers/gpu/drm/panel/panel-visionox-vtdr6130.c +57 -1
index 540099253e1b..d6c44816cdd0 100644
@@ -9,6 +9,7 @@
 #include <linux/of.h>
 
 #include <drm/display/drm_dsc.h>
+#include <drm/display/drm_dsc_helper.h>
 #include <drm/drm_mipi_dsi.h>
 #include <drm/drm_modes.h>
 #include <drm/drm_panel.h>
@@ -17,9 +18,12 @@
 
 struct visionox_vtdr6130 {
 	struct drm_panel panel;
+	struct drm_dsc_config dsc;
 	struct mipi_dsi_device *dsi;
 	struct gpio_desc *reset_gpio;
 	struct regulator_bulk_data supplies[3];
+	bool cmd_mode;
+	bool dsc_enable;
 };
 
 static inline struct visionox_vtdr6130 *to_visionox_vtdr6130(struct drm_panel *panel)
@@ -49,12 +53,20 @@ static int visionox_vtdr6130_on(struct visionox_vtdr6130 *ctx)
 	if (ret)
 		return ret;
 
+	if (ctx->dsc_enable)
+		mipi_dsi_dcs_write_seq(dsi, 0x03, 0x01);
+
 	mipi_dsi_dcs_write_seq(dsi, MIPI_DCS_WRITE_CONTROL_DISPLAY, 0x20);
 	mipi_dsi_dcs_write_seq(dsi, MIPI_DCS_SET_DISPLAY_BRIGHTNESS, 0x00, 0x00);
 	mipi_dsi_dcs_write_seq(dsi, 0x59, 0x09);
 	mipi_dsi_dcs_write_seq(dsi, 0x6c, 0x01);
 	mipi_dsi_dcs_write_seq(dsi, 0x6d, 0x00);
-	mipi_dsi_dcs_write_seq(dsi, 0x6f, 0x01);
+
+	if (ctx->cmd_mode)
+		mipi_dsi_dcs_write_seq(dsi, 0x6f, 0x02);
+	else
+		mipi_dsi_dcs_write_seq(dsi, 0x6f, 0x01);
+
 	mipi_dsi_dcs_write_seq(dsi, 0x70,
 			       0x12, 0x00, 0x00, 0xab, 0x30, 0x80, 0x09, 0x60, 0x04,
 			       0x38, 0x00, 0x28, 0x02, 0x1c, 0x02, 0x1c, 0x02, 0x00,
@@ -205,6 +217,26 @@ static const struct drm_display_mode visionox_vtdr6130_mode = {
 	.height_mm = 157,
 };
 
+static int visionox_vtdr6130_enable(struct drm_panel *panel)
+{
+	struct visionox_vtdr6130 *ctx = to_visionox_vtdr6130(panel);
+	struct mipi_dsi_device *dsi = ctx->dsi;
+	struct drm_dsc_picture_parameter_set pps;
+	int ret;
+
+	if (!dsi->dsc)
+		return 0;
+
+	drm_dsc_pps_payload_pack(&pps, dsi->dsc);
+	ret = mipi_dsi_picture_parameter_set(dsi, &pps);
+	if (ret) {
+		dev_err(&dsi->dev, "Failed to set PPS\n");
+		return ret;
+	}
+
+	return 0;
+}
+
 static int visionox_vtdr6130_get_modes(struct drm_panel *panel,
 				       struct drm_connector *connector)
 {
@@ -228,6 +260,7 @@ static const struct drm_panel_funcs visionox_vtdr6130_panel_funcs = {
 	.prepare = visionox_vtdr6130_prepare,
 	.unprepare = visionox_vtdr6130_unprepare,
 	.get_modes = visionox_vtdr6130_get_modes,
+	.enable = visionox_vtdr6130_enable,
 };
 
 static int visionox_vtdr6130_bl_update_status(struct backlight_device *bl)
@@ -260,12 +293,32 @@ static int visionox_vtdr6130_probe(struct mipi_dsi_device *dsi)
 {
 	struct device *dev = &dsi->dev;
 	struct visionox_vtdr6130 *ctx;
+	struct drm_dsc_config *dsc;
 	int ret;
 
 	ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL);
 	if (!ctx)
 		return -ENOMEM;
 
+	ctx->cmd_mode = of_property_read_bool(dev->of_node, "enforce-cmd-mode");
+	ctx->dsc_enable = of_property_read_bool(dev->of_node, "enable-dsc");
+
+	/* Set DSC params */
+	if (ctx->dsc_enable) {
+		dsc = &ctx->dsc;
+		dsc->dsc_version_major = 0x1;
+		dsc->dsc_version_minor = 0x2;
+		dsc->slice_height = 40;
+		dsc->slice_width = 540;
+		dsc->slice_count = 2;
+		dsc->slice_per_pkt = 1;
+		dsc->bits_per_component = 8;
+		dsc->bits_per_pixel = 8 << 4;
+		dsc->block_pred_enable = true;
+
+		dsi->dsc = dsc;
+	}
+
 	ctx->supplies[0].supply = "vddio";
 	ctx->supplies[1].supply = "vci";
 	ctx->supplies[2].supply = "vdd";
@@ -306,6 +359,9 @@ static int visionox_vtdr6130_probe(struct mipi_dsi_device *dsi)
 		return ret;
 	}
 
+	dev_err(&dsi->dev, "discovered with %s mode %s\n",
+		ctx->cmd_mode ? "cmd" : "video",
+		ctx->dsc_enable ? "and DSC enabled" : "");
 	return 0;
 }
 
Signature · 1 line
2.34.1
#5 lore raw

Re: [PATCH 3/3] drm/panel: Enable DSC for Visionox VTDR6130 panel

Quoted 5 lines · Jun Nie

Enable display compression (DSC v1.2) for 1080x2400 Visionox VTDR6130 AMOLED DSI panel. DTS property is needed to enable DSC. Default configuration is video mode + non-DSC for any back compatibility.

The changelog talks about the DSC only, while the changes also include the CMD mode support. This should be split to a separate patch.

Quoted 37 lines

Below modes works on SM8650. While cmd mode does not work yet.
- video mode + DSC
- video mode
- cmd mode + DSC

---
 .../gpu/drm/panel/panel-visionox-vtdr6130.c   | 58 ++++++++++++++++++-
 1 file changed, 57 insertions(+), 1 deletion(-)
drivers/gpu/drm/panel/panel-visionox-vtdr6130.c +4 -0
index 540099253e1b..d6c44816cdd0 100644
@@ -9,6 +9,7 @@
 #include <linux/of.h>
 
 #include <drm/display/drm_dsc.h>
+#include <drm/display/drm_dsc_helper.h>
 #include <drm/drm_mipi_dsi.h>
 #include <drm/drm_modes.h>
 #include <drm/drm_panel.h>
@@ -17,9 +18,12 @@
 
 struct visionox_vtdr6130 {
        struct drm_panel panel;
+       struct drm_dsc_config dsc;
        struct mipi_dsi_device *dsi;
        struct gpio_desc *reset_gpio;
        struct regulator_bulk_data supplies[3];
+       bool cmd_mode;
+       bool dsc_enable;
 };
 
 static inline struct visionox_vtdr6130 *to_visionox_vtdr6130(struct drm_panel *panel)

drivers/gpu/drm/panel/panel-visionox-vtdr6130.c static int visionox_vtdr6130_on(struct visionox_vtdr6130 *ctx) · line 57

Quoted 5 lines
drivers/gpu/drm/panel/panel-visionox-vtdr6130.c +2 -0
@@ -49,12 +53,20 @@ static int visionox_vtdr6130_on(struct visionox_vtdr6130 *ctx)
        if (ret)
                return ret;
 
+       if (ctx->dsc_enable)
+               mipi_dsi_dcs_write_seq(dsi, 0x03, 0x01);

It it really MIPI_DCS_GET_COMPRESSION_MODE?

Quoted 97 lines
drivers/gpu/drm/panel/panel-visionox-vtdr6130.c +51 -2
+
        mipi_dsi_dcs_write_seq(dsi, MIPI_DCS_WRITE_CONTROL_DISPLAY, 0x20);
        mipi_dsi_dcs_write_seq(dsi, MIPI_DCS_SET_DISPLAY_BRIGHTNESS, 0x00, 0x00);
        mipi_dsi_dcs_write_seq(dsi, 0x59, 0x09);
        mipi_dsi_dcs_write_seq(dsi, 0x6c, 0x01);
        mipi_dsi_dcs_write_seq(dsi, 0x6d, 0x00);
-       mipi_dsi_dcs_write_seq(dsi, 0x6f, 0x01);
+
+       if (ctx->cmd_mode)
+               mipi_dsi_dcs_write_seq(dsi, 0x6f, 0x02);
+       else
+               mipi_dsi_dcs_write_seq(dsi, 0x6f, 0x01);
+
        mipi_dsi_dcs_write_seq(dsi, 0x70,
                               0x12, 0x00, 0x00, 0xab, 0x30, 0x80, 0x09, 0x60, 0x04,
                               0x38, 0x00, 0x28, 0x02, 0x1c, 0x02, 0x1c, 0x02, 0x00,
@@ -205,6 +217,26 @@ static const struct drm_display_mode visionox_vtdr6130_mode = {
        .height_mm = 157,
 };
 
+static int visionox_vtdr6130_enable(struct drm_panel *panel)
+{
+       struct visionox_vtdr6130 *ctx = to_visionox_vtdr6130(panel);
+       struct mipi_dsi_device *dsi = ctx->dsi;
+       struct drm_dsc_picture_parameter_set pps;
+       int ret;
+
+       if (!dsi->dsc)
+               return 0;
+
+       drm_dsc_pps_payload_pack(&pps, dsi->dsc);
+       ret = mipi_dsi_picture_parameter_set(dsi, &pps);
+       if (ret) {
+               dev_err(&dsi->dev, "Failed to set PPS\n");
+               return ret;
+       }
+
+       return 0;
+}
+
 static int visionox_vtdr6130_get_modes(struct drm_panel *panel,
                                       struct drm_connector *connector)
 {
@@ -228,6 +260,7 @@ static const struct drm_panel_funcs visionox_vtdr6130_panel_funcs = {
        .prepare = visionox_vtdr6130_prepare,
        .unprepare = visionox_vtdr6130_unprepare,
        .get_modes = visionox_vtdr6130_get_modes,
+       .enable = visionox_vtdr6130_enable,
 };
 
 static int visionox_vtdr6130_bl_update_status(struct backlight_device *bl)
@@ -260,12 +293,32 @@ static int visionox_vtdr6130_probe(struct mipi_dsi_device *dsi)
 {
        struct device *dev = &dsi->dev;
        struct visionox_vtdr6130 *ctx;
+       struct drm_dsc_config *dsc;
        int ret;
 
        ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL);
        if (!ctx)
                return -ENOMEM;
 
+       ctx->cmd_mode = of_property_read_bool(dev->of_node, "enforce-cmd-mode");
+       ctx->dsc_enable = of_property_read_bool(dev->of_node, "enable-dsc");
+
+       /* Set DSC params */
+       if (ctx->dsc_enable) {
+               dsc = &ctx->dsc;
+               dsc->dsc_version_major = 0x1;
+               dsc->dsc_version_minor = 0x2;
+               dsc->slice_height = 40;
+               dsc->slice_width = 540;
+               dsc->slice_count = 2;
+               dsc->slice_per_pkt = 1;
+               dsc->bits_per_component = 8;
+               dsc->bits_per_pixel = 8 << 4;
+               dsc->block_pred_enable = true;
+
+               dsi->dsc = dsc;
+       }
+
        ctx->supplies[0].supply = "vddio";
        ctx->supplies[1].supply = "vci";
        ctx->supplies[2].supply = "vdd";
@@ -306,6 +359,9 @@ static int visionox_vtdr6130_probe(struct mipi_dsi_device *dsi)
                return ret;
        }
 
+       dev_err(&dsi->dev, "discovered with %s mode %s\n",
+               ctx->cmd_mode ? "cmd" : "video",
+               ctx->dsc_enable ? "and DSC enabled" : "");
        return 0;
 }
 
--

2.34.1

Signature · 2 lines
With best wishes
Dmitry
#6 lore raw
In reply to Jun Nie
Quoted 7 lines · Jun Nie

Fix DSC timing and control configurations in DPU for DSI video mode. Only compression ratio 3:1 is handled and tested.

This patch is modified from patchs of Jonathan Marek.

This almost looks like a joke, except it isn't the 1st of April yet. The patch lacks proper Author / Sign-off tags from Jonathan. This is pretty close to copyright infringement. I'm sorry, but I'd have to ask you to abstain from sending patches w/o prior internal review.

Quoted 9 lines
---
 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c   |  2 +-
 .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h  |  2 +-
 .../drm/msm/disp/dpu1/dpu_encoder_phys_vid.c  | 12 +++++
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c   | 10 +++-
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.h   |  1 +
 drivers/gpu/drm/msm/dsi/dsi.xml.h             |  1 +
 drivers/gpu/drm/msm/dsi/dsi_host.c            | 48 +++++++++++--------
 include/drm/display/drm_dsc.h                 |  4 ++

Ok. The feedback for the original patchset [1] was that it should be split logically. Instead you pile everything together into a single patch. This is a complete no-go.

Also, this patchset lacks changelog in comparison to the previous patchseris. I don't think I'll continue the review of this patch. Please rework it properly and add corresponding changelog.

[1] https://patchwork.freedesktop.org/patch/567518/?series=126430&rev=1

Quoted 4 lines
 8 files changed, 56 insertions(+), 24 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c +0 -0
index 6a4b489d44e5..c1b9da06dde2 100644
Signature · 2 lines
With best wishes
Dmitry
author
#7 lore raw
Quoted 8 lines · Dmitry Baryshkov <[email protected]> 于2024年3月28日周四 23:05写道:
Quoted 6 lines · Jun Nie

Fix DSC timing and control configurations in DPU for DSI video mode. Only compression ratio 3:1 is handled and tested.

This patch is modified from patchs of Jonathan Marek.

Quoted 7 lines
Quoted 1 line

This almost looks like a joke, except it isn't the 1st of April yet. The patch lacks proper Author / Sign-off tags from Jonathan. This is pretty close to copyright infringement. I'm sorry, but I'd have to ask you to abstain from sending patches w/o prior internal review.

Thanks for pointing me the previous version. I am not aware of it actually. The only version I knew is from internal repo. It is my fault. I see the slides says that Jonathan does not want to disturbed, so only his name is mentioned in the commit message.

What's the patch set status? I do not see it in mainline yet. If it is in pipeline,
I can just forget the DPU side change.

Thanks!
Jun

Quoted 29 lines
Quoted 10 lines
---
 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c   |  2 +-
 .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h  |  2 +-
 .../drm/msm/disp/dpu1/dpu_encoder_phys_vid.c  | 12 +++++
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c   | 10 +++-
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.h   |  1 +
 drivers/gpu/drm/msm/dsi/dsi.xml.h             |  1 +
 drivers/gpu/drm/msm/dsi/dsi_host.c            | 48 +++++++++++--------
 include/drm/display/drm_dsc.h                 |  4 ++

Ok. The feedback for the original patchset [1] was that it should be split logically. Instead you pile everything together into a single patch. This is a complete no-go.

Also, this patchset lacks changelog in comparison to the previous patchseris. I don't think I'll continue the review of this patch. Please rework it properly and add corresponding changelog.

[1] https://patchwork.freedesktop.org/patch/567518/?series=126430&rev=1

drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c

Quoted 4 lines
 8 files changed, 56 insertions(+), 24 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c +0 -0
index 6a4b489d44e5..c1b9da06dde2 100644

--
With best wishes
Dmitry

#8 lore raw
Quoted 18 lines · Jun Nie
Quoted 8 lines · Dmitry Baryshkov <[email protected]> 于2024年3月28日周四 23:05写道:
Quoted 6 lines · Jun Nie

Fix DSC timing and control configurations in DPU for DSI video mode. Only compression ratio 3:1 is handled and tested.

This patch is modified from patchs of Jonathan Marek.

Quoted 7 lines
Quoted 1 line

This almost looks like a joke, except it isn't the 1st of April yet. The patch lacks proper Author / Sign-off tags from Jonathan. This is pretty close to copyright infringement. I'm sorry, but I'd have to ask you to abstain from sending patches w/o prior internal review.

Quoted 8 lines

Thanks for pointing me the previous version. I am not aware of it actually. The only version I knew is from internal repo. It is my fault. I see the slides says that Jonathan does not want to disturbed, so only his name is mentioned in the commit message.

What's the patch set status? I do not see it in mainline yet. If it is in pipeline,
I can just forget the DPU side change.

See https://patchwork.freedesktop.org/series/126430/

Jonathan posted the patches, but he didn't seem to be interested in following up the review feedback.

Quoted 33 lines

Thanks!
Jun

Quoted 29 lines
Quoted 10 lines
---
 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c   |  2 +-
 .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h  |  2 +-
 .../drm/msm/disp/dpu1/dpu_encoder_phys_vid.c  | 12 +++++
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c   | 10 +++-
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.h   |  1 +
 drivers/gpu/drm/msm/dsi/dsi.xml.h             |  1 +
 drivers/gpu/drm/msm/dsi/dsi_host.c            | 48 +++++++++++--------
 include/drm/display/drm_dsc.h                 |  4 ++

Ok. The feedback for the original patchset [1] was that it should be split logically. Instead you pile everything together into a single patch. This is a complete no-go.

Also, this patchset lacks changelog in comparison to the previous patchseris. I don't think I'll continue the review of this patch. Please rework it properly and add corresponding changelog.

[1] https://patchwork.freedesktop.org/patch/567518/?series=126430&rev=1

drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c

Quoted 4 lines
 8 files changed, 56 insertions(+), 24 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c +0 -0
index 6a4b489d44e5..c1b9da06dde2 100644

--
With best wishes
Dmitry

Signature · 2 lines
With best wishes
Dmitry