[PATCH RESEND v12 3/5] drm/i915/display: Acomodate format check in intel_plane_can_async_flip()

2025-04-03 Thread Arun R Murthy
The function intel_plane_can_async_flip() checks for async supported modifier, add format support check also in the same function. Note: on ADL the surface base addr is required to be 16k aligned and if not might generate DMAR and GGTT faults leading to glitches. This patch changes the 16k alignme

[PULL] drm-misc-next-fixes

2025-04-03 Thread Thomas Zimmermann
Hi Dave, Sima, this is the final PR for this release cycle's drm-misc-next-fixes. Best regards Thomas drm-misc-next-fixes-2025-04-04: Short summary of fixes pull: bridge: - tda998x: Select CONFIG_DRM_KMS_HELPER The following changes since commit ee20c69c789b6cb2179a535cf440d72b98f4a134: drm:

Re: [PATCH v2 09/30] panel/ilitek-ili9806e: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Michael Walle
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa Reviewed-by: Michael Walle -michael

Re: [PATCH v2 7/7] drm/xe/pt: unify xe_pt_svm_pre_commit with userptr

2025-04-03 Thread Matthew Brost
On Fri, Mar 28, 2025 at 06:10:36PM +, Matthew Auld wrote: > We now use the same notifier lock for SVM and userptr, with that we can > combine xe_pt_userptr_pre_commit and xe_pt_svm_pre_commit. > > Suggested-by: Matthew Brost > Signed-off-by: Matthew Auld > Cc: Himal Prasad Ghimiray > Cc: Th

Re: [PATCH v2 0/4] kbuild: resurrect generic header check facility

2025-04-03 Thread Masahiro Yamada
On Wed, Apr 2, 2025 at 9:47 PM Jani Nikula wrote: > > Another go at hiding the turds. > > In v1 [1] I hid the build artifacts under .hdrtest subdirectories, one in each > $(obj) directory, but the feedback from Linus [2] was to have one top level > directory for this. > > This is not possible with

[PATCH RESEND v12 1/5] drm/plane: Add new plane property IN_FORMATS_ASYNC

2025-04-03 Thread Arun R Murthy
There exists a property IN_FORMATS which exposes the plane supported modifiers/formats to the user. In some platforms when asynchronous flip are used all of modifiers/formats mentioned in IN_FORMATS are not supported. This patch adds a new plane property IN_FORMATS_ASYNC to expose the async flip su

[PATCH RESEND v12 4/5] drm/i915/display: Add i915 hook for format_mod_supported_async

2025-04-03 Thread Arun R Murthy
Hook up the newly added plane function pointer format_mod_supported_async to populate the modifiers/formats supported by asynchronous flips. v5: Correct the if condition for modifier support check (Chaitanya) v6: Replace uint32_t/uint64_t with u32/u64 (Jani) v7: Move plannar check from intel_async

[PATCH RESEND v12 5/5] drm/i915/display: Indexed 8bit format does not support async flip

2025-04-03 Thread Arun R Murthy
Async flip is not supported with Indexed 8 bit format as it depends on LUT and can't be updated atomically. Note: This may change the alignment for C8 framebuffers on some platforms. Signed-off-by: Arun R Murthy Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_atomic_plane.c |

[PATCH RESEND v12 2/5] drm/plane: modify create_in_formats to acommodate async

2025-04-03 Thread Arun R Murthy
create_in_formats creates the list of supported format/modifiers for synchronous flips, modify the same function so as to take the format_mod_supported as argument and create list of format/modifier for async as well. v5: create_in_formats can return -ve value in failure case, correct the if condi

[PATCH v3 41/54] drm-dyndbg: add DRM_CLASSMAP_USE to simpledrm

2025-04-03 Thread Jim Cromie
tiny/simpledrm has 3 DRM_UT_DRIVER debugs, make them controllable when CONFIG_DRM_USE_DYNAMIC_DEBUG=y by telling dyndbg that the module has class'd debugs. Signed-off-by: Jim Cromie --- drivers/gpu/drm/tiny/simpledrm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/tiny/si

[PATCH AUTOSEL 6.1 04/20] drm: panel-orientation-quirks: Add quirks for AYA NEO Flip DS and KB

2025-04-03 Thread Sasha Levin
From: Andrew Wyatt [ Upstream commit 529741c331da1fbf54f86c6ec3a4558b9b0b16dc ] The AYA NEO Flip DS and KB both use a 1080x1920 portrait LCD panel. The Flip DS additionally uses a 640x960 portrait LCD panel as a second display. Add DMI matches to correctly rotate these panels. Signed-off-by:

[PATCH AUTOSEL 6.6 16/23] drm/mediatek: mtk_dpi: Explicitly manage TVD clock in power on/off

2025-04-03 Thread Sasha Levin
From: AngeloGioacchino Del Regno [ Upstream commit 473c33f5ce651365468503c76f33158aaa1c7dd2 ] In preparation for adding support for MT8195's HDMI reserved DPI, add calls to clk_prepare_enable() / clk_disable_unprepare() for the TVD clock: in this particular case, the aforementioned clock is not

[PATCH AUTOSEL 6.12 29/33] fbdev: omapfb: Add 'plane' value check

2025-04-03 Thread Sasha Levin
From: Leonid Arapov [ Upstream commit 3e411827f31db7f938a30a3c7a7599839401ec30 ] Function dispc_ovl_setup is not intended to work with the value OMAP_DSS_WB of the enum parameter plane. The value of this parameter is initialized in dss_init_overlays and in the current state of the code it canno

[PATCH 43/46] panel/s6e88a0-ams452ef01: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams452ef01.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams452ef

[PATCH 07/46] panel/ronbo-rb070d30: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-ronbo-rb070d30.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-ronbo-rb070d30.c b/drivers/gpu/drm/

[PATCH 19/46] panel/samsung-s6e63j0x03: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c b/drivers/g

[PATCH AUTOSEL 6.6 02/23] drm/amd/display: Update Cursor request mode to the beginning prefetch always

2025-04-03 Thread Sasha Levin
From: Zhikai Zhai [ Upstream commit 4a4077b4b63a8404efd6d37fc2926f03fb25bace ] [Why] The double buffer cursor registers is updated by the cursor vupdate event. There is a gap between vupdate and cursor data fetch if cursor fetch data reletive to cursor position. Cursor corruption will happen if

[PATCH AUTOSEL 6.14 39/44] fbdev: omapfb: Add 'plane' value check

2025-04-03 Thread Sasha Levin
From: Leonid Arapov [ Upstream commit 3e411827f31db7f938a30a3c7a7599839401ec30 ] Function dispc_ovl_setup is not intended to work with the value OMAP_DSS_WB of the enum parameter plane. The value of this parameter is initialized in dss_init_overlays and in the current state of the code it canno

Re: [PATCH v2 1/4] drm/xe: Add devcoredump chunking

2025-04-03 Thread John Harrison
On 4/3/2025 3:32 PM, Matthew Brost wrote: On Thu, Apr 03, 2025 at 02:39:16PM -0700, John Harrison wrote: On 4/3/2025 1:27 PM, Matthew Brost wrote: Chunk devcoredump into 1.5G pieces to avoid hitting the kvmalloc limit of 2G. Simple algorithm reads 1.5G at time in xe_devcoredump_read callback as

[PATCH 04/46] panel/raydium-rm68200: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-raydium-rm68200.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-raydium-rm68200.c b/drivers/gpu/dr

Re: [PATCH v2 1/4] drm/xe: Add devcoredump chunking

2025-04-03 Thread Matthew Brost
On Thu, Apr 03, 2025 at 03:41:16PM -0700, John Harrison wrote: > On 4/3/2025 3:32 PM, Matthew Brost wrote: > > On Thu, Apr 03, 2025 at 02:39:16PM -0700, John Harrison wrote: > > > On 4/3/2025 1:27 PM, Matthew Brost wrote: > > > > Chunk devcoredump into 1.5G pieces to avoid hitting the kvmalloc limi

Re: [PATCH v2 1/4] drm/xe: Add devcoredump chunking

2025-04-03 Thread John Harrison
On 4/3/2025 1:27 PM, Matthew Brost wrote: Chunk devcoredump into 1.5G pieces to avoid hitting the kvmalloc limit of 2G. Simple algorithm reads 1.5G at time in xe_devcoredump_read callback as needed. Signed-off-by: Matthew Brost --- drivers/gpu/drm/xe/xe_devcoredump.c | 59 ++

[PATCH AUTOSEL 6.14 13/44] drm: panel-orientation-quirks: Add quirks for AYA NEO Flip DS and KB

2025-04-03 Thread Sasha Levin
From: Andrew Wyatt [ Upstream commit 529741c331da1fbf54f86c6ec3a4558b9b0b16dc ] The AYA NEO Flip DS and KB both use a 1080x1920 portrait LCD panel. The Flip DS additionally uses a 640x960 portrait LCD panel as a second display. Add DMI matches to correctly rotate these panels. Signed-off-by:

[PATCH AUTOSEL 6.14 32/44] drm/amd/display: Prevent VStartup Overflow

2025-04-03 Thread Sasha Levin
From: Ryan Seto [ Upstream commit 29c1c20496a7a9bafe2bc2f833d69aa52e0f2c2d ] [Why] For some VR headsets with large blanks, it's possible to overflow the OTG_VSTARTUP_PARAM:VSTARTUP_START register. This can lead to incorrect DML calculations and underflow downstream. [How] Min the calcualted max

[PATCH AUTOSEL 6.6 01/23] drm: allow encoder mode_set even when connectors change for crtc

2025-04-03 Thread Sasha Levin
From: Abhinav Kumar [ Upstream commit 7e182cb4f5567f53417b762ec0d679f0b6f0039d ] In certain use-cases, a CRTC could switch between two encoders and because the mode being programmed on the CRTC remains the same during this switch, the CRTC's mode_changed remains false. In such cases, the encoder

[PATCH AUTOSEL 6.1 14/20] drm/mediatek: mtk_dpi: Explicitly manage TVD clock in power on/off

2025-04-03 Thread Sasha Levin
From: AngeloGioacchino Del Regno [ Upstream commit 473c33f5ce651365468503c76f33158aaa1c7dd2 ] In preparation for adding support for MT8195's HDMI reserved DPI, add calls to clk_prepare_enable() / clk_disable_unprepare() for the TVD clock: in this particular case, the aforementioned clock is not

[PATCH 44/46] panel/nec-nl8048hl11: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-nec-nl8048hl11.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-nec-nl8048hl11.c b/drivers/gpu/drm/p

[PATCH AUTOSEL 6.6 11/23] drm/amdkfd: clamp queue size to minimum

2025-04-03 Thread Sasha Levin
From: David Yat Sin [ Upstream commit e90711946b53590371ecce32e8fcc381a99d6333 ] If queue size is less than minimum, clamp it to minimum to prevent underflow when writing queue mqd. Signed-off-by: David Yat Sin Reviewed-by: Jay Cornwall Reviewed-by: Harish Kasiviswanathan Signed-off-by: Alex

[PATCH AUTOSEL 6.13 32/37] drm/amdgpu: grab an additional reference on the gang fence v2

2025-04-03 Thread Sasha Levin
From: Christian König [ Upstream commit 0d9a95099dcb05b5f4719c830d15bf4fdcad0dc2 ] We keep the gang submission fence around in adev, make sure that it stays alive. v2: fix memory leak on retry Signed-off-by: Christian König Acked-by: Srinivasan Shanmugam Signed-off-by: Alex Deucher Signed-o

[PATCH AUTOSEL 6.12 28/33] drm/amdgpu: grab an additional reference on the gang fence v2

2025-04-03 Thread Sasha Levin
From: Christian König [ Upstream commit 0d9a95099dcb05b5f4719c830d15bf4fdcad0dc2 ] We keep the gang submission fence around in adev, make sure that it stays alive. v2: fix memory leak on retry Signed-off-by: Christian König Acked-by: Srinivasan Shanmugam Signed-off-by: Alex Deucher Signed-o

Re: drm/i915: Add DSC/FEC support info to debugfs

2025-04-03 Thread Imre Deak
On Fri, Apr 04, 2025 at 12:34:48AM +0530, shantam.yashas...@intel.com wrote: > From: Shantam Yashashvi > > Signed-off-by: Shantam Yashashvi > --- > drivers/gpu/drm/i915/display/intel_display_debugfs.c | 11 +++ > 1 file changed, 11 insertions(+) > > diff --git a/drivers/gpu/drm/i915/di

Re: [PATCH v2 1/4] drm/xe: Add devcoredump chunking

2025-04-03 Thread Matthew Brost
On Thu, Apr 03, 2025 at 02:39:16PM -0700, John Harrison wrote: > On 4/3/2025 1:27 PM, Matthew Brost wrote: > > Chunk devcoredump into 1.5G pieces to avoid hitting the kvmalloc limit > > of 2G. Simple algorithm reads 1.5G at time in xe_devcoredump_read > > callback as needed. > > > > Signed-off-by:

[PATCH v2 06/30] panel/ilitek-ili9322: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- v2: none. --- drivers/gpu/drm/panel/panel-ilitek-ili9322.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9322.c b/dri

[PATCH v2 17/30] panel/lg-lg4573: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- v2: none. --- drivers/gpu/drm/panel/panel-lg-lg4573.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-lg-lg4573.c b/drivers/gpu/

Re: [PATCH] accel/ivpu: Update FW Boot API to version 3.28.3

2025-04-03 Thread Lizhi Hou
On 4/1/25 08:58, Maciej Falkowski wrote: From: Karol Wachowski This commit bumps FW Boot API to 3.28.3. Bump FW Boot API ... Please see: https://www.kernel.org/doc/html/v6.14/process/submitting-patches.html Lizhi Use new preemption buffer size fields from FW header added to firmware

[PATCH AUTOSEL 6.14 20/44] drm/amd/display: stop DML2 from removing pipes based on planes

2025-04-03 Thread Sasha Levin
From: Mike Katsnelson [ Upstream commit 8adeff83a3b07fa6d0958ed51e1b38ba7469e448 ] [Why] Transitioning from low to high resolutions at high refresh rates caused grey corruption. During the transition state, there is a period where plane size is based on low resultion state and ODM slices are b

[PATCH AUTOSEL 5.15 01/12] drm: allow encoder mode_set even when connectors change for crtc

2025-04-03 Thread Sasha Levin
From: Abhinav Kumar [ Upstream commit 7e182cb4f5567f53417b762ec0d679f0b6f0039d ] In certain use-cases, a CRTC could switch between two encoders and because the mode being programmed on the CRTC remains the same during this switch, the CRTC's mode_changed remains false. In such cases, the encoder

[PATCH AUTOSEL 6.6 13/23] drm/amdkfd: Fix pqm_destroy_queue race with GPU reset

2025-04-03 Thread Sasha Levin
From: Philip Yang [ Upstream commit 7919b4cad5545ed93778f11881ceee72e4dbed66 ] If GPU in reset, destroy_queue return -EIO, pqm_destroy_queue should delete the queue from process_queue_list and free the resource. Signed-off-by: Philip Yang Reviewed-by: Felix Kuehling Signed-off-by: Alex Deuche

[PATCH v3 4/4] perf tests: Add a DRM PMU test

2025-04-03 Thread Ian Rogers
The test opens any DRM devices so that the shell has fdinfo files containing the DRM data. The test then uses perf stat to make sure the events can be read. Signed-off-by: Ian Rogers --- tools/perf/tests/shell/drm_pmu.sh | 78 +++ 1 file changed, 78 insertions(+) cre

[PATCH AUTOSEL 6.12 13/33] drm/amd/display: stop DML2 from removing pipes based on planes

2025-04-03 Thread Sasha Levin
From: Mike Katsnelson [ Upstream commit 8adeff83a3b07fa6d0958ed51e1b38ba7469e448 ] [Why] Transitioning from low to high resolutions at high refresh rates caused grey corruption. During the transition state, there is a period where plane size is based on low resultion state and ODM slices are b

[PATCH AUTOSEL 6.14 19/44] drm/amd/display: Update FIXED_VS Link Rate Toggle Workaround Usage

2025-04-03 Thread Sasha Levin
From: Michael Strauss [ Upstream commit 7c6518c1c73199a230b5fc55ddfed3e5b9dc3290 ] [WHY] Previously the 128b/132b LTTPR support DPCD field was used to decide if FIXED_VS training sequence required a rate toggle before initiating LT. When running DP2.1 4.9.x.x compliance tests, emulated LTTPRs c

[PATCH AUTOSEL 6.12 15/33] drm/amdkfd: clamp queue size to minimum

2025-04-03 Thread Sasha Levin
From: David Yat Sin [ Upstream commit e90711946b53590371ecce32e8fcc381a99d6333 ] If queue size is less than minimum, clamp it to minimum to prevent underflow when writing queue mqd. Signed-off-by: David Yat Sin Reviewed-by: Jay Cornwall Reviewed-by: Harish Kasiviswanathan Signed-off-by: Alex

[PATCH v3 2/4] perf parse-events: Avoid scanning PMUs that can't match a wildcard

2025-04-03 Thread Ian Rogers
Add perf_pmus__scan_matching_wildcard that only reads sysfs for pmus that could wildcard match. For example, if searching for the event 'inst_retired.any/period=100/' first 'inst_retired.any' will try to be directly looked up as a PMU, then 'inst_retired.any' will try to be wildcard matched aga

[PATCH AUTOSEL 6.6 20/23] fbdev: omapfb: Add 'plane' value check

2025-04-03 Thread Sasha Levin
From: Leonid Arapov [ Upstream commit 3e411827f31db7f938a30a3c7a7599839401ec30 ] Function dispc_ovl_setup is not intended to work with the value OMAP_DSS_WB of the enum parameter plane. The value of this parameter is initialized in dss_init_overlays and in the current state of the code it canno

[PATCH AUTOSEL 6.13 27/37] drm/amd/display: Prevent VStartup Overflow

2025-04-03 Thread Sasha Levin
From: Ryan Seto [ Upstream commit 29c1c20496a7a9bafe2bc2f833d69aa52e0f2c2d ] [Why] For some VR headsets with large blanks, it's possible to overflow the OTG_VSTARTUP_PARAM:VSTARTUP_START register. This can lead to incorrect DML calculations and underflow downstream. [How] Min the calcualted max

[PATCH 46/46] panel/lg-lb035q02: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-lg-lb035q02.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-lg-lb035q02.c b/drivers/gpu/drm/panel/p

[PATCH 21/46] panel/samsung-s6e8aa0: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c b/drivers/gpu/drm

RE: [PATCH v2 1/4] drm/xe: Add devcoredump chunking

2025-04-03 Thread Cavitt, Jonathan
-Original Message- From: Intel-xe On Behalf Of Matthew Brost Sent: Thursday, April 3, 2025 1:27 PM To: intel...@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Subject: [PATCH v2 1/4] drm/xe: Add devcoredump chunking > > Chunk devcoredump into 1.5G pieces to avoid hitting the k

RE: [PATCH v2 4/4] drm/xe: Abort printing coredump in VM printer output if full

2025-04-03 Thread Cavitt, Jonathan
-Original Message- From: Intel-xe On Behalf Of Matthew Brost Sent: Thursday, April 3, 2025 1:27 PM To: intel...@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Subject: [PATCH v2 4/4] drm/xe: Abort printing coredump in VM printer output if full > > Abort printing coredump in V

RE: [PATCH v2 2/4] drm/xe: Update xe_ttm_access_memory to use GPU for non-visible access

2025-04-03 Thread Cavitt, Jonathan
-Original Message- From: Intel-xe On Behalf Of Matthew Brost Sent: Thursday, April 3, 2025 1:27 PM To: intel...@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Subject: [PATCH v2 2/4] drm/xe: Update xe_ttm_access_memory to use GPU for non-visible access > > Add migrate layer f

RE: [PATCH v2 3/4] drm/print: Add drm_printer_is_full

2025-04-03 Thread Cavitt, Jonathan
-Original Message- From: Intel-xe On Behalf Of Matthew Brost Sent: Thursday, April 3, 2025 1:27 PM To: intel...@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Subject: [PATCH v2 3/4] drm/print: Add drm_printer_is_full > > Add drm_printer_is_full which indicates if a drm printe

[PATCH 03/46] panel/raydium-rm67200: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-raydium-rm67200.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-raydium-rm67200.c b/drivers/gpu/dr

[PATCH 45/46] panel/panel-lvds: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-lvds.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-lvds.c b/drivers/gpu/drm/panel/panel-lvds.c

[PATCH 42/46] panel/xinpeng-xpp055c272: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-xinpeng-xpp055c272.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-xinpeng-xpp055c272.c b/drivers/g

[PATCH 41/46] panel/widechips-ws2401: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-widechips-ws2401.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-widechips-ws2401.c b/drivers/gpu/

[PATCH 38/46] panel/visionox-rm69299: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-visionox-rm69299.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-visionox-rm69299.c b/drivers/gpu/d

[PATCH 39/46] panel/visionox-rm692e5.c: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-visionox-rm692e5.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-visionox-rm692e5.c b/drivers/gpu/d

[PATCH 37/46] panel/visionox-r66451: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-visionox-r66451.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-visionox-r66451.c b/drivers/gpu/drm/p

[PATCH 36/46] panel/tpo-tpg110: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-tpo-tpg110.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-tpo-tpg110.c b/drivers/gpu/drm/panel/pa

[PATCH 35/46] panel/tpo-td043mtea1: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-tpo-td043mtea1.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-tpo-td043mtea1.c b/drivers/gpu/drm/p

[PATCH 34/46] panel/tpo-td028ttec1: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-tpo-td028ttec1.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-tpo-td028ttec1.c b/drivers/gpu/drm/

[PATCH 29/46] panel/sony-acx565akm: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-sony-acx565akm.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-sony-acx565akm.c b/drivers/gpu/drm/p

[PATCH 33/46] panel/synaptics-r63353: allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-synaptics-r63353.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-synaptics-r63353.c b/drivers/gpu/

[PATCH v3 3/4] tests/intel/xe_vm: Add DRM_IOCTL_XE_VM_GET_PROPERTY validation tests

2025-04-03 Thread Jonathan Cavitt
Add tests to xe_vm that exercise the new DRM_IOCTL_XE_VM_GET_PROPERTY ioctl. Specifically, add input validation tests that exercise the return values for improperly formatted ioctl structures. Signed-off-by: Jonathan Cavitt --- tests/intel/xe_vm.c | 82 ++

[PATCH 32/46] panel/panel-summit: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-summit.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-summit.c b/drivers/gpu/drm/panel/panel-summi

[PATCH 31/46] panel/truly-nt35521: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-sony-tulip-truly-nt35521.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-sony-tulip-truly-nt35521.c

[PATCH 28/46] panel/sitronix-st7789v: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-sitronix-st7789v.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7789v.c b/drivers/gpu/d

[PATCH 26/46] panel/sitronix-st7701: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-sitronix-st7701.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7701.c b/drivers/gpu/drm/pa

[PATCH 25/46] panel/sharp-ls060t1sx01: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-sharp-ls060t1sx01.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-sharp-ls060t1sx01.c b/drivers/gp

[PATCH 24/46] panel/sharp-ls037v7dw01: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c b/drivers/gpu

[PATCH 22/46] panel/samsung-sofef00: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-samsung-sofef00.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-samsung-sofef00.c b/drivers/gpu/dr

Re: [PATCH v2 7/7] drm/xe/pt: unify xe_pt_svm_pre_commit with userptr

2025-04-03 Thread Matthew Brost
On Fri, Mar 28, 2025 at 06:10:36PM +, Matthew Auld wrote: > We now use the same notifier lock for SVM and userptr, with that we can > combine xe_pt_userptr_pre_commit and xe_pt_svm_pre_commit. > > Suggested-by: Matthew Brost > Signed-off-by: Matthew Auld > Cc: Himal Prasad Ghimiray > Cc: Th

[PATCH 20/46] panel/s6e88a0-ams427ap24: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams427ap24.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams427ap2

[PATCH 18/46] panel/samsung-s6e3ha8: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-samsung-s6e3ha8.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e3ha8.c b/drivers/gpu/drm

[PATCH 08/46] panel/samsung-ams581vf01: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-samsung-ams581vf01.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-samsung-ams581vf01.c b/drivers/g

[PATCH 17/46] panel/samsung-s6e3ha2: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c b/drivers/gpu/drm

[PATCH 15/46] panel/samsung-s6d7aa0: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c b/drivers/gpu/drm

[PATCH 11/46] panel/samsung-db7430: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-samsung-db7430.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-samsung-db7430.c b/drivers/gpu/drm/

[PATCH 12/46] panel/samsung-ld9040: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-samsung-ld9040.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-samsung-ld9040.c b/drivers/gpu/drm/

[PATCH 10/46] panel/samsung-atna33xc20: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-samsung-atna33xc20.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-samsung-atna33xc20.c b/drivers/

[PATCH 09/46] panel/samsung-ams639rq08: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-samsung-ams639rq08.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-samsung-ams639rq08.c b/drivers/g

[PATCH 01/46] panel/orisetech-otm8009a: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Anusha Srivatsa
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c b/drivers/

[PATCH 00/46] drm/panel: Use refcounted allocation in place of devm_kzalloc() - Part3

2025-04-03 Thread Anusha Srivatsa
Start converting drivers to use the API - devm_drm_panel_alloc(). Final set of drivers. Part 1 of the conversion : https://patchwork.freedesktop.org/series/147082/ Part 2 of the conversion : https://patchwork.freedesktop.org/series/147157/ Signed-off-by: Anusha Srivatsa --- Anusha Srivatsa (46)

[PATCH][next] drm/nouveau: fifo: Avoid -Wflex-array-member-not-at-end warning

2025-04-03 Thread Gustavo A. R. Silva
-Wflex-array-member-not-at-end was introduced in GCC-14, and we are getting ready to enable it, globally. Use the `DEFINE_RAW_FLEX()` helper for an on-stack definition of a flexible structure where the size of the flexible-array member is known at compile-time, and refactor the rest of the code, a

[PATCH RFC 4/9] drm/amd/pm: Avoid open-coded use of ratelimit_state structure's internals

2025-04-03 Thread Paul E. McKenney
The amdgpu_set_thermal_throttling_logging() function directly accesses the ratelimit_state structure's ->missed field, which work, but which also makes it more difficult to change this field. Therefore, make use of the ratelimit_state_reset_miss() function instead of directly accessing the ->misse

[PATCH RFC 3/9] drm/i915: Avoid open-coded use of ratelimit_state structure's ->missed field

2025-04-03 Thread Paul E. McKenney
The i915_oa_stream_destroy() function directly accesses the ratelimit_state structure's ->missed field, which work, but which also makes it more difficult to change this field. Therefore, make use of the ratelimit_state_get_miss() function instead of directly accessing the ->missed field. Signed-

Re: [PATCH v2 3/7] drm/gpusvm: pull out drm_gpusvm_pages substructure

2025-04-03 Thread Matthew Brost
On Fri, Mar 28, 2025 at 06:10:32PM +, Matthew Auld wrote: > Pull the pages stuff from the svm range into its own substructure, with > the idea of having the main pages related routines, like get_pages(), > unmap_pages() and free_pages() all operating on some lower level > structures, which can

Re: [PATCH v11 0/5] Expose modifiers/formats supported by async flips

2025-04-03 Thread Xaver Hugl
Am Fr., 28. März 2025 um 16:56 Uhr schrieb Arun R Murthy : > > All of the formats/modifiers supported by the plane during synchronous > flips are nor supported by asynchronous flips. The formats/modifiers > exposed to user by IN_FORMATS exposes all formats/modifiers supported by > plane and this li

Re: [PATCH] accel/ivpu: Flush pending jobs of device's workqueues

2025-04-03 Thread Lizhi Hou
On 4/1/25 08:57, Maciej Falkowski wrote: Use flush_work() instead of cancel_work_sync() for driver workqueues to guarantee that remaining pending work will be handled. Fixes: bc3e5f48b7ee ("accel/ivpu: Use workqueue for IRQ handling") Signed-off-by: Maciej Falkowski --- drivers/accel/ivpu/i

[PATCH v2 3/4] drm/print: Add drm_printer_is_full

2025-04-03 Thread Matthew Brost
Add drm_printer_is_full which indicates if a drm printer's output is full. Useful to short circuit coredump printing once printer's output is full. Signed-off-by: Matthew Brost --- include/drm/drm_print.h | 17 + 1 file changed, 17 insertions(+) diff --git a/include/drm/drm_prin

[PATCH v2 1/4] drm/xe: Add devcoredump chunking

2025-04-03 Thread Matthew Brost
Chunk devcoredump into 1.5G pieces to avoid hitting the kvmalloc limit of 2G. Simple algorithm reads 1.5G at time in xe_devcoredump_read callback as needed. Signed-off-by: Matthew Brost --- drivers/gpu/drm/xe/xe_devcoredump.c | 59 ++- drivers/gpu/drm/xe/xe_devcoredump_

[PATCH v2 2/4] drm/xe: Update xe_ttm_access_memory to use GPU for non-visible access

2025-04-03 Thread Matthew Brost
Add migrate layer functions to access VRAM and update xe_ttm_access_memory to use for non-visible access and large (more than 16k) BO access. 8G devcoreump on BMG observed 3 minute CPU copy time vs. 3s GPU copy time. v4: - Fix non-page aligned accesses - Add support for small / unaligned access

[PATCH v3 1/4] perf parse-events: Avoid scanning PMUs that can't contain events

2025-04-03 Thread Ian Rogers
Add perf_pmus__scan_for_event that only reads sysfs for pmus that could contain a given event. Signed-off-by: Ian Rogers --- tools/perf/util/parse-events.c | 4 ++-- tools/perf/util/pmus.c | 35 ++ tools/perf/util/pmus.h | 1 + 3 files changed, 3

[PATCH AUTOSEL 6.12 23/33] drm/amdgpu: handle amdgpu_cgs_create_device() errors in amd_powerplay_create()

2025-04-03 Thread Sasha Levin
From: Wentao Liang [ Upstream commit 1435e895d4fc967d64e9f5bf81e992ac32f5ac76 ] Add error handling to propagate amdgpu_cgs_create_device() failures to the caller. When amdgpu_cgs_create_device() fails, release hwmgr and return -ENOMEM to prevent null pointer dereference. [v1]->[v2]: Change erro

[PATCH AUTOSEL 6.6 09/23] drm/bridge: panel: forbid initializing a panel with unknown connector type

2025-04-03 Thread Sasha Levin
From: Luca Ceresoli [ Upstream commit b296955b3a740ecc8b3b08e34fd64f1ceabb8fb4 ] Having an DRM_MODE_CONNECTOR_Unknown connector type is considered bad, and drm_panel_bridge_add_typed() and derivatives are deprecated for this. drm_panel_init() won't prevent initializing a panel with a DRM_MODE_C

[PATCH AUTOSEL 6.12 19/33] drm/xe/xelp: Move Wa_16011163337 from tunings to workarounds

2025-04-03 Thread Sasha Levin
From: Tvrtko Ursulin [ Upstream commit d9b5d83c5a4d720af6ddbefe2825c78f0325a3fd ] Workaround database specifies 16011163337 as a workaround so lets move it there. Signed-off-by: Tvrtko Ursulin Cc: Lucas De Marchi Cc: Matt Roper Cc: Gustavo Sousa Reviewed-by: Lucas De Marchi Link: https://

[PATCH AUTOSEL 5.15 03/12] drm: panel-orientation-quirks: Add support for AYANEO 2S

2025-04-03 Thread Sasha Levin
From: Andrew Wyatt [ Upstream commit eb8f1e3e8ee10cff591d4a47437dfd34d850d454 ] AYANEO 2S uses the same panel and orientation as the AYANEO 2. Update the AYANEO 2 DMI match to also match AYANEO 2S. Signed-off-by: Andrew Wyatt Signed-off-by: John Edwards Tested-by: John Edwards Reviewed-by:

[PATCH AUTOSEL 6.14 01/44] drm: allow encoder mode_set even when connectors change for crtc

2025-04-03 Thread Sasha Levin
From: Abhinav Kumar [ Upstream commit 7e182cb4f5567f53417b762ec0d679f0b6f0039d ] In certain use-cases, a CRTC could switch between two encoders and because the mode being programmed on the CRTC remains the same during this switch, the CRTC's mode_changed remains false. In such cases, the encoder

[PATCH AUTOSEL 6.14 07/44] drm/xe/vf: Don't try to trigger a full GT reset if VF

2025-04-03 Thread Sasha Levin
From: Michal Wajdeczko [ Upstream commit 45924d306315070d24608fcd89aea85516d6 ] VFs don't have access to the GDRST(0x941c) register that driver uses to reset a GT. Attempt to trigger a reset using debugfs: $ cat /sys/kernel/debug/dri/:00:02.1/gt0/force_reset or due to a hang condition

[PATCH AUTOSEL 5.10 1/8] drm: allow encoder mode_set even when connectors change for crtc

2025-04-03 Thread Sasha Levin
From: Abhinav Kumar [ Upstream commit 7e182cb4f5567f53417b762ec0d679f0b6f0039d ] In certain use-cases, a CRTC could switch between two encoders and because the mode being programmed on the CRTC remains the same during this switch, the CRTC's mode_changed remains false. In such cases, the encoder

  1   2   3   >