[PATCH 0/2] Nova DRM skeleton driver

2025-04-05 Thread Danilo Krummrich
This patch series adds the nova-drm skeleton driver. nova-drm is connected to nova-core through the auxiliary bus and implements the DRM parts of the nova driver stack. For now, it implements the fundamental DRM abstractions, i.e. creates a DRM device and registers it, exposing a three sample IOC

[PATCH 1/2] gpu: nova-core: register auxiliary device for nova-drm

2025-04-05 Thread Danilo Krummrich
Register an auxiliary device for nova-drm. For now always use zero for the auxiliary device' ID; we don't use it yet anyways. However, once it lands, we should switch to XArray. Signed-off-by: Danilo Krummrich --- drivers/gpu/nova-core/Kconfig | 1 + drivers/gpu/nova-core/driver.rs| 9

Re: [PATCH 1/2] drm/nouveau: Add DRM_IOCTL_NOUVEAU_GET_ZCULL_INFO

2025-04-05 Thread M Henning
On Thu, Mar 27, 2025 at 9:51 AM Danilo Krummrich wrote: > > On Fri, Mar 21, 2025 at 06:06:34PM -0400, M Henning wrote: > > On Thu, Mar 20, 2025 at 2:18 PM Danilo Krummrich wrote: > > > On Wed, Mar 12, 2025 at 05:36:14PM -0400, Mel Henning wrote: > > > > + __u32 width_align_pixels; > > > > +

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

2025-04-05 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 v3 7/7] gpu: nova-core: add falcon register definitions and probe code

2025-04-05 Thread Alexandre Courbot
This is still very preliminary work, and is mostly designed to show how register fields can be turned into safe types that force us to handle invalid values. Signed-off-by: Alexandre Courbot --- drivers/gpu/nova-core/driver.rs| 2 +- drivers/gpu/nova-core/falcon.rs| 618 +++

[RFC PATCH 5/5] drm/nouveau: Remove waitque for sched teardown

2025-04-05 Thread Philipp Stanner
struct nouveau_sched contains a waitque needed to prevent drm_sched_fini() from being called while there are still jobs pending. Doing so so far would have caused memory leaks. With the new memleak-free mode of operation switched on in drm_sched_fini() by providing the callback nouveau_sched_fence

[PATCH v8 00/10] Improve gpu_scheduler trace events + UAPI

2025-04-05 Thread Pierre-Eric Pelloux-Prayer
Hi, The initial goal of this series was to improve the drm and amdgpu trace events to be able to expose more of the inner workings of the scheduler and drivers to developers via tools. Then, the series evolved to become focused only on gpu_scheduler. The changes around vblank events will be part

Re: [PATCH v2] drm/nouveau: Prevent signalled fences in pending list

2025-04-05 Thread Danilo Krummrich
On Thu, Apr 03, 2025 at 02:08:06PM +0200, Christian König wrote: > Am 03.04.25 um 12:13 schrieb Philipp Stanner: > > > @@ -235,6 +227,19 @@ nouveau_fence_emit(struct nouveau_fence *fence) > >&fctx->lock, fctx->context, ++fctx->sequence); > > kref_get(&fctx->fence_re