Re: [Nouveau] [PATCH 0/5] Add the pci_get_base_class() helper and use it

2023-09-28 Thread Bjorn Helgaas
On Fri, Aug 25, 2023 at 02:27:09PM +0800, Sui Jingfeng wrote: > From: Sui Jingfeng > > There is no function that can be used to get all PCI(e) devices in a > system by matching against its the PCI base class code only, while keep > the sub-class code and the programming interface ignored.

[Nouveau] [PATCH drm-misc-next v5 5/6] drm/nouveau: make use of the GPUVM's shared dma-resv

2023-09-28 Thread Danilo Krummrich
DRM GEM objects private to a single GPUVM can use a shared dma-resv. Make use of the shared dma-resv of GPUVM rather than a driver specific one. The shared dma-resv originates from a "root" GEM object serving as container for the dma-resv to make it compatible with drm_exec. In order to make

[Nouveau] [PATCH drm-misc-next v5 6/6] drm/nouveau: use GPUVM common infrastructure

2023-09-28 Thread Danilo Krummrich
GPUVM provides common infrastructure to track external and evicted GEM objects as well as locking and validation helpers. Especially external and evicted object tracking is a huge improvement compared to the current brute force approach of iterating all mappings in order to lock and validate the

[Nouveau] [PATCH drm-misc-next v5 4/6] drm/gpuvm: track/lock/validate external/evicted objects

2023-09-28 Thread Danilo Krummrich
Currently the DRM GPUVM offers common infrastructure to track GPU VA allocations and mappings, generically connect GPU VA mappings to their backing buffers and perform more complex mapping operations on the GPU VA space. However, there are more design patterns commonly used by drivers, which can

[Nouveau] [PATCH drm-misc-next v5 3/6] drm/gpuvm: add an abstraction for a VM / BO combination

2023-09-28 Thread Danilo Krummrich
This patch adds an abstraction layer between the drm_gpuva mappings of a particular drm_gem_object and this GEM object itself. The abstraction represents a combination of a drm_gem_object and drm_gpuvm. The drm_gem_object holds a list of drm_gpuvm_bo structures (the structure representing this

[Nouveau] [PATCH drm-misc-next v5 2/6] drm/gpuvm: add drm_gpuvm_flags to drm_gpuvm

2023-09-28 Thread Danilo Krummrich
Introduce flags for struct drm_gpuvm, this required by subsequent commits. Signed-off-by: Danilo Krummrich --- drivers/gpu/drm/drm_gpuvm.c| 4 +++- drivers/gpu/drm/nouveau/nouveau_uvmm.c | 2 +- include/drm/drm_gpuvm.h| 17 - 3 files changed, 20

[Nouveau] [PATCH drm-misc-next v5 1/6] drm/gpuvm: add common dma-resv per struct drm_gpuvm

2023-09-28 Thread Danilo Krummrich
Provide a common dma-resv for GEM objects not being used outside of this GPU-VM. This is used in a subsequent patch to generalize dma-resv, external and evicted object handling and GEM validation. Signed-off-by: Danilo Krummrich --- drivers/gpu/drm/drm_gpuvm.c| 56

[Nouveau] [PATCH drm-misc-next v5 0/6] [RFC] DRM GPUVM features

2023-09-28 Thread Danilo Krummrich
Currently GPUVM offers common infrastructure to track GPU VA allocations and mappings, generically connect GPU VA mappings to their backing buffers and perform more complex mapping operations on the GPU VA space. However, there are more design patterns commonly used by drivers, which can

Re: [Nouveau] Requests For Proposals for hosting XDC 2024 are now open

2023-09-28 Thread Ricardo Garcia
The period to submit XDC 2024 hosting proposals has been extended and the new deadline is **November 1, 2023** Please, submit your proposals as soon as possible, thank you! On Mon, 2023-06-19 at 15:43 +0200, Ricardo Garcia wrote: > Hello everyone! > > The X.org board is soliciting proposals to

Re: [PATCH 9/9] drm/v3d: Annotate struct v3d_perfmon with __counted_by

2023-09-28 Thread Maira Canal
Hi Kees, On 9/22/23 14:32, Kees Cook wrote: Prepare for the coming implementation by GCC and Clang of the __counted_by attribute. Flexible array members annotated with __counted_by can have their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS (for array indexing) and

Re: [Nouveau] [PATCH drm-misc-next 1/3] drm/sched: implement dynamic job flow control

2023-09-28 Thread Luben Tuikov
On 2023-09-28 04:02, Boris Brezillon wrote: > On Wed, 27 Sep 2023 13:54:38 +0200 > Christian König wrote: > >> Am 26.09.23 um 09:11 schrieb Boris Brezillon: >>> On Mon, 25 Sep 2023 19:55:21 +0200 >>> Christian König wrote: >>> Am 25.09.23 um 14:55 schrieb Boris Brezillon: > +The

Re: [Nouveau] [PATCH v2] MAINTAINERS: Update drm-misc entry to match all drivers

2023-09-28 Thread Maxime Ripard
Hi, On Thu, Sep 21, 2023 at 12:57:43PM +0200, Maxime Ripard wrote: > We've had a number of times when a patch slipped through and we couldn't > pick them up either because our MAINTAINERS entry only covers the > framework and thus we weren't Cc'd. > > Let's take another approach where we match