Re: [PATCH v3] checkpatch: remove %p4cn

2025-05-06 Thread Alyssa Rosenzweig
601315 Best regards, -- Alyssa Rosenzweig

Re: [PATCH] drm/appletbdrm: Make appletbdrm depend on X86

2025-04-29 Thread Alyssa Rosenzweig
tbdrm depend on X86 commit: de5fbbe1531f645c8b56098be8d1faf31e46f7f0 Best regards, -- Alyssa Rosenzweig

Re: [PATCH] vsprintf: Use %p4chR instead of %p4cn for reading data in reversed host ordering

2025-04-29 Thread Alyssa Rosenzweig
verse host ordering. > It makes the 4 variants [hnbl] consistent with the generic printing > of IPv4 addresses. > > [...] Applied, thanks! [1/1] vsprintf: Use %p4chR instead of %p4cn for reading data in reversed host ordering commit: 37eed892cc5ff36aeee59bb78f6aa417a44030a9 Best regards, -- Alyssa Rosenzweig

Re: [PATCH] drm: Select DRM_KMS_HELPER from DRM_DEBUG_DP_MST_TOPOLOGY_REFS

2025-04-29 Thread Alyssa Rosenzweig
> DRM drivers are selecting drm helpers so do the same for > DRM_DEBUG_DP_MST_TOPOLOGY_REFS. > Fixes following circular dependency reported on x86 for the downstream > Asahi Linux tree: > > [...] Applied, thanks! [1/1] drm: Select DRM_KMS_HELPER from DRM_DEBUG_DP_MST_TOPOL

Re: [PATCH v2 0/4] Apple Display Pipe driver fixes

2025-04-29 Thread Alyssa Rosenzweig
p: Remove pointless irq_lock spin lock (no commit info) Best regards, -- Alyssa Rosenzweig

Re: [PATCH] vsprintf: Use %p4chR instead of %p4cn for reading data in reversed host ordering

2025-04-29 Thread Alyssa Rosenzweig
Le Tue, Apr 29, 2025 at 01:39:43PM +0200, Petr Mladek a écrit : > On Mon 2025-04-28 22:38:13, Aditya Garg wrote: > > > > > > On 28-04-2025 10:30 pm, Alyssa Rosenzweig wrote: > > > Acked-by: Alyssa Rosenzweig > > > > > > Since the other patc

Re: [PATCH] vsprintf: Use %p4chR instead of %p4cn for reading data in reversed host ordering

2025-04-28 Thread Alyssa Rosenzweig
Acked-by: Alyssa Rosenzweig Since the other patches went thru drm-misc-next, I guess this should too? Le Mon , Apr 28, 2025 at 02:31:32PM +0200, Petr Mladek a écrit : > The generic FourCC format always prints the data using the big endian > order. It is generic because it allows to re

Re: [PATCH v2 2/4] drm: adp: Handle drm_crtc_vblank_get() errors

2025-04-28 Thread Alyssa Rosenzweig
Reviewed-by: Alyssa Rosenzweig Le Mon , Apr 28, 2025 at 01:37:14PM +0200, Janne Grunau via B4 Relay a écrit : > From: Janne Grunau > > drm_crtc_vblank_get() may fail when it's called before > drm_crtc_vblank_on() on a resetted CRTC. This occurs in > drm_crtc_helper_funcs&#

Re: [PATCH] drm/doc: Start documenting aspects specific to tile-based renderers

2025-04-28 Thread Alyssa Rosenzweig
> BTW, is there a piece of doc explaining the rational behind this > dma_fence contract, or is it just the usual informal knowledge shared > among DRM devs over IRC/email threads :-) ? > > To be honest, I'm a bit unhappy with this "it's part of the dma_fence > contract" explanation, because I have

Re: [PATCH] drm/doc: Start documenting aspects specific to tile-based renderers

2025-04-23 Thread Alyssa Rosenzweig
Steven wanted non-Mali eyes, so with my Imaginapple hat on... > +All lot of embedded GPUs are using tile-based rendering instead of immediate s/All lot of/Many/ > +- Complex geometry pipelines: if you throw geometry/tesselation/mesh shaders > + it gets even trickier to guess the number of primi

Re: [PATCH v2 1/2] rust: helpers: Add bindings/wrappers for dma_resv

2025-04-22 Thread Alyssa Rosenzweig
This needs your Signed-off-by too as you are the submitter Le Tue, Apr 22, 2025 at 01:41:52PM -0300, Daniel Almeida a écrit : > From: Asahi Lina > > This is just for basic usage in the DRM shmem abstractions for implied > locking, not intended as a full DMA Reservation abstraction yet. > > Sign

Re: [PATCH v4 0/3] Use proper printk format in appletbdrm

2025-04-21 Thread Alyssa Rosenzweig
etbdrm: use %p4cl instead of %p4cc commit: a49ce9cc85a82d5c5d65186f5a8fda0ebfcff571 Best regards, -- Alyssa Rosenzweig

Re: [PATCH v4 0/3] Use proper printk format in appletbdrm

2025-04-21 Thread Alyssa Rosenzweig
> Any change needed or just because some other maintainer manages this? > Although Tbh, I really don't care about backporting since T2 Mac users are > still using patched kernels provided by us. I'd rather free my mind in > getting this done. I'm just too new to kernel to do nontrivial merges.

Re: [PATCH v4 0/3] Use proper printk format in appletbdrm

2025-04-21 Thread Alyssa Rosenzweig
I didn't realize this was so subtle with the backporting. I don't think I can take this on, sorry. Le Mon, Apr 21, 2025 at 06:40:23PM +0530, Aditya Garg a écrit : > > > On 21-04-2025 06:38 pm, Aditya Garg wrote: > > > > > > On 21-04-2025 06:37 pm, Alyssa

Re: [PATCH v4 0/3] Use proper printk format in appletbdrm

2025-04-21 Thread Alyssa Rosenzweig
> On 21-04-2025 05:35 pm, Alyssa Rosenzweig wrote: > >> Can I have a feedback from some DRM maintainer on this? AFAIK merge window > >> is over for some time now. It's been more than a week and last time when I > >> submitted, it just stayed in the mailing list

Re: [PATCH v4 0/3] Use proper printk format in appletbdrm

2025-04-21 Thread Alyssa Rosenzweig
> Can I have a feedback from some DRM maintainer on this? AFAIK merge window is > over for some time now. It's been more than a week and last time when I > submitted, it just stayed in the mailing list without any feedback. DRM hides the merge window from committers so that's not super relevant.

Re: [PATCH 1/4] drm: adp: Use spin_lock_irqsave for drm device event_lock

2025-04-16 Thread Alyssa Rosenzweig
Reviewed-by: Alyssa Rosenzweig Le Wed , Apr 16, 2025 at 10:25:27PM +0200, Janne Grunau via B4 Relay a écrit : > From: Janne Grunau > > The lock is used in the interrupt handler so use spin_lock_irqsave to > disable interrupts and avoid deadlocks with the irq handler. > > F

Re: [PATCH 4/4] drm: adp: Remove pointless irq_lock spin lock

2025-04-16 Thread Alyssa Rosenzweig
Reviewed-by: Alyssa Rosenzweig Le Wed , Apr 16, 2025 at 10:25:30PM +0200, Janne Grunau via B4 Relay a écrit : > From: Janne Grunau > > Interrupt handlers run with interrupts disabled so it is not necessary > to protect them against reentrancy. > > Signed-off-by: Janne Grunau

Re: [PATCH 3/4] drm: adp: Enable vblank interrupts in crtc's .atomic_enable

2025-04-16 Thread Alyssa Rosenzweig
Reviewed-by: Alyssa Rosenzweig Le Wed , Apr 16, 2025 at 10:25:29PM +0200, Janne Grunau via B4 Relay a écrit : > From: Janne Grunau > > Calling drm_crtc_vblank_on() drm_crtc_helper_funcs' atomic_enable is > expected to enable vblank interrupts. It may have been avoided

Re: [PATCH 2/4] drm: adp: Handle drm_crtc_vblank_get() errors

2025-04-16 Thread Alyssa Rosenzweig
> - spin_lock_irqsave(&crtc->dev->event_lock, flags); > if (crtc->state->event) { > - drm_crtc_vblank_get(crtc); > - adp->event = crtc->state->event; > + spin_lock_irqsave(&crtc->dev->event_lock, flags); > + > + if (drm_crtc_vblank_get(crtc)

Re: [PATCH 0/4] Apple Display Pipe driver fixes

2025-04-16 Thread Alyssa Rosenzweig
> This is preferable to driver changes since keeps the device powered on > if the adpdrm module is not available during boot. Struggling to parse this sentence, do you mean to say: > Driver changes are preferred, since that patch keeps the device > powered on if the adpdrm module is not available

Re: [PATCH v2 5/8] rust: drm: add DRM driver registration

2025-04-15 Thread Alyssa Rosenzweig
Reviewed-by: Alyssa Rosenzweig

Re: [PATCH v2 1/8] drm: drv: implement __drm_dev_alloc()

2025-04-14 Thread Alyssa Rosenzweig
Reviewed-by: Alyssa Rosenzweig Le Fri , Apr 11, 2025 at 01:55:20AM +0200, Danilo Krummrich a écrit : > In the Rust DRM device abstraction we need to allocate a struct > drm_device. > > Currently, there are two options, the deprecated drm_dev_alloc() (which > does not support s

Re: [PATCH v2 8/8] MAINTAINERS: add DRM Rust source files to DRM DRIVERS

2025-04-14 Thread Alyssa Rosenzweig
Reviewed-by: Alyssa Rosenzweig Le Fri , Apr 11, 2025 at 01:55:27AM +0200, Danilo Krummrich a écrit : > Add the DRM Rust source files to the DRM DRIVERS maintainers entry. > > Signed-off-by: Danilo Krummrich > --- > MAINTAINERS | 2 ++ > 1 file changed, 2 insertions(+)

Re: [PATCH v2 7/8] rust: drm: gem: Add GEM object abstraction

2025-04-14 Thread Alyssa Rosenzweig
To the best of my ability, this is Reviewed-by: Alyssa Rosenzweig although this is rather above my current Rust abilities. > +match T::open(unsafe { &*obj }, file) { > +Err(e) => e.to_errno(), > +Ok(()) => 0, > +} incidentally this would be

Re: [PATCH v2 6/8] rust: drm: file: Add File abstraction

2025-04-14 Thread Alyssa Rosenzweig
pointer to a `struct drm_file`. `raw_file` is a valid pointer.. With those comments fixed, this is Reviewed-by: Alyssa Rosenzweig --- Tangential food-for-thought: might be possible to introduce a helper to kernel::error::Result to make the error handling here more ergonomic, but I don't kno

Re: [PATCH v2 3/8] rust: drm: add driver abstractions

2025-04-14 Thread Alyssa Rosenzweig
Reviewed-by: Alyssa Rosenzweig

Re: [PATCH v2 4/8] rust: drm: add device abstraction

2025-04-14 Thread Alyssa Rosenzweig
> +/// # Safety > +/// > +/// `ptr` must be a valid poiner to a `struct device` embedded in `Self`. pointer With that fixed, Reviewed-by: Alyssa Rosenzweig

Re: [PATCH v2 2/8] rust: drm: ioctl: Add DRM ioctl abstraction

2025-04-14 Thread Alyssa Rosenzweig
t that the handler returns Result and sizeof(u32) <= sizeof(ffi:c_int)). But I don't know how to do that in Rust so no action required unless you have a better idea ;) --- Anyway, with those two comments updated, this patch is Reviewed-by: Alyssa Rosenzweig Thanks!

Re: [PATCH v3 0/8] drm: Introduce sparse GEM shmem

2025-04-14 Thread Alyssa Rosenzweig
> I'm still trying to see if we can emulate/have incremental-rendering on > JM hardware I guess since we don't advertise vertex shader side effects... Lol, maybe that could work...

Re: [PATCH v3 0/8] drm: Introduce sparse GEM shmem

2025-04-14 Thread Alyssa Rosenzweig
> Actually, CSF stands in the way of re-allocating memory to other > contexts, because once we've allocated memory to a tiler heap, the FW > manages this pool of chunks, and recycles them. Mesa can intercept > the "returned chunks" and collect those chunks instead of re-assiging > then to the tiler

Re: [PATCH v3 0/8] drm: Introduce sparse GEM shmem

2025-04-11 Thread Alyssa Rosenzweig
> 2. Device Lost > -- > > At this point we're left with no other choice than to kill the context. > And userspace should be able to cope with VK_DEVICE_LOST (hopefully zink > does), but it will probably not cope well with an entire strom of these > just to get the first frame out. > >

Re: [PATCH] drm/appletbdrm: Make appletbdrm depend on X86

2025-04-10 Thread Alyssa Rosenzweig
Reviewed-by: Alyssa Rosenzweig Le Thu , Apr 10, 2025 at 11:50:01PM +0530, Aditya Garg a écrit : > From: Aditya Garg > > The appletbdrm driver is exclusively for Touch Bars on x86 Intel Macs. > The M1 Macs have a separate driver. So, lets avoid compiling it for > othe

Re: [PATCH v3 0/8] drm: Introduce sparse GEM shmem

2025-04-10 Thread Alyssa Rosenzweig
> > > In Panfrost and Lima, we don't have this concept of "incremental > > > rendering", so when we fail the allocation, we just fail the GPU job > > > with an unhandled GPU fault. > > > > To be honest I think that this is enough to mark those two drivers as > > broken.  It's documented that thi

[PATCH v7] drm: Add UAPI for the Asahi driver

2025-04-10 Thread Alyssa Rosenzweig
-off-by: Asahi Lina Acked-by: Simona Vetter Reviewed-by: Neal Gompa Reviewed-by: Janne Grunau Signed-off-by: Alyssa Rosenzweig --- Changes in v7: - Drop non-arrayed binds. This simplifies both kernel and Mesa handling, at a trivial perf cost (Faith). - Minor comment fixes. - Link to v6: https

Re: [PATCH v7] drm: Add UAPI for the Asahi driver

2025-04-08 Thread Alyssa Rosenzweig
On Tue, 08 Apr 2025 16:54:14 -0400, Alyssa Rosenzweig wrote: > This adds the UAPI for the Asahi driver targeting the GPU in the Apple > M1 and M2 series systems on chip. The UAPI design is based on other > modern Vulkan-capable drivers, including Xe and Panthor. Memory > management

Re: [PATCH v3 3/3] drm/appletbdrm: use %p4cl instead of %p4cc

2025-04-07 Thread Alyssa Rosenzweig
Reviewed-by: Alyssa Rosenzweig Le Mon , Apr 07, 2025 at 07:07:54PM +0530, Aditya Garg a écrit : > From: Aditya Garg > > Due to lack of a proper printk format, %p4cc was being used instead of > %p4cl for the purpose of printing FourCCs. But the disadvange was that > they were bei

Re: [PATCH v3] drm: Add UAPI for the Asahi driver

2025-04-05 Thread Alyssa Rosenzweig
> > > +/** > > > + * @user_timestamp_frequency_hz: Timebase frequency for user > timestamps > > > + */ > > > +__u64 user_timestamp_frequency_hz; > > > > Why is this different? What are user timestamps and how are they different > from GPU timestamps? In v4, I've

Re: [PATCH v5] drm: Add UAPI for the Asahi driver

2025-03-27 Thread Alyssa Rosenzweig
> > https://github.com/alyssarosenzweig/linux/commits/agx-uapi-v5 contains > > the DRM driver implementing this proposed UAPI. > > > > https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33984 contains > > the Mesa patches to implement this proposed UAPI. > > > > That Linux and Mesa branch to

[PATCH v6] drm: Add UAPI for the Asahi driver

2025-03-27 Thread Alyssa Rosenzweig
-off-by: Asahi Lina Acked-by: Simona Vetter Reviewed-by: Neal Gompa Reviewed-by: Janne Grunau Signed-off-by: Alyssa Rosenzweig --- Changes in v6: - Rename vm_user_* to vm_* for clarity (Janne). - Improve lots of comments. - Drop a few unused global params that are unlikely to ever be used by

Re: [PATCH v5] drm: Add UAPI for the Asahi driver

2025-03-27 Thread Alyssa Rosenzweig
> > +/** > > + * struct drm_asahi_params_global - Global parameters. > > + * > > + * This struct may be queried by drm_asahi_get_params. > > + */ > > +struct drm_asahi_params_global { > > + /** @features: Feature bits from drm_asahi_feature */ > > + __u64 features; > > + > > + /** @gpu_genera

Re: [PATCH v3] drm: Add UAPI for the Asahi driver

2025-03-26 Thread Alyssa Rosenzweig
> > > +struct drm_asahi_queue_create { > > > +/** @flags: MBZ */ > > > +__u32 flags; > > > + > > > +/** @vm_id: The ID of the VM this queue is bound to */ > > > +__u32 vm_id; > > > + > > > +/** @queue_caps: Bitmask of DRM_ASAHI_QUEUE_CAP_* */ > > > +   

[PATCH v5] drm: Add UAPI for the Asahi driver

2025-03-26 Thread Alyssa Rosenzweig
-off-by: Asahi Lina Acked-by: Simona Vetter Signed-off-by: Alyssa Rosenzweig --- Changes in v5: - Rename GEM_BIND to VM_BIND and make it take an array of bind ops. This significantly decreases the # of kernel<-->user roundtrips with Vulkan sparse binding. The uAPI here is lifted directl

Re: [PATCH v3] drm: Add UAPI for the Asahi driver

2025-03-24 Thread Alyssa Rosenzweig
> +/** > + * @DRM_ASAHI_BIND_SINGLE_PAGE: Map a single page of the BO > repeatedly > + * across the VA range. > + * > + * This is useful to fill a VA range with scratch pages or zero > pages. > + * It is intended as a mechanism

Re: [PATCH v3] drm: Add UAPI for the Asahi driver

2025-03-24 Thread Alyssa Rosenzweig
> I'm good with this. There's a slim possibility that upstream may > evolve in ways that make the current UAPI tricky to implement. > However, given that it's based on prior art from the nouveau, Intel, > and panfrost teams and that you've been shipping it in production for > a while, I think that

[PATCH v4] drm: Add UAPI for the Asahi driver

2025-03-23 Thread Alyssa Rosenzweig
-off-by: Asahi Lina Acked-by: Simona Vetter Signed-off-by: Alyssa Rosenzweig --- Changes in v4: - get_time now returns time in nanoseconds, timer_frequency_hz dropped. This hides an extra time domain from userspace for no real downside. - Added lots more comments answering questions Faith raised

Re: [PATCH v3] drm: Add UAPI for the Asahi driver

2025-03-23 Thread Alyssa Rosenzweig
> > > +/** > > > + * enum drm_asahi_bind_op - Bind operation > > > + */ > > > +enum drm_asahi_bind_op { > > > +/** @DRM_ASAHI_BIND_OP_BIND: Bind a BO to a GPU VMA range */ > > > +DRM_ASAHI_BIND_OP_BIND = 0, > > > + > > > +/** @DRM_ASAHI_BIND_OP_UNBIND: Unbind a GP

Re: [PATCH v3] drm: Add UAPI for the Asahi driver

2025-03-23 Thread Alyssa Rosenzweig
> Since this is a deparature from our usual requirement that all pieces > should be ready before landing anything we had discussion whether this is > an acceptable one-off exception for special circumstance. Thanks a lot to > Alyssa for driving this. The very much summarized consensus is that due t

[PATCH v3] drm: Add UAPI for the Asahi driver

2025-03-15 Thread Alyssa Rosenzweig
gitlab.freedesktop.org downtime. That Linux and Mesa branch together give a complete graphics/compute stack on top of this UAPI. Co-developed-by: Asahi Lina Signed-off-by: Asahi Lina Signed-off-by: Alyssa Rosenzweig --- Changes in v3: - Merge load/store/partial fields for depth/stencil as discussed with Faith

Re: [PATCH next] drm: adp: Fix NULL vs IS_ERR() check in adp_plane_new()

2025-03-15 Thread Alyssa Rosenzweig
ommit info) Best regards, -- Alyssa Rosenzweig

Re: [PATCH v4] drm: add modifiers for Apple GPU layouts

2025-03-14 Thread Alyssa Rosenzweig
On Mon, 10 Mar 2025 15:28:02 -0400, Alyssa Rosenzweig wrote: > Apple GPUs support non-linear "GPU-tiled" image layouts. Add modifiers > for these layouts. Mesa requires these modifiers to share non-linear > buffers across processes, but no other userspace or kernel support is

[PATCH v2] drm: Add UAPI for the Asahi driver

2025-03-13 Thread Alyssa Rosenzweig
gitlab.freedesktop.org downtime. That Linux and Mesa branch together give a complete graphics/compute stack on top of this UAPI. Co-developed-by: Asahi Lina Signed-off-by: Asahi Lina Signed-off-by: Alyssa Rosenzweig --- Changes in v2: - Flatten submits. Previously, the submit ioctl pointed to an array of

[PATCH v4] drm: add modifiers for Apple GPU layouts

2025-03-13 Thread Alyssa Rosenzweig
s hardware blocks (e.g. with the display controller). There are other layouts for that but we don't support them either in userspace or kernelspace yet (even downstream), so we don't add modifiers here. Acked-by: Faith Ekstrand Reviewed-by: Sven Peter Signed-off-by: Alyssa Rosenzwei

Re: [PATCH v2 0/2] Use proper printk format in appletbdrm

2025-03-13 Thread Alyssa Rosenzweig
series looks ok to me. Who is pushing this to drm-misc-next? (I can if nobody else does)

[PATCH] drm: Add UAPI for the Asahi driver

2025-03-11 Thread Alyssa Rosenzweig
: Asahi Lina Signed-off-by: Alyssa Rosenzweig --- Documentation/gpu/driver-uapi.rst |5 + MAINTAINERS |1 + include/uapi/drm/asahi_drm.h | 1153 + 3 files changed, 1159 insertions(+) diff --git a/Documentation/gpu/driver-uapi.rst

Re: [PATCH] drm: Add UAPI for the Asahi driver

2025-03-11 Thread Alyssa Rosenzweig
> > +/** > > + * struct drm_asahi_gem_bind - Arguments passed to > > + * DRM_IOCTL_ASAHI_GEM_BIND > > + */ > > +struct drm_asahi_gem_bind { > > + /** @op: Bind operation (enum drm_asahi_bind_op) */ > > + __u32 op; > > + > > + /** @flags: One or more of ASAHI_BIND_* (BIND only) */

Re: [PATCH v8 0/5] Driver for pre-DCP apple display controller.

2025-03-05 Thread Alyssa Rosenzweig
> Yeah it's because you applied the whole patchset, and discarded/skipped > patch 3 & 4 afterwards, so b4 gets confused. > > Next time specify which patch you want to apply with -P 1,2,5 > and b4 with know which patch you applied and generate a good ty patch. Ah nice, didn't know about -P, thanks

Re: [PATCH v7 0/5] Driver for pre-DCP apple display controller.

2025-03-05 Thread Alyssa Rosenzweig
> > > All patches are reviewed, can we funnel patches 1, 2 & 5 via > > > drm-misc-next now ? > > > > I'm planning to do so today, just need to get dim setup first :) > > Nice! As a heads up, it would be really-really nice if you can send any > kind of 'applied' message. If you are using 'dim b4-

Re: [PATCH v8 0/5] Driver for pre-DCP apple display controller.

2025-03-05 Thread Alyssa Rosenzweig
Er... I only applied 1, 2, and 5. Patch 3 was already merged, and patch 4 is going in via arm soc. I am, new to b4, sorry! Le Wed, Mar 05, 2025 at 08:43:51AM -0500, Alyssa Rosenzweig a écrit : > > On Mon, 24 Feb 2025 12:02:15 +0100, Sasha Finkelstein wrote: > > This patch series adds

Re: [PATCH -next] drm: adp: Remove unnecessary print function dev_err()

2025-03-05 Thread Alyssa Rosenzweig
or. > ./drivers/gpu/drm/adp/adp_drv.c:476:2-9: line 476 is redundant because > platform_get_irq() already prints an error. > > > [...] Applied, thanks! [1/1] drm: adp: Remove unnecessary print function dev_err() commit: e4c0fd3f965533cd2b38200ca73625afd602d39b Best regards, -- Alyssa Rosenzweig

Re: [PATCH v8 0/5] Driver for pre-DCP apple display controller.

2025-03-05 Thread Alyssa Rosenzweig
) [4/5] arm64: dts: apple: Add touchbar screen nodes (no commit info) [5/5] MAINTAINERS: Add entries for touchbar display driver commit: 4d2a877cc0efefa815648f1ed5f5b2b796f55bab Best regards, -- Alyssa Rosenzweig

Re: [PATCH v7 0/5] Driver for pre-DCP apple display controller.

2025-03-03 Thread Alyssa Rosenzweig
> > Sasha Finkelstein (5): > >dt-bindings: display: Add Apple pre-DCP display controller > >drm: adp: Add Apple Display Pipe driver > >drm: panel: Add a panel driver for the Summit display > >arm64: dts: apple: Add touchbar screen nodes > >MAINTAINERS: Add en

[PATCH v3] drm: add modifiers for Apple GPU layouts

2025-03-01 Thread Alyssa Rosenzweig
blocks (e.g. with the display controller). There are other layouts for that but we don't support them either in userspace or kernelspace yet (even downstream), so we don't add modifiers here. Signed-off-by: Alyssa Rosenzweig --- Changes in v3: - Condense comments for clarity and concision.

Re: [PATCH v2] drm: add modifiers for Apple GPU layouts

2025-02-25 Thread Alyssa Rosenzweig
> > These layouts are notably not used for interchange across hardware > > blocks (e.g. with the display controller). There are other layouts for > > that but we don't support them either in userspace or kernelspace yet > > (even downstream), so we don't add modifiers here. > > Yeah, when those ha

[PATCH v2] drm: add modifiers for Apple GPU layouts

2025-02-25 Thread Alyssa Rosenzweig
blocks (e.g. with the display controller). There are other layouts for that but we don't support them either in userspace or kernelspace yet (even downstream), so we don't add modifiers here. Signed-off-by: Alyssa Rosenzweig --- Changes in v2: - Rename "Twiddled" to "GPU-t

Re: [PATCH] drm: add modifiers for Apple twiddled layouts

2025-02-19 Thread Alyssa Rosenzweig
> > +/* > > + * Apple twiddled and compressed layout. > > + * > > + * This is the main lossless image compression layout supported by Apple > > GPUs. > > + * > > + * The image is divided into tiles that are internally twiddled. In > > addition to > > Does the compressed format uses the same the

[PATCH] drm: add modifiers for Apple twiddled layouts

2025-02-18 Thread Alyssa Rosenzweig
;re not adding them here. Signed-off-by: Alyssa Rosenzweig --- include/uapi/drm/drm_fourcc.h | 31 +++ 1 file changed, 31 insertions(+) diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h index e41a3cec6a9ed18760f3b0c88ba437c9aba3dd4f..6c289fc1

Re: [PATCH 4/5] drm/panfrost: Use drm_sched_job_add_syncobj_dependency()

2023-02-08 Thread Alyssa Rosenzweig
R-b, thanks On Wed, Feb 08, 2023 at 04:48:16PM -0300, Ma??ra Canal wrote: > As panfrost_copy_in_sync() performs the same steps as > drm_sched_job_add_syncobj_dependency(), replace the open-coded > implementation in Panfrost in order to simply, using the DRM function. > > Signed-off-by: Ma??ra Can

Re: [RFC PATCH] drm/pancsf: Add a new driver for Mali CSF-based GPUs

2023-02-03 Thread Alyssa Rosenzweig
> > > +struct drm_pancsf_gpu_info { > > > +#define DRM_PANCSF_ARCH_MAJOR(x) ((x) >> 28) > > > +#define DRM_PANCSF_ARCH_MINOR(x) (((x) >> 24) & 0xf) > > > +#define DRM_PANCSF_ARCH_REV(x) (((x) >> 20) & 0xf) > > > +#define DRM_PANCSF_PRODUCT_MAJOR(x) (((

Re: [RFC PATCH] drm/pancsf: Add a new driver for Mali CSF-based GPUs

2023-02-03 Thread Alyssa Rosenzweig
> > Mali v10 (second Valhal iteration) and later GPUs replaced the Job > > Manager block by a command stream based interface called CSF (for > > Command Stream Frontend). This interface is not only turning the job > > chain based submission model into a command stream based one, but also > > introd

Re: Retiring the GitHub mirrors

2023-01-20 Thread Alyssa Rosenzweig
> Among the people present in this discussion, the consensus was that we > should delete them. I wasn't present but +1 from me.

Re: [RFC PATCH 00/20] Initial Xe driver submission

2023-01-03 Thread Alyssa Rosenzweig
> > For one thing, setting that up would be a lot of up front infrastructure > > work. I'm not sure how to even pull that off when Xe is still > > out-of-tree and i915 development plunges on upstream as ever. > > > > For another, realistically, the overlap between supported platforms is > > going

Re: [PATCH v2 16/26] drm: panfrost: Remove #ifdef guards for PM related functions

2022-11-29 Thread Alyssa Rosenzweig
Sounds like a nice clean up :-) Acked-by: Alyssa Rosenzweig On Tue, Nov 29, 2022 at 07:19:32PM +, Paul Cercueil wrote: > Use the EXPORT_GPL_RUNTIME_DEV_PM_OPS() and pm_ptr() macros to handle > the PM callbacks. > > These macros allow the PM functions to be automaticall

Re: [PATCH] drm/panfrost: Remove type name from internal struct again

2022-11-07 Thread Alyssa Rosenzweig
Reviewed-by: Alyssa Rosenzweig On Thu, Nov 03, 2022 at 11:40:36AM +, Steven Price wrote: > Commit 72655fb942c1 ("drm/panfrost: replace endian-specific types with > native ones") accidentally reverted part of the parent commit > 7228d9d79248 ("drm/panfrost: Remove

Re: [PATCH v2 0/2] drm/panfrost: Fix UAPI for C++/BSD compatibility

2022-10-17 Thread Alyssa Rosenzweig
Series is Reviewed-by: Alyssa Rosenzweig Thank you for this, please push to the appropriate trees so we can fix the Mesa build. On Mon, Oct 17, 2022 at 11:46:00AM +0100, Steven Price wrote: > The Panfrost DRM interface to user space is uesd in Mesa for targets > other than C

Re: [PATCH 2/2] drm/panfrost: replace endian-specific types with generic ones

2022-09-21 Thread Alyssa Rosenzweig
> > Or of course we could just actually use native endian and detect from > > the magic which endian is in use. That would require ripping out the > > cpu_to_lexx() calls in Linux and making the user space tool more > > intelligent. I'm happy with that, but it's pushing the complexity onto Mesa. >

Re: [PATCH 2/2] drm/panfrost: replace endian-specific types with generic ones

2022-09-20 Thread Alyssa Rosenzweig
Tentative r-b, but we *do* need to make a decision on how we want to handle endianness. I don't have strong feelings but the results of that discussion should go in the commit message. On Tue, Sep 20, 2022 at 10:15:45PM +0100, Adri??n Larumbe wrote: > __le32 and __l64 endian-specific types aren't

Re: [PATCH] drm/panfrost: Give name to anonymous coredump object union

2022-09-20 Thread Alyssa Rosenzweig
On Tue, Sep 20, 2022 at 02:26:52PM +0100, Steven Price wrote: > On 19/09/2022 07:44, Adri??n Larumbe wrote: > > Hi Steven, > > > > On 13.09.2022 09:45, Steven Price wrote: > >> On 12/09/2022 17:44, Adri??n Larumbe wrote: > >>> Building Mesa's Perfetto requires including the panfrost drm uAPI heade

Re: [PATCH] drm/panfrost: Give name to anonymous coredump object union

2022-09-12 Thread Alyssa Rosenzweig
Have we checked that this actually fixes the Mesa build? If so, R-b. > Commit 730c2bf4ad39 ("drm/panfrost: Add support for devcoredump") > introduces one such union, breaking the Mesa build. > > Give it a name, and also rename pan_reg_hdr structure because it will > always be prefixed by the unio

Re: [PATCH] drm/panfrost: Update io-pgtable API

2022-08-31 Thread Alyssa Rosenzweig
On Tue, Aug 23, 2022 at 11:42:33AM +0100, Robin Murphy wrote: > On 2022-08-23 03:51, Alyssa Rosenzweig wrote: > > > -static size_t get_pgsize(u64 addr, size_t size) > > > +static size_t get_pgsize(u64 addr, size_t size, size_t *count) > > > { > > > -

Re: [PATCH] drm/panfrost: Update io-pgtable API

2022-08-22 Thread Alyssa Rosenzweig
> -static size_t get_pgsize(u64 addr, size_t size) > +static size_t get_pgsize(u64 addr, size_t size, size_t *count) > { > - if (addr & (SZ_2M - 1) || size < SZ_2M) > - return SZ_4K; > + size_t blk_offset = -addr % SZ_2M; addr is unsigned. if this is correct, it's magic.

Re: [PATCH v6 1/2] drm/panfrost: Add specific register offset macros for JS and MMU AS

2022-07-29 Thread Alyssa Rosenzweig
Reviewed-by: Alyssa Rosenzweig On Fri, Jul 29, 2022 at 03:46:09PM +0100, Adri??n Larumbe wrote: > Each Panfrost job has its own job slot and MMU address space set of > registers, which are selected with a job-specific index. > > Turn the shift and stride used for selection of the ri

Re: [PATCH v4 1/2] drm/panfrost: Add specific register offset macros for JS and MMU AS

2022-06-22 Thread Alyssa Rosenzweig
Reviewed-by: Alyssa Rosenzweig On Wed, Jun 22, 2022 at 03:36:15PM +0100, Adri??n Larumbe wrote: > Each Panfrost job has its own job slot and MMU address space set of > registers, which are selected with a job-specific index. > > Turn the shift and stride used for selection of the ri

Re: [PATCH v3 1/1] drm/panfrost: Add support for devcoredump

2022-06-22 Thread Alyssa Rosenzweig
> Sorry about this blunder. > > >> + slot = panfrost_job_get_slot(job); > >> + slot = slot ? slot : 0; > > > >`slot = slot ? slot : 0` is a no-op. Delete the line. > > I think what I meant here was 'slot = (slot >= 0) ? slot : 0;' but for some > reason I blundered again. The point of this was e

Re: [PATCH v3 1/1] drm/panfrost: Add support for devcoredump

2022-06-22 Thread Alyssa Rosenzweig
> + js_as_offset = slot * 0x80; JS_SLOT_STRIDE > + slot = panfrost_job_get_slot(job); > + slot = slot ? slot : 0; `slot = slot ? slot : 0` is a no-op. Delete the line. > + if (!IS_ERR(page)) > + *bomap++ = cpu_to_le64(p

Re: [PATCH v2 1/1] drm/panfrost: Add support for devcoredump

2022-06-22 Thread Alyssa Rosenzweig
> > > + iter.start = __vmalloc(file_size, GFP_KERNEL | __GFP_NOWARN | > > > + __GFP_NORETRY); > > > + if (!iter.start) { > > > + dev_warn(pfdev->dev, "failed to allocate devcoredump file\n"); > > > + return; > > > + } > > > ... > > > + memset(iter.hdr, 0, iter.data -

Re: [kbuild-all] Re: [PATCH v2 1/1] drm/panfrost: Add support for devcoredump

2022-06-22 Thread Alyssa Rosenzweig
Hi Rong Chen, Sorry for the noise -- I think that was meant for Adrian! Apologies, Alyssa On Wed, Jun 22, 2022 at 10:30:00AM +0800, Chen, Rong A wrote: > > > On 6/21/2022 10:32 PM, Alyssa Rosenzweig wrote: > > > drivers/gpu/drm/panfrost/panfrost_d

Re: [PATCH v2 1/1] drm/panfrost: Add support for devcoredump

2022-06-21 Thread Alyssa Rosenzweig
>drivers/gpu/drm/panfrost/panfrost_dump.c: In function 'panfrost_core_dump': > >> drivers/gpu/drm/panfrost/panfrost_dump.c:115:20: error: 'struct > >> panfrost_job' has no member named 'file_priv' > 115 | as_nr = job->file_priv->mmu->as; > |^~ FWIW --

Re: [PATCH v2 1/1] drm/panfrost: Add support for devcoredump

2022-06-21 Thread Alyssa Rosenzweig
Hi Adrian, Great work on the devcoredump support! This is really cool to see coming along, thank you! I've left a few notes below: > + if (panfrost_dump_registers[i] >= JS_HEAD_LO(0) && > + panfrost_dump_registers[i] <= JS_CONFIG_NEXT(0)) > + js_as_

Re: [PATCH v6 04/22] drm/panfrost: Fix shrinker list corruption by madvise IOCTL

2022-05-27 Thread Alyssa Rosenzweig
Acked-by: Alyssa Rosenzweig On Fri, May 27, 2022 at 02:50:22AM +0300, Dmitry Osipenko wrote: > Calling madvise IOCTL twice on BO causes memory shrinker list corruption > and crashes kernel because BO is already on the list and it's added to > the list again, while BO should be rem

Re: [PATCH v6 22/22] drm/panfrost: Switch to generic memory shrinker

2022-05-27 Thread Alyssa Rosenzweig
Acked-by: Alyssa Rosenzweig On Fri, May 27, 2022 at 02:50:40AM +0300, Dmitry Osipenko wrote: > Replace Panfrost's memory shrinker with a generic drm-shmem memory > shrinker. > > Tested-by: Steven Price > Signed-off-by: Dmitry Osipenko > --- > drivers

[PATCH v2 5/9] drm/panfrost: Add HW_ISSUE_TTRX_3485 quirk

2022-05-25 Thread Alyssa Rosenzweig
need it in the future. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Steven Price --- drivers/gpu/drm/panfrost/panfrost_issues.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/panfrost/panfrost_issues.h b/drivers/gpu/drm/panfrost/panfrost_issues.h index e35807e4b743..4d

[PATCH v2 9/9] drm/panfrost: Add arm,mali-valhall-jm compatible

2022-05-25 Thread Alyssa Rosenzweig
The most important Valhall-specific quirks have been handled, so add the Valhall compatible and probe. v2: Use arm,mali-valhall-jm compatible. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Steven Price --- drivers/gpu/drm/panfrost/panfrost_drv.c | 1 + 1 file changed, 1 insertion(+) diff

[PATCH v2 8/9] drm/panfrost: Add Mali-G57 "Natt" support

2022-05-25 Thread Alyssa Rosenzweig
TTRX_3485. Signed-off-by: Alyssa Rosenzweig --- drivers/gpu/drm/panfrost/panfrost_features.h | 12 drivers/gpu/drm/panfrost/panfrost_gpu.c | 3 +++ drivers/gpu/drm/panfrost/panfrost_issues.h | 9 + 3 files changed, 24 insertions(+) diff --git a/drivers/gpu/drm

[PATCH v2 6/9] drm/panfrost: Add "clean only safe" feature bit

2022-05-25 Thread Alyssa Rosenzweig
ff-by: Alyssa Rosenzweig Reviewed-by: Steven Price --- drivers/gpu/drm/panfrost/panfrost_features.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/panfrost/panfrost_features.h b/drivers/gpu/drm/panfrost/panfrost_features.h index 36fadcf9634e..1a8bdebc86a3 100644 --- a/drivers/gp

[PATCH v2 7/9] drm/panfrost: Don't set L2_MMU_CONFIG quirks

2022-05-25 Thread Alyssa Rosenzweig
o new Mali GPUs, which have different layouts for the L2_MMU_CONFIG register. Signed-off-by: Alyssa Rosenzweig Suggested-by: Steven Price Reviewed-by: Steven Price --- drivers/gpu/drm/panfrost/panfrost_gpu.c | 12 1 file changed, 12 deletions(-) diff --git a/drivers/gpu/dr

[PATCH v2 2/9] drm/panfrost: Handle HW_ISSUE_TTRX_2968_TTRX_3162

2022-05-25 Thread Alyssa Rosenzweig
Add handling for the HW_ISSUE_TTRX_2968_TTRX_3162 quirk. Logic ported from kbase. kbase lists this workaround as used on Mali-G57. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Steven Price --- drivers/gpu/drm/panfrost/panfrost_gpu.c| 3 +++ drivers/gpu/drm/panfrost/panfrost_issues.h | 3

[PATCH v2 4/9] drm/panfrost: Handle HW_ISSUE_TTRX_3076

2022-05-25 Thread Alyssa Rosenzweig
Some Valhall GPUs require resets when encountering bus faults due to occlusion query writes. Add the issue bit for this and handle it. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Steven Price --- drivers/gpu/drm/panfrost/panfrost_device.c | 9 +++-- drivers/gpu/drm/panfrost

[PATCH v2 3/9] drm/panfrost: Constify argument to has_hw_issue

2022-05-25 Thread Alyssa Rosenzweig
Logically, this function is free of side effects, so any pointers it takes should be const. Needed to avoid a warning in the next patch. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Steven Price --- drivers/gpu/drm/panfrost/panfrost_issues.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH v2 1/9] dt-bindings: Add compatible for Mali Valhall (JM)

2022-05-25 Thread Alyssa Rosenzweig
rt, add a specific compatible for the MediaTek MT8192, which instantiates a Mali-G57. v2: Change compatible to arm,mali-valhall-jm (Daniel Stone). Signed-off-by: Alyssa Rosenzweig CC: devicet...@vger.kernel.org --- .../bindings/gpu/arm,mali-bifrost.yaml| 25 +++

  1   2   3   4   >