Re: [PATCH v3 1/4] drm: Define user readable error codes for atomic ioctl

2025-08-22 Thread Murthy, Arun R
On 22-08-2025 21:44, Xaver Hugl wrote: +#define DRM_MODE_ATOMIC_FAILURE_REASON \ + FAILURE_REASON(DRM_MODE_ATOMIC_CAP_NOT_ENABLED, "DRM_ATOMIC capability not enabled") \ + FAILURE_REASON(DRM_MODE_ATOMIC_INVALID_FLAG, "invalid flag") \ + FAILURE_REASON(DRM_MODE_ATOMIC_PAGE_FLI

Re: [PATCH v3 1/4] drm: Define user readable error codes for atomic ioctl

2025-08-22 Thread Murthy, Arun R
On 22-08-2025 16:07, Jani Nikula wrote: On Fri, 22 Aug 2025, Arun R Murthy wrote: There can be multiple reasons for a failure in atomic_ioctl. Most often in these error conditions -EINVAL is returned. User/Compositor would have to blindly take a call on failure of this ioctl so as to use ALLOW_

[PATCH v6 1/1] drm/i915/display: Add no_psr_reason to PSR debugfs

2025-08-22 Thread Michał Grzelak
There is no reason in debugfs why PSR has been disabled. Add no_psr_reason field into struct intel_psr. Write the reason, e.g. PSR setup timing not met, into proper PSR debugfs file. Clean it when PSR is activated. Refactor intel_psr_post_plane_update by using no_psr_reason instead of boolean keep

[PATCH v6 0/1] drm/i915/display: Add no_psr_reason to PSR debugfs

2025-08-22 Thread Michał Grzelak
Next version of v5 [1]. Took into consideration review from Jouni [2]. [1] https://lore.kernel.org/intel-gfx/20250714160931.821383-1-michal.grze...@intel.com [2] https://lore.kernel.org/intel-gfx/3e4f40d5310b2fd4169f6befde7f7a7e611a4e09.ca...@intel.com Test-with: 20250703140451.491593-2-michal.

Re: [PATCH RFC 29/35] scsi: core: drop nth_page() usage within SG entry

2025-08-22 Thread David Hildenbrand
On 22.08.25 20:01, Bart Van Assche wrote: On 8/21/25 1:06 PM, David Hildenbrand wrote: It's no longer required to use nth_page() when iterating pages within a single SG entry, so let's drop the nth_page() usage. Usually the SCSI core and the SG I/O driver are updated separately. Anyway: Thank

Re: [PATCH RFC 09/35] mm/mm_init: make memmap_init_compound() look more like prep_compound_page()

2025-08-22 Thread David Hildenbrand
On 22.08.25 17:27, Mike Rapoport wrote: On Thu, Aug 21, 2025 at 10:06:35PM +0200, David Hildenbrand wrote: Grepping for "prep_compound_page" leaves on clueless how devdax gets its compound pages initialized. Let's add a comment that might help finding this open-coded prep_compound_page() initia

Re: [PATCH] drm/i915/display: handle return value in intel_sdvo_enable_hotplug

2025-08-22 Thread Kandpal, Suraj
>Subject: [PATCH] drm/i915/display: handle >return value in >intel_sdvo_enable_hotplug The subject does not match what you are doing in the patch maybe fix that . Sorry for the noise my email client seems to be acting weird.(may still not be working right so sorry again will probably be fixed by

Re: [PATCH v5] drm: re-allow no-op changes on non-primary planes in async flips

2025-08-22 Thread André Almeida
Em 22/08/2025 12:28, Xaver Hugl escreveu: Commit fd40a63c63a1 unintentionally disallowed no-op changes on non-primary planes that the driver doesn't allow async flips on. This broke async flips for compositors that disable the cursor plane in every async atomic commit. To fix that, change drm_ato

Re: [PATCH] drm/i915/display: handle return value in intel_sdvo_enable_hotplug

2025-08-22 Thread Kandpal, Suraj
From: Intel-gfx on behalf of Juha-Pekka Heikkila Sent: Friday, August 22, 2025 9:14:20 pm To: intel-gfx@lists.freedesktop.org ; intel...@lists.freedesktop.org Cc: Juha-Pekka Heikkila Subject: [PATCH] drm/i915/display: handle return value in intel_sdvo_enabl

✓ i915.CI.BAT: success for drm/i915/display: handle return value in intel_sdvo_enable_hotplug

2025-08-22 Thread Patchwork
== Series Details == Series: drm/i915/display: handle return value in intel_sdvo_enable_hotplug URL : https://patchwork.freedesktop.org/series/153361/ State : success == Summary == CI Bug Log - changes from CI_DRM_17050 -> Patchwork_153361v1

Re: [PATCH v3 1/4] drm: Define user readable error codes for atomic ioctl

2025-08-22 Thread Xaver Hugl
> +#define DRM_MODE_ATOMIC_FAILURE_REASON \ > + FAILURE_REASON(DRM_MODE_ATOMIC_CAP_NOT_ENABLED, "DRM_ATOMIC > capability not enabled") \ > + FAILURE_REASON(DRM_MODE_ATOMIC_INVALID_FLAG, "invalid flag") \ > + FAILURE_REASON(DRM_MODE_ATOMIC_PAGE_FLIP_ASYNC, "Legacy > DRM_MODE_PAGE

✓ i915.CI.BAT: success for drm/i915/guc: Add synchronization on interrupt enable flag (rev2)

2025-08-22 Thread Patchwork
== Series Details == Series: drm/i915/guc: Add synchronization on interrupt enable flag (rev2) URL : https://patchwork.freedesktop.org/series/153158/ State : success == Summary == CI Bug Log - changes from CI_DRM_17050 -> Patchwork_153158v2

[PATCH] drm/i915/display: handle return value in intel_sdvo_enable_hotplug

2025-08-22 Thread Juha-Pekka Heikkila
Report in log if intel_sdvo_enable_hotplug failed Signed-off-by: Juha-Pekka Heikkila --- drivers/gpu/drm/i915/display/intel_sdvo.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_sdvo.c b/drivers/gpu/drm/i915/display/intel_sdvo.c inde

✓ i915.CI.BAT: success for drm/i915/psr: Do not unnecessarily remove underrun on idle PSR WA

2025-08-22 Thread Patchwork
== Series Details == Series: drm/i915/psr: Do not unnecessarily remove underrun on idle PSR WA URL : https://patchwork.freedesktop.org/series/153345/ State : success == Summary == CI Bug Log - changes from CI_DRM_17049 -> Patchwork_153345v1

✗ LGCI.VerificationFailed: failure for drm: re-allow no-op changes on non-primary planes in async flips (rev2)

2025-08-22 Thread Patchwork
== Series Details == Series: drm: re-allow no-op changes on non-primary planes in async flips (rev2) URL : https://patchwork.freedesktop.org/series/152712/ State : failure == Summary == Address 'xaver.h...@kde.org' is not on the allowlist, which prevents CI from being triggered for this patch

[PATCH v5] drm: re-allow no-op changes on non-primary planes in async flips

2025-08-22 Thread Xaver Hugl
Commit fd40a63c63a1 unintentionally disallowed no-op changes on non-primary planes that the driver doesn't allow async flips on. This broke async flips for compositors that disable the cursor plane in every async atomic commit. To fix that, change drm_atomic_set_property to again only run atomic_as

Re: [PATCH RFC 09/35] mm/mm_init: make memmap_init_compound() look more like prep_compound_page()

2025-08-22 Thread Mike Rapoport
On Thu, Aug 21, 2025 at 10:06:35PM +0200, David Hildenbrand wrote: > Grepping for "prep_compound_page" leaves on clueless how devdax gets its > compound pages initialized. > > Let's add a comment that might help finding this open-coded > prep_compound_page() initialization more easily. > > Furthe

Re: [PATCH RFC 02/35] arm64: Kconfig: drop superfluous "select SPARSEMEM_VMEMMAP"

2025-08-22 Thread Mike Rapoport
On Thu, Aug 21, 2025 at 10:06:28PM +0200, David Hildenbrand wrote: > Now handled by the core automatically once SPARSEMEM_VMEMMAP_ENABLE > is selected. > > Cc: Catalin Marinas > Cc: Will Deacon > Signed-off-by: David Hildenbrand Reviewed-by: Mike Rapoport (Microsoft) > --- > arch/arm64/Kcon

Re: [PATCH RFC 05/35] wireguard: selftests: remove CONFIG_SPARSEMEM_VMEMMAP=y from qemu kernel config

2025-08-22 Thread Mike Rapoport
On Thu, Aug 21, 2025 at 10:06:31PM +0200, David Hildenbrand wrote: > It's no longer user-selectable (and the default was already "y"), so > let's just drop it. and it should not matter for wireguard selftest anyway > > Cc: "Jason A. Donenfeld" > Cc: Shuah Khan > Signed-off-by: David Hildenbrand

Re: [PATCH RFC 04/35] x86/Kconfig: drop superfluous "select SPARSEMEM_VMEMMAP"

2025-08-22 Thread Mike Rapoport
On Thu, Aug 21, 2025 at 10:06:30PM +0200, David Hildenbrand wrote: > Now handled by the core automatically once SPARSEMEM_VMEMMAP_ENABLE > is selected. > > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: Borislav Petkov > Cc: Dave Hansen > Signed-off-by: David Hildenbrand Reviewed-by: Mike Rapop

Re: [PATCH RFC 03/35] s390/Kconfig: drop superfluous "select SPARSEMEM_VMEMMAP"

2025-08-22 Thread Mike Rapoport
On Thu, Aug 21, 2025 at 10:06:29PM +0200, David Hildenbrand wrote: > Now handled by the core automatically once SPARSEMEM_VMEMMAP_ENABLE > is selected. > > Cc: Heiko Carstens > Cc: Vasily Gorbik > Cc: Alexander Gordeev > Cc: Christian Borntraeger > Cc: Sven Schnelle > Signed-off-by: David Hil

Re: [PATCH RFC 01/35] mm: stop making SPARSEMEM_VMEMMAP user-selectable

2025-08-22 Thread Mike Rapoport
On Thu, Aug 21, 2025 at 10:06:27PM +0200, David Hildenbrand wrote: > In an ideal world, we wouldn't have to deal with SPARSEMEM without > SPARSEMEM_VMEMMAP, but in particular for 32bit SPARSEMEM_VMEMMAP is > considered too costly and consequently not supported. > > However, if an architecture does

Re: [PATCH v2 2/2] drm/i915/psr: check drm_mode_vrefresh return value

2025-08-22 Thread Hogander, Jouni
On Fri, 2025-08-22 at 17:12 +0300, Ville Syrjälä wrote: > On Fri, Aug 22, 2025 at 05:07:18AM +, Hogander, Jouni wrote: > > On Thu, 2025-08-21 at 16:10 +0300, Ville Syrjälä wrote: > > > On Thu, Aug 21, 2025 at 07:59:18AM +0300, Jouni Högander wrote: > > > > Check drm_mode_vrefresh return value s

Re: [PATCH v4] drm: re-allow no-op changes on non-primary planes in async flips

2025-08-22 Thread André Almeida
Hi Xaver, Thanks for the patch and sorry for the delay. Em 08/08/2025 20:22, Xaver Hugl escreveu: Commit fd40a63c63a1 unintentionally disallowed no-op changes on non-primary planes that the driver doesn't allow async flips on. This broke async flips for compositors that disable the cursor plane

Re: [PATCH RFC 00/35] mm: remove nth_page()

2025-08-22 Thread Jason Gunthorpe
On Thu, Aug 21, 2025 at 10:06:26PM +0200, David Hildenbrand wrote: > As discussed recently with Linus, nth_page() is just nasty and we would > like to remove it. > > To recap, the reason we currently need nth_page() within a folio is because > on some kernel configs (SPARSEMEM without SPARSEMEM_VM

[PATCH v2] drm/i915/guc: Add synchronization on interrupt enable flag

2025-08-22 Thread Zhanjun Dong
Boolean flag access from interrupt context might have synchronous issueis on multiple processor platform, flags modified by one core might be read as an old value by another core. This issue on interrupt enable flag might causes interrupt misses or leakage. Change the interrupts.enable type to atom

Re: [PATCH v2 2/2] drm/i915/psr: check drm_mode_vrefresh return value

2025-08-22 Thread Ville Syrjälä
On Fri, Aug 22, 2025 at 05:07:18AM +, Hogander, Jouni wrote: > On Thu, 2025-08-21 at 16:10 +0300, Ville Syrjälä wrote: > > On Thu, Aug 21, 2025 at 07:59:18AM +0300, Jouni Högander wrote: > > > Check drm_mode_vrefresh return value sanity before using it in > > > intel_get_frame_time_us. > > > >

Re: [PATCH RFC 18/35] io_uring/zcrx: remove "struct io_copy_cache" and one nth_page() usage

2025-08-22 Thread David Hildenbrand
On 22.08.25 13:32, Pavel Begunkov wrote: On 8/21/25 21:06, David Hildenbrand wrote: We always provide a single dst page, it's unclear why the io_copy_cache complexity is required. Because it'll need to be pulled outside the loop to reuse the page for multiple copies, i.e. packing multiple frag

Re: [PATCH RFC 22/35] dma-remap: drop nth_page() in dma_common_contiguous_remap()

2025-08-22 Thread Marek Szyprowski
On 21.08.2025 22:06, David Hildenbrand wrote: > dma_common_contiguous_remap() is used to remap an "allocated contiguous > region". Within a single allocation, there is no need to use nth_page() > anymore. > > Neither the buddy, nor hugetlb, nor CMA will hand out problematic page > ranges. > > Cc: M

Re: [PATCH v3 1/2] drm/buddy: Optimize free block management with RB tree

2025-08-22 Thread Matthew Auld
On 22/08/2025 09:37, Matthew Auld wrote: On 21/08/2025 16:06, Arunpravin Paneer Selvam wrote: Replace the freelist (O(n)) used for free block management with a red-black tree, providing more efficient O(log n) search, insert, and delete operations. This improves scalability and performance when

Re: [PATCH v3 2/2] drm/buddy: Separate clear and dirty free block trees

2025-08-22 Thread Matthew Auld
On 21/08/2025 16:06, Arunpravin Paneer Selvam wrote: Maintain two separate RB trees per order - one for clear (zeroed) blocks and another for dirty (uncleared) blocks. This separation improves code clarity and makes it more obvious which tree is being searched during allocation. It also improves

Re: [PATCH v3 4/4] drm/i915/display: Error codes for async flip failures

2025-08-22 Thread Jani Nikula
On Fri, 22 Aug 2025, Maarten Lankhorst wrote: > Hey, > > I'm not entirely sold on the design, it's way more complicated than it > should be, it should be trivial to add any amount of error messages. If we add error messages, how do we ensure the error messages themselves never become part of UAP

Re: [PATCH 08/12] drm/i915/display: Add guardband check for feature latencies

2025-08-22 Thread Jani Nikula
On Wed, 20 Aug 2025, Ankit Nautiyal wrote: > + if (HAS_VRR(display) && intel_vrr_possible(crtc_state)) { Nitpick, and a tangential to designing stuff: intel_vrr_possible() never returns true for !HAS_VRR(). The HAS_VRR() check is redundant. Adding redundant checks adds uncertainty about what

Re: [PATCH v3 4/4] drm/i915/display: Error codes for async flip failures

2025-08-22 Thread Maarten Lankhorst
Hey, I'm not entirely sold on the design, it's way more complicated than it should be, it should be trivial to add any amount of error messages. Replace return -EINVAL; with return drm_atomic_error_einval(state, class, "string"); Where class may be an enum, but in a way more generic way than cu

Re: [PATCH 04/12] drm/i915/display: Extract helpers to set dsc/scaler prefill latencies

2025-08-22 Thread Jani Nikula
On Wed, 20 Aug 2025, Ankit Nautiyal wrote: > Currently dsc/scaler prefill latencies are handled during watermark > calculations. With the optimized guardband, we need to compute the > latencies to find the minimum guardband that works for most cases. > Extract the helpers to compute these latencie

Re: [PATCH v3 3/4] drm/atomic: Return user readable error in atomic_ioctl

2025-08-22 Thread Jani Nikula
On Fri, 22 Aug 2025, Arun R Murthy wrote: > Add user readable error codes for failure cases in drm_atomic_ioctl() so > that user can decode the error code and take corrective measurements. > > Signed-off-by: Arun R Murthy > --- > drivers/gpu/drm/drm_atomic.c | 6 > drivers/gpu/drm/drm

[PATCH] drm/i915/psr: Do not unnecessarily remove underrun on idle PSR WA

2025-08-22 Thread Jouni Högander
We are currently removing underrun on idle PSR WA even if it's not applied. Fix this by checking pkg_c_latency_used on PSR exit as well. Fixes: 9b1795e9b0ae ("drm/i915/psr: Underrun on idle PSR wa only when pkgc latency > delayed vblank") Signed-off-by: Jouni Högander --- drivers/gpu/drm/i915/d

Re: [PATCH v3 1/4] drm: Define user readable error codes for atomic ioctl

2025-08-22 Thread Jani Nikula
On Fri, 22 Aug 2025, Arun R Murthy wrote: > There can be multiple reasons for a failure in atomic_ioctl. Most often > in these error conditions -EINVAL is returned. User/Compositor would > have to blindly take a call on failure of this ioctl so as to use > ALLOW_MODESET or any. It would be good if

Re: [PATCH v2 1/2] drm/i915: set O_LARGEFILE in __create_shmem()

2025-08-22 Thread Andi Shyti
Hi Taotao, On Fri, Aug 22, 2025 at 03:06:59AM +, 陈涛涛 Taotao Chen wrote: > From: Taotao Chen > > Without O_LARGEFILE, file->f_op->write_iter calls > generic_write_check_limits(), which enforces a 2GB (MAX_NON_LFS) limit, > causing -EFBIG on large writes. > > In shmem_pwrite(), this error is

Re: [PATCH v3 1/2] drm/buddy: Optimize free block management with RB tree

2025-08-22 Thread Matthew Auld
On 21/08/2025 16:06, Arunpravin Paneer Selvam wrote: Replace the freelist (O(n)) used for free block management with a red-black tree, providing more efficient O(log n) search, insert, and delete operations. This improves scalability and performance when managing large numbers of free blocks per

Re: [PATCH RFC 23/35] scatterlist: disallow non-contigous page ranges in a single SG entry

2025-08-22 Thread Marek Szyprowski
On 21.08.2025 22:06, David Hildenbrand wrote: > The expectation is that there is currently no user that would pass in > non-contigous page ranges: no allocator, not even VMA, will hand these > out. > > The only problematic part would be if someone would provide a range > obtained directly from memb

✗ i915.CI.BAT: failure for User readable error codes on atomic_ioctl failure (rev2)

2025-08-22 Thread Patchwork
== Series Details == Series: User readable error codes on atomic_ioctl failure (rev2) URL : https://patchwork.freedesktop.org/series/152275/ State : failure == Summary == CI Bug Log - changes from CI_DRM_17049 -> Patchwork_152275v2 Summary

[PATCH v3 1/4] drm: Define user readable error codes for atomic ioctl

2025-08-22 Thread Arun R Murthy
There can be multiple reasons for a failure in atomic_ioctl. Most often in these error conditions -EINVAL is returned. User/Compositor would have to blindly take a call on failure of this ioctl so as to use ALLOW_MODESET or any. It would be good if user/compositor gets a readable error code on fail

[PATCH v3 4/4] drm/i915/display: Error codes for async flip failures

2025-08-22 Thread Arun R Murthy
For failures in async flip atomic check/commit path return user readable error codes in struct drm_atomic_state. Signed-off-by: Arun R Murthy --- drivers/gpu/drm/i915/display/intel_display.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/d

[PATCH v3 3/4] drm/atomic: Return user readable error in atomic_ioctl

2025-08-22 Thread Arun R Murthy
Add user readable error codes for failure cases in drm_atomic_ioctl() so that user can decode the error code and take corrective measurements. Signed-off-by: Arun R Murthy --- drivers/gpu/drm/drm_atomic.c | 6 drivers/gpu/drm/drm_atomic_uapi.c | 60

[PATCH v3 2/4] drm/atomic: Add error_code element in atomic_state

2025-08-22 Thread Arun R Murthy
Now that a proper error code will be returned to the user on any failure in atomic_ioctl() via struct drm_mode_atomic, add a new element error_code in the struct drm_atomic_state so as to hold the error code during the atomic_check() and atomic_commit() phases. Signed-off-by: Arun R Murthy --- i

[PATCH v3 0/4] User readable error codes on atomic_ioctl failure

2025-08-22 Thread Arun R Murthy
The series focuses on providing a user readable error value on a failure in drm_atomic_ioctl(). Usually -EINVAL is returned in most of the error cases and it is difficult for the user to decode the error and get to know the real cause for the error. If user gets to know the reason for the error the