Re: [PATCH v2 11/14] drm/bridge: ti-sn65dsi86: Power things properly for reading the EDID

2021-04-06 Thread Andrzej Hajda
M Andrzej Hajda wrote: >> >> W dniu 31.03.2021 o 16:48, Doug Anderson pisze: >>> Hi, >>> >>> On Wed, Mar 31, 2021 at 4:08 AM Andrzej Hajda wrote: >>>> W dniu 30.03.2021 o 04:53, Douglas Anderson pisze: >>>>> eDP panels won't p

Re: [PATCH v2 0/8] drm/bridge: Make panel and bridge probe order consistent

2021-08-09 Thread Andrzej Hajda
Hi Jagan, W dniu 09.08.2021 o 10:00, Jagan Teki pisze: > Hi Andrzej, > > On Wed, Aug 4, 2021 at 7:48 PM a.hajda wrote: >> Hi Maxime, >> >> I have been busy with other tasks, and I did not follow the list last >> time, so sorry for my late response. >> >> On 28.07.2021 15:32, Maxime Ripard wrote:

Re: [PATCH v3 2/8] drm/bridge: Document the probe issue with MIPI-DSI bridges

2021-08-23 Thread Andrzej Hajda
Hi Maxime, On 23.08.2021 10:47, Maxime Ripard wrote: > Interactions between bridges, panels, MIPI-DSI host and the component > framework are not trivial and can lead to probing issues when > implementing a display driver. Let's document the various cases we need > too consider, and the solution t

Re: [PATCH v3 1/8] drm/bridge: Add documentation sections

2021-08-24 Thread Andrzej Hajda
t; > Reviewed-by: Sam Ravnborg > Signed-off-by: Maxime Ripard Reviewed-by: Andrzej Hajda Regards Andrzej

Re: [PATCH v3 3/8] drm/mipi-dsi: Create devm device registration

2021-08-24 Thread Andrzej Hajda
oval or when an error occurs, that device needs to be removed > through a call to mipi_dsi_device_unregister(). > > Let's create a device-managed variant of the registration function that > will automatically unregister the device at unbind. > > Signed-off-by: Maxime Ripard

Re: [PATCH v3 4/8] drm/mipi-dsi: Create devm device attachment

2021-08-24 Thread Andrzej Hajda
W dniu 23.08.2021 o 10:47, Maxime Ripard pisze: > Signed-off-by: Maxime Ripard Missing description. With this fixed: Reviewed-by: Andrzej Hajda Regards Andrzej

Re: [PATCH v3 6/8] drm/bridge: ps8640: Register and attach our DSI device at probe

2021-08-24 Thread Andrzej Hajda
W dniu 23.08.2021 o 10:47, Maxime Ripard pisze: > In order to avoid any probe ordering issue, the best practice is to move > the secondary MIPI-DSI device registration and attachment to the > MIPI-DSI host at probe time. Let's do this. > > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/b

Re: [PATCH v2 01/14] drm/bridge: Fix the stop condition of drm_bridge_chain_pre_enable()

2021-03-31 Thread Andrzej Hajda
ncoder->bridge_chain, chain_node) { > if (iter->funcs->pre_enable) > iter->funcs->pre_enable(iter); > + > + if (iter == bridge) > + break; Looking at the bridge chaining code always makes me sick :) but beside this the

Re: [PATCH v2 02/14] drm/bridge: ti-sn65dsi86: Simplify refclk handling

2021-03-31 Thread Andrzej Hajda
e/disable/prepare/unprepare. Let's make use of this to simplify > things a tiny bit. > > Signed-off-by: Douglas Anderson > Reviewed-by: Robert Foss > Reviewed-by: Bjorn Andersson > Reviewed-by: Stephen Boyd > Reviewed-by: Laurent Pinchart Reviewed-by: Andrzej Hajda Reg

Re: [PATCH v2 03/14] drm/bridge: ti-sn65dsi86: Remove incorrectly tagged kerneldoc comment

2021-03-31 Thread Andrzej Hajda
W dniu 30.03.2021 o 04:53, Douglas Anderson pisze: > A random comment inside a function had "/**" in front of it. That > doesn't make sense. Remove. > > Signed-off-by: Douglas Anderson Reviewed-by: Andrzej Hajda Regards Andrzej > --- > > (no changes since

Re: [PATCH v2 04/14] drm/bridge: ti-sn65dsi86: Reorder remove()

2021-03-31 Thread Andrzej Hajda
} > > + kfree(pdata->edid); > + > + ti_sn_debugfs_remove(pdata); > + > drm_bridge_remove(&pdata->bridge); > > + pm_runtime_disable(pdata->dev); > + > + of_node_put(pdata->host_node); > + Looks good. Reviewed-by: An

Re: [PATCH v2 05/14] drm/bridge: ti-sn65dsi86: Move MIPI detach() / unregister() to detach()

2021-03-31 Thread Andrzej Hajda
W dniu 30.03.2021 o 04:53, Douglas Anderson pisze: > The register() / attach() for MIPI happen in the bridge's > attach(). That means that the inverse belongs in the bridge's > detach(). As I commented in previous patch, it would be better to fix mipi/bridge registration order in host and this

Re: [PATCH v2 06/14] drm/bridge: ti-sn65dsi86: Move drm_panel_unprepare() to post_disable()

2021-03-31 Thread Andrzej Hajda
f again) > when reading the EDID. > > Signed-off-by: Douglas Anderson Reviewed-by: Andrzej Hajda Regards Andrzej > --- > > (no changes since v1) > > drivers/gpu/drm/bridge/ti-sn65dsi86.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/dr

Re: [PATCH v2 07/14] drm/bridge: ti-sn65dsi86: Get rid of the useless detect() function

2021-03-31 Thread Andrzej Hajda
W dniu 30.03.2021 o 04:53, Douglas Anderson pisze: > If we just leave the detect() function as NULL then the upper layers > assume we're always connected. There's no reason for a stub. > > Signed-off-by: Douglas Anderson Reviewed-by: Andrzej Hajda Regards Andrzej > ---

Re: [PATCH v2 08/14] drm/bridge: ti-sn65dsi86: Remove extra call: drm_connector_update_edid_property()

2021-03-31 Thread Andrzej Hajda
; Signed-off-by: Douglas Anderson Reviewed-by: Andrzej Hajda Regards Andrzej > --- > > (no changes since v1) > > drivers/gpu/drm/bridge/ti-sn65dsi86.c | 11 --- > 1 file changed, 4 insertions(+), 7 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/ti-sn65d

Re: [PATCH v2 10/14] drm/bridge: ti-sn65dsi86: Stop caching the EDID ourselves

2021-03-31 Thread Andrzej Hajda
W dniu 30.03.2021 o 04:53, Douglas Anderson pisze: > Now that we have the patch ("drm/edid: Use the cached EDID in > drm_get_edid() if eDP") we no longer need to maintain our own > cache. Drop this code. > > Signed-off-by: Douglas Anderson Reviewed-by: Andrze

Re: [PATCH v2 11/14] drm/bridge: ti-sn65dsi86: Power things properly for reading the EDID

2021-03-31 Thread Andrzej Hajda
W dniu 30.03.2021 o 04:53, Douglas Anderson pisze: > eDP panels won't provide their EDID unless they're powered on. Let's > chain a power-on before we read the EDID. This roughly matches what > was done in 'parade-ps8640.c'. > > NOTE: The old code attempted to call pm_runtime_get_sync() before > r

Re: [PATCH v4 1/1] drm/bridge: lt8912b: Fix issues found during static analysis

2021-03-31 Thread Andrzej Hajda
after err_free_host_node label - of_node_put(NULL) does nothing. > } > > of_node_put(port_node); > + return 0; > > end: > return ret; This label and code can be removed, am I right? After reading the body I know what the patch does

Re: [PATCH v2 11/14] drm/bridge: ti-sn65dsi86: Power things properly for reading the EDID

2021-04-01 Thread Andrzej Hajda
W dniu 31.03.2021 o 16:48, Doug Anderson pisze: > Hi, > > On Wed, Mar 31, 2021 at 4:08 AM Andrzej Hajda wrote: >> >> W dniu 30.03.2021 o 04:53, Douglas Anderson pisze: >>> eDP panels won't provide their EDID unless they're powered on. Let's >&

Re: [PATCH v3 3/3] drm/bridge/lontium-lt9611uxc: move HPD notification out of IRQ handler

2021-01-21 Thread Andrzej Hajda
Hi Dmitry, W dniu 17.01.2021 o 01:23, Dmitry Baryshkov pisze: > drm hotplug handling code (drm_client_dev_hotplug()) can wait on mutex, > thus delaying further lt9611uxc IRQ events processing. It was observed > occasionally during bootups, when drm_client_modeset_probe() was waiting > for EDID re

Re: [PATCH v4 1/3] drm/bridge/lontium-lt9611uxc: fix waiting for EDID to become available

2021-01-22 Thread Andrzej Hajda
d-off-by: Dmitry Baryshkov > Fixes: 0cbbd5b1a012 ("drm: bridge: add support for lontium LT9611UXC bridge") > Reviewed-by: Bjorn Andersson Reviewed-by: Andrzej Hajda Regards Andrzej ___ dri-devel mailing list dri-devel@lists.freedesktop

Re: [PATCH v4 2/3] drm/bridge/lontium-lt9611uxc: fix get_edid return code

2021-01-22 Thread Andrzej Hajda
yshkov > Fixes: 0cbbd5b1a012 ("drm: bridge: add support for lontium LT9611UXC bridge") > Reviewed-by: Bjorn Andersson Reviewed-by: Andrzej Hajda Regards Andrzej ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freed

Re: [PATCH v4 3/3] drm/bridge/lontium-lt9611uxc: move HPD notification out of IRQ handler

2021-01-22 Thread Andrzej Hajda
rm: bridge: add support for lontium LT9611UXC bridge") Reviewed-by: Andrzej Hajda Let's wait till Monday for other comments, then I can queue the patchset. Regards Andrzej ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v6] drm/bridge: add it6505 driver

2021-01-22 Thread Andrzej Hajda
Hi Allen, Sorry for long delay. W dniu 08.12.2020 o 11:58, allen pisze: > This adds support for the iTE IT6505. > This device can convert DPI signal to DP output. > > From: Allen Chen > Signed-off-by: Jitao Shi > Signed-off-by: Pi-Hsun Shih > Signed-off-by: Yilun Lin > Signed-off-by: Hermes W

Re: [PATCH v4 3/3] drm/bridge/lontium-lt9611uxc: move HPD notification out of IRQ handler

2021-01-28 Thread Andrzej Hajda
W dniu 22.01.2021 o 10:34, Andrzej Hajda pisze: > W dniu 22.01.2021 o 00:33, Dmitry Baryshkov pisze: >> drm hotplug handling code (drm_client_dev_hotplug()) can wait on mutex, >> thus delaying further lt9611uxc IRQ events processing. It was observed >> occasionally

Re: [PATCH] drm/bridge: anx7625: enable DSI EOTP

2021-02-04 Thread Andrzej Hajda
W dniu 04.02.2021 o 13:34, Nicolas Boichat pisze: > On Thu, Feb 4, 2021 at 8:07 PM Robert Foss wrote: >> Hi Xin, >> >> Thanks for the patch. >> >> On Thu, 28 Jan 2021 at 12:17, Xin Ji wrote: >>> Enable DSI EOTP feature for fixing some panel screen constance >>> shift issue. >>> Removing MIPI fla

Re: [PATCH v2 10/16] drm/exynos: implement a drm bridge

2021-02-04 Thread Andrzej Hajda
eb 2021 17:33:14 +0100, Michael Tretter wrote: >>>>> On Tue, 15 Sep 2020 21:40:40 +0200, Andrzej Hajda wrote: >>>>>> W dniu 14.09.2020 o 23:19, Andrzej Hajda pisze: >>>>>>> On 14.09.2020 22:01, Michael Tretter wrote: >>>>>>>&

Re: [PATCH] drm: bridge: adv7511: Add set_jack handler

2021-02-04 Thread Andrzej Hajda
W dniu 19.01.2021 o 05:41, Jun Nie pisze: > With commit 55c5cc63ab, the hdmi_codec_set_jack() will report unsupport > failure if set_jack handler is missing. Add set_jack handler to resolve > this failure. > > Signed-off-by: Jun Nie > --- > .../gpu/drm/bridge/adv7511/adv7511_audio.c| 27 +++

Re: [PATCH v2 10/16] drm/exynos: implement a drm bridge

2021-02-18 Thread Andrzej Hajda
2021 at 06:19:22PM +0100, Daniel Vetter wrote: >>>>> On Thu, Feb 4, 2021 at 5:28 PM Andrzej Hajda wrote: >>>>>> W dniu 04.02.2021 o 17:05, Daniel Vetter pisze: >>>>>>> On Thu, Feb 04, 2021 at 11:56:32AM +0100, Michael Tretter wrote: >>>&

Re: [PATCH] drm/dsi: Add _NO_ to MIPI_DSI_* flags disabling features

2021-02-21 Thread Andrzej Hajda
by: Nicolas Boichat >> This looks good to me, it increases readability. >> >> Reviewed-by: Laurent Pinchart >> >> Please however see the end of the mail for a comment. Reviewed-by: Andrzej Hajda And comment at the end. >> >>> --- >>> I consi

Re: [PATCH v5 4/7] drm/i915/gt: create per-tile sysfs interface

2022-03-14 Thread Andrzej Hajda
On 13.03.2022 20:45, Andi Shyti wrote: Hi Andrzej, I'm sorry, but I'm not fully understanding, +struct intel_gt *intel_gt_sysfs_get_drvdata(struct device *dev, + const char *name) +{ + struct kobject *kobj = &dev->kobj; + + /* +*

Re: [Intel-gfx] [PATCH v6 3/7] drm/i915: Prepare for multiple GTs

2022-03-18 Thread Andrzej Hajda
wed-by: Matt Roper --- Reviewed-by: Andrzej Hajda Regards Andrzej

Re: [Intel-gfx] [PATCH v6 7/7] drm/i915/gt: Adding new sysfs frequency attributes

2022-03-18 Thread Andrzej Hajda
- throttle_reason_thermal - throttle_reason_prochot - throttle_reason_ratl - throttle_reason_vr_thermalert - throttle_reason_vr_tdc Signed-off-by: Sujaritha Sundaresan Cc: Dale B Stimson Signed-off-by: Andi Shyti --- Reviewed-by: Andrzej Hajda Regards Andrzej

Re: [Intel-gfx] [PATCH v6 6/7] drm/i915/gt: Create per-tile RPS sysfs interfaces

2022-03-18 Thread Andrzej Hajda
915. Signed-off-by: Andi Shyti Signed-off-by: Lucas De Marchi Cc: Chris Wilson Cc: Joonas Lahtinen Cc: Matt Roper Cc: Sujaritha Sundaresan Cc: Tvrtko Ursulin --- Reviewed-by: Andrzej Hajda Regards Andrzej

Re: [Intel-gfx] [PATCH v6 4/7] drm/i915/gt: create per-tile sysfs interface

2022-03-18 Thread Andrzej Hajda
drivers/gpu/drm/i915/i915_sysfs.h| 3 + scripts/extract-cert | Bin 0 -> 17952 bytes With above removed. Reviewed-by: Andrzej Hajda Regards Andrzej

Re: [PATCH 21/22] drm: Use drm_mode_init() for on-stack modes

2022-03-22 Thread Andrzej Hajda
lä --- Reviewed-by: Andrzej Hajda Regards Andrzej

Re: [PATCH 22/22] drm: Use drm_mode_copy()

2022-03-22 Thread Andrzej Hajda
emcpy(&mode, E, S) + drm_mode_copy(&mode, E) ) @@ struct drm_display_mode *mode; @@ - &*mode + mode Signed-off-by: Ville Syrjälä --- Reviewed-by: Andrzej Hajda Regards Andrzej

Re: [PATCH 3/9] lib/ref_tracker: __ref_tracker_dir_print improve printing

2022-02-18 Thread Andrzej Hajda
On 17.02.2022 16:38, Eric Dumazet wrote: On Thu, Feb 17, 2022 at 6:05 AM Andrzej Hajda wrote: To improve readibility of ref_tracker printing following changes have been performed: - added display name for ref_tracker_dir, - stack trace is printed indented, in the same printk call, - total

Re: [PATCH 5/9] lib/ref_tracker: improve allocation flags

2022-02-18 Thread Andrzej Hajda
On 17.02.2022 16:13, Eric Dumazet wrote: On Thu, Feb 17, 2022 at 6:05 AM Andrzej Hajda wrote: Library can be called in non-sleeping context, so it should not use __GFP_NOFAIL. Instead it should calmly handle allocation fails, for this __GFP_NOWARN has been added as well. Your commit

Re: [Intel-gfx] [PATCH 6/9] drm/i915: Separate wakeref tracking

2022-02-18 Thread Andrzej Hajda
On 17.02.2022 15:48, Ville Syrjälä wrote: On Thu, Feb 17, 2022 at 03:04:38PM +0100, Andrzej Hajda wrote: -static noinline depot_stack_handle_t +static intel_wakeref_t track_intel_runtime_pm_wakeref(struct intel_runtime_pm *rpm) { - depot_stack_handle_t stack, *stacks

Re: [PATCH 2/9] lib/ref_tracker: compact stacktraces before printing

2022-02-18 Thread Andrzej Hajda
On 17.02.2022 16:23, Eric Dumazet wrote: On Thu, Feb 17, 2022 at 6:05 AM Andrzej Hajda wrote: In cases references are taken alternately on multiple exec paths leak report can grow substantially, sorting and grouping leaks by stack_handle allows to compact it. Signed-off-by: Andrzej Hajda

Re: [PATCH 01/22] drm: Add drm_mode_init()

2022-02-18 Thread Andrzej Hajda
On 18.02.2022 11:03, Ville Syrjala wrote: From: Ville Syrjälä Add a variant of drm_mode_copy() that explicitly clears out the list head of the destination mode. Helpful to guarantee we don't have stack garbage left in there for on-stack modes. Signed-off-by: Ville Syrjälä --- drivers/gpu

Re: [PATCH 06/22] drm/bridge: Use drm_mode_copy()

2022-02-18 Thread Andrzej Hajda
emcpy(&mode, E, S) + drm_mode_copy(&mode, E) ) @@ struct drm_display_mode *mode; @@ - &*mode + mode Cc: Andrzej Hajda Cc: Neil Armstrong Cc: Robert Foss Cc: Laurent Pinchart Cc: Jonas Karlman Cc: Jernej Skrabec Signed-off-by: Ville Syrjälä Reviewed-by: Andrzej Hajda Regards A

Re: [PATCH 01/22] drm: Add drm_mode_init()

2022-02-18 Thread Andrzej Hajda
On 18.02.2022 12:56, Ville Syrjälä wrote: On Fri, Feb 18, 2022 at 12:22:44PM +0100, Andrzej Hajda wrote: On 18.02.2022 11:03, Ville Syrjala wrote: From: Ville Syrjälä Add a variant of drm_mode_copy() that explicitly clears out the list head of the destination mode. Helpful to guarantee

Re: [PATCH 0/2] DSI host and peripheral initialisation ordering

2022-02-18 Thread Andrzej Hajda
Hi, On 16.02.2022 17:59, Dave Stevenson wrote: Hi All Hopefully I've cc'ed all those that have bashed this problem around previously, or are otherwise linked to DRM bridges. There have been numerous discussions around how DSI support is currently broken as it doesn't support initialising the P

[PATCH v2 00/11] drm/i915: use ref_tracker library for tracking wakerefs

2022-02-21 Thread Andrzej Hajda
ds Andrzej Andrzej Hajda (6): lib/ref_tracker: add unlocked leak print helper lib/ref_tracker: __ref_tracker_dir_print improve printing lib/ref_tracker: add printing to memory buffer lib/ref_tracker: remove warnings in case of allocation failure drm/i915: Correct type of wakeref variable

[PATCH v2 01/11] [DO NOT MERGE] ref_tracker: implement use-after-free detection

2022-02-21 Thread Andrzej Hajda
Dumazet Signed-off-by: David S. Miller Signed-off-by: Andrzej Hajda --- include/linux/ref_tracker.h | 2 ++ lib/ref_tracker.c | 5 + 2 files changed, 7 insertions(+) diff --git a/include/linux/ref_tracker.h b/include/linux/ref_tracker.h index 60f3453be23e6..a443abda937d8 100644 --- a

[PATCH v2 1/9] lib/ref_tracker: add unlocked leak print helper

2022-02-21 Thread Andrzej Hajda
-off-by: Andrzej Hajda Reviewed-by: Chris Wilson --- include/linux/ref_tracker.h | 8 + lib/ref_tracker.c | 66 + 2 files changed, 46 insertions(+), 28 deletions(-) diff --git a/include/linux/ref_tracker.h b/include/linux/ref_tracker.h index

[PATCH v2 01/11] ref_tracker: implement use-after-free detection

2022-02-21 Thread Andrzej Hajda
Dumazet Signed-off-by: David S. Miller Signed-off-by: Andrzej Hajda --- include/linux/ref_tracker.h | 2 ++ lib/ref_tracker.c | 5 + 2 files changed, 7 insertions(+) diff --git a/include/linux/ref_tracker.h b/include/linux/ref_tracker.h index 60f3453be23e6..a443abda937d8 100644 --- a

[PATCH v2 02/11] [DO NOT MERGE] ref_tracker: add a count of untracked references

2022-02-21 Thread Andrzej Hajda
a dedicated refcount_t just for them. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller Signed-off-by: Andrzej Hajda --- include/linux/ref_tracker.h | 2 ++ lib/ref_tracker.c | 12 +++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/include/linux

[PATCH v2 2/9] lib/ref_tracker: compact stacktraces before printing

2022-02-21 Thread Andrzej Hajda
In cases references are taken alternately on multiple exec paths leak report can grow substantially, sorting and grouping leaks by stack_handle allows to compact it. Signed-off-by: Andrzej Hajda Reviewed-by: Chris Wilson --- lib/ref_tracker.c | 35 +++ 1 file

[PATCH v2 02/11] ref_tracker: add a count of untracked references

2022-02-21 Thread Andrzej Hajda
a dedicated refcount_t just for them. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller Signed-off-by: Andrzej Hajda --- include/linux/ref_tracker.h | 2 ++ lib/ref_tracker.c | 12 +++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/include/linux

[PATCH v2 03/11] [DO NOT MERGE] ref_tracker: remove filter_irq_stacks() call

2022-02-21 Thread Andrzej Hajda
Signed-off-by: David S. Miller Signed-off-by: Andrzej Hajda --- lib/ref_tracker.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/ref_tracker.c b/lib/ref_tracker.c index 9c0c2e09df666..dc7b14aa3431e 100644 --- a/lib/ref_tracker.c +++ b/lib/ref_tracker.c @@ -89,7 +89,6 @@ int ref_tra

[PATCH v2 3/9] lib/ref_tracker: __ref_tracker_dir_print improve printing

2022-02-21 Thread Andrzej Hajda
: Andrzej Hajda Reviewed-by: Chris Wilson --- include/linux/ref_tracker.h | 15 --- lib/ref_tracker.c | 28 ++-- 2 files changed, 34 insertions(+), 9 deletions(-) diff --git a/include/linux/ref_tracker.h b/include/linux/ref_tracker.h index b9c968a716483

[PATCH v2 4/9] lib/ref_tracker: add printing to memory buffer

2022-02-21 Thread Andrzej Hajda
In case one wants to show stats via debugfs. Signed-off-by: Andrzej Hajda Reviewed-by: Chris Wilson --- include/linux/ref_tracker.h | 8 ++ lib/ref_tracker.c | 52 - 2 files changed, 54 insertions(+), 6 deletions(-) diff --git a/include/linux

[PATCH v2 03/11] ref_tracker: remove filter_irq_stacks() call

2022-02-21 Thread Andrzej Hajda
Signed-off-by: David S. Miller Signed-off-by: Andrzej Hajda --- lib/ref_tracker.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/ref_tracker.c b/lib/ref_tracker.c index 9c0c2e09df666..dc7b14aa3431e 100644 --- a/lib/ref_tracker.c +++ b/lib/ref_tracker.c @@ -89,7 +89,6 @@ int ref_tra

[PATCH v2 05/11] lib/ref_tracker: __ref_tracker_dir_print improve printing

2022-02-21 Thread Andrzej Hajda
time, - print info about dropped references. Signed-off-by: Andrzej Hajda --- include/linux/ref_tracker.h | 15 +-- lib/ref_tracker.c | 90 - 2 files changed, 91 insertions(+), 14 deletions(-) diff --git a/include/linux/ref_tracker.h b/include

[PATCH v2 04/11] lib/ref_tracker: add unlocked leak print helper

2022-02-21 Thread Andrzej Hajda
-off-by: Andrzej Hajda Reviewed-by: Chris Wilson --- include/linux/ref_tracker.h | 8 + lib/ref_tracker.c | 66 + 2 files changed, 46 insertions(+), 28 deletions(-) diff --git a/include/linux/ref_tracker.h b/include/linux/ref_tracker.h index

[PATCH v2 5/9] lib/ref_tracker: improve allocation flags

2022-02-21 Thread Andrzej Hajda
Library can be called in non-sleeping context, so it should not use __GFP_NOFAIL. Instead it should calmly handle allocation fails, for this __GFP_NOWARN has been added as well. Signed-off-by: Andrzej Hajda --- lib/ref_tracker.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions

[PATCH v2 6/9] drm/i915: Separate wakeref tracking

2022-02-21 Thread Andrzej Hajda
From: Chris Wilson Extract the callstack tracking of intel_runtime_pm.c into its own utility so that that we can reuse it for other online debugging of scoped wakerefs. Signed-off-by: Chris Wilson Reviewed-by: Andrzej Hajda Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/i915/Kconfig.debug

[PATCH v2 06/11] lib/ref_tracker: add printing to memory buffer

2022-02-21 Thread Andrzej Hajda
In case one wants to show stats via debugfs. Signed-off-by: Andrzej Hajda Reviewed-by: Chris Wilson --- include/linux/ref_tracker.h | 8 ++ lib/ref_tracker.c | 56 +++-- 2 files changed, 56 insertions(+), 8 deletions(-) diff --git a/include/linux

[PATCH v2 7/9] drm/i915: Track leaked gt->wakerefs

2022-02-21 Thread Andrzej Hajda
. v2: Rebase from backporting wakeref leak (Umesh) Signed-off-by: Chris Wilson Reviewed-by: Andrzej Hajda Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/i915/Kconfig.debug| 15 +++ .../gpu/drm/i915/gem/i915_gem_execbuffer.c| 7 ++-- .../i915/gem/selftests

[PATCH v2 8/9] drm/i915: Correct type of wakeref variable

2022-02-21 Thread Andrzej Hajda
Wakeref has dedicated type. Assumption it will be int compatible forever is incorrect. Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c b

[PATCH v2 07/11] lib/ref_tracker: remove warnings in case of allocation failure

2022-02-21 Thread Andrzej Hajda
Library can handle allocation failures. To avoid allocation warnings __GFP_NOWARN has been added everywhere. Moreover GFP_ATOMIC has been replaced with GFP_NOWAIT in case of stack allocation on tracker free call. Signed-off-by: Andrzej Hajda --- lib/ref_tracker.c | 5 +++-- 1 file changed, 3

[PATCH v2 08/11] drm/i915: Separate wakeref tracking

2022-02-21 Thread Andrzej Hajda
From: Chris Wilson Extract the callstack tracking of intel_runtime_pm.c into its own utility so that that we can reuse it for other online debugging of scoped wakerefs. Signed-off-by: Chris Wilson Reviewed-by: Andrzej Hajda Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/i915/Kconfig.debug

[PATCH v2 9/9] drm/i915: replace Intel internal tracker with kernel core ref_tracker

2022-02-21 Thread Andrzej Hajda
Beside reusing existing code, the main advantage of ref_tracker is tracking per instance of wakeref. It allows also to catch double put. On the other side we lose information about the first acquire and the last release, but the advantages outweigh it. Signed-off-by: Andrzej Hajda Reviewed-by

[PATCH v2 09/11] drm/i915: Track leaked gt->wakerefs

2022-02-21 Thread Andrzej Hajda
. v2: Rebase from backporting wakeref leak (Umesh) Signed-off-by: Chris Wilson Reviewed-by: Andrzej Hajda Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/i915/Kconfig.debug| 15 +++ .../gpu/drm/i915/gem/i915_gem_execbuffer.c| 7 ++-- .../i915/gem/selftests

[PATCH v2 10/11] drm/i915: Correct type of wakeref variable

2022-02-21 Thread Andrzej Hajda
Wakeref has dedicated type. Assumption it will be int compatible forever is incorrect. Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c b

[PATCH v2 11/11] drm/i915: replace Intel internal tracker with kernel core ref_tracker

2022-02-21 Thread Andrzej Hajda
Beside reusing existing code, the main advantage of ref_tracker is tracking per instance of wakeref. It allows also to catch double put. On the other side we lose information about the first acquire and the last release, but the advantages outweigh it. Signed-off-by: Andrzej Hajda Reviewed-by

Re: [PATCH v2 00/11] drm/i915: use ref_tracker library for tracking wakerefs

2022-02-21 Thread Andrzej Hajda
On 22.02.2022 00:16, Andrzej Hajda wrote: Hi, Appearance of ref_tracker library allows to drop custom solution for wakeref tracking used in i915 and reuse the library. For this few adjustements has been made to ref_tracker, details in patches. I hope changes are OK for original author. The

[PATCH v3 00/11] drm/i915: use ref_tracker library for tracking wakerefs

2022-02-21 Thread Andrzej Hajda
fixed mess with duplicated mails Regards Andrzej Andrzej Hajda (6): lib/ref_tracker: add unlocked leak print helper lib/ref_tracker: __ref_tracker_dir_print improve printing lib/ref_tracker: add printing to memory buffer lib/ref_tracker: remove warnings in case of allocation failure

[PATCH v3 01/11] [DO NOT MERGE] ref_tracker: implement use-after-free detection

2022-02-21 Thread Andrzej Hajda
Dumazet Signed-off-by: David S. Miller Signed-off-by: Andrzej Hajda --- include/linux/ref_tracker.h | 2 ++ lib/ref_tracker.c | 5 + 2 files changed, 7 insertions(+) diff --git a/include/linux/ref_tracker.h b/include/linux/ref_tracker.h index 60f3453be23e6..a443abda937d8 100644 --- a

[PATCH v3 02/11] [DO NOT MERGE] ref_tracker: add a count of untracked references

2022-02-21 Thread Andrzej Hajda
a dedicated refcount_t just for them. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller Signed-off-by: Andrzej Hajda --- include/linux/ref_tracker.h | 2 ++ lib/ref_tracker.c | 12 +++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/include/linux

[PATCH v3 03/11] [DO NOT MERGE] ref_tracker: remove filter_irq_stacks() call

2022-02-21 Thread Andrzej Hajda
Signed-off-by: David S. Miller Signed-off-by: Andrzej Hajda --- lib/ref_tracker.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/ref_tracker.c b/lib/ref_tracker.c index 9c0c2e09df666..dc7b14aa3431e 100644 --- a/lib/ref_tracker.c +++ b/lib/ref_tracker.c @@ -89,7 +89,6 @@ int ref_tra

[PATCH v3 04/11] lib/ref_tracker: add unlocked leak print helper

2022-02-21 Thread Andrzej Hajda
-off-by: Andrzej Hajda Reviewed-by: Chris Wilson --- include/linux/ref_tracker.h | 8 + lib/ref_tracker.c | 66 + 2 files changed, 46 insertions(+), 28 deletions(-) diff --git a/include/linux/ref_tracker.h b/include/linux/ref_tracker.h index

[PATCH v3 05/11] lib/ref_tracker: __ref_tracker_dir_print improve printing

2022-02-21 Thread Andrzej Hajda
time, - print info about dropped references. Signed-off-by: Andrzej Hajda --- include/linux/ref_tracker.h | 15 +-- lib/ref_tracker.c | 90 - 2 files changed, 91 insertions(+), 14 deletions(-) diff --git a/include/linux/ref_tracker.h b/include

[PATCH v3 06/11] lib/ref_tracker: add printing to memory buffer

2022-02-21 Thread Andrzej Hajda
In case one wants to show stats via debugfs. Signed-off-by: Andrzej Hajda Reviewed-by: Chris Wilson --- include/linux/ref_tracker.h | 8 ++ lib/ref_tracker.c | 56 +++-- 2 files changed, 56 insertions(+), 8 deletions(-) diff --git a/include/linux

[PATCH v3 09/11] drm/i915: Track leaked gt->wakerefs

2022-02-21 Thread Andrzej Hajda
. v2: Rebase from backporting wakeref leak (Umesh) Signed-off-by: Chris Wilson Reviewed-by: Andrzej Hajda Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/i915/Kconfig.debug| 15 +++ .../gpu/drm/i915/gem/i915_gem_execbuffer.c| 7 ++-- .../i915/gem/selftests

[PATCH v3 08/11] drm/i915: Separate wakeref tracking

2022-02-21 Thread Andrzej Hajda
From: Chris Wilson Extract the callstack tracking of intel_runtime_pm.c into its own utility so that that we can reuse it for other online debugging of scoped wakerefs. Signed-off-by: Chris Wilson Reviewed-by: Andrzej Hajda Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/i915/Kconfig.debug

[PATCH v3 07/11] lib/ref_tracker: remove warnings in case of allocation failure

2022-02-21 Thread Andrzej Hajda
Library can handle allocation failures. To avoid allocation warnings __GFP_NOWARN has been added everywhere. Moreover GFP_ATOMIC has been replaced with GFP_NOWAIT in case of stack allocation on tracker free call. Signed-off-by: Andrzej Hajda --- lib/ref_tracker.c | 5 +++-- 1 file changed, 3

[PATCH v3 10/11] drm/i915: Correct type of wakeref variable

2022-02-21 Thread Andrzej Hajda
Wakeref has dedicated type. Assumption it will be int compatible forever is incorrect. Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c b

[PATCH v3 11/11] drm/i915: replace Intel internal tracker with kernel core ref_tracker

2022-02-21 Thread Andrzej Hajda
Beside reusing existing code, the main advantage of ref_tracker is tracking per instance of wakeref. It allows also to catch double put. On the other side we lose information about the first acquire and the last release, but the advantages outweigh it. Signed-off-by: Andrzej Hajda Reviewed-by

Re: [Intel-gfx] [PATCH v3 08/11] drm/i915: Separate wakeref tracking

2022-02-22 Thread Andrzej Hajda
On 22.02.2022 08:12, Ville Syrjälä wrote: On Tue, Feb 22, 2022 at 12:25:39AM +0100, Andrzej Hajda wrote: -static noinline depot_stack_handle_t +static intel_wakeref_t track_intel_runtime_pm_wakeref(struct intel_runtime_pm *rpm) { - depot_stack_handle_t stack, *stacks

Re: [PATCH v3 05/11] lib/ref_tracker: __ref_tracker_dir_print improve printing

2022-02-22 Thread Andrzej Hajda
On 22.02.2022 01:08, Eric Dumazet wrote: On Mon, Feb 21, 2022 at 3:26 PM Andrzej Hajda wrote: To improve readibility of ref_tracker printing following changes readability have been performed: - reports are printed per stack_handle - log is more compact, - added display name for

Re: [PATCH v3 07/11] lib/ref_tracker: remove warnings in case of allocation failure

2022-02-22 Thread Andrzej Hajda
On 22.02.2022 00:54, Eric Dumazet wrote: On Mon, Feb 21, 2022 at 3:26 PM Andrzej Hajda wrote: Library can handle allocation failures. To avoid allocation warnings __GFP_NOWARN has been added everywhere. Moreover GFP_ATOMIC has been replaced with GFP_NOWAIT in case of stack allocation on

Re: [PATCH 1/2] drm: Introduce DRM_BRIDGE_OP_UPSTREAM_FIRST to alter bridge init order

2022-02-28 Thread Andrzej Hajda
On 22.02.2022 09:43, Dave Stevenson wrote: Hi Laurent. Thanks for the review. On Tue, 22 Feb 2022 at 06:34, Laurent Pinchart wrote: Hi Dave, Thank you for the patch. On Wed, Feb 16, 2022 at 04:59:43PM +, Dave Stevenson wrote: DSI sink devices typically want the DSI host powered up a

Re: [PATCH v5 2/7] drm/i915: Prepare for multiple GTs

2022-03-01 Thread Andrzej Hajda
On 17.02.2022 15:41, Andi Shyti wrote: From: Tvrtko Ursulin On a multi-tile platform, each tile has its own registers + GGTT space, and BAR 0 is extended to cover all of them. Up to four GTs are supported in i915->gt[], with slot zero shadowing the existing i915->gt0 to enable source compat

Re: [PATCH v5 1/7] drm/i915: Rename INTEL_REGION_LMEM with INTEL_REGION_LMEM_0

2022-03-01 Thread Andrzej Hajda
On 17.02.2022 15:41, Andi Shyti wrote: With the upcoming multitile support each tile will have its own local memory. Mark the current LMEM with the suffix '0' to emphasise that it belongs to the root tile. Suggested-by: Michal Wajdeczko Signed-off-by: Andi Shyti Reviewed-by: And

Re: [Intel-gfx] [PATCH v5 3/7] drm/i915/gt: add gt_is_root() helper

2022-03-01 Thread Andrzej Hajda
e id var. or just use it this way in this patch, with that: Reviewed-by: Michal Wajdeczko Accordingly: Reviewed-by: Andrzej Hajda Regards Andrzej static inline struct intel_gt *uc_to_gt(struct intel_uc *uc) { return container_of(uc, struct intel_gt, uc);

Re: [PATCH v5 4/7] drm/i915/gt: create per-tile sysfs interface

2022-03-02 Thread Andrzej Hajda
On 17.02.2022 15:41, Andi Shyti wrote: Now that we have tiles we want each of them to have its own interface. A directory "gt/" is created under "cardN/" that will contain as many diroctories as the tiles. In the coming patches tile related interfaces will be added. For now the sysfs gt struc

Re: [PATCH v5 5/7] drm/i915/gt: Create per-tile RC6 sysfs interface

2022-03-03 Thread Andrzej Hajda
+} Merging handling "gt/gt#/*" and "power/*" attributes into the same helpers seems unnatural to me, in many functions we have two branches based on value of is_object_gt, with the most hacky intel_gt_sysfs_get_drvdata. Splitting handling these attributes would allow to drop fr

Re: [PATCH v5 6/7] drm/i915/gt: Create per-tile RPS sysfs interfaces

2022-03-03 Thread Andrzej Hajda
On 17.02.2022 15:41, Andi Shyti wrote: Now tiles have their own sysfs interfaces under the gt/ directory. Because RPS is a property that can be configured on a tile basis, then each tile should have its own interface The new sysfs structure will have a similar layout for the 4 tile case: /sy

Re: [PATCH v5 7/7] drm/i915/gt: Adding new sysfs frequency attributes

2022-03-03 Thread Andrzej Hajda
On 17.02.2022 15:41, Andi Shyti wrote: From: Sujaritha Sundaresan This patch adds the following new sysfs frequency attributes; - punit_req_freq_mhz - throttle_reason_status - throttle_reason_pl1 - throttle_reason_pl2 - throttle_reason_pl4 - th

Re: [PATCH v5 4/7] drm/i915/gt: create per-tile sysfs interface

2022-03-07 Thread Andrzej Hajda
On 07.03.2022 00:04, Andi Shyti wrote: Hi Andrzej, [...] +bool is_object_gt(struct kobject *kobj) +{ + return !strncmp(kobj->name, "gt", 2); +} It looks quite fragile, at the moment I do not have better idea:) maybe after reviewing the rest of the patches. yeah... it's not pretty, I

Re: [PATCH] drm/bridge: cdns: Make use of the helper function devm_platform_ioremap_resource()

2021-08-31 Thread Andrzej Hajda
W dniu 31.08.2021 o 15:50, Cai Huoqing pisze: > Use the devm_platform_ioremap_resource() helper instead of > calling platform_get_resource() and devm_ioremap_resource() > separately > > Signed-off-by: Cai Huoqing Reviewed-by: Andrzej Hajda Regards Andrzej

Re: [PATCH v3 00/16] eDP: Support probing eDP panels dynamically instead of hardcoding

2021-09-02 Thread Andrzej Hajda
Removed most CC: SMTP server protested. On 01.09.2021 22:19, Douglas Anderson wrote: > The goal of this patch series is to move away from hardcoding exact > eDP panels in device tree files. As discussed in the various patches > in this series (I'm not repeating everything here), most eDP panels

Re: [PATCH v3 06/16] ARM: configs: Everyone who had PANEL_SIMPLE now gets PANEL_SIMPLE_EDP

2021-09-03 Thread Andrzej Hajda
On 02.09.2021 01:10, Doug Anderson wrote: > Hi, > > On Wed, Sep 1, 2021 at 2:12 PM Olof Johansson wrote: >> >> On Wed, Sep 1, 2021 at 1:20 PM Douglas Anderson >> wrote: >>> >>> In the patch ("drm/panel-simple-edp: Split eDP panels out of >>> panel-simple") we split the PANEL_SIMPLE driver in 2.

Re: [PATCH] drm/bridge: ti-sn65dsi83: Check link status register after enabling the bridge

2021-09-07 Thread Andrzej Hajda
t know what is going on, so let's add some diagnostic messages to gather info and figure it out later'. Whole driver lacks IRQ handler which IMO could perform better diagnosis, and I guess it could also help in recovery, but this is just my guess. So if this patch is enough for now you can add: Reviewed-by: Andrzej Hajda Regards Andrzej > } > > static void sn65dsi83_atomic_disable(struct drm_bridge *bridge, >

Re: [PATCH] drm/bridge: ti-sn65dsi83: Check link status register after enabling the bridge

2021-09-07 Thread Andrzej Hajda
W dniu 07.09.2021 o 16:25, Marek Vasut pisze: > On 9/7/21 9:31 AM, Andrzej Hajda wrote: >> On 07.09.2021 04:39, Marek Vasut wrote: >>> In rare cases, the bridge may not start up correctly, which usually >>> leads to no display output. In case this happens, warn abo

Re: [PATCH] drm/bridge: ti-sn65dsi83: Check link status register after enabling the bridge

2021-09-08 Thread Andrzej Hajda
W dniu 08.09.2021 o 13:11, Dave Stevenson pisze: > Hi Marek and Andrzej > > On Tue, 7 Sept 2021 at 22:24, Marek Vasut wrote: >> On 9/7/21 7:29 PM, Andrzej Hajda wrote: >>> W dniu 07.09.2021 o 16:25, Marek Vasut pisze: >>>> On 9/7/21 9:31 AM, Andrzej Hajda wro

  1   2   3   4   5   6   7   8   9   10   >