[PATCH 34/34] drm/nouveau/kms: remove push pointer from nv50_dmac

2024-05-27 Thread Ben Skeggs
The struct itself lives in nv50_dmac already, just use that. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/dispnv50/base507c.c | 18 +-- drivers/gpu/drm/nouveau/dispnv50/base827c.c | 2 +- drivers/gpu/drm/nouveau/dispnv50/base907c.c | 10 +++--- drivers/gpu/drm/nouveau/dispnv50

[PATCH 32/34] drm/nouveau: remove push pointer from nouveau_channel

2024-05-27 Thread Ben Skeggs
The struct itself lives in nouveau_channel already, just use that. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/dispnv04/crtc.c | 4 +-- drivers/gpu/drm/nouveau/nouveau_bo0039.c | 4 +-- drivers/gpu/drm/nouveau/nouveau_bo5039.c | 4 +-- drivers/gpu/drm/nouveau/nouveau_bo74c1.c | 2

[PATCH 33/34] drm/nouveau/kms: remove a few unused struct members and fn decls

2024-05-27 Thread Ben Skeggs
Left-overs from the past that are completely unused now. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/dispnv50/disp.c | 3 --- drivers/gpu/drm/nouveau/dispnv50/disp.h | 9 - 2 files changed, 12 deletions(-) diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu

[PATCH 31/34] drm/nouveau: remove master

2024-05-27 Thread Ben Skeggs
. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/nouveau_drm.c | 42 +++ drivers/gpu/drm/nouveau/nouveau_drv.h | 3 +- drivers/gpu/drm/nouveau/nouveau_mem.c | 12 3 files changed, 25 insertions(+), 32 deletions(-) diff --git a/drivers/gpu/drm/nouveau

[PATCH 28/34] drm/nouveau: pass cli to nouveau_channel_new() instead of drm+device

2024-05-27 Thread Ben Skeggs
Both of these are stored in nouveau_cli already, and also allows the removal of some void casts. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/dispnv04/crtc.c | 2 +- drivers/gpu/drm/nouveau/nouveau_abi16.c | 2 +- drivers/gpu/drm/nouveau/nouveau_bo.c| 2 +- drivers/gpu/drm

[PATCH 30/34] drm/nouveau: remove chan->drm

2024-05-27 Thread Ben Skeggs
The nouveau_cli that owns the channel is now stored in nouveau_chan, and it has a pointer to the drm device already. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/dispnv04/crtc.c | 4 ++-- drivers/gpu/drm/nouveau/nouveau_bo0039.c | 2 +- drivers/gpu/drm/nouveau/nouveau_bo5039.c | 2

[PATCH 27/34] drm/nouveau: pass drm to nv50_dmac_create(), rather than device+disp

2024-05-27 Thread Ben Skeggs
Both of these are stored in nouveau_drm already. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/dispnv50/base507c.c | 3 +-- drivers/gpu/drm/nouveau/dispnv50/core507d.c | 2 +- drivers/gpu/drm/nouveau/dispnv50/disp.c | 8 drivers/gpu/drm/nouveau/dispnv50/disp.h | 2

[PATCH 29/34] drm/nouveau: remove nouveau_chan.device

2024-05-27 Thread Ben Skeggs
nouveau_chan.device is always the same as nouveau_chan.cli.device, so there's no need to store it separately. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/nouveau_chan.c | 6 +++--- drivers/gpu/drm/nouveau/nouveau_chan.h | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff

[PATCH 23/34] drm/nouveau/nvif: remove disp chan rd/wr

2024-05-27 Thread Ben Skeggs
There's no good reason the ioremap() that results from nvif_object_map() should fail, so add a check that the map succeeded, and remove the rd/wr methods from display channel objects. As this was the last user of rd/wr methods, the nvif plumbing is removed at the same time. Signed-off-by: Ben

[PATCH 20/34] drm/nouveau/nvif: remove device args

2024-05-27 Thread Ben Skeggs
These were once used by used by userspace tools (with nvkm built as a library), to access multiple GPUs from a single nvif_client. The DRM code just uses the driver's default device, so we can remove the arguments. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/cl0080.h

[PATCH 22/34] drm/nouveau/nvif: remove device rd/wr

2024-05-27 Thread Ben Skeggs
The device is always mapped now, so these are unneeded. Signed-off-by: Ben Skeggs --- .../drm/nouveau/include/nvkm/core/object.h| 8 --- drivers/gpu/drm/nouveau/nvkm/core/ioctl.c | 10 drivers/gpu/drm/nouveau/nvkm/core/object.c| 32 --- drivers/gpu/drm/nouveau/nvkm

[PATCH 26/34] drm/nouveau: pass drm to nouveau_mem_new(), instead of cli

2024-05-27 Thread Ben Skeggs
The nouveau_cli pointer is only ever used to eventually access nouveau_drm, so just store it directly. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/nouveau_mem.c | 18 -- drivers/gpu/drm/nouveau/nouveau_mem.h | 4 ++-- drivers/gpu/drm/nouveau/nouveau_sgdma.c | 2

[PATCH 21/34] drm/nouveau: always map device

2024-05-27 Thread Ben Skeggs
a new nvif_device (which will replace the usage of nouveau_drm.master.device later on), and replicates this pointer to all other possible users. This will be cleaned up by the end of another patch series, after it's been made safe to do so. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau

[PATCH 24/34] drm/nouveau: move nvxx_* definitions to nouveau_drv.h

2024-05-27 Thread Ben Skeggs
These are some dodgy "convenience" macros for the DRM driver to peek into NVKM state. They're still used in a few places, but don't belong in nvif/device.h in any case. Move them to nouveau_drv.h, and modify callers to pass a nouveau_drm instead of an nvif_device. Signed-off-by:

[PATCH 19/34] drm/nouveau/nvif: remove client fini

2024-05-27 Thread Ben Skeggs
Does nothing. Remove it. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/nvkm/core/client.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/core/client.c b/drivers/gpu/drm/nouveau/nvkm/core/client.c index 5c87146b8508..72c88db627a5 100644

[PATCH 17/34] drm/nouveau/nvif: remove client version

2024-05-27 Thread Ben Skeggs
This is not, and has never, been used for anything. Remove it. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/client.h | 2 -- drivers/gpu/drm/nouveau/include/nvif/ioctl.h | 7 --- drivers/gpu/drm/nouveau/nvif/client.c | 20 +-- drivers/gpu

[PATCH 25/34] drm/nouveau: add nvif_mmu to nouveau_drm

2024-05-27 Thread Ben Skeggs
This allocates a new nvif_mmu in nouveau_drm, and uses it for TTM backend memory allocations instead of nouveau_drm.master.mmu, which will be removed in a later commit. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/nouveau_drm.c | 36 --- drivers/gpu/drm/nouveau

[PATCH 15/34] drm/nouveau/nvif: remove driver keep/fini

2024-05-27 Thread Ben Skeggs
These are remnants of code long gone. Remove them. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/driver.h | 2 -- drivers/gpu/drm/nouveau/nouveau_nvif.c| 1 - drivers/gpu/drm/nouveau/nvif/client.c | 6 +- 3 files changed, 1 insertion(+), 8 deletions

[PATCH 18/34] drm/nouveau/nvif: remove client devlist

2024-05-27 Thread Ben Skeggs
This was once used by userspace tools (with nvkm built as a library), but is now unused. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/if.h | 9 - .../drm/nouveau/include/nvkm/core/device.h| 1 - drivers/gpu/drm/nouveau/nvkm/core/client.c| 40

[PATCH 16/34] drm/nouveau/nvif: remove client device arg

2024-05-27 Thread Ben Skeggs
This was once used by userspace tools (with nvkm built as a library), as a way to select a "default device". The DRM code doesn't need this at all as clients only have access to a single device already, so the value can be inherited from its parent. Signed-off-by: Ben Skeggs --- d

[PATCH 14/34] drm/nouveau/nvif: remove nvxx_client()

2024-05-27 Thread Ben Skeggs
Make use of nouveau_cli.name instead of nvkm_client.name. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/client.h | 5 - drivers/gpu/drm/nouveau/nouveau_chan.c| 2 +- drivers/gpu/drm/nouveau/nouveau_drm.c | 3 --- drivers/gpu/drm/nouveau/nouveau_fence.c

[PATCH 12/34] drm/nouveau/nvif: remove route/token

2024-05-27 Thread Ben Skeggs
These were a cludge used to prevent userspace's nvif ioctl from accessing objects created by the kernel for the same client. That interface was removed in a previous patch, so these are no longer useful for anything. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/client.h

[PATCH 13/34] drm/nouveau/nvif: remove nvxx_object()

2024-05-27 Thread Ben Skeggs
This hasn't been used in a while. Moves some io accessors to another include at the same time to fix a compile issue that resulted from no longer being included. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/object.h | 7 --- drivers/gpu/drm/nouveau/include/nvif/os.h

[PATCH 10/34] drm/nouveau/nvkm: remove nvkm_client_search()

2024-05-27 Thread Ben Skeggs
Has been unused for a while now. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvkm/core/client.h | 1 - drivers/gpu/drm/nouveau/nvkm/core/client.c | 13 - 2 files changed, 14 deletions(-) diff --git a/drivers/gpu/drm/nouveau/include/nvkm/core/client.h b

[PATCH 11/34] drm/nouveau/nvif: remove support for userspace backends

2024-05-27 Thread Ben Skeggs
The tools that used libnvkm no longer exist. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/driver.h | 3 -- drivers/gpu/drm/nouveau/nvif/driver.c | 32 --- 2 files changed, 7 insertions(+), 28 deletions(-) diff --git a/drivers/gpu/drm/nouveau

[PATCH 09/34] drm/nouveau/nvkm: remove perfmon

2024-05-27 Thread Ben Skeggs
This has never really been used for anything, in part due to never having reclocking stable enough in general to attempt to implement dynamic clock changes based on load, etc. To avoid having to rework its interfaces, remove it entirely. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau

[PATCH 08/34] drm/nouveau/nvkm: remove detect/mmio/subdev_mask from device args

2024-05-27 Thread Ben Skeggs
All callers now pass "detect=true, mmio=true, subdev_mask=~0ULL", so remove the function arguments, and associated code. Signed-off-by: Ben Skeggs --- .../gpu/drm/nouveau/include/nvkm/core/pci.h | 1 - .../gpu/drm/nouveau/include/nvkm/core/tegra.h | 1 - drivers/gpu/d

[PATCH 05/34] drm/nouveau: handle limited nvif ioctl in abi16

2024-05-27 Thread Ben Skeggs
some of this. Fortunately, userspace only ever ended up using a fraction of the APIs, so I've reimplemented those in a more direct manner, and return -EINVAL to userspace for everything else. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/Kbuild | 1 - drivers/gpu/drm/nouveau

[PATCH 04/34] drm/nouveau: add nouveau_cli to nouveau_abi16

2024-05-27 Thread Ben Skeggs
Removes some dubious void casts. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/nouveau_abi16.c | 9 + drivers/gpu/drm/nouveau/nouveau_abi16.h | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_abi16.c b/drivers/gpu/drm/nouveau

[PATCH 07/34] drm/nouveau: remove abi16->handles

2024-05-27 Thread Ben Skeggs
Hasn't been needed since 2015... Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/nouveau_abi16.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_abi16.h b/drivers/gpu/drm/nouveau/nouveau_abi16.h index 4743459ea14c..af6b4e1cefd2 100644 --- a/drivers/gpu

[PATCH 06/34] drm/nouveau: remove abi16->device

2024-05-27 Thread Ben Skeggs
The previous commit removes the last remnants of userspace's own nvif instance, so this isn't needed anymore to hide the abi16 objects from userspace and we can use nouveau_cli.device instead. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/nouveau_abi16.c | 25

[PATCH 01/34] drm/nouveau: create pci device once

2024-05-27 Thread Ben Skeggs
HW isn't touched anymore (aside from detection) until the first nvif_device has been allocated, so we no longer need a separate probe-only step before kicking efifb (etc) off the HW. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/nouveau_drm.c | 11 ++- 1 file changed, 2

[PATCH 03/34] drm/nouveau: move allocation of root client out of nouveau_cli_init()

2024-05-27 Thread Ben Skeggs
tch series will remove the need for the above-mentioned hack entirely. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/nouveau_drm.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouv

[PATCH 02/34] drm/nouveau: store nvkm_device pointer in nouveau_drm

2024-05-27 Thread Ben Skeggs
, and that field will no longer exist. This provides a safer replacement for accessing the nvkm_device, and will used more in upcoming patches to cleanup other cases. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/nouveau_drm.c | 13 + drivers/gpu/drm/nouveau/nouveau_drv.h | 1 + 2 files

[PATCH 00/34] drm/nouveau: misc. cleanups and removal of unused apis

2024-05-27 Thread Ben Skeggs
, but not this one, are available at [2]. [1] https://gitlab.freedesktop.org/bskeggs/nouveau/-/tree/00.00-cleanup [2] https://gitlab.freedesktop.org/bskeggs/nouveau/-/tree/00.01-remove-ioctl Ben Skeggs (34): drm/nouveau: create pci device once drm/nouveau: store nvkm_device pointer in nouveau_drm

Re: [PATCH v2 2/2] drm/nouveau/gsp: Use the sg allocator for level 2 of radix3

2024-04-29 Thread Ben Skeggs
. For both patches: Reviewed-by: Ben Skeggs Ben. --- .../gpu/drm/nouveau/include/nvkm/subdev/gsp.h | 4 +- .../gpu/drm/nouveau/nvkm/subdev/gsp/r535.c| 77 --- 2 files changed, 54 insertions(+), 27 deletions(-) diff --git a/drivers/gpu/drm/nouveau/include/nvkm/subdev

Re: Issues with trying to boot falcons from sgt memory + Possible firmware SG_DEBUG fix?

2024-04-21 Thread Ben Skeggs
On 19/4/24 08:14, David Airlie wrote: On Fri, Apr 19, 2024 at 6:27 AM Lyude Paul wrote: So - first some context here for Ben and anyone else who hasn't been following. A little while ago I got a Slimbook Executive 16 with a Nvidia RTX 4060 in it, and I've unfortunately been running into a

Re: Issues with trying to boot falcons from sgt memory + Possible firmware SG_DEBUG fix?

2024-04-21 Thread Ben Skeggs
On 19/4/24 06:27, Lyude Paul wrote: So - first some context here for Ben and anyone else who hasn't been following. A little while ago I got a Slimbook Executive 16 with a Nvidia RTX 4060 in it, and I've unfortunately been running into a kind of annoying issue. Currently this laptop only has 16

[PATCH 025/156] drm/nouveau/nvkm: remove perfmon

2024-04-19 Thread Ben Skeggs
This has never really been used for anything, in part due to never having reclocking stable enough in general to attempt to implement dynamic clock changes based on load, etc. To avoid having to rework its interfaces, remove it entirely. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau

Re: [PATCH 000/156] drm/nouveau: replace "ioctl" interface between drm/nvkm

2024-04-18 Thread Ben Skeggs
On 18/4/24 08:24, Danilo Krummrich wrote: Hi Ben, Welcome back from my side as well! Hey Danilo, Thanks! On Wed, Apr 17, 2024 at 09:37:26AM +1000, Ben Skeggs wrote: This is a series of cleanups that I intended on doing after posting the initial GSP-RM support several months ago

Re: [PATCH 000/156] drm/nouveau: replace "ioctl" interface between drm/nvkm

2024-04-18 Thread Ben Skeggs
On 17/4/24 14:15, Dave Airlie wrote: On Wed, 17 Apr 2024 at 10:57, Ben Skeggs wrote: This is a series of cleanups that I intended on doing after posting the initial GSP-RM support several months ago, and have now had the opportunity to work on again. The main intention here is to replace

[PATCH 155/156] drm/nouveau: remove remaining usage of nvif_device.object.map

2024-04-16 Thread Ben Skeggs
- accesses to PRI are now via nvif_device.map Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/dispnv04/dac.c| 10 +- drivers/gpu/drm/nouveau/dispnv04/dfp.c| 2 +- drivers/gpu/drm/nouveau/dispnv04/hw.c | 8 drivers/gpu/drm/nouveau/dispnv04/hw.h

[PATCH 153/156] drm/nouveau: pass nouveau_drm to nvxx_*

2024-04-16 Thread Ben Skeggs
- removes usage of nvif_object.priv Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/dispnv04/crtc.c | 4 +- drivers/gpu/drm/nouveau/dispnv04/dac.c| 2 +- drivers/gpu/drm/nouveau/dispnv04/dfp.c| 2 +- drivers/gpu/drm/nouveau/dispnv04/disp.c | 2 +- drivers

[PATCH 152/156] drm/nouveau: move nvxx_* definitions to nouveau_drv.h

2024-04-16 Thread Ben Skeggs
- move out of nvif Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/device.h | 33 --- drivers/gpu/drm/nouveau/nouveau_bios.h| 1 + drivers/gpu/drm/nouveau/nouveau_drv.h | 32 ++ 3 files changed, 33 insertions(+), 33 deletions

[PATCH 151/156] drm/nouveau: remove client_mutex

2024-04-16 Thread Ben Skeggs
- this protected the drm.master object rb, which no longer exists Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/nouveau_drm.c | 7 --- drivers/gpu/drm/nouveau/nouveau_drv.h | 1 - drivers/gpu/drm/nouveau/nouveau_mem.c | 6 -- 3 files changed, 14 deletions(-) diff --git

[PATCH 149/156] drm/nouveau/nvif: remove engobj from object rb

2024-04-16 Thread Ben Skeggs
- no more users Signed-off-by: Ben Skeggs --- .../gpu/drm/nouveau/include/nvif/driverif.h | 4 +- drivers/gpu/drm/nouveau/include/nvif/object.h | 13 +- .../drm/nouveau/include/nvkm/core/client.h| 1 - .../gpu/drm/nouveau/include/nvkm/core/ioctl.h | 8 - .../drm/nouveau/include

[PATCH 147/156] drm/nouveau/nvif: rework engobj "mthd" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/driverif.h | 1 + drivers/gpu/drm/nouveau/nv04_fence.c | 7 +-- drivers/gpu/drm/nouveau/nvkm/engine/fifo/uchan.c | 9 + drivers/gpu/drm/nouveau/nvkm/engine/

[PATCH 146/156] drm/nouveau/nvif: remove chan from object rb

2024-04-16 Thread Ben Skeggs
- no more users Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/driverif.h | 3 +-- drivers/gpu/drm/nouveau/nouveau_chan.c | 3 +-- drivers/gpu/drm/nouveau/nvkm/device/user.c | 5 +++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu

[PATCH 154/156] drm/nouveau: remove remaining usage of nvif_device.info

2024-04-16 Thread Ben Skeggs
- complete the switch to nvif_device.impl Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/dispnv04/arb.c| 7 +- drivers/gpu/drm/nouveau/dispnv04/crtc.c | 34 +- drivers/gpu/drm/nouveau/dispnv04/cursor.c | 2 +- drivers/gpu/drm/nouveau/dispnv04/dac.c| 6

[PATCH 156/156] drm/nouveau: remove remaining usage of nouveau_drm.client

2024-04-16 Thread Ben Skeggs
- complete the switch to nouveau_drm.cli - renames drm._client to drm.client Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/dispnv04/crtc.c | 2 +- drivers/gpu/drm/nouveau/dispnv50/crc.c | 2 +- drivers/gpu/drm/nouveau/dispnv50/disp.c | 2 +- drivers/gpu/drm/nouveau/dispnv50/head.c

[PATCH 144/156] drm/nouveau/nvif: rework chan "new ctxdma" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/chan.h | 4 ++ .../gpu/drm/nouveau/include/nvif/driverif.h | 5 ++ drivers/gpu/drm/nouveau/nouveau_abi16.c | 15 +++--- drivers/gpu/drm/nouveau/nouveau_abi16.h

[PATCH 142/156] drm/nouveau/nvif: rework chan "sclass" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interfaces Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/fifo.h | 2 + drivers/gpu/drm/nouveau/include/nvif/object.h | 8 -- drivers/gpu/drm/nouveau/nouveau_abi16.c | 91 +-- drivers/gpu/drm/nouveau/n

[PATCH 145/156] drm/nouveau/nvif: rework chan "new engobj" apis

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interfaces Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/dispnv04/disp.c | 2 +- drivers/gpu/drm/nouveau/include/nvif/chan.h | 10 ++ .../gpu/drm/nouveau/include/nvif/driverif.h | 11 ++ drivers/gpu/drm/nouveau/nouveau_abi16.c

[PATCH 137/156] drm/nouveau/nvif: remove mem from object rb

2024-04-16 Thread Ben Skeggs
- also removes umem list hack - no more users Signed-off-by: Ben Skeggs --- .../gpu/drm/nouveau/include/nvif/driverif.h | 2 +- .../gpu/drm/nouveau/include/nvkm/subdev/mmu.h | 4 --- drivers/gpu/drm/nouveau/nvif/mem.c| 3 +- .../gpu/drm/nouveau/nvkm/subdev/mmu/base.c| 2

[PATCH 150/156] drm/nouveau/nvkm: switch nvkm_object to non-irqsafe spinlock

2024-04-16 Thread Ben Skeggs
- nvkm_object_search() no longer exists to be called from irq context Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/nvkm/core/object.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/core/object.c b/drivers/gpu/drm/nouveau/nvkm

[PATCH 148/156] drm/nouveau/nvif: rework engobj "new event" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/dispnv04/disp.c | 8 ++- .../gpu/drm/nouveau/include/nvif/driverif.h | 5 ++ drivers/gpu/drm/nouveau/include/nvif/event.h | 21 +-- drivers/gpu/drm/nouveau/include/nvif/if0

[PATCH 139/156] drm/nouveau/nvif: remove ctxdma from object rb

2024-04-16 Thread Ben Skeggs
- no more users Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/driverif.h | 3 +-- drivers/gpu/drm/nouveau/include/nvkm/engine/dma.h | 2 -- drivers/gpu/drm/nouveau/nvif/device.c | 2 +- drivers/gpu/drm/nouveau/nvkm/device/user.c| 6 +++--- drivers

[PATCH 132/156] drm/nouveau/nvif: rework disp chan "new ctxdma" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/dispnv50/core.c | 36 drivers/gpu/drm/nouveau/dispnv50/core.h | 5 +- drivers/gpu/drm/nouveau/dispnv50/core507d.c | 2 +- drivers/gpu/drm/nouveau/dispnv50/corec37

[PATCH 138/156] drm/nouveau/nvif: remove vmm from object rb

2024-04-16 Thread Ben Skeggs
- no more users Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/driverif.h | 3 +-- drivers/gpu/drm/nouveau/include/nvkm/subdev/mmu.h | 2 -- drivers/gpu/drm/nouveau/nvif/vmm.c| 3 +-- drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ummu.c| 5 +++-- drivers

[PATCH 135/156] drm/nouveau/nvif: rework device "new ctxdma" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/device.h | 4 ++ .../gpu/drm/nouveau/include/nvif/driverif.h | 6 +++ drivers/gpu/drm/nouveau/nouveau_chan.c| 11 +++-- drivers/gpu/drm/nouveau/nouveau_chan.h

[PATCH 143/156] drm/nouveau/nvif: rework chan "new event" apis

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interfaces Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/chan.h | 6 +++ drivers/gpu/drm/nouveau/include/nvif/class.h | 1 - .../gpu/drm/nouveau/include/nvif/driverif.h | 7 +++ drivers/gpu/drm/nouveau/include/nvif/if0

[PATCH 141/156] drm/nouveau/nvif: rework chan "map" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- .../gpu/drm/nouveau/include/nvif/driverif.h | 2 + drivers/gpu/drm/nouveau/include/nvif/ioctl.h | 17 drivers/gpu/drm/nouveau/include/nvif/object.h | 5 -- .../drm/nouveau/include/nvkm/core/object.h| 11 --

[PATCH 130/156] drm/nouveau/nvif: rework disp "new chan" apis

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interfaces Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/dispnv50/base507c.c | 21 +- drivers/gpu/drm/nouveau/dispnv50/core.c | 6 +- drivers/gpu/drm/nouveau/dispnv50/core.h | 4 +- drivers/gpu/drm/nouveau/dispnv50/core507d

[PATCH 136/156] drm/nouveau/nvif: rework device/cgrp "new chan" apis

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interfaces Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/chan.h | 25 .../gpu/drm/nouveau/include/nvif/driverif.h | 31 + drivers/gpu/drm/nouveau/include/nvif/if0020.h | 32 - drivers/gpu/drm/nouveau/nouveau_abi16.c

[PATCH 129/156] drm/nouveau/nvif: remove head from object rb

2024-04-16 Thread Ben Skeggs
- no more users Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/driverif.h | 3 +-- drivers/gpu/drm/nouveau/nvif/head.c | 3 +-- drivers/gpu/drm/nouveau/nvkm/engine/disp/udisp.c | 6 +++--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers

[PATCH 126/156] drm/nouveau/nvif: rework disp "new head" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- .../gpu/drm/nouveau/include/nvif/driverif.h | 8 ++ drivers/gpu/drm/nouveau/include/nvif/head.h | 2 ++ drivers/gpu/drm/nouveau/include/nvif/if0013.h | 8 -- drivers/gpu/drm/nouveau/nvif/head.c

[PATCH 140/156] drm/nouveau/nvif: remove device from object rb

2024-04-16 Thread Ben Skeggs
- no more users Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/driverif.h | 3 +-- drivers/gpu/drm/nouveau/nvif/device.c | 3 +-- drivers/gpu/drm/nouveau/nvkm/core/client.c | 6 +++--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/gpu

[PATCH 134/156] drm/nouveau/nvif: rework device "new cgrp" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/cgrp.h | 17 + .../gpu/drm/nouveau/include/nvif/driverif.h | 10 +++ drivers/gpu/drm/nouveau/include/nvif/if0021.h | 16 - drivers/gpu/drm/nouveau/nvif/Kbuild

[PATCH 128/156] drm/nouveau/nvif: rework head "new event" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- .../gpu/drm/nouveau/include/nvif/driverif.h | 3 +++ drivers/gpu/drm/nouveau/include/nvif/if0013.h | 9 - drivers/gpu/drm/nouveau/nouveau_display.c | 1 - drivers/gpu/drm/nouveau/nvif/head.c

[PATCH 127/156] drm/nouveau/nvif: rework head "scanoutpos" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- .../gpu/drm/nouveau/include/nvif/driverif.h | 4 ++ drivers/gpu/drm/nouveau/include/nvif/if0013.h | 18 drivers/gpu/drm/nouveau/nouveau_display.c | 20 + .../gpu/drm/nouveau/nvkm/engine/disp/uhe

[PATCH 133/156] drm/nouveau/nvif: remove disp chans from object rb

2024-04-16 Thread Ben Skeggs
- no more users Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/dispnv50/base507c.c | 3 +- drivers/gpu/drm/nouveau/dispnv50/core507d.c | 3 +- drivers/gpu/drm/nouveau/dispnv50/ovly507e.c | 3 +- drivers/gpu/drm/nouveau/dispnv50/wimmc37b.c | 3 +- drivers/gpu/drm/nouveau

[PATCH 123/156] drm/nouveau/nvif: rework outp "dp mst id get"/"dp mst id put" apis

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interfaces Signed-off-by: Ben Skeggs --- .../gpu/drm/nouveau/include/nvif/driverif.h | 2 + drivers/gpu/drm/nouveau/include/nvif/if0012.h | 18 - drivers/gpu/drm/nouveau/nvif/outp.c | 19 +++--- .../gpu/drm/nouveau/nvkm/engine/di

[PATCH 131/156] drm/nouveau/nvif: remove disp from object rb

2024-04-16 Thread Ben Skeggs
- no more users Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/driverif.h | 3 +-- drivers/gpu/drm/nouveau/nvif/disp.c | 3 +-- drivers/gpu/drm/nouveau/nvkm/device/user.c | 6 +++--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/gpu

[PATCH 125/156] drm/nouveau/nvif: remove outp from object rb

2024-04-16 Thread Ben Skeggs
- no more users Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/driverif.h | 2 +- drivers/gpu/drm/nouveau/nvif/outp.c | 3 +-- drivers/gpu/drm/nouveau/nvkm/engine/disp/udisp.c | 6 +++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers

[PATCH 122/156] drm/nouveau/nvif: rework outp "dp sst" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- .../gpu/drm/nouveau/include/nvif/driverif.h | 2 ++ drivers/gpu/drm/nouveau/include/nvif/if0012.h | 12 --- drivers/gpu/drm/nouveau/nvif/outp.c | 10 ++ .../gpu/drm/nouveau/nvkm/engine/disp/uou

[PATCH 124/156] drm/nouveau/nvif: rework outp "dp mst vcpi" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/dispnv50/disp.c | 1 - .../gpu/drm/nouveau/include/nvif/driverif.h | 2 + drivers/gpu/drm/nouveau/include/nvif/if0012.h | 17 -- drivers/gpu/drm/nouveau/include/nvif/outp.h | 1

[PATCH 116/156] drm/nouveau/nvif: rework outp "hda eld" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- .../gpu/drm/nouveau/include/nvif/driverif.h | 4 ++ drivers/gpu/drm/nouveau/include/nvif/if0012.h | 11 - drivers/gpu/drm/nouveau/nvif/outp.c | 13 +- .../gpu/drm/nouveau/nvkm/engine/disp/uou

[PATCH 117/156] drm/nouveau/nvif: rework outp "dp aux pwr" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/driverif.h | 2 ++ drivers/gpu/drm/nouveau/include/nvif/if0012.h | 9 - drivers/gpu/drm/nouveau/nvif/outp.c | 8 ++-- .../gpu/drm/nouveau/nvkm/engine/di

[PATCH 118/156] drm/nouveau/nvif: rework outp "dp aux xfer" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- .../gpu/drm/nouveau/include/nvif/driverif.h| 1 + drivers/gpu/drm/nouveau/include/nvif/if0012.h | 12 drivers/gpu/drm/nouveau/nvif/outp.c| 14 +++--- .../gpu/drm/nouveau/nvkm/e

[PATCH 115/156] drm/nouveau/nvif: rework outp "infoframe" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/dispnv50/disp.c | 18 +++-- .../gpu/drm/nouveau/include/nvif/driverif.h | 7 drivers/gpu/drm/nouveau/include/nvif/if0012.h | 13 --- drivers/gpu/drm/nouveau/include/nvif/out

[PATCH 121/156] drm/nouveau/nvif: rework outp "dp drive" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- .../gpu/drm/nouveau/include/nvif/driverif.h| 1 + drivers/gpu/drm/nouveau/include/nvif/if0012.h | 13 - drivers/gpu/drm/nouveau/nvif/outp.c| 12 +++- .../gpu/drm/nouveau/nvkm/e

[PATCH 113/156] drm/nouveau/nvif: rework outp "lvds config" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- .../gpu/drm/nouveau/include/nvif/driverif.h | 2 ++ drivers/gpu/drm/nouveau/include/nvif/if0012.h | 10 -- drivers/gpu/drm/nouveau/nvif/outp.c | 9 ++--- .../gpu/drm/nouveau/nvkm/engine/di

[PATCH 120/156] drm/nouveau/nvif: rework outp "dp train" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- .../gpu/drm/nouveau/include/nvif/driverif.h | 4 +++ drivers/gpu/drm/nouveau/include/nvif/if0012.h | 14 drivers/gpu/drm/nouveau/nvif/outp.c | 16 ++--- .../gpu/drm/nouveau/nvkm/engine/disp/uou

[PATCH 112/156] drm/nouveau/nvif: rework outp "bl get"/"bl set" apis

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interfaces Signed-off-by: Ben Skeggs --- .../gpu/drm/nouveau/include/nvif/driverif.h | 5 +++ drivers/gpu/drm/nouveau/include/nvif/if0012.h | 17 drivers/gpu/drm/nouveau/nvif/outp.c | 18 +++- .../gpu/drm/nouveau/nvkm/engine/disp/uou

[PATCH 119/156] drm/nouveau/nvif: rework outp "dp rates" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- .../gpu/drm/nouveau/include/nvif/driverif.h | 6 +++ drivers/gpu/drm/nouveau/include/nvif/if0012.h | 13 --- drivers/gpu/drm/nouveau/include/nvif/outp.h | 5 --- drivers/gpu/drm/nouveau/nvif/outp.c

[PATCH 114/156] drm/nouveau/nvif: rework outp "hdmi config" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- .../gpu/drm/nouveau/include/nvif/driverif.h | 6 +++ drivers/gpu/drm/nouveau/include/nvif/if0012.h | 16 --- drivers/gpu/drm/nouveau/nvif/outp.c | 18 ++- .../gpu/drm/nouveau/nvkm/engine/disp/uou

[PATCH 111/156] drm/nouveau/nvif: rework outp "release" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/driverif.h | 1 + drivers/gpu/drm/nouveau/include/nvif/if0012.h| 7 --- drivers/gpu/drm/nouveau/nvif/outp.c | 2 +- drivers/gpu/drm/nouveau/nvkm/engine/di

[PATCH 110/156] drm/nouveau/nvif: rework outp "acquire" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- .../gpu/drm/nouveau/include/nvif/driverif.h | 1 + drivers/gpu/drm/nouveau/include/nvif/if0012.h | 19 -- drivers/gpu/drm/nouveau/nvif/outp.c | 29 ++- .../gpu/drm/nouveau/nvkm/engine/di

[PATCH 109/156] drm/nouveau/nvif: rework outp "inherit" apis

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interfaces Signed-off-by: Ben Skeggs --- .../gpu/drm/nouveau/include/nvif/driverif.h | 3 ++ drivers/gpu/drm/nouveau/include/nvif/if0012.h | 23 - drivers/gpu/drm/nouveau/nvif/outp.c | 40 +++ .../gpu/drm/nouveau/nvkm/e

[PATCH 106/156] drm/nouveau/nvif: rework outp "detect" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- .../gpu/drm/nouveau/include/nvif/driverif.h | 8 drivers/gpu/drm/nouveau/include/nvif/if0012.h | 11 - drivers/gpu/drm/nouveau/include/nvif/outp.h | 6 --- drivers/gpu/drm/nouveau/nouveau_connecto

[PATCH 103/156] drm/nouveau/nvif: rework conn "new event" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/conn.h | 6 --- .../gpu/drm/nouveau/include/nvif/driverif.h | 3 ++ drivers/gpu/drm/nouveau/nvif/conn.c | 22 .../gpu/drm/nouveau/nvkm/engine/disp/uco

[PATCH 107/156] drm/nouveau/nvif: rework outp "edid get" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- .../gpu/drm/nouveau/include/nvif/driverif.h | 1 + drivers/gpu/drm/nouveau/include/nvif/if0012.h | 11 --- drivers/gpu/drm/nouveau/nvif/outp.c | 19 +-- .../gpu/drm/nouveau/nvkm/e

[PATCH 105/156] drm/nouveau/nvif: rework disp "new outp" api

2024-04-16 Thread Ben Skeggs
Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/dispnv50/disp.c | 40 .../gpu/drm/nouveau/include/nvif/driverif.h | 47 ++ drivers/gpu/drm/nouveau/include/nvif/if0012.h | 37 drivers/gpu/drm/nouveau/include/nvif/outp.h | 43 + drivers/gpu/drm

[PATCH 108/156] drm/nouveau/nvif: rework outp "load detect" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/driverif.h | 2 ++ drivers/gpu/drm/nouveau/include/nvif/if0012.h| 11 --- drivers/gpu/drm/nouveau/nvif/outp.c | 11 --- drivers/gpu/drm/nouveau/n

[PATCH 104/156] drm/nouveau/nvif: remove conn from object rb

2024-04-16 Thread Ben Skeggs
- no more users Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/driverif.h | 3 +-- drivers/gpu/drm/nouveau/nvif/conn.c | 3 +-- drivers/gpu/drm/nouveau/nvkm/engine/disp/udisp.c | 6 +++--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers

[PATCH 100/156] drm/nouveau/nvif: rework disp "sclass" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/dispnv50/base.c | 33 + drivers/gpu/drm/nouveau/dispnv50/core.c | 49 --- drivers/gpu/drm/nouveau/dispnv50/curs.c | 35 ++--- drivers/gpu/d

[PATCH 102/156] drm/nouveau/nvif: rework disp "new conn" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/conn.h | 18 ++- .../gpu/drm/nouveau/include/nvif/driverif.h | 20 +++ drivers/gpu/drm/nouveau/include/nvif/if0011.h | 18 --- drivers/gpu/drm/nouveau/nouveau_c

[PATCH 101/156] drm/nouveau/nvif: rework disp "new caps" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/dispnv50/corec37d.c | 11 +-- drivers/gpu/drm/nouveau/dispnv50/disp.c | 3 +- drivers/gpu/drm/nouveau/dispnv50/disp.h | 2 +- drivers/gpu/drm/nouveau/include/nvif/disp.h | 11 ++

[PATCH 099/156] drm/nouveau/nvif: rework device "new disp" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/include/nvif/disp.h | 5 ++ .../gpu/drm/nouveau/include/nvif/driverif.h | 20 drivers/gpu/drm/nouveau/include/nvif/if0010.h | 14 - drivers/gpu/drm/nouveau/include/nvif/obj

[PATCH 096/156] drm/nouveau/nvif: rework fault buffer "map" api

2024-04-16 Thread Ben Skeggs
- transition from "ioctl" interface Signed-off-by: Ben Skeggs --- .../gpu/drm/nouveau/include/nvif/driverif.h | 1 + drivers/gpu/drm/nouveau/nouveau_svm.c | 26 +++ .../gpu/drm/nouveau/nvkm/subdev/fault/user.c | 16 +++- 3 files changed, 19 inserti

  1   2   3   4   5   6   7   8   9   10   >