Re: [PATCH v6] drm/dp: clamp PWM bit count to advertised MIN and MAX capabilities

2025-08-04 Thread Johan Hovold
On Thu, Jul 24, 2025 at 02:09:10PM +0300, Dmitry Baryshkov wrote: > On 24/07/2025 12:42, Neil Armstrong wrote: > > On 24/07/2025 11:32, Dmitry Baryshkov wrote: > >> On Thu, 24 Jul 2025 at 12:08, wrote: > >>> On 20/05/2025 10:06, Johan Hovold wrote: > >>>

Re: [PATCH v6 1/2] arm64: dts: qcom: x1e78100-t14s: add hpd gpio to dp controller

2025-08-04 Thread Johan Hovold
On Thu, Jul 31, 2025 at 09:51:26PM +0100, Christopher Obbard wrote: > The eDP controller has an HPD GPIO. Describe it in the device tree > for the generic T14s model, as the HPD GPIO is used in both the > OLED and LCD models which inherit this device tree. > @@ -5779,6 +5779,11 @@ tlmm: pinctrl@f1

Re: [PATCH 1/2] drm/bridge: fix OF node leak

2025-07-24 Thread Johan Hovold
On Tue, Jul 08, 2025 at 10:51:23AM +0200, Johan Hovold wrote: > Make sure to drop the OF node reference taken when creating the aux > bridge device when the device is later released. > > Fixes: 6914968a0b52 ("drm/bridge: properly refcount DT nodes in aux bridge > drivers"

Re: [PATCH v6] drm/dp: clamp PWM bit count to advertised MIN and MAX capabilities

2025-07-24 Thread Johan Hovold
On Thu, Jul 24, 2025 at 11:42:38AM +0200, Neil Armstrong wrote: > On 24/07/2025 11:32, Dmitry Baryshkov wrote: > > On Thu, 24 Jul 2025 at 12:08, wrote: > >> On 20/05/2025 10:06, Johan Hovold wrote: > >>> On Fri, Apr 04, 2025 at 02:24:32PM +0100, Christopher Obbard wr

Re: [PATCH v5 1/3] arm64: dts: qcom: x1e80100: add epd hpd pinctrl

2025-07-23 Thread Johan Hovold
On Wed, Jul 23, 2025 at 09:03:40AM +0200, Neil Armstrong wrote: > On 11/04/2025 13:49, Johan Hovold wrote: > > On Wed, Apr 02, 2025 at 03:36:32PM +0100, Christopher Obbard wrote: > >> Add edp_hpd_active pinctrl to the X1E80100 device tree. > > > > Please squash this

Re: [PATCH v5 0/3] Add support for OLED panel used on Snapdragon Lenovo T14s Gen6

2025-07-23 Thread Johan Hovold
On Wed, Jul 23, 2025 at 08:51:22AM +0200, Neil Armstrong wrote: > On 22/07/2025 15:48, Rui Miguel Silva wrote: > > On Tue Jul 22, 2025 at 2:01 PM WEST, Neil Armstrong wrote: > >> On 10/07/2025 12:07, Johan Hovold wrote: > >>> Neil, do you have the OLED version now?

[PATCH] drm/mediatek: fix device leaks at bind

2025-07-22 Thread Johan Hovold
;) Cc: sta...@vger.kernel.org # 6.4 Cc: Nancy.Lin Signed-off-by: Johan Hovold --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c index 7c0c12dde488..33b83576af7e 10

Re: [PATCH 2/2] drm/bridge: ti-sn65dsi86: fix OF node leak

2025-07-15 Thread Johan Hovold
On Mon, Jul 14, 2025 at 11:46:12AM -0700, Doug Anderson wrote: > On Tue, Jul 8, 2025 at 1:52 AM Johan Hovold wrote: > > Make sure to drop the OF node reference taken when creating the bridge > > device when the device is later released. > > > > Fixes: a1e3667a9835

Re: [PATCH v5 0/3] Add support for OLED panel used on Snapdragon Lenovo T14s Gen6

2025-07-10 Thread Johan Hovold
Hi Chris (and Neil), On Tue, May 20, 2025 at 10:30:29AM +0200, Johan Hovold wrote: > On Wed, Apr 02, 2025 at 03:36:31PM +0100, Christopher Obbard wrote: > > The Snapdragon Lenovo T14s Gen6 can be bought with a number of different > > panels. This patch series adds support for

[PATCH 2/2] drm/bridge: ti-sn65dsi86: fix OF node leak

2025-07-08 Thread Johan Hovold
Make sure to drop the OF node reference taken when creating the bridge device when the device is later released. Fixes: a1e3667a9835 ("drm/bridge: ti-sn65dsi86: Promote the AUX channel to its own sub-dev") Cc: Douglas Anderson Signed-off-by: Johan Hovold --- drivers/gpu/drm

[PATCH 0/2] drm/bridge: fix OF node leaks

2025-07-08 Thread Johan Hovold
Make sure to drop the OF node references taken when creating bridge device when the devices are later released. Johan Johan Hovold (2): drm/bridge: fix OF node leak drm/bridge: ti-sn65dsi86: fix OF node leak drivers/gpu/drm/bridge/aux-bridge.c | 2 ++ drivers/gpu/drm/bridge/ti-sn65dsi86

[PATCH 1/2] drm/bridge: fix OF node leak

2025-07-08 Thread Johan Hovold
Make sure to drop the OF node reference taken when creating the aux bridge device when the device is later released. Fixes: 6914968a0b52 ("drm/bridge: properly refcount DT nodes in aux bridge drivers") Cc: Dmitry Baryshkov Signed-off-by: Johan Hovold --- drivers/gpu/drm/bridge/au

Re: [PATCH v5 0/3] Add support for OLED panel used on Snapdragon Lenovo T14s Gen6

2025-05-20 Thread Johan Hovold
Hi Chris, On Wed, Apr 02, 2025 at 03:36:31PM +0100, Christopher Obbard wrote: > The Snapdragon Lenovo T14s Gen6 can be bought with a number of different > panels. This patch series adds support for the OLED model which has a > Samsung ATNA40YK20 panel. > > With this patch series the backlight of

Re: [PATCH v6] drm/dp: clamp PWM bit count to advertised MIN and MAX capabilities

2025-05-20 Thread Johan Hovold
Hi Chris, On Fri, Apr 04, 2025 at 02:24:32PM +0100, Christopher Obbard wrote: > On Fri, 4 Apr 2025 at 09:54, Johan Hovold wrote: > > On Fri, Apr 04, 2025 at 08:54:29AM +0100, Christopher Obbard wrote: > > > On Mon, 31 Mar 2025 at 09:33, Johan Hovold wrote: > > &

Re: drm/msm/dp: Introduce link training per-segment for LTTPRs

2025-04-29 Thread Johan Hovold
On Tue, Apr 29, 2025 at 12:57:16PM +0200, Aleksandrs Vinarskis wrote: > On Tue, 29 Apr 2025 at 10:03, Johan Hovold wrote: > > On Tue, Apr 29, 2025 at 10:50:55AM +0300, Abel Vesa wrote: > > > On 25-04-29 09:23:46, Johan Hovold wrote: > > > > But this is the crux

Re: drm/msm/dp: Introduce link training per-segment for LTTPRs

2025-04-29 Thread Johan Hovold
On Tue, Apr 29, 2025 at 10:50:55AM +0300, Abel Vesa wrote: > On 25-04-29 09:23:46, Johan Hovold wrote: > > On Mon, Apr 28, 2025 at 05:17:21PM +0300, Abel Vesa wrote: > > > On 25-04-28 14:47:04, Johan Hovold wrote: > > > > On Mon, Apr 28, 2025 at 11:06:39AM +02

Re: drm/msm/dp: Introduce link training per-segment for LTTPRs

2025-04-29 Thread Johan Hovold
On Mon, Apr 28, 2025 at 05:17:21PM +0300, Abel Vesa wrote: > On 25-04-28 14:47:04, Johan Hovold wrote: > > On Mon, Apr 28, 2025 at 11:06:39AM +0200, Aleksandrs Vinarskis wrote: > > > On Mon, 28 Apr 2025 at 09:45, Johan Hovold wrote: > > > > On Thu, Apr 17, 2025 a

Re: drm/msm/dp: Introduce link training per-segment for LTTPRs

2025-04-28 Thread Johan Hovold
On Mon, Apr 28, 2025 at 11:06:39AM +0200, Aleksandrs Vinarskis wrote: > On Mon, 28 Apr 2025 at 09:45, Johan Hovold wrote: > > On Thu, Apr 17, 2025 at 04:10:31AM +0200, Aleksandrs Vinarskis wrote: > > > Recently added Initial LTTPR support in msm/dp has configured LTTPR(s) > &

Re: drm/msm/dp: Introduce link training per-segment for LTTPRs

2025-04-28 Thread Johan Hovold
gt; - Fixed alignment issues, initialization of variables, debug prints > - Moved lttpr_count to avoid ugly pointer > - Link to v2: > https://lore.kernel.org/all/20250311234109.136510-1-alex.vinars...@gmail.com/ I tested v2 due to the dependencies in msm-next and DP altmode still works

Re: [PATCH v5 1/3] arm64: dts: qcom: x1e80100: add epd hpd pinctrl

2025-04-11 Thread Johan Hovold
On Wed, Apr 02, 2025 at 03:36:32PM +0100, Christopher Obbard wrote: > Add edp_hpd_active pinctrl to the X1E80100 device tree. Please squash this one with the patch adding the user. > Signed-off-by: Christopher Obbard > --- > arch/arm64/boot/dts/qcom/x1e80100.dtsi | 5 + > 1 file changed, 5

Re: [PATCH v6] drm/dp: clamp PWM bit count to advertised MIN and MAX capabilities

2025-04-04 Thread Johan Hovold
On Fri, Apr 04, 2025 at 08:54:29AM +0100, Christopher Obbard wrote: > On Mon, 31 Mar 2025 at 09:33, Johan Hovold wrote: > > > @@ -4035,6 +4036,32 @@ drm_edp_backlight_probe_max(struct drm_dp_aux > > > *aux, struct drm_edp_backlight_inf > > >

Re: [PATCH v6] drm/dp: clamp PWM bit count to advertised MIN and MAX capabilities

2025-03-31 Thread Johan Hovold
broken hardware here. Not sure if it's something you need to worry about at this point. > + > bl->max = (1 << pn) - 1; > if (!driver_pwm_freq_hz) > return 0; Otherwise this looks correct to me and does not break backlight control on the X1E reference design: Reviewed-by: Johan Hovold Tested-by: Johan Hovold Johan

Re: [PATCH v3 1/2] arm64: dts: qcom: x1e78100-t14s: add hpd gpio to eDP panel

2025-03-31 Thread Johan Hovold
On Thu, Mar 27, 2025 at 04:56:53PM +, Christopher Obbard wrote: > The eDP panel has an HPD GPIO. Describe it in the device tree > for the generic T14s model, as the HPD GPIO property is used in > both the OLED and LCD models which inherit this device tree. AFAICT, this patch is not correct as

Re: [PATCH v1 2/2] drm/msm/dp: Introduce link training per-segment for LTTPRs

2025-03-11 Thread Johan Hovold
Hi Aleksandrs, Just a drive-by comment. On Mon, Mar 10, 2025 at 10:05:52PM +0100, Aleksandrs Vinarskis wrote: > @@ -1084,10 +1091,13 @@ static int msm_dp_ctrl_update_vx_px(struct > msm_dp_ctrl_private *ctrl) > } > > static bool msm_dp_ctrl_train_pattern_set(struct msm_dp_ctrl_private *ctrl,

[PATCH] component: do not try to unbind unbound components

2025-02-28 Thread Johan Hovold
Error handling is apparently hard and driver authors often get it wrong. Continue to warn but do not try to unbind components that have never been bound in order to avoid crashing systems where such a buggy teardown path is hit. Signed-off-by: Johan Hovold --- I've been sitting on this on

Re: [PATCH v3 4/4] drm/msm/dp: Add support for LTTPR handling

2025-01-07 Thread Johan Hovold
ode to transparent mode > first and then to non-transparent, just like the mentioned section of > the specification mandates. > > Tested-by: Johan Hovold > Signed-off-by: Abel Vesa Reviewed-by: Johan Hovold

Re: [PATCH v3 1/4] drm/dp: Add helper to set LTTPRs in transparent mode

2025-01-07 Thread Johan Hovold
handles the explicit > disabling of non-transparent mode and its disable->enable sequence > mentioned in the DP Standard v2.0 section 3.6.6.1. Do this in order > to move this handling out of the vendor specific driver implementation > into the generic framework. >

Re: [PATCH 7/8] drm/msm/dpu: link DSPP_2/_3 blocks on X1E80100

2024-12-19 Thread Johan Hovold
On Tue, Dec 17, 2024 at 12:38:17PM +0200, Dmitry Baryshkov wrote: > On Tue, Dec 17, 2024 at 09:41:44AM +0100, Johan Hovold wrote: > > On Mon, Dec 16, 2024 at 10:27:28AM +0200, Dmitry Baryshkov wrote: > > > Link DSPP_2 to the LM_2 and DSPP_3 to the LM_3 mixer blocks. > >

Re: [PATCH 7/8] drm/msm/dpu: link DSPP_2/_3 blocks on X1E80100

2024-12-17 Thread Johan Hovold
On Mon, Dec 16, 2024 at 10:27:28AM +0200, Dmitry Baryshkov wrote: > Link DSPP_2 to the LM_2 and DSPP_3 to the LM_3 mixer blocks. Please say something about why you're doing this and what the expected outcome of doing so is. There is currently no way for a third party (e.g. stable or distro mainta

Re: [PATCH v2 1/4] drm/dp: Add helper to set LTTPRs in transparent mode

2024-12-12 Thread Johan Hovold
On Thu, Dec 12, 2024 at 09:31:09AM +0100, neil.armstr...@linaro.org wrote: > On 11/12/2024 15:42, Johan Hovold wrote: > >> +EXPORT_SYMBOL(drm_dp_lttpr_set_transparent_mode); > > > > This appears to be what the driver currently uses, but why not > > EXPORT_SYMBOL_GPL

Re: [PATCH v2 4/4] drm/msm/dp: Add support for LTTPR handling

2024-12-11 Thread Johan Hovold
ignore errors on purpose so I guess that's fine. > + > rc = msm_dp_panel_read_sink_caps(dp->panel, connector); > if (rc) > goto end; Either way, this is needed for external display on my x1e80100 machines, while not breaking the X13s: Tested-by: Johan Hovold Johan

Re: [PATCH v2 1/4] drm/dp: Add helper to set LTTPRs in transparent mode

2024-12-11 Thread Johan Hovold
r_set_transparent_mode(aux, true); > + > + return -EINVAL; And return 0 explicitly here. > +} > +EXPORT_SYMBOL(drm_dp_lttpr_init); In any case this works well and is needed for external display on the Lenovo ThinkPad T14s, while not breaking the X13s which does not need it: Tested-by: Johan Hovold Johan

Re: [PATCH v3] drm/msm/dpu1: don't choke on disabling the writeback connector

2024-12-09 Thread Johan Hovold
On Mon, Dec 09, 2024 at 12:00:07PM +0200, Dmitry Baryshkov wrote: On Mon, 9 Dec 2024 at 11:25, Johan Hovold wrote: > > I noticed that the implementation had this status check also before > > 71174f362d67 ("drm/msm/dpu: move writeback's atomic_check to > > dpu_writeba

Re: [PATCH v3] drm/msm/dpu1: don't choke on disabling the writeback connector

2024-12-09 Thread Johan Hovold
y: György Kurucz Link: https://lore.kernel.org/all/b70a4d1d-f98f-4169-942c-cb9006a42...@kuruczgy.com/ Reported-by: Johan Hovold Link: https://lore.kernel.org/all/zzyyi8kkwk36f...@hovoldconsulting.com/ > Tested-by: Leonard Lausen # on sc7180 lazor > Tested-by: György Kurucz > Reviewed-

Re: [PATCH v2 1/2] drm/msm/dpu1: don't choke on disabling the writeback connector

2024-12-06 Thread Johan Hovold
Hi Dmitry, On Wed, Nov 20, 2024 at 09:39:27AM +0100, Johan Hovold wrote: > On Fri, Aug 02, 2024 at 10:47:33PM +0300, Dmitry Baryshkov wrote: > > During suspend/resume process all connectors are explicitly disabled and > > then reenabled. However resume fails because of the connect

Re: [v2,1/2] drm/msm/dpu1: don't choke on disabling the writeback connector

2024-11-20 Thread Johan Hovold
On Tue, Nov 19, 2024 at 09:33:26AM -0500, Leonard Lausen wrote: > > I'm seeing the same issue as György on the x1e80100 CRD and Lenovo > > ThinkPad T14s. Without this patch, the internal display fails to resume > > properly (switching VT brings it back) and the following errors are > > logged: > >

Re: [PATCH v2 1/2] drm/msm/dpu1: don't choke on disabling the writeback connector

2024-11-20 Thread Johan Hovold
> Reported-by: Leonard Lausen > Closes: https://gitlab.freedesktop.org/drm/msm/-/issues/57 Perhaps you can include mine an György's reports here too. > Signed-off-by: Dmitry Baryshkov With the above addressed: Reviewed-by: Johan Hovold Tested-by: Johan Hovold Johan

Re: [v2,1/2] drm/msm/dpu1: don't choke on disabling the writeback connector

2024-11-20 Thread Johan Hovold
On Tue, Nov 19, 2024 at 10:02:33PM -0500, Leonard Lausen wrote: > The finding is that while 6.10.14 with this patch applied still suffers from > that regression, 6.11.9 and 6.12 do not face the CRTC state regression. > Therefore, whatever issue the patch uncovered in older kernels and which > just

Re: [v2,1/2] drm/msm/dpu1: don't choke on disabling the writeback connector

2024-11-19 Thread Johan Hovold
On Fri, Aug 30, 2024 at 07:36:32PM +0200, György Kurucz wrote: > For context, I have a Lenovo Yoga Slim 7x laptop, and was having issues > with the display staying black after sleep. As a workaround, I could > switch to a different VT and back. > > > [ 1185.831970] [dpu error]connector not conn

Re: [PATCH] drm/msm/dpu: fix x1e80100 intf_6 underrun/vsync interrupt

2024-11-15 Thread Johan Hovold
d make DP2 work properly. > > Cc: sta...@vger.kernel.org > Fixes: e3b1f369db5a ("drm/msm/dpu: Add X1E80100 support") > Signed-off-by: Stephan Gerhold This fixes the errors I was seeing with the third usb-c port on the x1e80100 CRD: Tested-by: Johan Hovold Johan

Re: [PATCH v2] drm/bridge: Fix assignment of the of_node of the parent to aux bridge

2024-11-01 Thread Johan Hovold
On Fri, Nov 01, 2024 at 11:49:07AM +0800, Sui Jingfeng wrote: > On 2024/11/1 00:23, Johan Hovold wrote: > > On Thu, Oct 31, 2024 at 11:06:38PM +0800, Sui Jingfeng wrote: > > > >> But I think Johan do need more times to understand what exactly > >> the rea

Re: [PATCH v2] drm/bridge: Fix assignment of the of_node of the parent to aux bridge

2024-10-31 Thread Johan Hovold
On Thu, Oct 31, 2024 at 11:06:38PM +0800, Sui Jingfeng wrote: > But I think Johan do need more times to understand what exactly > the real problem is. We do need times to investigate new method. No, I know perfectly well what the (immediate) problem is here (I was the one adding support for the o

Re: [PATCH v2] drm/bridge: Fix assignment of the of_node of the parent to aux bridge

2024-10-31 Thread Johan Hovold
On Thu, Oct 31, 2024 at 05:48:24PM +0200, Dmitry Baryshkov wrote: > On Mon, 21 Oct 2024 at 10:23, Johan Hovold wrote: > > > > On Fri, Oct 18, 2024 at 03:49:34PM +0300, Abel Vesa wrote: > > > The assignment of the of_node to the aux bridge needs to mark the > &g

Re: [PATCH v2] drm/bridge: Fix assignment of the of_node of the parent to aux bridge

2024-10-31 Thread Johan Hovold
On Thu, Oct 31, 2024 at 06:13:45PM +0200, Abel Vesa wrote: > On 24-10-31 15:05:52, Johan Hovold wrote: > > On Mon, Oct 21, 2024 at 09:23:24AM +0200, Johan Hovold wrote: > > > On Fri, Oct 18, 2024 at 03:49:34PM +0300, Abel Vesa wrote: > > > > Cc: sta...@vger.kernel.or

Re: [PATCH v2] drm/bridge: Fix assignment of the of_node of the parent to aux bridge

2024-10-31 Thread Johan Hovold
On Mon, Oct 21, 2024 at 09:23:24AM +0200, Johan Hovold wrote: > On Fri, Oct 18, 2024 at 03:49:34PM +0300, Abel Vesa wrote: > > The assignment of the of_node to the aux bridge needs to mark the > > of_node as reused as well, otherwise resource providers like pinctrl will >

Re: [PATCH v2] drm/bridge: Fix assignment of the of_node of the parent to aux bridge

2024-10-31 Thread Johan Hovold
On Thu, Oct 31, 2024 at 01:31:47PM +0100, Neil Armstrong wrote: > On 30/10/2024 15:49, Sui Jingfeng wrote: > > On 2024/10/21 21:08, Neil Armstrong wrote: > >> On Fri, 18 Oct 2024 15:49:34 +0300, Abel Vesa wrote: > >>> The assignment of the of_node to the aux bridge needs to mark the > >>> of_node a

Re: [PATCH v2] drm/bridge: Fix assignment of the of_node of the parent to aux bridge

2024-10-21 Thread Johan Hovold
On Fri, Oct 18, 2024 at 03:49:34PM +0300, Abel Vesa wrote: > The assignment of the of_node to the aux bridge needs to mark the > of_node as reused as well, otherwise resource providers like pinctrl will > report a gpio as already requested by a different device when both pinconf > and gpios propert

Re: [PATCH] drm/bridge: Mark the of_node of the aux bridge device as reused

2024-10-17 Thread Johan Hovold
On Thu, Oct 17, 2024 at 06:35:26PM +0300, Abel Vesa wrote: > There are some cases where sharing the of_node renders different resources > providers confused about the same resource being shared by two different > devices. Can you be more specific about what type of issue you are trying to avoid he

Re: [PATCH v2 2/4] Revert "drm/panel-edp: Add SDC ATNA45AF01"

2024-07-15 Thread Johan Hovold
On Mon, Jul 15, 2024 at 02:54:59PM +0200, Stephan Gerhold wrote: > On Mon, Jul 15, 2024 at 02:42:12PM +0200, Neil Armstrong wrote: > > How will we handle current/old crd DT with new kernels ? > > I think this is answered in the commit message: > > > > We have existing users of this panel through

Re: [PATCH v2 4/4] arm64: defconfig: Add CONFIG_DRM_PANEL_SAMSUNG_ATNA33XC20

2024-07-15 Thread Johan Hovold
On Mon, Jul 15, 2024 at 02:15:40PM +0200, Stephan Gerhold wrote: > This is needed for the display panel to work on the Qualcomm > sc7180-trogdor-homestar and x1e80100-crd. > > Signed-off-by: Stephan Gerhold Reviewed-by: Johan Hovold

Re: [PATCH v2 3/4] arm64: dts: qcom: x1e80100-crd: Fix backlight

2024-07-15 Thread Johan Hovold
he driver enabled. Verified that I can change the brightness setting and that the backlight comes on again after being turned off (e.g. at suspend): Reviewed-by: Johan Hovold Tested-by: Johan Hovold

Re: [PATCH v2 2/4] Revert "drm/panel-edp: Add SDC ATNA45AF01"

2024-07-15 Thread Johan Hovold
eboot. It behaves the > same way with the default "conservative" timings, so we might as well drop > the configuration from the panel-edp driver. That way, users with old DTBs > will get a warning and can move to the new driver. > > Reviewed-by: Douglas Anderson > Sign

Re: [PATCH v1 0/4] lm3533: Remove the outdated drivers

2024-06-05 Thread Johan Hovold
On Fri, May 31, 2024 at 08:17:34PM +0300, Andy Shevchenko wrote: > +Cc: Johan (via kernel.org) > > On Fri, May 31, 2024 at 08:14:43PM +0300, Andy Shevchenko wrote: > > On Fri, May 31, 2024 at 07:56:12PM +0300, Andy Shevchenko wrote: > > > Driver is quite outdated from the Linux kernel internal API

Re: [PATCH] drm/bridge: aux-hpd-bridge: correct devm_drm_dp_hpd_bridge_add() stub

2024-05-11 Thread Johan Hovold
bed > function. > > Fixes: e5ca263508f7 ("drm/bridge: aux-hpd: separate allocation and > registration") > Reported-by: kernel test robot > Closes: > https://lore.kernel.org/oe-kbuild-all/202405110428.tmcfb1ut-...@intel.com/ > Cc: Johan Hovold > Signed-off-by: D

Re: [PATCH v3 1/2] drm/msm/dp: Add support for determining the eDP/DP mode from DT

2024-03-22 Thread Johan Hovold
On Fri, Mar 22, 2024 at 04:15:23PM +0200, Abel Vesa wrote: > On 24-03-22 15:38:03, Dmitry Baryshkov wrote: > > On Fri, 22 Mar 2024 at 15:36, Abel Vesa wrote: > > > On 24-03-22 15:30:54, Dmitry Baryshkov wrote: > > > > On Fri, 22 Mar 2024 at 15:22, Abel Vesa wrote: > > > > > +static int dp_displa

Re: [PATCH] drm/msm/dp: move link_ready out of HPD event thread

2024-03-21 Thread Johan Hovold
On Mon, Mar 18, 2024 at 11:01:25AM -0700, Abhinav Kumar wrote: > On 3/15/2024 8:57 AM, Johan Hovold wrote: > > On Thu, Mar 14, 2024 at 09:30:57AM -0700, Abhinav Kumar wrote: > >> The race condition is between the time we get disconnect event and set > >> link_ready to

Re: [PATCH] drm/msm/dp: move link_ready out of HPD event thread

2024-03-15 Thread Johan Hovold
On Thu, Mar 14, 2024 at 09:30:57AM -0700, Abhinav Kumar wrote: > On 3/14/2024 8:38 AM, Johan Hovold wrote: > > On Wed, Mar 13, 2024 at 10:24:08AM -0700, Abhinav Kumar wrote: > > Perhaps I'm missing something in the race that you are trying to > > describe (and which I&#

Re: [PATCH] drm/msm/dp: move link_ready out of HPD event thread

2024-03-14 Thread Johan Hovold
On Wed, Mar 13, 2024 at 10:24:08AM -0700, Abhinav Kumar wrote: > On 3/13/2024 1:18 AM, Johan Hovold wrote: > > Right, but your proposed fix would not actually fix anything and judging > > from the sparse commit message and diff itself it is clearly only meant > > to mitigat

[PATCH 0/2] drm/msm/dp: fix runtime PM leaks on hotplug

2024-03-13 Thread Johan Hovold
l.org/lkml/ze8ke_m2xhypy...@hovoldconsulting.com/ Johan Hovold (2): drm/msm/dp: fix runtime PM leak on disconnect drm/msm/dp: fix runtime PM leak on connect failure drivers/gpu/drm/msm/dp/dp_display.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.43.2

[PATCH 2/2] drm/msm/dp: fix runtime PM leak on connect failure

2024-03-13 Thread Johan Hovold
kernel.org # 6.8 Cc: Kuogee Hsieh Signed-off-by: Johan Hovold --- drivers/gpu/drm/msm/dp/dp_display.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers/gpu/drm/msm/dp/dp_display.c index 8e8cf531da45..78464c395c3d 100644 --- a/drivers/gpu/

[PATCH 1/2] drm/msm/dp: fix runtime PM leak on disconnect

2024-03-13 Thread Johan Hovold
receiving a hotplug notification. Fixes: 5814b8bf086a ("drm/msm/dp: incorporate pm_runtime framework into DP driver") Cc: sta...@vger.kernel.org # 6.8 Cc: Kuogee Hsieh Signed-off-by: Johan Hovold --- drivers/gpu/drm/msm/dp/dp_display.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH] drm/msm/dp: move link_ready out of HPD event thread

2024-03-13 Thread Johan Hovold
On Tue, Mar 12, 2024 at 10:39:46AM -0700, Abhinav Kumar wrote: > On 3/12/2024 9:59 AM, Johan Hovold wrote: > >> Heh. This is getting ridiculous. I just tried running with this patch > >> and it again breaks hotplug detect in a VT console and in X (where I > >> could

Re: [PATCH] drm/msm/dp: move link_ready out of HPD event thread

2024-03-12 Thread Johan Hovold
On Tue, Mar 12, 2024 at 05:41:23PM +0100, Johan Hovold wrote: > On Tue, Mar 12, 2024 at 11:09:11AM +0100, Johan Hovold wrote: > > On Fri, Mar 08, 2024 at 01:45:32PM -0800, Abhinav Kumar wrote: > > > > @@ -466,6 +466,8 @@ static int dp_display_notify_disconnect(stru

Re: [PATCH] drm/msm/dp: move link_ready out of HPD event thread

2024-03-12 Thread Johan Hovold
On Tue, Mar 12, 2024 at 11:09:11AM +0100, Johan Hovold wrote: > On Fri, Mar 08, 2024 at 01:45:32PM -0800, Abhinav Kumar wrote: > > @@ -466,6 +466,8 @@ static int dp_display_notify_disconnect(struct device > > *dev) > > { > > struct dp_display_private *dp = dev

Re: [PATCH] drm/msm/dp: move link_ready out of HPD event thread

2024-03-12 Thread Johan Hovold
On Fri, Mar 08, 2024 at 01:45:32PM -0800, Abhinav Kumar wrote: > There are cases where the userspace might still send another > frame after the HPD disconnect causing a modeset cycle after > a disconnect. This messes the internal state machine of MSM DP driver > and can lead to a crash as there can

Re: drm/msm: DisplayPort hard-reset on hotplug regression in 6.8-rc1

2024-03-12 Thread Johan Hovold
On Mon, Mar 11, 2024 at 09:51:29AM -0700, Abhinav Kumar wrote: > On 3/11/2024 6:43 AM, Johan Hovold wrote: > > On Sat, Mar 09, 2024 at 05:30:17PM +0100, Johan Hovold wrote: > >> On Fri, Mar 08, 2024 at 09:50:17AM -0800, Abhinav Kumar wrote: > >>> I have posted my ana

Re: drm/msm: DisplayPort hard-reset on hotplug regression in 6.8-rc1

2024-03-11 Thread Johan Hovold
On Mon, Mar 11, 2024 at 02:43:24PM +0100, Johan Hovold wrote: > So, while it may still be theoretically possible to hit the resets after > the revert, the HPD notify revert effectively "fixed" the regression in > 6.8-rc1 by removing the preconditions that now made us hit

Re: drm/msm: DisplayPort hard-reset on hotplug regression in 6.8-rc1

2024-03-11 Thread Johan Hovold
On Sat, Mar 09, 2024 at 05:30:17PM +0100, Johan Hovold wrote: > On Fri, Mar 08, 2024 at 09:50:17AM -0800, Abhinav Kumar wrote: > > On 3/8/2024 4:43 AM, Johan Hovold wrote: > > > For this last remaining reset with the stacktrace you have mentioned > > below, I do not think

Re: drm/msm: DisplayPort hard-reset on hotplug regression in 6.8-rc1

2024-03-09 Thread Johan Hovold
On Fri, Mar 08, 2024 at 09:50:17AM -0800, Abhinav Kumar wrote: > On 3/8/2024 4:43 AM, Johan Hovold wrote: > For this last remaining reset with the stacktrace you have mentioned > below, I do not think this was introduced due to PM runtime series. We > have had this report earlier w

Re: drm/msm: DisplayPort hard-reset on hotplug regression in 6.8-rc1

2024-03-08 Thread Johan Hovold
Hi Abhinav, Rob, Dmitry and Kuogee, On Tue, Feb 27, 2024 at 02:33:48PM +0100, Johan Hovold wrote: > Since 6.8-rc1 I have seen (and received reports) of hard resets of the > Lenovo ThinkPad X13s after connecting and disconnecting an external > display. > > I have triggered t

[PATCH stable-6.7] soc: qcom: pmic_glink_altmode: fix drm bridge use-after-free

2024-03-08 Thread Johan Hovold
t;)). [DB: slightly fixed commit message by adding the word 'commit'] Fixes: 080b4e24852b ("soc: qcom: pmic_glink: Introduce altmode support") Fixes: 2bcca96abfbf ("soc: qcom: pmic-glink: switch to DRM_AUX_HPD_BRIDGE") Cc: # 6.3 Cc: Bjorn Andersson Cc: Dmitry Ba

Re: [PATCH] Revert "drm/msm/dp: use drm_bridge_hpd_notify() to report HPD status changes"

2024-02-28 Thread Johan Hovold
On Wed, Feb 28, 2024 at 10:10:10AM -0800, Abhinav Kumar wrote: > On 2/28/2024 5:28 AM, Johan Hovold wrote: > > This is a fix for a user-visible regression that was reported formally > > two weeks ago and informally (e.g. to you) soon after rc1 came out, and > > which now a

Re: [PATCH] Revert "drm/msm/dp: use drm_bridge_hpd_notify() to report HPD status changes"

2024-02-28 Thread Johan Hovold
On Wed, Feb 28, 2024 at 01:08:04PM +0200, Dmitry Baryshkov wrote: > On Wed, 28 Feb 2024 at 11:50, Johan Hovold wrote: > > > > On Tue, Feb 27, 2024 at 02:11:56PM -0800, Abhinav Kumar wrote: > > > On 2/27/2024 2:08 PM, Dmitry Baryshkov wrote: > > > > This reve

Re: [PATCH] Revert "drm/msm/dp: use drm_bridge_hpd_notify() to report HPD status changes"

2024-02-28 Thread Johan Hovold
On Tue, Feb 27, 2024 at 02:11:56PM -0800, Abhinav Kumar wrote: > On 2/27/2024 2:08 PM, Dmitry Baryshkov wrote: > > This reverts commit e467e0bde881 ("drm/msm/dp: use > > drm_bridge_hpd_notify() to report HPD status changes"). > > > > The commit changed the way how the MSM DP driver communicates >

Re: [PATCH] Revert "drm/msm/dp: use drm_bridge_hpd_notify() to report HPD status changes"

2024-02-27 Thread Johan Hovold
ending commit. > > Fixes: e467e0bde881 ("drm/msm/dp: use drm_bridge_hpd_notify() to report HPD > status changes") > Link: https://gitlab.freedesktop.org/drm/msm/-/issues/50 > Reported-by: Johan Hovold > Link: https://lore.kernel.org/r/zd3ypgmrprxv-...@hovoldconsulting.com/ > Signed-off-by: Dmitry Baryshkov Tested-by: Johan Hovold

drm/msm: DisplayPort hard-reset on hotplug regression in 6.8-rc1

2024-02-27 Thread Johan Hovold
Hi, Since 6.8-rc1 I have seen (and received reports) of hard resets of the Lenovo ThinkPad X13s after connecting and disconnecting an external display. I have triggered this on a simple disconnect while in a VT console, but also when stopping Xorg after having repeatedly connected and disconnecte

drm/msm: VT console DisplayPort regression in 6.8-rc1

2024-02-27 Thread Johan Hovold
Hi, Since 6.8-rc1 the VT console is no longer mirrored on an external display on coldplug or hotplug on the Lenovo ThinkPad X13s. The hotplug notification appears to be generated immediately but it is no longer forwarded or processed correctly: [ 22.578434] msm_dpu ae01000.display-controller:

Re: [PATCH 0/6] soc: qcom: pmic_glink_altmode: fix drm bridge use-after-free

2024-02-23 Thread Johan Hovold
On Fri, Feb 23, 2024 at 03:38:13PM +0100, Neil Armstrong wrote: > On 23/02/2024 15:21, Johan Hovold wrote: > > But it is *not* standalone as I tried to explain above. > > > > So you have to drop it again as the later patches depend on it and > > cannot be merge

Re: [PATCH 0/6] soc: qcom: pmic_glink_altmode: fix drm bridge use-after-free

2024-02-23 Thread Johan Hovold
On Fri, Feb 23, 2024 at 04:18:08PM +0200, Dmitry Baryshkov wrote: > On Fri, 23 Feb 2024 at 15:52, Neil Armstrong > wrote: > > On 23/02/2024 13:51, Johan Hovold wrote: > > > On Fri, Feb 23, 2024 at 12:03:10PM +0100, Neil Armstrong wrote: > > >> On 23/02

Re: [PATCH 0/6] soc: qcom: pmic_glink_altmode: fix drm bridge use-after-free

2024-02-23 Thread Johan Hovold
On Fri, Feb 23, 2024 at 02:52:28PM +0100, Neil Armstrong wrote: > On 23/02/2024 13:51, Johan Hovold wrote: > > On Fri, Feb 23, 2024 at 12:03:10PM +0100, Neil Armstrong wrote: > >> On 23/02/2024 12:02, Neil Armstrong wrote: > >>> Thanks, Applied to https://anong

Re: [PATCH 0/6] soc: qcom: pmic_glink_altmode: fix drm bridge use-after-free

2024-02-23 Thread Johan Hovold
On Fri, Feb 23, 2024 at 12:03:10PM +0100, Neil Armstrong wrote: > On 23/02/2024 12:02, Neil Armstrong wrote: > > Hi, > > > > On Sat, 17 Feb 2024 16:02:22 +0100, Johan Hovold wrote: > >> Starting with 6.8-rc1 the internal display sometimes fails to come up on > >

Re: [PATCH 2/6] drm/bridge: aux-hpd: separate allocation and registration

2024-02-23 Thread Johan Hovold
On Thu, Feb 22, 2024 at 10:57:07PM +0200, Dmitry Baryshkov wrote: > On Sat, 17 Feb 2024 at 17:03, Johan Hovold wrote: > > > > Combining allocation and registration is an anti-pattern that should be > > avoided. Add two new functions for allocating and registering an dp-

Re: [PATCH 2/6] drm/bridge: aux-hpd: separate allocation and registration

2024-02-22 Thread Johan Hovold
On Wed, Feb 21, 2024 at 08:06:41PM -0600, Bjorn Andersson wrote: > On Sat, Feb 17, 2024 at 04:02:24PM +0100, Johan Hovold wrote: > > diff --git a/drivers/gpu/drm/bridge/aux-hpd-bridge.c > > b/drivers/gpu/drm/bridge/aux-hpd-bridge.c > [..] > > +/** > > + * devm_drm_

Re: drm/msm: Second DisplayPort regression in 6.8-rc1

2024-02-21 Thread Johan Hovold
On Tue, Feb 20, 2024 at 01:19:54PM -0800, Abhinav Kumar wrote: > On 2/19/2024 2:41 AM, Johan Hovold wrote: > > It seems my initial suspicion that at least some of these regressions > > were related to the runtime PM work was correct. The hard resets happens > > when the DP

Re: [PATCH 3/6] soc: qcom: pmic_glink_altmode: fix drm bridge use-after-free

2024-02-20 Thread Johan Hovold
On Tue, Feb 20, 2024 at 11:55:57AM +0100, Markus Elfring wrote: > … > > Specifically, the dp-hpd bridge is currently registered before all > > resources have been acquired which means that it can also be > > deregistered on probe deferrals. > > > > In the meantime there is a race window where the n

Re: [PATCH] drm/msm: Wire up tlb ops

2024-02-20 Thread Johan Hovold
On Thu, Feb 15, 2024 at 07:28:53AM -0800, Rob Clark wrote: > On Wed, Feb 14, 2024 at 11:34 PM Johan Hovold wrote: > > > > On Tue, Feb 13, 2024 at 09:23:40AM -0800, Rob Clark wrote: > > > From: Rob Clark > > > > > > The brute force iommu_flush_iotlb_all

Re: [PATCH 1/6] drm/bridge: aux-hpd: fix OF node leaks

2024-02-19 Thread Johan Hovold
On Mon, Feb 19, 2024 at 06:48:30PM +0100, Markus Elfring wrote: > > The two device node references taken during allocation need to be > > dropped when the auxiliary device is freed. > … > > +++ b/drivers/gpu/drm/bridge/aux-hpd-bridge.c > … > > @@ -74,6 +75,8 @@ struct device *drm_dp_hpd_bridge_regi

Re: drm/msm: Second DisplayPort regression in 6.8-rc1

2024-02-19 Thread Johan Hovold
On Mon, Feb 19, 2024 at 11:41:41AM +0100, Johan Hovold wrote: > It seems my initial suspicion that at least some of these regressions > were related to the runtime PM work was correct. The hard resets happens > when the DP controller is runtime suspended after being probed: > [ 17

drm/msm: Second DisplayPort regression in 6.8-rc1

2024-02-19 Thread Johan Hovold
On Sat, Feb 17, 2024 at 04:14:58PM +0100, Johan Hovold wrote: > On Wed, Feb 14, 2024 at 02:52:06PM +0100, Johan Hovold wrote: > > On Tue, Feb 13, 2024 at 10:00:13AM -0800, Abhinav Kumar wrote: > Since Dmitry had trouble reproducing this issue I took a closer look at > the DRM au

Re: drm/msm: DisplayPort regressions in 6.8-rc1

2024-02-17 Thread Johan Hovold
On Tue, Feb 13, 2024 at 12:42:17PM +0100, Johan Hovold wrote: > Since 6.8-rc1 the internal eDP display on the Lenovo ThinkPad X13s does > not always show up on boot. > > The logs indicate problems with the runtime PM and eDP rework that went > into 6.8-rc1: > >

Re: drm/msm: DisplayPort regressions in 6.8-rc1

2024-02-17 Thread Johan Hovold
On Wed, Feb 14, 2024 at 02:52:06PM +0100, Johan Hovold wrote: > On Tue, Feb 13, 2024 at 10:00:13AM -0800, Abhinav Kumar wrote: > > > I do agree that pm runtime eDP driver got merged that time but I think > > the issue is either a combination of that along with DRM aux

[PATCH 2/6] drm/bridge: aux-hpd: separate allocation and registration

2024-02-17 Thread Johan Hovold
ned-off-by: Johan Hovold --- drivers/gpu/drm/bridge/aux-hpd-bridge.c | 67 +++-- include/drm/bridge/aux-bridge.h | 15 ++ 2 files changed, 67 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/bridge/aux-hpd-bridge.c b/drivers/gpu/drm/bridge/aux-hpd-brid

[PATCH 0/6] soc: qcom: pmic_glink_altmode: fix drm bridge use-after-free

2024-02-17 Thread Johan Hovold
not depend on the rest of the series and could possibly be merged separately through the PHY tree. Whichever gets this to mainline the fastest. Johan [1] https://lore.kernel.org/lkml/zctvmlk4ztwcp...@hovoldconsulting.com/ Johan Hovold (5): drm/bridge: aux-hpd: fix OF node leaks drm/bridge

[PATCH 5/6] phy: qcom-qmp-combo: fix drm bridge registration

2024-02-17 Thread Johan Hovold
com-qmp-combo: Introduce drm_bridge") Cc: sta...@vger.kernel.org # 6.5 Cc: Bjorn Andersson Cc: Dmitry Baryshkov Signed-off-by: Johan Hovold --- drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/phy/qualcomm/phy-

[PATCH 4/6] soc: qcom: pmic_glink: Fix boot when QRTR=m

2024-02-17 Thread Johan Hovold
end commit message and mention DRM ] Fixes: 58ef4ece1e41 ("soc: qcom: pmic_glink: Introduce base PMIC GLINK driver") Cc: sta...@vger.kernel.org # 6.3 Cc: Bjorn Andersson Signed-off-by: Johan Hovold --- drivers/soc/qcom/pmic_glink.c | 21 +++-- 1 file changed, 11 inserti

[PATCH 3/6] soc: qcom: pmic_glink_altmode: fix drm bridge use-after-free

2024-02-17 Thread Johan Hovold
troduce altmode support") Fixes: 2bcca96abfbf ("soc: qcom: pmic-glink: switch to DRM_AUX_HPD_BRIDGE") Cc: sta...@vger.kernel.org # 6.3 Cc: Bjorn Andersson Cc: Dmitry Baryshkov Signed-off-by: Johan Hovold --- drivers/soc/qcom/pmic_glink_altmode.c | 16 +--- 1 file changed

[PATCH 1/6] drm/bridge: aux-hpd: fix OF node leaks

2024-02-17 Thread Johan Hovold
The two device node references taken during allocation need to be dropped when the auxiliary device is freed. Fixes: 6914968a0b52 ("drm/bridge: properly refcount DT nodes in aux bridge drivers") Cc: Dmitry Baryshkov Cc: Neil Armstrong Signed-off-by: Johan Hovold --- drivers/gpu/

[PATCH 6/6] phy: qcom-qmp-combo: fix type-c switch registration

2024-02-17 Thread Johan Hovold
Fixes: 2851117f8f42 ("phy: qcom-qmp-combo: Introduce orientation switching") Cc: sta...@vger.kernel.org # 6.5 Cc: Bjorn Andersson Signed-off-by: Johan Hovold --- drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a

Re: [PATCH] drm/msm: Wire up tlb ops

2024-02-14 Thread Johan Hovold
On Tue, Feb 13, 2024 at 09:23:40AM -0800, Rob Clark wrote: > From: Rob Clark > > The brute force iommu_flush_iotlb_all() was good enough for unmap, but > in some cases a map operation could require removing a table pte entry > to replace with a block entry. This also requires tlb invalidation. >

Re: drm/msm: DisplayPort regressions in 6.8-rc1

2024-02-14 Thread Johan Hovold
ion and review them again. There's clearly something quite broken here. > On 2/13/2024 3:42 AM, Johan Hovold wrote: > > Since 6.8-rc1 the internal eDP display on the Lenovo ThinkPad X13s does > > not always show up on boot. > > [6.007872] [drm:drm_bridge_attach [drm]

  1   2   3   >