[PULL] drm-misc-next

2025-06-18 Thread Maxime Ripard
Hi, Here's this week drm-misc-next PR. Maxime drm-misc-next-2025-06-19: drm-misc-next for 6.17: UAPI Changes: - Add Task Information for the wedge API Cross-subsystem Changes: Core Changes: - Fix warnings related to export.h - fbdev: Make CONFIG_FIRMWARE_EDID available on all architectures -

RE: [PATCH 03/13] drm/dp: Add argument for luminance range info in drm_edp_backlight_init

2025-06-18 Thread Kandpal, Suraj
> -Original Message- > From: Murthy, Arun R > Sent: Thursday, June 19, 2025 10:47 AM > To: Kandpal, Suraj ; > nouv...@lists.freedesktop.org; dri-de...@lists.freedesktop.org; intel- > x...@lists.freedesktop.org; intel-gfx@lists.freedesktop.org > Cc: Nautiyal, Ankit K > Subject: RE: [PAT

RE: [PATCH 03/13] drm/dp: Add argument for luminance range info in drm_edp_backlight_init

2025-06-18 Thread Murthy, Arun R
> > -Original Message- > > From: Murthy, Arun R > > Sent: Thursday, June 12, 2025 4:43 PM > > To: Kandpal, Suraj ; > > nouv...@lists.freedesktop.org; dri-de...@lists.freedesktop.org; intel- > > x...@lists.freedesktop.org; intel-gfx@lists.freedesktop.org > > Cc: Nautiyal, Ankit K > > Subje

RE: [PATCH 05/13] drm/dp: Change current_level argument type to u32

2025-06-18 Thread Murthy, Arun R
> -Original Message- > From: Kandpal, Suraj > Sent: Monday, April 14, 2025 9:46 AM > To: nouv...@lists.freedesktop.org; dri-de...@lists.freedesktop.org; intel- > x...@lists.freedesktop.org; intel-gfx@lists.freedesktop.org > Cc: Nautiyal, Ankit K ; Murthy, Arun R > ; Kandpal, Suraj > Subje

RE: [PATCH 04/13] drm/dp: Move from u16 to u32 for max in drm_edp_backlight_info

2025-06-18 Thread Murthy, Arun R
> -Original Message- > From: Kandpal, Suraj > Sent: Monday, April 14, 2025 9:46 AM > To: nouv...@lists.freedesktop.org; dri-de...@lists.freedesktop.org; intel- > x...@lists.freedesktop.org; intel-gfx@lists.freedesktop.org > Cc: Nautiyal, Ankit K ; Murthy, Arun R > ; Kandpal, Suraj > Subje

[PATCH v2] drm/xe/display: read PCON capability only when present

2025-06-18 Thread Chaitanya Kumar Borah
Avoid reading the PCON capabilities redundantly on non-branch devices. v2: - Make commit description more accurate. (Imre) - Clear intel_dp->pcon_dsc_dpcd irrespective of presense of PCON. (Imre) Signed-off-by: Chaitanya Kumar Borah --- drivers/gpu/drm/i915/display/intel_dp.c | 3 +++ 1 file

[PATCH] drm/i915/hdcp: Use HDCP2_STREAM_STATUS to verify content type status

2025-06-18 Thread Suraj Kandpal
>From PTL we need to move to using HDCP2_STREAM_STATUS to check if the written content type info is the same as we expect since HDCP2_AUTH_STREAM is inaccessible to us now. Signed-off-by: Suraj Kandpal --- drivers/gpu/drm/i915/display/intel_dp_hdcp.c | 13 ++--- 1 file changed, 10 insert

Re: [PATCH] drm/i915/vrr: fix register file style

2025-06-18 Thread Nautiyal, Ankit K
On 6/18/2025 9:21 PM, Jani Nikula wrote: Fix indents, use of spaces vs. tabs, grouping, remove superfluous comments, remove some line continuations, wrap macro arguments in parens, rename dev_priv to display. This is the way. Cc: Ankit Nautiyal Cc: Mitul Golani Signed-off-by: Jani Nikula

Re: ✗ i915.CI.BAT: failure for Add WildCat Lake support (rev3)

2025-06-18 Thread Matt Roper
On Wed, Jun 18, 2025 at 03:34:59PM -0700, Matt Roper wrote: > On Fri, Jun 13, 2025 at 11:32:29AM -, Patchwork wrote: > > == Series Details == > > > > Series: Add WildCat Lake support (rev3) > > URL : https://patchwork.freedesktop.org/series/150101/ > > State : failure > > > > == Summary ==

Re: ✗ i915.CI.BAT: failure for Add WildCat Lake support (rev3)

2025-06-18 Thread Matt Roper
On Fri, Jun 13, 2025 at 11:32:29AM -, Patchwork wrote: > == Series Details == > > Series: Add WildCat Lake support (rev3) > URL : https://patchwork.freedesktop.org/series/150101/ > State : failure > > == Summary == > > CI Bug Log - changes from CI_DRM_16700 -> Patchwork_150101v3 >

Re: [REGRESSION][BISECTED] intel iGPU with HDMI PLL stopped working at 1080p@120Hz 1efd5384

2025-06-18 Thread Vas Novikov
Hi Jani and everyone, On 17/06/2025 12.33, Jani Nikula wrote: Does [1] help? The patch works. (Applied on top of 6.16.0-rc2-1.1-mainline, built by Christian @gromit who helped again.) The patch (or the new kernel) also have a side effect of xrandr allowing a completely new refresh rate, ~1

[PULL] drm-xe-next

2025-06-18 Thread Rodrigo Vivi
Hi Dave and Sima, Here goes our first drm-xe-next pull-request towards 6.17. The important part to mention is on the top of the tag below: - uAPI addition for Media OA - The restoration of a fix accidentally missed in a merge commit - GPUSVM changes Also, SVM enabling work itself, platform enabl

Re: [PATCH 0/2] Fixes in snps-phy HDMI PLL algorithm

2025-06-18 Thread Jani Nikula
On Wed, 18 Jun 2025, Ankit Nautiyal wrote: > Fixes/improvement in snps-phy HDMI PLL algorithm. Reviewed-by: Jani Nikula > > Ankit Nautiyal (2): > drm/i915/snps_hdmi_pll: Fix 64-bit divisor truncation by using > div64_u64 > drm/i915/snps_hdmi_pll: Use clamp() instead of max(min()) > > d

Re: [PATCH] drm/xe/display: read PCON capability only when present

2025-06-18 Thread Imre Deak
On Wed, Jun 18, 2025 at 05:15:53PM +0530, Chaitanya Kumar Borah wrote: > Read PCON capabilities only when it is present. This will prevent > spurious DCPD read failures. > > [drm] *ERROR* Failed to read DPCD register 0x92 The above read failure is due to the sink not being connected during the re

Re: [PATCH 15/16] drm/i915/cdclk: abstract intel_cdclk_actual() and intel_cdclk_actual_voltage_level()

2025-06-18 Thread Imre Deak
On Thu, Jun 12, 2025 at 03:12:10PM +0300, Jani Nikula wrote: > Add intel_cdclk_actual() and intel_cdclk_actual_voltage_level() helpers > to avoid looking at struct intel_cdclk_state internals outside of > intel_cdclk.c. > > Signed-off-by: Jani Nikula > --- > drivers/gpu/drm/i915/display/intel_cd

Re: [PATCH 00/16] drm/i915/display: make all global state opaque

2025-06-18 Thread Imre Deak
On Thu, Jun 12, 2025 at 03:11:55PM +0300, Jani Nikula wrote: > Hide all the structs that "derive" from struct intel_global_state inside > their respective implementation files. On the patchset: Reviewed-by: Imre Deak A nit later about naming of functions. > Jani Nikula (16): > drm/i915/wm: ab

Re: [PATCH 10/10] fs: replace mmap hook with .mmap_prepare for simple mappings

2025-06-18 Thread David Sterba
On Mon, Jun 16, 2025 at 08:33:29PM +0100, Lorenzo Stoakes wrote: > Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file > callback"), the f_op->mmap() hook has been deprecated in favour of > f_op->mmap_prepare(). > > This callback is invoked in the mmap() logic far earlier, so error

Re: [PATCH v3] drm/i915/selftests: Keep mock file open during unfaultable migrate with fill

2025-06-18 Thread Krzysztof Niemiec
Hi Krzysztof, On 2025-06-17 at 13:19:07 GMT, Krzysztof Karas wrote: > igt_mmap_migrate() tests migration with various parameters. > In one of the cases, where FILL and UNFAULTABLE flags are set, > during first stages of this test a mock file is opened in > igt_mmap_offset(), which results in alloc

Re: [PATCH] drm/i915/selftests: Fix error pointer vs NULL in __mock_request_alloc()

2025-06-18 Thread Dan Carpenter
On Mon, Jun 16, 2025 at 11:01:08AM -0400, Rodrigo Vivi wrote: > On Fri, Jun 06, 2025 at 12:04:49PM +0300, Dan Carpenter wrote: > > --- a/drivers/gpu/drm/i915/selftests/i915_request.c > > +++ b/drivers/gpu/drm/i915/selftests/i915_request.c > > @@ -290,7 +290,12 @@ struct smoketest { > > static stru

✓ i915.CI.BAT: success for drm/i915/vrr: fix register file style

2025-06-18 Thread Patchwork
== Series Details == Series: drm/i915/vrr: fix register file style URL : https://patchwork.freedesktop.org/series/150473/ State : success == Summary == CI Bug Log - changes from CI_DRM_16723 -> Patchwork_150473v1 Summary --- **SUCCES

[PULL] drm-intel-next

2025-06-18 Thread Jani Nikula
Hi Dave & Sima - First i915 pull request towards v6.17. drm-intel-next-2025-06-18: drm/i915 feature pull for v6.17: Features and functionality: - Add support for DSC fractional link bpp on DP MST (Imre) - Add support for simultaneous Panel Replay and Adaptive Sync (Jouni) - Add support for PTL

[PATCH] drm/i915/vrr: fix register file style

2025-06-18 Thread Jani Nikula
Fix indents, use of spaces vs. tabs, grouping, remove superfluous comments, remove some line continuations, wrap macro arguments in parens, rename dev_priv to display. This is the way. Cc: Ankit Nautiyal Cc: Mitul Golani Signed-off-by: Jani Nikula --- Should be easy to review by applying and

Re: [PATCH v10 05/10] drm/ttm: Add ttm_bo_kmap_try_from_panic()

2025-06-18 Thread Jocelyn Falempe
On 18/06/2025 15:55, Christian König wrote: On 6/18/25 11:31, Jocelyn Falempe wrote: If the ttm bo is backed by pages, then it's possible to safely kmap one page at a time, using kmap_try_from_panic(). Unfortunately there is no way to do the same with ioremap, so it only supports the kmap case

✓ i915.CI.BAT: success for ref_tracker: add ability to register a debugfs file for a ref_tracker_dir (rev11)

2025-06-18 Thread Patchwork
== Series Details == Series: ref_tracker: add ability to register a debugfs file for a ref_tracker_dir (rev11) URL : https://patchwork.freedesktop.org/series/148490/ State : success == Summary == CI Bug Log - changes from CI_DRM_16723 -> Patchwork_148490v11 ===

Re: ✓ i915.CI.BAT: success for drm/i915, drm/xe: add drm device based pcode interface for display

2025-06-18 Thread Jani Nikula
On Thu, 05 Jun 2025, Patchwork wrote: > == Series Details == > > Series: drm/i915, drm/xe: add drm device based pcode interface for display > URL : https://patchwork.freedesktop.org/series/149878/ > State : success > > == Summary == > > CI Bug Log - changes from CI_DRM_16649 -> Patchwork_149878v

Re: [PATCH 0/2] drm/i915: Miscellaneous clean up changes around i915_drv.h

2025-06-18 Thread Jani Nikula
On Wed, 18 Jun 2025, Krzysztof Karas wrote: > Krzysztof Karas (2): > drm/i915: Move out engine related macros from i915_drv.h > drm/i915: move GEM_QUIRK_PIN_SWIZZLED_PAGES to i915_gem.h Maybe get an ack from the gem folks, but LGTM. Reviewed-by: Jani Nikula > > drivers/gpu/drm/i915/gt/int

✓ i915.CI.BAT: success for drm/i915: Miscellaneous clean up changes around i915_drv.h

2025-06-18 Thread Patchwork
== Series Details == Series: drm/i915: Miscellaneous clean up changes around i915_drv.h URL : https://patchwork.freedesktop.org/series/150462/ State : success == Summary == CI Bug Log - changes from CI_DRM_16723 -> Patchwork_150462v1 Summar

✓ i915.CI.BAT: success for Fixes in snps-phy HDMI PLL algorithm

2025-06-18 Thread Patchwork
== Series Details == Series: Fixes in snps-phy HDMI PLL algorithm URL : https://patchwork.freedesktop.org/series/150458/ State : success == Summary == CI Bug Log - changes from CI_DRM_16723 -> Patchwork_150458v1 Summary --- **SUCCESS

RE: [PATCH v2 6/9] drm/i915/dmc: Reload pipe DMC MMIO registers for pipe C/D on various platforms

2025-06-18 Thread Shankar, Uma
> -Original Message- > From: Intel-xe On Behalf Of Ville > Syrjala > Sent: Tuesday, June 17, 2025 10:38 PM > To: intel-gfx@lists.freedesktop.org > Cc: intel...@lists.freedesktop.org > Subject: [PATCH v2 6/9] drm/i915/dmc: Reload pipe DMC MMIO registers for pipe > C/D on various platforms

[PATCH v15 4/9] ref_tracker: add a static classname string to each ref_tracker_dir

2025-06-18 Thread Jeff Layton
A later patch in the series will be adding debugfs files for each ref_tracker that get created in ref_tracker_dir_init(). The format will be "class@%px". The current "name" string can vary between ref_tracker_dir objects of the same type, so it's not suitable for this purpose. Add a new "class" st

[PATCH v15 2/9] ref_tracker: add a top level debugfs directory for ref_tracker

2025-06-18 Thread Jeff Layton
Add a new "ref_tracker" directory in debugfs. Each individual refcount tracker can register files under there to display info about currently-held references. Reviewed-by: Andrew Lunn Reviewed-by: Krzysztof Karas Signed-off-by: Jeff Layton --- lib/ref_tracker.c | 13 + 1 file chang

[PATCH v15 8/9] net: add symlinks to ref_tracker_dir for netns

2025-06-18 Thread Jeff Layton
After assigning the inode number to the namespace, use it to create a unique name for each netns refcount tracker with the ns.inum and net_cookie values in it, and register a symlink to the debugfs file for it. init_net is registered before the ref_tracker dir is created, so add a late_initcall()

[PATCH v15 9/9] ref_tracker: eliminate the ref_tracker_dir name field

2025-06-18 Thread Jeff Layton
Now that we have dentries and the ability to create meaningful symlinks to them, don't keep a name string in each tracker. Switch the output format to print "class@address", and drop the name field. Also, add a kerneldoc header for ref_tracker_dir_init(). Signed-off-by: Jeff Layton --- drivers/

[PATCH v15 5/9] ref_tracker: allow pr_ostream() to print directly to a seq_file

2025-06-18 Thread Jeff Layton
Allow pr_ostream to also output directly to a seq_file without an intermediate buffer. The first caller of +ref_tracker_dir_seq_print() will come in a later patch, so mark that __maybe_unused for now. That designation will be removed once it is used. Reviewed-by: Andrew Lunn Signed-off-by: Jeff L

[PATCH v15 7/9] ref_tracker: add a way to create a symlink to the ref_tracker_dir debugfs file

2025-06-18 Thread Jeff Layton
Add the ability for a subsystem to add a user-friendly symlink that points to a ref_tracker_dir's debugfs file. Add a separate debugfs_symlinks xarray and use that to track symlinks. The reaper workqueue job will remove symlinks before their corresponding dentries. Signed-off-by: Jeff Layton ---

[PATCH v15 6/9] ref_tracker: automatically register a file in debugfs for a ref_tracker_dir

2025-06-18 Thread Jeff Layton
Currently, there is no convenient way to see the info that the ref_tracking infrastructure collects. Attempt to create a file in debugfs when called from ref_tracker_dir_init(). The file is given the name "class@%px", as having the unmodified address is helpful for debugging. This should be safe s

[PATCH v15 0/9] ref_tracker: add ability to register a debugfs file for a ref_tracker_dir

2025-06-18 Thread Jeff Layton
For those just joining in, this series adds a new top-level "ref_tracker" debugfs directory, and has each ref_tracker_dir register a file in there as part of its initialization. It also adds the ability to register a symlink with a more human-usable name that points to the file, and does some gener

[PATCH v15 3/9] ref_tracker: have callers pass output function to pr_ostream()

2025-06-18 Thread Jeff Layton
In a later patch, we'll be adding a 3rd mechanism for outputting ref_tracker info via seq_file. Instead of a conditional, have the caller set a pointer to an output function in struct ostream. As part of this, the log prefix must be explicitly passed in, as it's too late for the pr_fmt macro. Revi

[PATCH v15 1/9] ref_tracker: don't use %pK in pr_ostream() output

2025-06-18 Thread Jeff Layton
As Thomas Weißschuh points out [1], it is now preferable to use %p instead of hashed pointers with printk(), since raw pointers should no longer be leaked into the kernel log. Change the ref_tracker infrastructure to use %p instead of %pK in its formats. [1]: https://lore.kernel.org/netdev/202504

Re: [PATCH v10 05/10] drm/ttm: Add ttm_bo_kmap_try_from_panic()

2025-06-18 Thread Christian König
On 6/18/25 11:31, Jocelyn Falempe wrote: > If the ttm bo is backed by pages, then it's possible to safely kmap > one page at a time, using kmap_try_from_panic(). > Unfortunately there is no way to do the same with ioremap, so it > only supports the kmap case. > This is needed for proper drm_pani

[PATCH 2/2] drm/i915: move GEM_QUIRK_PIN_SWIZZLED_PAGES to i915_gem.h

2025-06-18 Thread Krzysztof Karas
Move this macro where other GEM_* definitions live. --- drivers/gpu/drm/i915/i915_drv.h | 2 -- drivers/gpu/drm/i915/i915_gem.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index f69b64e06078..4e4e89746aa6

Re: [PATCH 5/6] drm/i915/dram: switch to struct drm_device based pcode interface

2025-06-18 Thread Rodrigo Vivi
On Thu, Jun 05, 2025 at 01:29:37PM +0300, Jani Nikula wrote: > With the struct drm_device based pcode interface in place in both i915 > and xe, we can switch dram code to use that. Reviewed-by: Rodrigo Vivi > > Signed-off-by: Jani Nikula > --- > drivers/gpu/drm/i915/soc/intel_dram.c | 4 ++--

[PATCH 1/2] drm/i915: Move out engine related macros from i915_drv.h

2025-06-18 Thread Krzysztof Karas
Move macros related to engines out of i915_drv.h header and place them in intel_engine.h. Signed-off-by: Krzysztof Karas --- drivers/gpu/drm/i915/gt/intel_engine.h | 31 ++ drivers/gpu/drm/i915/i915_drv.h| 31 -- 2 files changed, 31 inserti

[PATCH 0/2] drm/i915: Miscellaneous clean up changes around i915_drv.h

2025-06-18 Thread Krzysztof Karas
Krzysztof Karas (2): drm/i915: Move out engine related macros from i915_drv.h drm/i915: move GEM_QUIRK_PIN_SWIZZLED_PAGES to i915_gem.h drivers/gpu/drm/i915/gt/intel_engine.h | 31 drivers/gpu/drm/i915/i915_drv.h| 33 -- drivers/gpu/drm

Re: [PATCH 6/6] drm/xe/compat: remove old pcode compat interface

2025-06-18 Thread Rodrigo Vivi
On Thu, Jun 05, 2025 at 01:29:38PM +0300, Jani Nikula wrote: > With display code using the struct drm_device based pcode interface, we > can drop the old pcode compat interface. > > We can also drop the __compat_uncore_to_tile() helper from > intel_uncore.h compat header. > > Turns out a couple o

Re: [PATCH 4/6] drm/i915/display: switch to struct drm_device based pcode interface

2025-06-18 Thread Rodrigo Vivi
On Tue, Jun 17, 2025 at 11:29:54AM +0300, Jani Nikula wrote: > On Mon, 16 Jun 2025, Rodrigo Vivi wrote: > > On Thu, Jun 05, 2025 at 01:29:36PM +0300, Jani Nikula wrote: > >> With the struct drm_device based pcode interface in place in both i915 > >> and xe, we can switch display code to use that,

Re: [REGRESSION][BISECTED] intel iGPU with HDMI PLL stopped working at 1080p@120Hz 1efd5384

2025-06-18 Thread Nautiyal, Ankit K
On 6/17/2025 7:20 PM, Jani Nikula wrote: On Tue, 17 Jun 2025, Vas Novikov wrote: Hi Jani and everyone, On 17/06/2025 12.33, Jani Nikula wrote: Does [1] help? The patch works. (Applied on top of 6.16.0-rc2-1.1-mainline, built by Christian @gromit who helped again.) The patch (or the new ke

[PATCH 1/2] drm/i915/snps_hdmi_pll: Fix 64-bit divisor truncation by using div64_u64

2025-06-18 Thread Ankit Nautiyal
DIV_ROUND_CLOSEST_ULL uses do_div(), which expects a 32-bit divisor. When passing a 64-bit constant like CURVE2_MULTIPLIER, the value is silently truncated to u32, potentially leading to incorrect results on large divisors. Replace DIV_ROUND_CLOSEST_ULL with DIV64_U64_ROUND_CLOSEST which correctly

[PATCH 0/2] Fixes in snps-phy HDMI PLL algorithm

2025-06-18 Thread Ankit Nautiyal
Fixes/improvement in snps-phy HDMI PLL algorithm. Ankit Nautiyal (2): drm/i915/snps_hdmi_pll: Fix 64-bit divisor truncation by using div64_u64 drm/i915/snps_hdmi_pll: Use clamp() instead of max(min()) drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c | 8 1 file changed, 4 inse

[PATCH 2/2] drm/i915/snps_hdmi_pll: Use clamp() instead of max(min())

2025-06-18 Thread Ankit Nautiyal
The values of ana_cp_int, and ana_cp_prop are clamped between 1 and 127. Use the more intuitive and readable clamp() macro instead of using nested max(min(...)). Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c | 4 ++-- 1 file changed, 2 insertions(+), 2 dele

Re: your mail

2025-06-18 Thread Krzysztof Karas
Please disregard this email, I made a mistake while sending a bunch of patches. Sorry for the noise. --- Best Regards, Krzysztof

✓ i915.CI.BAT: success for drm/xe/display: read PCON capability only when present

2025-06-18 Thread Patchwork
== Series Details == Series: drm/xe/display: read PCON capability only when present URL : https://patchwork.freedesktop.org/series/150451/ State : success == Summary == CI Bug Log - changes from CI_DRM_16723 -> Patchwork_150451v1 Summary --

[no subject]

2025-06-18 Thread Krzysztof Karas
-cover-letter.patch 0001-drm-i915-Move-out-engine-related-macros-from-i915_dr.patch 0002-drm-i915-move-GEM_QUIRK_PIN_SWIZZLED_PAGES-to-i915_g.patch

Re: [PATCH v9 6/6] drm/amdgpu: Make use of drm_wedge_task_info

2025-06-18 Thread André Almeida
Hi Christian, Em 18/06/2025 04:29, Christian König escreveu: On 6/17/25 15:22, André Almeida wrote: Em 17/06/2025 10:07, Christian König escreveu: On 6/17/25 14:49, André Almeida wrote: To notify userspace about which task (if any) made the device get in a wedge state, make use of drm_wedge_t

[PATCH] drm/xe/display: read PCON capability only when present

2025-06-18 Thread Chaitanya Kumar Borah
Read PCON capabilities only when it is present. This will prevent spurious DCPD read failures. [drm] *ERROR* Failed to read DPCD register 0x92 Signed-off-by: Chaitanya Kumar Borah --- drivers/gpu/drm/i915/display/intel_dp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/d

✗ i915.CI.BAT: failure for drm/i915: Add drm_panic support (rev10)

2025-06-18 Thread Patchwork
== Series Details == Series: drm/i915: Add drm_panic support (rev10) URL : https://patchwork.freedesktop.org/series/141935/ State : failure == Summary == CI Bug Log - changes from CI_DRM_16723 -> Patchwork_141935v10 Summary --- **FAI

✓ i915.CI.BAT: success for drm/i915/panel: register drm_panel and call prepare/unprepare for eDP (rev2)

2025-06-18 Thread Patchwork
== Series Details == Series: drm/i915/panel: register drm_panel and call prepare/unprepare for eDP (rev2) URL : https://patchwork.freedesktop.org/series/150370/ State : success == Summary == CI Bug Log - changes from CI_DRM_16723 -> Patchwork_150370v2 =

Re: [PATCH v2] drm/i915/panel: register drm_panel and call prepare/unprepare for eDP

2025-06-18 Thread Jani Nikula
On Wed, 18 Jun 2025, Arun R Murthy wrote: > Allocate and register drm_panel to allow the panel_follower framework to > detect the eDP panel and pass drm_connector::kdev device to drm_panel > allocation for matching. > Call drm_panel_prepare/unprepare in ddi_enable for eDP to allow the > followers

Re: [PATCH] drm/i915: Add sanity check for relocation entry pointer in execbuffer

2025-06-18 Thread Sebastian Brzezinka
Hi Tvrtko, On Tue Jun 17, 2025 at 11:39 AM UTC, Tvrtko Ursulin wrote: > > On 16/06/2025 15:22, Sebastian Brzezinka wrote: >> This patch adds a defensive check in `eb_relocate_entry()` to validate >> the relocation entry pointer before dereferencing it. It ensures the >> pointer is non-NULL and acc

[PATCH v10 00/10] drm/i915: Add drm_panic support

2025-06-18 Thread Jocelyn Falempe
This adds drm_panic support for i915 and xe driver. I've tested it on the 4 intel laptops I have at my disposal. * Haswell with 128MB of eDRAM. * Comet Lake i7-10850H * Raptor Lake i7-1370P (with DPT, and Y-tiling). * Lunar Lake Ultra 5 228V (with DPT, and 4-tiling, and using the Xe driver.

[PATCH v10 08/10] drm/i915/display: Add drm_panic support for Y-tiling with DPT

2025-06-18 Thread Jocelyn Falempe
On Alder Lake and later, it's not possible to disable tiling when DPT is enabled. So this commit implements Y-Tiling support, to still be able to draw the panic screen. Signed-off-by: Jocelyn Falempe --- v8: * Pass the tiling function to intel_bo_panic_setup() .../gpu/drm/i915/display/intel_a

[PATCH v10 10/10] drm/i915/psr: Add intel_psr2_panic_force_full_update

2025-06-18 Thread Jocelyn Falempe
When the panic handler is called, configure the psr to send the full framebuffer to the monitor, otherwise the panic screen is only partially visible. Signed-off-by: Jocelyn Falempe --- v8: * Added in v8 .../gpu/drm/i915/display/intel_atomic_plane.c | 7 +++ drivers/gpu/drm/i915/display/

[PATCH v10 09/10] drm/i915/display: Add drm_panic support for 4-tiling with DPT

2025-06-18 Thread Jocelyn Falempe
On Alder Lake and later, it's not possible to disable tiling when DPT is enabled. So this commit implements 4-Tiling support, to still be able to draw the panic screen. Signed-off-by: Jocelyn Falempe --- .../gpu/drm/i915/display/intel_atomic_plane.c | 20 +++ 1 file changed, 20

[PATCH v10 06/10] drm/i915: Add intel_bo_panic_setup and intel_bo_panic_finish

2025-06-18 Thread Jocelyn Falempe
Implement both functions for i915 and xe, they prepare the work for drm_panic support. They both use kmap_try_from_panic(), and map one page at a time, to write the panic screen on the framebuffer. Signed-off-by: Jocelyn Falempe --- v5: * Use iosys_map for intel_bo_panic_map(). v7: * Return i

[PATCH v10 07/10] drm/i915/display: Add drm_panic support

2025-06-18 Thread Jocelyn Falempe
This adds drm_panic support for a wide range of Intel GPU. I've tested it only on 4 laptops, Haswell (with 128MB of eDRAM), Comet Lake, Raptor Lake, and Lunar Lake. For hardware using DPT, it's not possible to disable tiling, as you will need to reconfigure the way the GPU is accessing the framebuf

[PATCH v10 04/10] drm/i915/display: Add a disable_tiling() for skl planes

2025-06-18 Thread Jocelyn Falempe
drm_panic draws in linear framebuffer, so it's easier to re-use the current framebuffer, and disable tiling in the panic handler, to show the panic screen. This assumes that the alignment restriction is always smaller in linear than in tiled. It also assumes that the linear framebuffer size is alw

[PATCH v10 05/10] drm/ttm: Add ttm_bo_kmap_try_from_panic()

2025-06-18 Thread Jocelyn Falempe
If the ttm bo is backed by pages, then it's possible to safely kmap one page at a time, using kmap_try_from_panic(). Unfortunately there is no way to do the same with ioremap, so it only supports the kmap case. This is needed for proper drm_panic support with xe driver. Signed-off-by: Jocelyn Fale

[PATCH v10 03/10] drm/i915/display/i9xx: Add a disable_tiling() for i9xx planes

2025-06-18 Thread Jocelyn Falempe
drm_panic draws in linear framebuffer, so it's easier to re-use the current framebuffer, and disable tiling in the panic handler, to show the panic screen. This assumes that the alignment restriction is always smaller in linear than in tiled. It also assumes that the linear framebuffer size is alwa

[PATCH v10 02/10] drm/i915/fbdev: Add intel_fbdev_get_map()

2025-06-18 Thread Jocelyn Falempe
The vaddr of the fbdev framebuffer is private to the struct intel_fbdev, so this function is needed to access it for drm_panic. Also the struct i915_vma is different between i915 and xe, so it requires a few functions to access fbdev->vma->iomap. Signed-off-by: Jocelyn Falempe --- v2: * Add int

[PATCH v10 01/10] drm/panic: Add a private field to struct drm_scanout_buffer

2025-06-18 Thread Jocelyn Falempe
This allows driver to set some private data in get_scanout_buffer(), and re-use them in set_pixel() callback. Signed-off-by: Jocelyn Falempe --- v10: * Added in v10, to avoid static variables include/drm/drm_panic.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/drm/drm_pan

[PATCH v2] drm/i915/panel: register drm_panel and call prepare/unprepare for eDP

2025-06-18 Thread Arun R Murthy
Allocate and register drm_panel to allow the panel_follower framework to detect the eDP panel and pass drm_connector::kdev device to drm_panel allocation for matching. Call drm_panel_prepare/unprepare in ddi_enable for eDP to allow the followers to get notified of the panel power state changes. v2

Re: [PATCH v9 6/6] drm/amdgpu: Make use of drm_wedge_task_info

2025-06-18 Thread Christian König
On 6/17/25 15:22, André Almeida wrote: > Em 17/06/2025 10:07, Christian König escreveu: >> On 6/17/25 14:49, André Almeida wrote: >>> To notify userspace about which task (if any) made the device get in a >>> wedge state, make use of drm_wedge_task_info parameter, filling it with >>> the task PID a