* [PATCH v7 0/3] Use correct mode for edp panel @ 2023-11-17 21:46 ` Hsin-Yi Wang 0 siblings, 0 replies; 23+ messages in thread From: Hsin-Yi Wang @ 2023-11-17 21:46 UTC (permalink / raw) To: Douglas Anderson Cc: Neil Armstrong, Jessica Zhang, Sam Ravnborg, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Daniel Vetter, dri-devel, linux-kernel, stable This series contains 2 part to handle mode selection for edp panel: 1. (patch 1, 2) Add a quirk to override the edid mode for generic edp. 2. (patch 3) If a panel contains hardcoded mode, skip edid mode. Previous versions: v1: https://patchwork.kernel.org/project/dri-devel/cover/20231101212604.1636517-1-hsinyi@chromium.org/ v2: https://patchwork.kernel.org/project/dri-devel/cover/20231102221309.1971910-1-hsinyi@chromium.org/ v3: https://patchwork.kernel.org/project/dri-devel/cover/20231106202718.2770821-1-hsinyi@chromium.org/ v4: https://patchwork.kernel.org/project/dri-devel/cover/20231106210337.2900034-1-hsinyi@chromium.org/ v5: https://patchwork.kernel.org/project/dri-devel/cover/20231107000023.2928195-1-hsinyi@chromium.org/ v6: https://lore.kernel.org/lkml/20231107204611.3082200-2-hsinyi@chromium.org/ Hsin-Yi Wang (3): drm/panel-edp: Add override_edid_mode quirk for generic edp drm/panel-edp: Add auo_b116xa3_mode drm/panel-edp: Avoid adding multiple preferred modes drivers/gpu/drm/panel/panel-edp.c | 79 ++++++++++++++++++++++++++----- 1 file changed, 68 insertions(+), 11 deletions(-) -- 2.43.0.rc0.421.g78406f8d94-goog ^ permalink raw reply [flat|nested] 23+ messages in thread
* [PATCH v7 0/3] Use correct mode for edp panel @ 2023-11-17 21:46 ` Hsin-Yi Wang 0 siblings, 0 replies; 23+ messages in thread From: Hsin-Yi Wang @ 2023-11-17 21:46 UTC (permalink / raw) To: Douglas Anderson Cc: Neil Armstrong, linux-kernel, Maxime Ripard, dri-devel, Thomas Zimmermann, Jessica Zhang, stable, Sam Ravnborg This series contains 2 part to handle mode selection for edp panel: 1. (patch 1, 2) Add a quirk to override the edid mode for generic edp. 2. (patch 3) If a panel contains hardcoded mode, skip edid mode. Previous versions: v1: https://patchwork.kernel.org/project/dri-devel/cover/20231101212604.1636517-1-hsinyi@chromium.org/ v2: https://patchwork.kernel.org/project/dri-devel/cover/20231102221309.1971910-1-hsinyi@chromium.org/ v3: https://patchwork.kernel.org/project/dri-devel/cover/20231106202718.2770821-1-hsinyi@chromium.org/ v4: https://patchwork.kernel.org/project/dri-devel/cover/20231106210337.2900034-1-hsinyi@chromium.org/ v5: https://patchwork.kernel.org/project/dri-devel/cover/20231107000023.2928195-1-hsinyi@chromium.org/ v6: https://lore.kernel.org/lkml/20231107204611.3082200-2-hsinyi@chromium.org/ Hsin-Yi Wang (3): drm/panel-edp: Add override_edid_mode quirk for generic edp drm/panel-edp: Add auo_b116xa3_mode drm/panel-edp: Avoid adding multiple preferred modes drivers/gpu/drm/panel/panel-edp.c | 79 ++++++++++++++++++++++++++----- 1 file changed, 68 insertions(+), 11 deletions(-) -- 2.43.0.rc0.421.g78406f8d94-goog ^ permalink raw reply [flat|nested] 23+ messages in thread
* [PATCH v7 1/3] drm/panel-edp: Add override_edid_mode quirk for generic edp 2023-11-17 21:46 ` Hsin-Yi Wang @ 2023-11-17 21:46 ` Hsin-Yi Wang -1 siblings, 0 replies; 23+ messages in thread From: Hsin-Yi Wang @ 2023-11-17 21:46 UTC (permalink / raw) To: Douglas Anderson Cc: Neil Armstrong, Jessica Zhang, Sam Ravnborg, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Daniel Vetter, dri-devel, linux-kernel, stable Generic edp gets mode from edid. However, some panels report incorrect mode in this way, resulting in glitches on panel. Introduce a new quirk additional_mode to the generic edid to pick a correct hardcoded mode. Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org> Reviewed-by: Douglas Anderson <dianders@chromium.org> --- v6->v7: split usecase to another patch. --- drivers/gpu/drm/panel/panel-edp.c | 48 +++++++++++++++++++++++++++++-- 1 file changed, 45 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c index f22677373171..33535f6de343 100644 --- a/drivers/gpu/drm/panel/panel-edp.c +++ b/drivers/gpu/drm/panel/panel-edp.c @@ -203,6 +203,9 @@ struct edp_panel_entry { /** @name: Name of this panel (for printing to logs). */ const char *name; + + /** @override_edid_mode: Override the mode obtained by edid. */ + const struct drm_display_mode *override_edid_mode; }; struct panel_edp { @@ -301,6 +304,24 @@ static unsigned int panel_edp_get_display_modes(struct panel_edp *panel, return num; } +static int panel_edp_override_edid_mode(struct panel_edp *panel, + struct drm_connector *connector, + const struct drm_display_mode *override_mode) +{ + struct drm_display_mode *mode; + + mode = drm_mode_duplicate(connector->dev, override_mode); + if (!mode) { + dev_err(panel->base.dev, "failed to add additional mode\n"); + return 0; + } + + mode->type |= DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; + drm_mode_set_name(mode); + drm_mode_probed_add(connector, mode); + return 1; +} + static int panel_edp_get_non_edid_modes(struct panel_edp *panel, struct drm_connector *connector) { @@ -568,6 +589,9 @@ static int panel_edp_get_modes(struct drm_panel *panel, { struct panel_edp *p = to_panel_edp(panel); int num = 0; + bool has_override_edid_mode = p->detected_panel && + p->detected_panel != ERR_PTR(-EINVAL) && + p->detected_panel->override_edid_mode; /* probe EDID if a DDC bus is available */ if (p->ddc) { @@ -575,9 +599,18 @@ static int panel_edp_get_modes(struct drm_panel *panel, if (!p->edid) p->edid = drm_get_edid(connector, p->ddc); - - if (p->edid) - num += drm_add_edid_modes(connector, p->edid); + if (p->edid) { + if (has_override_edid_mode) { + /* + * override_edid_mode is specified. Use + * override_edid_mode instead of from edid. + */ + num += panel_edp_override_edid_mode(p, connector, + p->detected_panel->override_edid_mode); + } else { + num += drm_add_edid_modes(connector, p->edid); + } + } pm_runtime_mark_last_busy(panel->dev); pm_runtime_put_autosuspend(panel->dev); @@ -1849,6 +1882,15 @@ static const struct panel_delay delay_200_150_e200 = { .delay = _delay \ } +#define EDP_PANEL_ENTRY2(vend_chr_0, vend_chr_1, vend_chr_2, product_id, _delay, _name, _mode) \ +{ \ + .name = _name, \ + .panel_id = drm_edid_encode_panel_id(vend_chr_0, vend_chr_1, vend_chr_2, \ + product_id), \ + .delay = _delay, \ + .override_edid_mode = _mode \ +} + /* * This table is used to figure out power sequencing delays for panels that * are detected by EDID. Entries here may point to entries in the -- 2.43.0.rc0.421.g78406f8d94-goog ^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH v7 1/3] drm/panel-edp: Add override_edid_mode quirk for generic edp @ 2023-11-17 21:46 ` Hsin-Yi Wang 0 siblings, 0 replies; 23+ messages in thread From: Hsin-Yi Wang @ 2023-11-17 21:46 UTC (permalink / raw) To: Douglas Anderson Cc: Neil Armstrong, linux-kernel, Maxime Ripard, dri-devel, Thomas Zimmermann, Jessica Zhang, stable, Sam Ravnborg Generic edp gets mode from edid. However, some panels report incorrect mode in this way, resulting in glitches on panel. Introduce a new quirk additional_mode to the generic edid to pick a correct hardcoded mode. Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org> Reviewed-by: Douglas Anderson <dianders@chromium.org> --- v6->v7: split usecase to another patch. --- drivers/gpu/drm/panel/panel-edp.c | 48 +++++++++++++++++++++++++++++-- 1 file changed, 45 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c index f22677373171..33535f6de343 100644 --- a/drivers/gpu/drm/panel/panel-edp.c +++ b/drivers/gpu/drm/panel/panel-edp.c @@ -203,6 +203,9 @@ struct edp_panel_entry { /** @name: Name of this panel (for printing to logs). */ const char *name; + + /** @override_edid_mode: Override the mode obtained by edid. */ + const struct drm_display_mode *override_edid_mode; }; struct panel_edp { @@ -301,6 +304,24 @@ static unsigned int panel_edp_get_display_modes(struct panel_edp *panel, return num; } +static int panel_edp_override_edid_mode(struct panel_edp *panel, + struct drm_connector *connector, + const struct drm_display_mode *override_mode) +{ + struct drm_display_mode *mode; + + mode = drm_mode_duplicate(connector->dev, override_mode); + if (!mode) { + dev_err(panel->base.dev, "failed to add additional mode\n"); + return 0; + } + + mode->type |= DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; + drm_mode_set_name(mode); + drm_mode_probed_add(connector, mode); + return 1; +} + static int panel_edp_get_non_edid_modes(struct panel_edp *panel, struct drm_connector *connector) { @@ -568,6 +589,9 @@ static int panel_edp_get_modes(struct drm_panel *panel, { struct panel_edp *p = to_panel_edp(panel); int num = 0; + bool has_override_edid_mode = p->detected_panel && + p->detected_panel != ERR_PTR(-EINVAL) && + p->detected_panel->override_edid_mode; /* probe EDID if a DDC bus is available */ if (p->ddc) { @@ -575,9 +599,18 @@ static int panel_edp_get_modes(struct drm_panel *panel, if (!p->edid) p->edid = drm_get_edid(connector, p->ddc); - - if (p->edid) - num += drm_add_edid_modes(connector, p->edid); + if (p->edid) { + if (has_override_edid_mode) { + /* + * override_edid_mode is specified. Use + * override_edid_mode instead of from edid. + */ + num += panel_edp_override_edid_mode(p, connector, + p->detected_panel->override_edid_mode); + } else { + num += drm_add_edid_modes(connector, p->edid); + } + } pm_runtime_mark_last_busy(panel->dev); pm_runtime_put_autosuspend(panel->dev); @@ -1849,6 +1882,15 @@ static const struct panel_delay delay_200_150_e200 = { .delay = _delay \ } +#define EDP_PANEL_ENTRY2(vend_chr_0, vend_chr_1, vend_chr_2, product_id, _delay, _name, _mode) \ +{ \ + .name = _name, \ + .panel_id = drm_edid_encode_panel_id(vend_chr_0, vend_chr_1, vend_chr_2, \ + product_id), \ + .delay = _delay, \ + .override_edid_mode = _mode \ +} + /* * This table is used to figure out power sequencing delays for panels that * are detected by EDID. Entries here may point to entries in the -- 2.43.0.rc0.421.g78406f8d94-goog ^ permalink raw reply related [flat|nested] 23+ messages in thread
* Re: [PATCH v7 1/3] drm/panel-edp: Add override_edid_mode quirk for generic edp 2023-11-17 21:46 ` Hsin-Yi Wang @ 2023-11-17 22:06 ` Greg KH -1 siblings, 0 replies; 23+ messages in thread From: Greg KH @ 2023-11-17 22:06 UTC (permalink / raw) To: Hsin-Yi Wang Cc: Douglas Anderson, Neil Armstrong, Jessica Zhang, Sam Ravnborg, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Daniel Vetter, dri-devel, linux-kernel, stable On Fri, Nov 17, 2023 at 01:46:32PM -0800, Hsin-Yi Wang wrote: > Generic edp gets mode from edid. However, some panels report incorrect > mode in this way, resulting in glitches on panel. Introduce a new quirk > additional_mode to the generic edid to pick a correct hardcoded mode. > > Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org> > Reviewed-by: Douglas Anderson <dianders@chromium.org> > --- > v6->v7: split usecase to another patch. > --- > drivers/gpu/drm/panel/panel-edp.c | 48 +++++++++++++++++++++++++++++-- > 1 file changed, 45 insertions(+), 3 deletions(-) <formletter> This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly. </formletter> ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v7 1/3] drm/panel-edp: Add override_edid_mode quirk for generic edp @ 2023-11-17 22:06 ` Greg KH 0 siblings, 0 replies; 23+ messages in thread From: Greg KH @ 2023-11-17 22:06 UTC (permalink / raw) To: Hsin-Yi Wang Cc: Neil Armstrong, Douglas Anderson, Maxime Ripard, linux-kernel, dri-devel, Thomas Zimmermann, Jessica Zhang, stable, Sam Ravnborg On Fri, Nov 17, 2023 at 01:46:32PM -0800, Hsin-Yi Wang wrote: > Generic edp gets mode from edid. However, some panels report incorrect > mode in this way, resulting in glitches on panel. Introduce a new quirk > additional_mode to the generic edid to pick a correct hardcoded mode. > > Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org> > Reviewed-by: Douglas Anderson <dianders@chromium.org> > --- > v6->v7: split usecase to another patch. > --- > drivers/gpu/drm/panel/panel-edp.c | 48 +++++++++++++++++++++++++++++-- > 1 file changed, 45 insertions(+), 3 deletions(-) <formletter> This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly. </formletter> ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v7 1/3] drm/panel-edp: Add override_edid_mode quirk for generic edp 2023-11-17 22:06 ` Greg KH @ 2023-11-17 22:08 ` Hsin-Yi Wang -1 siblings, 0 replies; 23+ messages in thread From: Hsin-Yi Wang @ 2023-11-17 22:08 UTC (permalink / raw) To: Greg KH Cc: Neil Armstrong, Douglas Anderson, Maxime Ripard, linux-kernel, dri-devel, Thomas Zimmermann, Jessica Zhang, Sam Ravnborg On Fri, Nov 17, 2023 at 2:06 PM Greg KH <gregkh@linuxfoundation.org> wrote: > > On Fri, Nov 17, 2023 at 01:46:32PM -0800, Hsin-Yi Wang wrote: > > Generic edp gets mode from edid. However, some panels report incorrect > > mode in this way, resulting in glitches on panel. Introduce a new quirk > > additional_mode to the generic edid to pick a correct hardcoded mode. > > > > Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org> > > Reviewed-by: Douglas Anderson <dianders@chromium.org> > > --- > > v6->v7: split usecase to another patch. > > --- > > drivers/gpu/drm/panel/panel-edp.c | 48 +++++++++++++++++++++++++++++-- > > 1 file changed, 45 insertions(+), 3 deletions(-) > > <formletter> > > This is not the correct way to submit patches for inclusion in the > stable kernel tree. Please read: > https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html > for how to do this properly. > Forgot to -cc: stable, these patches don't need to be picked to stable. > </formletter> ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v7 1/3] drm/panel-edp: Add override_edid_mode quirk for generic edp @ 2023-11-17 22:08 ` Hsin-Yi Wang 0 siblings, 0 replies; 23+ messages in thread From: Hsin-Yi Wang @ 2023-11-17 22:08 UTC (permalink / raw) To: Greg KH Cc: Douglas Anderson, Neil Armstrong, Jessica Zhang, Sam Ravnborg, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Daniel Vetter, dri-devel, linux-kernel On Fri, Nov 17, 2023 at 2:06 PM Greg KH <gregkh@linuxfoundation.org> wrote: > > On Fri, Nov 17, 2023 at 01:46:32PM -0800, Hsin-Yi Wang wrote: > > Generic edp gets mode from edid. However, some panels report incorrect > > mode in this way, resulting in glitches on panel. Introduce a new quirk > > additional_mode to the generic edid to pick a correct hardcoded mode. > > > > Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org> > > Reviewed-by: Douglas Anderson <dianders@chromium.org> > > --- > > v6->v7: split usecase to another patch. > > --- > > drivers/gpu/drm/panel/panel-edp.c | 48 +++++++++++++++++++++++++++++-- > > 1 file changed, 45 insertions(+), 3 deletions(-) > > <formletter> > > This is not the correct way to submit patches for inclusion in the > stable kernel tree. Please read: > https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html > for how to do this properly. > Forgot to -cc: stable, these patches don't need to be picked to stable. > </formletter> ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v7 1/3] drm/panel-edp: Add override_edid_mode quirk for generic edp 2023-11-17 21:46 ` Hsin-Yi Wang @ 2023-11-28 22:42 ` Doug Anderson -1 siblings, 0 replies; 23+ messages in thread From: Doug Anderson @ 2023-11-28 22:42 UTC (permalink / raw) To: Hsin-Yi Wang Cc: Neil Armstrong, linux-kernel, Maxime Ripard, dri-devel, Thomas Zimmermann, Jessica Zhang, Sam Ravnborg Hi, On Fri, Nov 17, 2023 at 1:51 PM Hsin-Yi Wang <hsinyi@chromium.org> wrote: > > Generic edp gets mode from edid. However, some panels report incorrect > mode in this way, resulting in glitches on panel. Introduce a new quirk > additional_mode to the generic edid to pick a correct hardcoded mode. > > Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org> > Reviewed-by: Douglas Anderson <dianders@chromium.org> > --- > v6->v7: split usecase to another patch. > --- > drivers/gpu/drm/panel/panel-edp.c | 48 +++++++++++++++++++++++++++++-- > 1 file changed, 45 insertions(+), 3 deletions(-) Pushed to drm-misc-next: 9f7843b51581 drm/panel-edp: Add override_edid_mode quirk for generic edp ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v7 1/3] drm/panel-edp: Add override_edid_mode quirk for generic edp @ 2023-11-28 22:42 ` Doug Anderson 0 siblings, 0 replies; 23+ messages in thread From: Doug Anderson @ 2023-11-28 22:42 UTC (permalink / raw) To: Hsin-Yi Wang Cc: Neil Armstrong, Jessica Zhang, Sam Ravnborg, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Daniel Vetter, dri-devel, linux-kernel Hi, On Fri, Nov 17, 2023 at 1:51 PM Hsin-Yi Wang <hsinyi@chromium.org> wrote: > > Generic edp gets mode from edid. However, some panels report incorrect > mode in this way, resulting in glitches on panel. Introduce a new quirk > additional_mode to the generic edid to pick a correct hardcoded mode. > > Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org> > Reviewed-by: Douglas Anderson <dianders@chromium.org> > --- > v6->v7: split usecase to another patch. > --- > drivers/gpu/drm/panel/panel-edp.c | 48 +++++++++++++++++++++++++++++-- > 1 file changed, 45 insertions(+), 3 deletions(-) Pushed to drm-misc-next: 9f7843b51581 drm/panel-edp: Add override_edid_mode quirk for generic edp ^ permalink raw reply [flat|nested] 23+ messages in thread
* [PATCH v7 2/3] drm/panel-edp: Add auo_b116xa3_mode 2023-11-17 21:46 ` Hsin-Yi Wang @ 2023-11-17 21:46 ` Hsin-Yi Wang -1 siblings, 0 replies; 23+ messages in thread From: Hsin-Yi Wang @ 2023-11-17 21:46 UTC (permalink / raw) To: Douglas Anderson Cc: Neil Armstrong, Jessica Zhang, Sam Ravnborg, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Daniel Vetter, dri-devel, linux-kernel, stable Add auo_b116xa3_mode to override the original modes parsed from edid of the panels 0x405c B116XAK01.0 and 0x615c B116XAN06.1 which result in glitches on panel. Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org> --- v6->v7: split usecase to another patch. --- drivers/gpu/drm/panel/panel-edp.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c index 33535f6de343..3e144145a6bd 100644 --- a/drivers/gpu/drm/panel/panel-edp.c +++ b/drivers/gpu/drm/panel/panel-edp.c @@ -983,6 +983,19 @@ static const struct panel_desc auo_b101ean01 = { }, }; +static const struct drm_display_mode auo_b116xa3_mode = { + .clock = 70589, + .hdisplay = 1366, + .hsync_start = 1366 + 40, + .hsync_end = 1366 + 40 + 40, + .htotal = 1366 + 40 + 40 + 32, + .vdisplay = 768, + .vsync_start = 768 + 10, + .vsync_end = 768 + 10 + 12, + .vtotal = 768 + 10 + 12 + 6, + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, +}; + static const struct drm_display_mode auo_b116xak01_mode = { .clock = 69300, .hdisplay = 1366, @@ -1908,9 +1921,11 @@ static const struct edp_panel_entry edp_panels[] = { EDP_PANEL_ENTRY('A', 'U', 'O', 0x239b, &delay_200_500_e50, "B116XAN06.1"), EDP_PANEL_ENTRY('A', 'U', 'O', 0x255c, &delay_200_500_e50, "B116XTN02.5"), EDP_PANEL_ENTRY('A', 'U', 'O', 0x403d, &delay_200_500_e50, "B140HAN04.0"), - EDP_PANEL_ENTRY('A', 'U', 'O', 0x405c, &auo_b116xak01.delay, "B116XAK01.0"), + EDP_PANEL_ENTRY2('A', 'U', 'O', 0x405c, &auo_b116xak01.delay, "B116XAK01.0", + &auo_b116xa3_mode), EDP_PANEL_ENTRY('A', 'U', 'O', 0x582d, &delay_200_500_e50, "B133UAN01.0"), - EDP_PANEL_ENTRY('A', 'U', 'O', 0x615c, &delay_200_500_e50, "B116XAN06.1"), + EDP_PANEL_ENTRY2('A', 'U', 'O', 0x615c, &delay_200_500_e50, "B116XAN06.1", + &auo_b116xa3_mode), EDP_PANEL_ENTRY('A', 'U', 'O', 0x635c, &delay_200_500_e50, "B116XAN06.3"), EDP_PANEL_ENTRY('A', 'U', 'O', 0x639c, &delay_200_500_e50, "B140HAK02.7"), EDP_PANEL_ENTRY('A', 'U', 'O', 0x8594, &delay_200_500_e50, "B133UAN01.0"), -- 2.43.0.rc0.421.g78406f8d94-goog ^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH v7 2/3] drm/panel-edp: Add auo_b116xa3_mode @ 2023-11-17 21:46 ` Hsin-Yi Wang 0 siblings, 0 replies; 23+ messages in thread From: Hsin-Yi Wang @ 2023-11-17 21:46 UTC (permalink / raw) To: Douglas Anderson Cc: Neil Armstrong, linux-kernel, Maxime Ripard, dri-devel, Thomas Zimmermann, Jessica Zhang, stable, Sam Ravnborg Add auo_b116xa3_mode to override the original modes parsed from edid of the panels 0x405c B116XAK01.0 and 0x615c B116XAN06.1 which result in glitches on panel. Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org> --- v6->v7: split usecase to another patch. --- drivers/gpu/drm/panel/panel-edp.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c index 33535f6de343..3e144145a6bd 100644 --- a/drivers/gpu/drm/panel/panel-edp.c +++ b/drivers/gpu/drm/panel/panel-edp.c @@ -983,6 +983,19 @@ static const struct panel_desc auo_b101ean01 = { }, }; +static const struct drm_display_mode auo_b116xa3_mode = { + .clock = 70589, + .hdisplay = 1366, + .hsync_start = 1366 + 40, + .hsync_end = 1366 + 40 + 40, + .htotal = 1366 + 40 + 40 + 32, + .vdisplay = 768, + .vsync_start = 768 + 10, + .vsync_end = 768 + 10 + 12, + .vtotal = 768 + 10 + 12 + 6, + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, +}; + static const struct drm_display_mode auo_b116xak01_mode = { .clock = 69300, .hdisplay = 1366, @@ -1908,9 +1921,11 @@ static const struct edp_panel_entry edp_panels[] = { EDP_PANEL_ENTRY('A', 'U', 'O', 0x239b, &delay_200_500_e50, "B116XAN06.1"), EDP_PANEL_ENTRY('A', 'U', 'O', 0x255c, &delay_200_500_e50, "B116XTN02.5"), EDP_PANEL_ENTRY('A', 'U', 'O', 0x403d, &delay_200_500_e50, "B140HAN04.0"), - EDP_PANEL_ENTRY('A', 'U', 'O', 0x405c, &auo_b116xak01.delay, "B116XAK01.0"), + EDP_PANEL_ENTRY2('A', 'U', 'O', 0x405c, &auo_b116xak01.delay, "B116XAK01.0", + &auo_b116xa3_mode), EDP_PANEL_ENTRY('A', 'U', 'O', 0x582d, &delay_200_500_e50, "B133UAN01.0"), - EDP_PANEL_ENTRY('A', 'U', 'O', 0x615c, &delay_200_500_e50, "B116XAN06.1"), + EDP_PANEL_ENTRY2('A', 'U', 'O', 0x615c, &delay_200_500_e50, "B116XAN06.1", + &auo_b116xa3_mode), EDP_PANEL_ENTRY('A', 'U', 'O', 0x635c, &delay_200_500_e50, "B116XAN06.3"), EDP_PANEL_ENTRY('A', 'U', 'O', 0x639c, &delay_200_500_e50, "B140HAK02.7"), EDP_PANEL_ENTRY('A', 'U', 'O', 0x8594, &delay_200_500_e50, "B133UAN01.0"), -- 2.43.0.rc0.421.g78406f8d94-goog ^ permalink raw reply related [flat|nested] 23+ messages in thread
* Re: [PATCH v7 2/3] drm/panel-edp: Add auo_b116xa3_mode 2023-11-17 21:46 ` Hsin-Yi Wang (?) @ 2023-11-17 21:52 ` kernel test robot -1 siblings, 0 replies; 23+ messages in thread From: kernel test robot @ 2023-11-17 21:52 UTC (permalink / raw) To: Hsin-Yi Wang; +Cc: stable, oe-kbuild-all Hi, Thanks for your patch. FYI: kernel test robot notices the stable kernel rule is not satisfied. The check is based on https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html#option-1 Rule: add the tag "Cc: stable@vger.kernel.org" in the sign-off area to have the patch automatically included in the stable tree. Subject: [PATCH v7 2/3] drm/panel-edp: Add auo_b116xa3_mode Link: https://lore.kernel.org/stable/20231117215056.1883314-3-hsinyi%40chromium.org -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v7 2/3] drm/panel-edp: Add auo_b116xa3_mode 2023-11-17 21:46 ` Hsin-Yi Wang @ 2023-11-17 22:09 ` Hsin-Yi Wang -1 siblings, 0 replies; 23+ messages in thread From: Hsin-Yi Wang @ 2023-11-17 22:09 UTC (permalink / raw) To: Douglas Anderson Cc: Neil Armstrong, linux-kernel, Maxime Ripard, dri-devel, Thomas Zimmermann, Jessica Zhang, Sam Ravnborg On Fri, Nov 17, 2023 at 1:51 PM Hsin-Yi Wang <hsinyi@chromium.org> wrote: > > Add auo_b116xa3_mode to override the original modes parsed from edid > of the panels 0x405c B116XAK01.0 and 0x615c B116XAN06.1 which result > in glitches on panel. > > Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org> > --- > v6->v7: split usecase to another patch. -cc: stable > --- > drivers/gpu/drm/panel/panel-edp.c | 19 +++++++++++++++++-- > 1 file changed, 17 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c > index 33535f6de343..3e144145a6bd 100644 > --- a/drivers/gpu/drm/panel/panel-edp.c > +++ b/drivers/gpu/drm/panel/panel-edp.c > @@ -983,6 +983,19 @@ static const struct panel_desc auo_b101ean01 = { > }, > }; > > +static const struct drm_display_mode auo_b116xa3_mode = { > + .clock = 70589, > + .hdisplay = 1366, > + .hsync_start = 1366 + 40, > + .hsync_end = 1366 + 40 + 40, > + .htotal = 1366 + 40 + 40 + 32, > + .vdisplay = 768, > + .vsync_start = 768 + 10, > + .vsync_end = 768 + 10 + 12, > + .vtotal = 768 + 10 + 12 + 6, > + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, > +}; > + > static const struct drm_display_mode auo_b116xak01_mode = { > .clock = 69300, > .hdisplay = 1366, > @@ -1908,9 +1921,11 @@ static const struct edp_panel_entry edp_panels[] = { > EDP_PANEL_ENTRY('A', 'U', 'O', 0x239b, &delay_200_500_e50, "B116XAN06.1"), > EDP_PANEL_ENTRY('A', 'U', 'O', 0x255c, &delay_200_500_e50, "B116XTN02.5"), > EDP_PANEL_ENTRY('A', 'U', 'O', 0x403d, &delay_200_500_e50, "B140HAN04.0"), > - EDP_PANEL_ENTRY('A', 'U', 'O', 0x405c, &auo_b116xak01.delay, "B116XAK01.0"), > + EDP_PANEL_ENTRY2('A', 'U', 'O', 0x405c, &auo_b116xak01.delay, "B116XAK01.0", > + &auo_b116xa3_mode), > EDP_PANEL_ENTRY('A', 'U', 'O', 0x582d, &delay_200_500_e50, "B133UAN01.0"), > - EDP_PANEL_ENTRY('A', 'U', 'O', 0x615c, &delay_200_500_e50, "B116XAN06.1"), > + EDP_PANEL_ENTRY2('A', 'U', 'O', 0x615c, &delay_200_500_e50, "B116XAN06.1", > + &auo_b116xa3_mode), > EDP_PANEL_ENTRY('A', 'U', 'O', 0x635c, &delay_200_500_e50, "B116XAN06.3"), > EDP_PANEL_ENTRY('A', 'U', 'O', 0x639c, &delay_200_500_e50, "B140HAK02.7"), > EDP_PANEL_ENTRY('A', 'U', 'O', 0x8594, &delay_200_500_e50, "B133UAN01.0"), > -- > 2.43.0.rc0.421.g78406f8d94-goog > ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v7 2/3] drm/panel-edp: Add auo_b116xa3_mode @ 2023-11-17 22:09 ` Hsin-Yi Wang 0 siblings, 0 replies; 23+ messages in thread From: Hsin-Yi Wang @ 2023-11-17 22:09 UTC (permalink / raw) To: Douglas Anderson Cc: Neil Armstrong, Jessica Zhang, Sam Ravnborg, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Daniel Vetter, dri-devel, linux-kernel On Fri, Nov 17, 2023 at 1:51 PM Hsin-Yi Wang <hsinyi@chromium.org> wrote: > > Add auo_b116xa3_mode to override the original modes parsed from edid > of the panels 0x405c B116XAK01.0 and 0x615c B116XAN06.1 which result > in glitches on panel. > > Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org> > --- > v6->v7: split usecase to another patch. -cc: stable > --- > drivers/gpu/drm/panel/panel-edp.c | 19 +++++++++++++++++-- > 1 file changed, 17 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c > index 33535f6de343..3e144145a6bd 100644 > --- a/drivers/gpu/drm/panel/panel-edp.c > +++ b/drivers/gpu/drm/panel/panel-edp.c > @@ -983,6 +983,19 @@ static const struct panel_desc auo_b101ean01 = { > }, > }; > > +static const struct drm_display_mode auo_b116xa3_mode = { > + .clock = 70589, > + .hdisplay = 1366, > + .hsync_start = 1366 + 40, > + .hsync_end = 1366 + 40 + 40, > + .htotal = 1366 + 40 + 40 + 32, > + .vdisplay = 768, > + .vsync_start = 768 + 10, > + .vsync_end = 768 + 10 + 12, > + .vtotal = 768 + 10 + 12 + 6, > + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, > +}; > + > static const struct drm_display_mode auo_b116xak01_mode = { > .clock = 69300, > .hdisplay = 1366, > @@ -1908,9 +1921,11 @@ static const struct edp_panel_entry edp_panels[] = { > EDP_PANEL_ENTRY('A', 'U', 'O', 0x239b, &delay_200_500_e50, "B116XAN06.1"), > EDP_PANEL_ENTRY('A', 'U', 'O', 0x255c, &delay_200_500_e50, "B116XTN02.5"), > EDP_PANEL_ENTRY('A', 'U', 'O', 0x403d, &delay_200_500_e50, "B140HAN04.0"), > - EDP_PANEL_ENTRY('A', 'U', 'O', 0x405c, &auo_b116xak01.delay, "B116XAK01.0"), > + EDP_PANEL_ENTRY2('A', 'U', 'O', 0x405c, &auo_b116xak01.delay, "B116XAK01.0", > + &auo_b116xa3_mode), > EDP_PANEL_ENTRY('A', 'U', 'O', 0x582d, &delay_200_500_e50, "B133UAN01.0"), > - EDP_PANEL_ENTRY('A', 'U', 'O', 0x615c, &delay_200_500_e50, "B116XAN06.1"), > + EDP_PANEL_ENTRY2('A', 'U', 'O', 0x615c, &delay_200_500_e50, "B116XAN06.1", > + &auo_b116xa3_mode), > EDP_PANEL_ENTRY('A', 'U', 'O', 0x635c, &delay_200_500_e50, "B116XAN06.3"), > EDP_PANEL_ENTRY('A', 'U', 'O', 0x639c, &delay_200_500_e50, "B140HAK02.7"), > EDP_PANEL_ENTRY('A', 'U', 'O', 0x8594, &delay_200_500_e50, "B133UAN01.0"), > -- > 2.43.0.rc0.421.g78406f8d94-goog > ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v7 2/3] drm/panel-edp: Add auo_b116xa3_mode 2023-11-17 21:46 ` Hsin-Yi Wang @ 2023-11-17 22:40 ` Doug Anderson -1 siblings, 0 replies; 23+ messages in thread From: Doug Anderson @ 2023-11-17 22:40 UTC (permalink / raw) To: Hsin-Yi Wang Cc: Neil Armstrong, linux-kernel, Maxime Ripard, dri-devel, Thomas Zimmermann, Jessica Zhang, Sam Ravnborg Hi, On Fri, Nov 17, 2023 at 1:51 PM Hsin-Yi Wang <hsinyi@chromium.org> wrote: > > Add auo_b116xa3_mode to override the original modes parsed from edid > of the panels 0x405c B116XAK01.0 and 0x615c B116XAN06.1 which result > in glitches on panel. > > Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org> > --- > v6->v7: split usecase to another patch. > --- > drivers/gpu/drm/panel/panel-edp.c | 19 +++++++++++++++++-- > 1 file changed, 17 insertions(+), 2 deletions(-) Reviewed-by: Douglas Anderson <dianders@chromium.org> ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v7 2/3] drm/panel-edp: Add auo_b116xa3_mode @ 2023-11-17 22:40 ` Doug Anderson 0 siblings, 0 replies; 23+ messages in thread From: Doug Anderson @ 2023-11-17 22:40 UTC (permalink / raw) To: Hsin-Yi Wang Cc: Neil Armstrong, Jessica Zhang, Sam Ravnborg, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Daniel Vetter, dri-devel, linux-kernel Hi, On Fri, Nov 17, 2023 at 1:51 PM Hsin-Yi Wang <hsinyi@chromium.org> wrote: > > Add auo_b116xa3_mode to override the original modes parsed from edid > of the panels 0x405c B116XAK01.0 and 0x615c B116XAN06.1 which result > in glitches on panel. > > Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org> > --- > v6->v7: split usecase to another patch. > --- > drivers/gpu/drm/panel/panel-edp.c | 19 +++++++++++++++++-- > 1 file changed, 17 insertions(+), 2 deletions(-) Reviewed-by: Douglas Anderson <dianders@chromium.org> ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v7 2/3] drm/panel-edp: Add auo_b116xa3_mode 2023-11-17 21:46 ` Hsin-Yi Wang @ 2023-11-28 22:42 ` Doug Anderson -1 siblings, 0 replies; 23+ messages in thread From: Doug Anderson @ 2023-11-28 22:42 UTC (permalink / raw) To: Hsin-Yi Wang Cc: Neil Armstrong, linux-kernel, Maxime Ripard, dri-devel, Thomas Zimmermann, Jessica Zhang, Sam Ravnborg Hi, On Fri, Nov 17, 2023 at 1:51 PM Hsin-Yi Wang <hsinyi@chromium.org> wrote: > > Add auo_b116xa3_mode to override the original modes parsed from edid > of the panels 0x405c B116XAK01.0 and 0x615c B116XAN06.1 which result > in glitches on panel. > > Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org> > --- > v6->v7: split usecase to another patch. > --- > drivers/gpu/drm/panel/panel-edp.c | 19 +++++++++++++++++-- > 1 file changed, 17 insertions(+), 2 deletions(-) Pushed to drm-misc-next: 70e0d5550f5c drm/panel-edp: Add auo_b116xa3_mode ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v7 2/3] drm/panel-edp: Add auo_b116xa3_mode @ 2023-11-28 22:42 ` Doug Anderson 0 siblings, 0 replies; 23+ messages in thread From: Doug Anderson @ 2023-11-28 22:42 UTC (permalink / raw) To: Hsin-Yi Wang Cc: Neil Armstrong, Jessica Zhang, Sam Ravnborg, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Daniel Vetter, dri-devel, linux-kernel Hi, On Fri, Nov 17, 2023 at 1:51 PM Hsin-Yi Wang <hsinyi@chromium.org> wrote: > > Add auo_b116xa3_mode to override the original modes parsed from edid > of the panels 0x405c B116XAK01.0 and 0x615c B116XAN06.1 which result > in glitches on panel. > > Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org> > --- > v6->v7: split usecase to another patch. > --- > drivers/gpu/drm/panel/panel-edp.c | 19 +++++++++++++++++-- > 1 file changed, 17 insertions(+), 2 deletions(-) Pushed to drm-misc-next: 70e0d5550f5c drm/panel-edp: Add auo_b116xa3_mode ^ permalink raw reply [flat|nested] 23+ messages in thread
* [PATCH v7 3/3] drm/panel-edp: Avoid adding multiple preferred modes 2023-11-17 21:46 ` Hsin-Yi Wang @ 2023-11-17 21:46 ` Hsin-Yi Wang -1 siblings, 0 replies; 23+ messages in thread From: Hsin-Yi Wang @ 2023-11-17 21:46 UTC (permalink / raw) To: Douglas Anderson Cc: Neil Armstrong, Jessica Zhang, Sam Ravnborg, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Daniel Vetter, dri-devel, linux-kernel, stable If a non generic edp-panel is under aux-bus, the mode read from edid would still be selected as preferred and results in multiple preferred modes, which is ambiguous. If both hard-coded mode and edid exists, only add mode from hard-coded. Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org> Reviewed-by: Douglas Anderson <dianders@chromium.org> --- v6->v7: no change --- drivers/gpu/drm/panel/panel-edp.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c index 3e144145a6bd..825fa2a0d8a5 100644 --- a/drivers/gpu/drm/panel/panel-edp.c +++ b/drivers/gpu/drm/panel/panel-edp.c @@ -589,6 +589,7 @@ static int panel_edp_get_modes(struct drm_panel *panel, { struct panel_edp *p = to_panel_edp(panel); int num = 0; + bool has_hard_coded_modes = p->desc->num_timings || p->desc->num_modes; bool has_override_edid_mode = p->detected_panel && p->detected_panel != ERR_PTR(-EINVAL) && p->detected_panel->override_edid_mode; @@ -599,7 +600,11 @@ static int panel_edp_get_modes(struct drm_panel *panel, if (!p->edid) p->edid = drm_get_edid(connector, p->ddc); - if (p->edid) { + /* + * If both edid and hard-coded modes exists, skip edid modes to + * avoid multiple preferred modes. + */ + if (p->edid && !has_hard_coded_modes) { if (has_override_edid_mode) { /* * override_edid_mode is specified. Use @@ -616,12 +621,7 @@ static int panel_edp_get_modes(struct drm_panel *panel, pm_runtime_put_autosuspend(panel->dev); } - /* - * Add hard-coded panel modes. Don't call this if there are no timings - * and no modes (the generic edp-panel case) because it will clobber - * the display_info that was already set by drm_add_edid_modes(). - */ - if (p->desc->num_timings || p->desc->num_modes) + if (has_hard_coded_modes) num += panel_edp_get_non_edid_modes(p, connector); else if (!num) dev_warn(p->base.dev, "No display modes\n"); -- 2.43.0.rc0.421.g78406f8d94-goog ^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH v7 3/3] drm/panel-edp: Avoid adding multiple preferred modes @ 2023-11-17 21:46 ` Hsin-Yi Wang 0 siblings, 0 replies; 23+ messages in thread From: Hsin-Yi Wang @ 2023-11-17 21:46 UTC (permalink / raw) To: Douglas Anderson Cc: Neil Armstrong, linux-kernel, Maxime Ripard, dri-devel, Thomas Zimmermann, Jessica Zhang, stable, Sam Ravnborg If a non generic edp-panel is under aux-bus, the mode read from edid would still be selected as preferred and results in multiple preferred modes, which is ambiguous. If both hard-coded mode and edid exists, only add mode from hard-coded. Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org> Reviewed-by: Douglas Anderson <dianders@chromium.org> --- v6->v7: no change --- drivers/gpu/drm/panel/panel-edp.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c index 3e144145a6bd..825fa2a0d8a5 100644 --- a/drivers/gpu/drm/panel/panel-edp.c +++ b/drivers/gpu/drm/panel/panel-edp.c @@ -589,6 +589,7 @@ static int panel_edp_get_modes(struct drm_panel *panel, { struct panel_edp *p = to_panel_edp(panel); int num = 0; + bool has_hard_coded_modes = p->desc->num_timings || p->desc->num_modes; bool has_override_edid_mode = p->detected_panel && p->detected_panel != ERR_PTR(-EINVAL) && p->detected_panel->override_edid_mode; @@ -599,7 +600,11 @@ static int panel_edp_get_modes(struct drm_panel *panel, if (!p->edid) p->edid = drm_get_edid(connector, p->ddc); - if (p->edid) { + /* + * If both edid and hard-coded modes exists, skip edid modes to + * avoid multiple preferred modes. + */ + if (p->edid && !has_hard_coded_modes) { if (has_override_edid_mode) { /* * override_edid_mode is specified. Use @@ -616,12 +621,7 @@ static int panel_edp_get_modes(struct drm_panel *panel, pm_runtime_put_autosuspend(panel->dev); } - /* - * Add hard-coded panel modes. Don't call this if there are no timings - * and no modes (the generic edp-panel case) because it will clobber - * the display_info that was already set by drm_add_edid_modes(). - */ - if (p->desc->num_timings || p->desc->num_modes) + if (has_hard_coded_modes) num += panel_edp_get_non_edid_modes(p, connector); else if (!num) dev_warn(p->base.dev, "No display modes\n"); -- 2.43.0.rc0.421.g78406f8d94-goog ^ permalink raw reply related [flat|nested] 23+ messages in thread
* Re: [PATCH v7 3/3] drm/panel-edp: Avoid adding multiple preferred modes 2023-11-17 21:46 ` Hsin-Yi Wang @ 2023-11-28 22:43 ` Doug Anderson -1 siblings, 0 replies; 23+ messages in thread From: Doug Anderson @ 2023-11-28 22:43 UTC (permalink / raw) To: Hsin-Yi Wang Cc: Neil Armstrong, linux-kernel, Maxime Ripard, dri-devel, Thomas Zimmermann, Jessica Zhang, Sam Ravnborg Hi, On Fri, Nov 17, 2023 at 1:51 PM Hsin-Yi Wang <hsinyi@chromium.org> wrote: > > If a non generic edp-panel is under aux-bus, the mode read from edid would > still be selected as preferred and results in multiple preferred modes, > which is ambiguous. > > If both hard-coded mode and edid exists, only add mode from hard-coded. > > Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org> > Reviewed-by: Douglas Anderson <dianders@chromium.org> > --- > v6->v7: no change > --- > drivers/gpu/drm/panel/panel-edp.c | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) Pushed to drm-misc-next: fb3f43d50d9b drm/panel-edp: Avoid adding multiple preferred modes ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH v7 3/3] drm/panel-edp: Avoid adding multiple preferred modes @ 2023-11-28 22:43 ` Doug Anderson 0 siblings, 0 replies; 23+ messages in thread From: Doug Anderson @ 2023-11-28 22:43 UTC (permalink / raw) To: Hsin-Yi Wang Cc: Neil Armstrong, Jessica Zhang, Sam Ravnborg, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Daniel Vetter, dri-devel, linux-kernel Hi, On Fri, Nov 17, 2023 at 1:51 PM Hsin-Yi Wang <hsinyi@chromium.org> wrote: > > If a non generic edp-panel is under aux-bus, the mode read from edid would > still be selected as preferred and results in multiple preferred modes, > which is ambiguous. > > If both hard-coded mode and edid exists, only add mode from hard-coded. > > Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org> > Reviewed-by: Douglas Anderson <dianders@chromium.org> > --- > v6->v7: no change > --- > drivers/gpu/drm/panel/panel-edp.c | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) Pushed to drm-misc-next: fb3f43d50d9b drm/panel-edp: Avoid adding multiple preferred modes ^ permalink raw reply [flat|nested] 23+ messages in thread
end of thread, other threads:[~2023-11-28 22:43 UTC | newest] Thread overview: 23+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-11-17 21:46 [PATCH v7 0/3] Use correct mode for edp panel Hsin-Yi Wang 2023-11-17 21:46 ` Hsin-Yi Wang 2023-11-17 21:46 ` [PATCH v7 1/3] drm/panel-edp: Add override_edid_mode quirk for generic edp Hsin-Yi Wang 2023-11-17 21:46 ` Hsin-Yi Wang 2023-11-17 22:06 ` Greg KH 2023-11-17 22:06 ` Greg KH 2023-11-17 22:08 ` Hsin-Yi Wang 2023-11-17 22:08 ` Hsin-Yi Wang 2023-11-28 22:42 ` Doug Anderson 2023-11-28 22:42 ` Doug Anderson 2023-11-17 21:46 ` [PATCH v7 2/3] drm/panel-edp: Add auo_b116xa3_mode Hsin-Yi Wang 2023-11-17 21:46 ` Hsin-Yi Wang 2023-11-17 21:52 ` kernel test robot 2023-11-17 22:09 ` Hsin-Yi Wang 2023-11-17 22:09 ` Hsin-Yi Wang 2023-11-17 22:40 ` Doug Anderson 2023-11-17 22:40 ` Doug Anderson 2023-11-28 22:42 ` Doug Anderson 2023-11-28 22:42 ` Doug Anderson 2023-11-17 21:46 ` [PATCH v7 3/3] drm/panel-edp: Avoid adding multiple preferred modes Hsin-Yi Wang 2023-11-17 21:46 ` Hsin-Yi Wang 2023-11-28 22:43 ` Doug Anderson 2023-11-28 22:43 ` Doug Anderson
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.