Skip to contentSkip to conversation

drm/nouveau: misc. cleanups and removal of unused apis

PATCH Applied Ben Skeggs 3 participants 70 messages Jul 26, 2024 – Dec 13, 2025 Page 2 of 2

Subsystems (4)
lore
Share & tools
lore
Reviewed-by on v3 37/37
#67 lore raw

Re: [PATCH v3 37/37] drm/nouveau/kms: remove push pointer from nv50_dmac

In reply to Ben Skeggs

On Fri, 26 Jul 2024 14:38:28 +1000
Ben Skeggs <[email protected]> wrote:

Quoted 1,268 lines

The struct itself lives in nv50_dmac already, just use that.

---
 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/core507d.c |  6 ++--
 drivers/gpu/drm/nouveau/dispnv50/corec37d.c |  6 ++--
 drivers/gpu/drm/nouveau/dispnv50/corec57d.c |  2 +-
 drivers/gpu/drm/nouveau/dispnv50/crc907d.c  |  4 +--
 drivers/gpu/drm/nouveau/dispnv50/crcc37d.c  |  4 +--
 drivers/gpu/drm/nouveau/dispnv50/crcc57d.c  |  2 +-
 drivers/gpu/drm/nouveau/dispnv50/dac507d.c  |  2 +-
 drivers/gpu/drm/nouveau/dispnv50/dac907d.c  |  2 +-
 drivers/gpu/drm/nouveau/dispnv50/disp.c     | 35
++++++++++----------- drivers/gpu/drm/nouveau/dispnv50/disp.h     |
3 +- drivers/gpu/drm/nouveau/dispnv50/head507d.c | 24 +++++++-------
 drivers/gpu/drm/nouveau/dispnv50/head827d.c | 10 +++---
 drivers/gpu/drm/nouveau/dispnv50/head907d.c | 26 +++++++--------
 drivers/gpu/drm/nouveau/dispnv50/head917d.c |  6 ++--
 drivers/gpu/drm/nouveau/dispnv50/headc37d.c | 18 +++++------
 drivers/gpu/drm/nouveau/dispnv50/headc57d.c | 12 +++----
 drivers/gpu/drm/nouveau/dispnv50/ovly507e.c |  4 +--
 drivers/gpu/drm/nouveau/dispnv50/ovly827e.c |  2 +-
 drivers/gpu/drm/nouveau/dispnv50/ovly907e.c |  2 +-
 drivers/gpu/drm/nouveau/dispnv50/pior507d.c |  2 +-
 drivers/gpu/drm/nouveau/dispnv50/sor507d.c  |  2 +-
 drivers/gpu/drm/nouveau/dispnv50/sor907d.c  |  2 +-
 drivers/gpu/drm/nouveau/dispnv50/sorc37d.c  |  2 +-
 drivers/gpu/drm/nouveau/dispnv50/wimmc37b.c |  4 +--
 drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c | 22 ++++++-------
 drivers/gpu/drm/nouveau/dispnv50/wndwc57e.c | 10 +++---
 drivers/gpu/drm/nouveau/dispnv50/wndwc67e.c |  2 +-
 30 files changed, 122 insertions(+), 124 deletions(-)
(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/base507c.c index e36a473f2075..a431f6c5f6fa 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/base507c.c +++ b/drivers/gpu/drm/nouveau/dispnv50/base507c.c @@ -35,7 +35,7 @@
int
base507c_update(struct nv50_wndw *wndw, u32 *interlock) {

drivers/gpu/drm/nouveau/dispnv50/base507c.c +3 -3
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 2)))
@@ -48,7 +48,7 @@ base507c_update(struct nv50_wndw *wndw, u32
 *interlock) int
 base507c_image_clr(struct nv50_wndw *wndw)
 {
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 4)))
@@ -65,7 +65,7 @@ base507c_image_clr(struct nv50_wndw *wndw)
 static int
 base507c_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom
 *asyw) {
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 13)))
@@ -118,7 +118,7 @@ base507c_image_set(struct nv50_wndw *wndw, struct

nv50_wndw_atom *asyw) int
base507c_xlut_clr(struct nv50_wndw *wndw)
{

drivers/gpu/drm/nouveau/dispnv50/base507c.c +2 -2
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 2)))
@@ -132,7 +132,7 @@ base507c_xlut_clr(struct nv50_wndw *wndw)
 int
 base507c_xlut_set(struct nv50_wndw *wndw, struct nv50_wndw_atom
 *asyw) {
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 2)))
@@ -158,7 +158,7 @@ base507c_ntfy_wait_begun(struct nouveau_bo *bo,

u32 offset, int
base507c_ntfy_clr(struct nv50_wndw *wndw)
{

drivers/gpu/drm/nouveau/dispnv50/base507c.c +2 -2
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 2)))
@@ -171,7 +171,7 @@ base507c_ntfy_clr(struct nv50_wndw *wndw)
 int
 base507c_ntfy_set(struct nv50_wndw *wndw, struct nv50_wndw_atom
 *asyw) {
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 3)))
@@ -195,7 +195,7 @@ base507c_ntfy_reset(struct nouveau_bo *bo, u32

offset) int
base507c_sema_clr(struct nv50_wndw *wndw)
{

drivers/gpu/drm/nouveau/dispnv50/base507c.c +2 -2
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 2)))
@@ -208,7 +208,7 @@ base507c_sema_clr(struct nv50_wndw *wndw)
 int
 base507c_sema_set(struct nv50_wndw *wndw, struct nv50_wndw_atom
 *asyw) {
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 5)))
(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/base827c.c index 093d4ba6910e..4545cc5f3a14 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/base827c.c +++ b/drivers/gpu/drm/nouveau/dispnv50/base827c.c @@ -28,7 +28,7 @@
static int
base827c_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom
*asyw) {

drivers/gpu/drm/nouveau/dispnv50/base507c.c +1 -1
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 13)))
(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/base907c.c index e6b0417c325b..4a2d5a259e15 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/base907c.c +++ b/drivers/gpu/drm/nouveau/dispnv50/base907c.c @@ -28,7 +28,7 @@
static int
base907c_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom
*asyw) {

drivers/gpu/drm/nouveau/dispnv50/base907c.c +1 -1
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 10)))
@@ -65,7 +65,7 @@ base907c_image_set(struct nv50_wndw *wndw, struct

nv50_wndw_atom *asyw) static int
base907c_xlut_clr(struct nv50_wndw *wndw)
{

drivers/gpu/drm/nouveau/dispnv50/base907c.c +2 -2
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 6)))
@@ -84,7 +84,7 @@ base907c_xlut_clr(struct nv50_wndw *wndw)
 static int
 base907c_xlut_set(struct nv50_wndw *wndw, struct nv50_wndw_atom
 *asyw) {
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 6)))
@@ -156,7 +156,7 @@ base907c_csc(struct nv50_wndw *wndw, struct

nv50_wndw_atom *asyw, static int
base907c_csc_clr(struct nv50_wndw *wndw)
{

drivers/gpu/drm/nouveau/dispnv50/base507c.c +2 -2
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 2)))
@@ -170,7 +170,7 @@ base907c_csc_clr(struct nv50_wndw *wndw)
 static int
 base907c_csc_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
 {
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 13)))
(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/core507d.c index 85845e3dc7ba..ce2cb78bbdd3 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/core507d.c +++ b/drivers/gpu/drm/nouveau/dispnv50/core507d.c @@ -33,7 +33,7 @@
int
core507d_update(struct nv50_core *core, u32 *interlock, bool ntfy) {

drivers/gpu/drm/nouveau/dispnv50/core507d.c +1 -1
-	struct nvif_push *push = core->chan.push;
+	struct nvif_push *push = &core->chan.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, (ntfy ? 2 : 0) + 3)))
@@ -80,7 +80,7 @@ core507d_ntfy_init(struct nouveau_bo *bo, u32

offset) int
core507d_read_caps(struct nv50_disp *disp)
{

drivers/gpu/drm/nouveau/dispnv50/core507d.c +1 -1
-	struct nvif_push *push = disp->core->chan.push;
+	struct nvif_push *push = &disp->core->chan.push;
 	int ret;
 
 	ret = PUSH_WAIT(push, 6);
@@ -130,7 +130,7 @@ core507d_caps_init(struct nouveau_drm *drm,

struct nv50_disp *disp) int
core507d_init(struct nv50_core *core)
{

drivers/gpu/drm/nouveau/dispnv50/core507d.c +1 -1
-	struct nvif_push *push = core->chan.push;
+	struct nvif_push *push = &core->chan.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 2)))
(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/corec37d.c index 42f877f2ced2..7f637b8830be 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/corec37d.c +++ b/drivers/gpu/drm/nouveau/dispnv50/corec37d.c @@ -33,7 +33,7 @@
int
corec37d_wndw_owner(struct nv50_core *core)
{

drivers/gpu/drm/nouveau/dispnv50/corec37d.c +2 -2
-	struct nvif_push *push = core->chan.push;
+	struct nvif_push *push = &core->chan.push;
 	const u32 windows = 8; /*XXX*/
 	int ret, i;
@@ -51,7 +51,7 @@ corec37d_wndw_owner(struct nv50_core *core)
 int
 corec37d_update(struct nv50_core *core, u32 *interlock, bool ntfy)
 {
-	struct nvif_push *push = core->chan.push;
+	struct nvif_push *push = &core->chan.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, (ntfy ? 2 * 2 : 0) + 5)))
@@ -127,7 +127,7 @@ int corec37d_caps_init(struct nouveau_drm *drm,

struct nv50_disp *disp) static int
corec37d_init(struct nv50_core *core)
{

drivers/gpu/drm/nouveau/dispnv50/corec37d.c +1 -1
-	struct nvif_push *push = core->chan.push;
+	struct nvif_push *push = &core->chan.push;
 	const u32 windows = 8; /*XXX*/
 	int ret, i;
(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/corec57d.c index 53b1e2a569c1..421d0d57e1d8 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/corec57d.c +++ b/drivers/gpu/drm/nouveau/dispnv50/corec57d.c @@ -29,7 +29,7 @@
static int
corec57d_init(struct nv50_core *core)
{

drivers/gpu/drm/nouveau/dispnv50/corec37d.c +1 -1
-	struct nvif_push *push = core->chan.push;
+	struct nvif_push *push = &core->chan.push;
 	const u32 windows = 8; /*XXX*/
 	int ret, i;
(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/crc907d.c index f9ad641555b7..a674ba435b05 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/crc907d.c +++ b/drivers/gpu/drm/nouveau/dispnv50/crc907d.c @@ -26,7 +26,7 @@ static int crc907d_set_src(struct nv50_head *head, int or, enum nv50_crc_source_type source, struct nv50_crc_notifier_ctx *ctx)
{

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; u32 crc_args = NVDEF(NV907D, HEAD_SET_CRC_CONTROL, CONTROLLING_CHANNEL, CORE) | NVDEF(NV907D, HEAD_SET_CRC_CONTROL, EXPECT_BUFFER_COLLAPSE, FALSE) | @@ -74,7 +74,7 @@ crc907d_set_src(struct nv50_head *head, int or, enum nv50_crc_source_type source static int crc907d_set_ctx(struct nv50_head *head, struct nv50_crc_notifier_ctx *ctx) {

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/crcc37d.c index f10f6c484408..4821ce32f9ed 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/crcc37d.c +++ b/drivers/gpu/drm/nouveau/dispnv50/crcc37d.c @@ -15,7 +15,7 @@ static int crcc37d_set_src(struct nv50_head *head, int or, enum nv50_crc_source_type source, struct nv50_crc_notifier_ctx *ctx)
{

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; u32 crc_args = NVVAL(NVC37D, HEAD_SET_CRC_CONTROL, CONTROLLING_CHANNEL, i * 4) | NVDEF(NVC37D, HEAD_SET_CRC_CONTROL, EXPECT_BUFFER_COLLAPSE, FALSE) | @@ -53,7 +53,7 @@ crcc37d_set_src(struct nv50_head *head, int or, enum nv50_crc_source_type source int crcc37d_set_ctx(struct nv50_head *head, struct nv50_crc_notifier_ctx *ctx) {

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/crcc57d.c index cc0130e3d496..ad591dcb0bc9 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/crcc57d.c +++ b/drivers/gpu/drm/nouveau/dispnv50/crcc57d.c @@ -13,7 +13,7 @@
static int crcc57d_set_src(struct nv50_head *head, int or, enum
nv50_crc_source_type source, struct nv50_crc_notifier_ctx *ctx)
{

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; u32 crc_args = NVDEF(NVC57D, HEAD_SET_CRC_CONTROL, CONTROLLING_CHANNEL, CORE) | NVDEF(NVC57D, HEAD_SET_CRC_CONTROL, EXPECT_BUFFER_COLLAPSE, FALSE) | diff --git a/drivers/gpu/drm/nouveau/dispnv50/dac507d.c b/drivers/gpu/drm/nouveau/dispnv50/dac507d.c index 09de78d96679..99ae692f219e 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/dac507d.c +++ b/drivers/gpu/drm/nouveau/dispnv50/dac507d.c @@ -29,7 +29,7 @@ static int dac507d_ctrl(struct nv50_core *core, int or, u32 ctrl, struct nv50_head_atom *asyh) {

drivers/gpu/drm/nouveau/dispnv50/dac507d.c +1 -1
-	struct nvif_push *push = core->chan.push;
+	struct nvif_push *push = &core->chan.push;
 	u32 sync = 0;
 	int ret;
(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/dac907d.c index 95efa625b691..74bc9f81e3f1 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/dac907d.c +++ b/drivers/gpu/drm/nouveau/dispnv50/dac907d.c @@ -29,7 +29,7 @@ static int dac907d_ctrl(struct nv50_core *core, int or, u32 ctrl,

drivers/gpu/drm/nouveau/dispnv50/dac907d.c +1 -1
 	     struct nv50_head_atom *asyh)
 {
-	struct nvif_push *push = core->chan.push;
+	struct nvif_push *push = &core->chan.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 2)))
(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/disp.c index 22ecda545550..d4b62461e379 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/disp.c +++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c @@ -127,20 +127,20 @@ nv50_dmac_destroy(struct nv50_dmac *dmac)

drivers/gpu/drm/nouveau/dispnv50/disp.c +1 -2
 	nv50_chan_destroy(&dmac->base);
 
-	nvif_mem_dtor(&dmac->_push.mem);
+	nvif_mem_dtor(&dmac->push.mem);
 }
 
 static void
 nv50_dmac_kick(struct nvif_push *push)
 {
-	struct nv50_dmac *dmac = container_of(push, typeof(*dmac),

_push);

(quoted diff) +1 -0
+	struct nv50_dmac *dmac = container_of(push, typeof(*dmac),

push);

(quoted diff) +0 -1
-	dmac->cur = push->cur - (u32 __iomem

*)dmac->_push.mem.object.map.ptr;

(quoted diff) +1 -0
+	dmac->cur = push->cur - (u32 __iomem

*)dmac->push.mem.object.map.ptr; if (dmac->put != dmac->cur) {
/* Push buffer fetches are not coherent with BAR1,
we need to ensure
* writes have been flushed right through to VRAM
before writing PUT. */

drivers/gpu/drm/nouveau/dispnv50/disp.c +1 -1
-		if (dmac->push->mem.type & NVIF_MEM_VRAM) {
+		if (dmac->push.mem.type & NVIF_MEM_VRAM) {
 			struct nvif_device *device =

dmac->base.device; nvif_wr32(&device->object, 0x070000, 0x00000001);

drivers/gpu/drm/nouveau/dispnv50/disp.c +1 -1
 			nvif_msec(device, 2000,
@@ -175,7 +175,7 @@ nv50_dmac_wind(struct nv50_dmac *dmac)
 	if (get == 0) {
 		/* Corner-case, HW idle, but non-committed work
 pending. */ if (dmac->put == 0)
-			nv50_dmac_kick(dmac->push);
+			nv50_dmac_kick(&dmac->push);
 
 		if (nvif_msec(dmac->base.device, 2000,
 			if (NVIF_TV32(&dmac->base.user, NV507C, GET,

PTR, >, 0)) @@ -184,7 +184,7 @@ nv50_dmac_wind(struct nv50_dmac *dmac)

drivers/gpu/drm/nouveau/dispnv50/disp.c +4 -4
 			return -ETIMEDOUT;
 	}
 
-	PUSH_RSVD(dmac->push, PUSH_JUMP(dmac->push, 0));
+	PUSH_RSVD(&dmac->push, PUSH_JUMP(&dmac->push, 0));
 	dmac->cur = 0;
 	return 0;
 }
@@ -192,19 +192,19 @@ nv50_dmac_wind(struct nv50_dmac *dmac)
 static int
 nv50_dmac_wait(struct nvif_push *push, u32 size)
 {
-	struct nv50_dmac *dmac = container_of(push, typeof(*dmac),
 _push);
+	struct nv50_dmac *dmac = container_of(push, typeof(*dmac),
 push); int free;
 
 	if (WARN_ON(size > dmac->max))
 		return -EINVAL;
 
-	dmac->cur = push->cur - (u32 __iomem
 *)dmac->_push.mem.object.map.ptr;
+	dmac->cur = push->cur - (u32 __iomem
 *)dmac->push.mem.object.map.ptr; if (dmac->cur + size >= dmac->max) {
 		int ret = nv50_dmac_wind(dmac);
 		if (ret)
 			return ret;
 
-		push->cur = dmac->_push.mem.object.map.ptr;
+		push->cur = dmac->push.mem.object.map.ptr;
 		push->cur = push->cur + dmac->cur;
drivers/gpu/drm/nouveau/dispnv50/disp.c +7 -8
 		nv50_dmac_kick(push);
 	}
@@ -217,7 +217,7 @@ nv50_dmac_wait(struct nvif_push *push, u32 size)
 		return -ETIMEDOUT;
 	}
 
-	push->bgn = dmac->_push.mem.object.map.ptr;
+	push->bgn = dmac->push.mem.object.map.ptr;
 	push->bgn = push->bgn + dmac->cur;
 	push->cur = push->bgn;
 	push->end = push->cur + free;
@@ -252,16 +252,15 @@ nv50_dmac_create(struct nouveau_drm *drm,
 	    (nv50_dmac_vram_pushbuf < 0 && device->info.family ==
 NV_DEVICE_INFO_V0_PASCAL)) type |= NVIF_MEM_VRAM;
 
-	ret = nvif_mem_ctor_map(&drm->mmu, "kmsChanPush", type,
 0x1000, &dmac->_push.mem);
+	ret = nvif_mem_ctor_map(&drm->mmu, "kmsChanPush", type,
 0x1000, &dmac->push.mem); if (ret)
 		return ret;
 
-	dmac->_push.wait = nv50_dmac_wait;
-	dmac->_push.kick = nv50_dmac_kick;
-	dmac->push = &dmac->_push;
-	dmac->push->bgn = dmac->_push.mem.object.map.ptr;
-	dmac->push->cur = dmac->push->bgn;
-	dmac->push->end = dmac->push->bgn;
+	dmac->push.wait = nv50_dmac_wait;
+	dmac->push.kick = nv50_dmac_kick;
+	dmac->push.bgn = dmac->push.mem.object.map.ptr;
+	dmac->push.cur = dmac->push.bgn;
+	dmac->push.end = dmac->push.bgn;
 	dmac->max = 0x1000/4 - 1;
 

/* EVO channels are affected by a HW bug where the last 12
DWORDs @@ -270,7 +269,7 @@ nv50_dmac_create(struct nouveau_drm *drm,

drivers/gpu/drm/nouveau/dispnv50/disp.c +1 -1
 	if (disp->oclass < GV100_DISP)
 		dmac->max -= 12;
 
-	args->pushbuf = nvif_handle(&dmac->_push.mem.object);
+	args->pushbuf = nvif_handle(&dmac->push.mem.object);
 
 	ret = nv50_chan_create(device, disp, oclass, head, data,

size, &dmac->base);

(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/disp.h index b66a30915af2..15f9242b72ac 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/disp.h +++ b/drivers/gpu/drm/nouveau/dispnv50/disp.h @@ -62,8 +62,7 @@ struct nv50_chan { struct nv50_dmac {

drivers/gpu/drm/nouveau/dispnv50/disp.h +1 -2
 	struct nv50_chan base;
 
-	struct nvif_push _push;
-	struct nvif_push *push;
+	struct nvif_push push;
 
 	struct nvif_object sync;
 	struct nvif_object vram;
(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/head507d.c index 0edd4e520c8e..7fa1e0279d7d 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/head507d.c +++ b/drivers/gpu/drm/nouveau/dispnv50/head507d.c @@ -29,7 +29,7 @@
int
head507d_procamp(struct nv50_head *head, struct nv50_head_atom *asyh) {

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +0 -0
@@ -48,7 +48,7 @@ head507d_procamp(struct nv50_head *head, struct

nv50_head_atom *asyh) int
head507d_dither(struct nv50_head *head, struct nv50_head_atom *asyh) {

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +0 -0
@@ -66,7 +66,7 @@ head507d_dither(struct nv50_head *head, struct

nv50_head_atom *asyh) int
head507d_ovly(struct nv50_head *head, struct nv50_head_atom *asyh) {

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; u32 bounds = 0;

(quoted diff) +0 -0
 	int ret;
@@ -94,7 +94,7 @@ head507d_ovly(struct nv50_head *head, struct

nv50_head_atom *asyh) int
head507d_base(struct nv50_head *head, struct nv50_head_atom *asyh) {

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; u32 bounds = 0;

(quoted diff) +0 -0
 	int ret;
@@ -122,7 +122,7 @@ head507d_base(struct nv50_head *head, struct

nv50_head_atom *asyh) static int
head507d_curs_clr(struct nv50_head *head)
{

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +1 -1
@@ -139,7 +139,7 @@ head507d_curs_clr(struct nv50_head *head)
 static int
 head507d_curs_set(struct nv50_head *head, struct nv50_head_atom
 *asyh) {
-	struct nvif_push *push =
 nv50_disp(head->base.base.dev)->core->chan.push;
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +0 -0
@@ -188,7 +188,7 @@ head507d_curs_layout(struct nv50_head *head,

struct nv50_wndw_atom *asyw, int
head507d_core_clr(struct nv50_head *head)
{

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +1 -1
@@ -202,7 +202,7 @@ head507d_core_clr(struct nv50_head *head)
 static int
 head507d_core_set(struct nv50_head *head, struct nv50_head_atom
 *asyh) {
-	struct nvif_push *push =
 nv50_disp(head->base.base.dev)->core->chan.push;
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +0 -0
@@ -278,7 +278,7 @@ head507d_core_calc(struct nv50_head *head, struct

nv50_head_atom *asyh) static int
head507d_olut_clr(struct nv50_head *head)
{

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +1 -1
@@ -293,7 +293,7 @@ head507d_olut_clr(struct nv50_head *head)
 static int
 head507d_olut_set(struct nv50_head *head, struct nv50_head_atom
 *asyh) {
-	struct nvif_push *push =
 nv50_disp(head->base.base.dev)->core->chan.push;
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +0 -0
@@ -345,7 +345,7 @@ head507d_olut(struct nv50_head *head, struct

nv50_head_atom *asyh, int size) int
head507d_mode(struct nv50_head *head, struct nv50_head_atom *asyh) {

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; struct nv50_head_mode *m = &asyh->mode; const int i = head->base.index;

(quoted diff) +0 -0
 	int ret;
@@ -400,7 +400,7 @@ head507d_mode(struct nv50_head *head, struct

nv50_head_atom *asyh) int
head507d_view(struct nv50_head *head, struct nv50_head_atom *asyh) {

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/head827d.c index 194d1771c481..1545d576fe9c 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/head827d.c +++ b/drivers/gpu/drm/nouveau/dispnv50/head827d.c @@ -29,7 +29,7 @@
static int
head827d_curs_clr(struct nv50_head *head)
{

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +1 -1
@@ -48,7 +48,7 @@ head827d_curs_clr(struct nv50_head *head)
 static int
 head827d_curs_set(struct nv50_head *head, struct nv50_head_atom
 *asyh) {
-	struct nvif_push *push =
 nv50_disp(head->base.base.dev)->core->chan.push;
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +0 -0
@@ -73,7 +73,7 @@ head827d_curs_set(struct nv50_head *head, struct

nv50_head_atom *asyh) static int
head827d_core_set(struct nv50_head *head, struct nv50_head_atom
*asyh) {

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +0 -0
@@ -110,7 +110,7 @@ head827d_core_set(struct nv50_head *head, struct

nv50_head_atom *asyh) static int
head827d_olut_clr(struct nv50_head *head)
{

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +1 -1
@@ -127,7 +127,7 @@ head827d_olut_clr(struct nv50_head *head)
 static int
 head827d_olut_set(struct nv50_head *head, struct nv50_head_atom
 *asyh) {
-	struct nvif_push *push =
 nv50_disp(head->base.base.dev)->core->chan.push;
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/head907d.c index 18fe4c1e2d6a..6c9e0438e55c 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/head907d.c +++ b/drivers/gpu/drm/nouveau/dispnv50/head907d.c @@ -36,7 +36,7 @@
int
head907d_or(struct nv50_head *head, struct nv50_head_atom *asyh) {

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +0 -0
@@ -57,7 +57,7 @@ head907d_or(struct nv50_head *head, struct

nv50_head_atom *asyh) int
head907d_procamp(struct nv50_head *head, struct nv50_head_atom *asyh) {

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +0 -0
@@ -77,7 +77,7 @@ head907d_procamp(struct nv50_head *head, struct

nv50_head_atom *asyh) static int
head907d_dither(struct nv50_head *head, struct nv50_head_atom *asyh) {

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +0 -0
@@ -95,7 +95,7 @@ head907d_dither(struct nv50_head *head, struct

nv50_head_atom *asyh) int
head907d_ovly(struct nv50_head *head, struct nv50_head_atom *asyh) {

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; u32 bounds = 0;

(quoted diff) +0 -0
 	int ret;
@@ -124,7 +124,7 @@ head907d_ovly(struct nv50_head *head, struct

nv50_head_atom *asyh) static int
head907d_base(struct nv50_head *head, struct nv50_head_atom *asyh) {

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; u32 bounds = 0;

(quoted diff) +0 -0
 	int ret;
@@ -152,7 +152,7 @@ head907d_base(struct nv50_head *head, struct

nv50_head_atom *asyh) int
head907d_curs_clr(struct nv50_head *head)
{

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +1 -1
@@ -171,7 +171,7 @@ head907d_curs_clr(struct nv50_head *head)
 int
 head907d_curs_set(struct nv50_head *head, struct nv50_head_atom
 *asyh) {
-	struct nvif_push *push =
 nv50_disp(head->base.base.dev)->core->chan.push;
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +0 -0
@@ -195,7 +195,7 @@ head907d_curs_set(struct nv50_head *head, struct

nv50_head_atom *asyh) int
head907d_core_clr(struct nv50_head *head)
{

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +1 -1
@@ -209,7 +209,7 @@ head907d_core_clr(struct nv50_head *head)
 int
 head907d_core_set(struct nv50_head *head, struct nv50_head_atom
 *asyh) {
-	struct nvif_push *push =
 nv50_disp(head->base.base.dev)->core->chan.push;
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +0 -0
@@ -246,7 +246,7 @@ head907d_core_set(struct nv50_head *head, struct

nv50_head_atom *asyh) int
head907d_olut_clr(struct nv50_head *head)
{

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +1 -1
@@ -263,7 +263,7 @@ head907d_olut_clr(struct nv50_head *head)
 int
 head907d_olut_set(struct nv50_head *head, struct nv50_head_atom
 *asyh) {
-	struct nvif_push *push =
 nv50_disp(head->base.base.dev)->core->chan.push;
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

drivers/gpu/drm/nouveau/dispnv50/head907d.c +1 -1
@@ -322,7 +322,7 @@ bool head907d_ilut_check(int size)
 int
 head907d_mode(struct nv50_head *head, struct nv50_head_atom *asyh)
 {
-	struct nvif_push *push =
 nv50_disp(head->base.base.dev)->core->chan.push;
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; struct nv50_head_mode *m = &asyh->mode; const int i = head->base.index;

(quoted diff) +0 -0
 	int ret;
@@ -378,7 +378,7 @@ head907d_mode(struct nv50_head *head, struct

nv50_head_atom *asyh) int
head907d_view(struct nv50_head *head, struct nv50_head_atom *asyh) {

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/head917d.c index 4ce47b55f72c..2d9aee050510 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/head917d.c +++ b/drivers/gpu/drm/nouveau/dispnv50/head917d.c @@ -30,7 +30,7 @@
static int
head917d_dither(struct nv50_head *head, struct nv50_head_atom *asyh) {

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +0 -0
@@ -48,7 +48,7 @@ head917d_dither(struct nv50_head *head, struct

nv50_head_atom *asyh) static int
head917d_base(struct nv50_head *head, struct nv50_head_atom *asyh) {

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; u32 bounds = 0;

(quoted diff) +0 -0
 	int ret;
@@ -77,7 +77,7 @@ head917d_base(struct nv50_head *head, struct

nv50_head_atom *asyh) static int
head917d_curs_set(struct nv50_head *head, struct nv50_head_atom
*asyh) {

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/headc37d.c index a4a3b78ea42c..2bcb3790fc10 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/headc37d.c +++ b/drivers/gpu/drm/nouveau/dispnv50/headc37d.c @@ -30,7 +30,7 @@
static int
headc37d_or(struct nv50_head *head, struct nv50_head_atom *asyh) {

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; u8 depth;

(quoted diff) +0 -0
 	int ret;
@@ -64,7 +64,7 @@ headc37d_or(struct nv50_head *head, struct

nv50_head_atom *asyh) static int
headc37d_procamp(struct nv50_head *head, struct nv50_head_atom *asyh) {

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +0 -0
@@ -85,7 +85,7 @@ headc37d_procamp(struct nv50_head *head, struct

nv50_head_atom *asyh) int
headc37d_dither(struct nv50_head *head, struct nv50_head_atom *asyh) {

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +0 -0
@@ -104,7 +104,7 @@ headc37d_dither(struct nv50_head *head, struct

nv50_head_atom *asyh) int
headc37d_curs_clr(struct nv50_head *head)
{

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +1 -1
@@ -122,7 +122,7 @@ headc37d_curs_clr(struct nv50_head *head)
 int
 headc37d_curs_set(struct nv50_head *head, struct nv50_head_atom
 *asyh) {
-	struct nvif_push *push =
 nv50_disp(head->base.base.dev)->core->chan.push;
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +0 -0
@@ -161,7 +161,7 @@ headc37d_curs_format(struct nv50_head *head,

struct nv50_wndw_atom *asyw, static int
headc37d_olut_clr(struct nv50_head *head)
{

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +1 -1
@@ -175,7 +175,7 @@ headc37d_olut_clr(struct nv50_head *head)
 static int
 headc37d_olut_set(struct nv50_head *head, struct nv50_head_atom
 *asyh) {
-	struct nvif_push *push =
 nv50_disp(head->base.base.dev)->core->chan.push;
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +0 -0
@@ -209,7 +209,7 @@ headc37d_olut(struct nv50_head *head, struct

nv50_head_atom *asyh, int size) static int
headc37d_mode(struct nv50_head *head, struct nv50_head_atom *asyh) {

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; struct nv50_head_mode *m = &asyh->mode; const int i = head->base.index;

(quoted diff) +0 -0
 	int ret;
@@ -254,7 +254,7 @@ headc37d_mode(struct nv50_head *head, struct

nv50_head_atom *asyh) int
headc37d_view(struct nv50_head *head, struct nv50_head_atom *asyh) {

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/headc57d.c index 53b1248c40ec..fde4087e7691 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/headc57d.c +++ b/drivers/gpu/drm/nouveau/dispnv50/headc57d.c @@ -30,7 +30,7 @@
static int
headc57d_display_id(struct nv50_head *head, u32 display_id) {

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; int ret;

(quoted diff) +0 -0
 	if ((ret = PUSH_WAIT(push, 2)))
@@ -43,7 +43,7 @@ headc57d_display_id(struct nv50_head *head, u32

display_id) static int
headc57d_or(struct nv50_head *head, struct nv50_head_atom *asyh) {

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; u8 depth;

(quoted diff) +0 -0
 	int ret;
@@ -78,7 +78,7 @@ headc57d_or(struct nv50_head *head, struct

nv50_head_atom *asyh) static int
headc57d_procamp(struct nv50_head *head, struct nv50_head_atom *asyh) {

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +0 -0
@@ -96,7 +96,7 @@ headc57d_procamp(struct nv50_head *head, struct

nv50_head_atom *asyh) static int
headc57d_olut_clr(struct nv50_head *head)
{

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +1 -1
@@ -110,7 +110,7 @@ headc57d_olut_clr(struct nv50_head *head)
 static int
 headc57d_olut_set(struct nv50_head *head, struct nv50_head_atom
 *asyh) {
-	struct nvif_push *push =
 nv50_disp(head->base.base.dev)->core->chan.push;
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; const int i = head->base.index; int ret;

(quoted diff) +0 -0
@@ -201,7 +201,7 @@ headc57d_olut(struct nv50_head *head, struct

nv50_head_atom *asyh, int size) static int
headc57d_mode(struct nv50_head *head, struct nv50_head_atom *asyh) {

(quoted diff) +0 -1
-	struct nvif_push *push =

nv50_disp(head->base.base.dev)->core->chan.push;

(quoted diff) +1 -0
+	struct nvif_push *push =

&nv50_disp(head->base.base.dev)->core->chan.push; struct nv50_head_mode *m = &asyh->mode; const int i = head->base.index;

(quoted diff) +0 -0
 	int ret;
(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/ovly507e.c index 73fcfb27c32c..654e506f8431 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/ovly507e.c +++ b/drivers/gpu/drm/nouveau/dispnv50/ovly507e.c @@ -33,7 +33,7 @@
int
ovly507e_scale_set(struct nv50_wndw *wndw, struct nv50_wndw_atom
*asyw) {

drivers/gpu/drm/nouveau/dispnv50/base507c.c +1 -1
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 4)))
@@ -55,7 +55,7 @@ ovly507e_scale_set(struct nv50_wndw *wndw, struct

nv50_wndw_atom *asyw) static int
ovly507e_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom
*asyw) {

drivers/gpu/drm/nouveau/dispnv50/ovly507e.c +1 -1
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 12)))
(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/ovly827e.c index 02dc02d9260f..a5ae22ed663d 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/ovly827e.c +++ b/drivers/gpu/drm/nouveau/dispnv50/ovly827e.c @@ -32,7 +32,7 @@
static int
ovly827e_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom
*asyw) {

drivers/gpu/drm/nouveau/dispnv50/ovly507e.c +1 -1
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 12)))
(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/ovly907e.c index 645130d18a99..8cf0e18fa596 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/ovly907e.c +++ b/drivers/gpu/drm/nouveau/dispnv50/ovly907e.c @@ -29,7 +29,7 @@
static int
ovly907e_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom
*asyw) {

drivers/gpu/drm/nouveau/dispnv50/ovly507e.c +1 -1
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 12)))
(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/pior507d.c index 17d230256bdd..79507d169778 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/pior507d.c +++ b/drivers/gpu/drm/nouveau/dispnv50/pior507d.c @@ -30,7 +30,7 @@ static int pior507d_ctrl(struct nv50_core *core, int or, u32 ctrl,

drivers/gpu/drm/nouveau/dispnv50/pior507d.c +1 -1
 	      struct nv50_head_atom *asyh)
 {
-	struct nvif_push *push = core->chan.push;
+	struct nvif_push *push = &core->chan.push;
 	int ret;
 
 	if (asyh) {
(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/sor507d.c index ca73d7710885..08cc9845322e 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/sor507d.c +++ b/drivers/gpu/drm/nouveau/dispnv50/sor507d.c @@ -30,7 +30,7 @@ static int sor507d_ctrl(struct nv50_core *core, int or, u32 ctrl,

drivers/gpu/drm/nouveau/dispnv50/pior507d.c +1 -1
 	     struct nv50_head_atom *asyh)
 {
-	struct nvif_push *push = core->chan.push;
+	struct nvif_push *push = &core->chan.push;
 	int ret;
 
 	if (asyh) {
(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/sor907d.c index c86cd8fa61d6..23957cc8f326 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/sor907d.c +++ b/drivers/gpu/drm/nouveau/dispnv50/sor907d.c @@ -32,7 +32,7 @@ static int sor907d_ctrl(struct nv50_core *core, int or, u32 ctrl,

drivers/gpu/drm/nouveau/dispnv50/dac907d.c +1 -1
 	     struct nv50_head_atom *asyh)
 {
-	struct nvif_push *push = core->chan.push;
+	struct nvif_push *push = &core->chan.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 2)))
(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/sorc37d.c index 9eaef34816da..da05d4614e00 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/sorc37d.c +++ b/drivers/gpu/drm/nouveau/dispnv50/sorc37d.c @@ -29,7 +29,7 @@ static int sorc37d_ctrl(struct nv50_core *core, int or, u32 ctrl,

drivers/gpu/drm/nouveau/dispnv50/dac907d.c +1 -1
 	     struct nv50_head_atom *asyh)
 {
-	struct nvif_push *push = core->chan.push;
+	struct nvif_push *push = &core->chan.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 2)))
(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/wimmc37b.c index 8cb5b79bacbf..7985da61aaac 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/wimmc37b.c +++ b/drivers/gpu/drm/nouveau/dispnv50/wimmc37b.c @@ -31,7 +31,7 @@
static int
wimmc37b_update(struct nv50_wndw *wndw, u32 *interlock) {

drivers/gpu/drm/nouveau/dispnv50/wimmc37b.c +2 -2
-	struct nvif_push *push = wndw->wimm.push;
+	struct nvif_push *push = &wndw->wimm.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 2)))
@@ -46,7 +46,7 @@ wimmc37b_update(struct nv50_wndw *wndw, u32
 *interlock) static int
 wimmc37b_point(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
 {
-	struct nvif_push *push = wndw->wimm.push;
+	struct nvif_push *push = &wndw->wimm.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 2)))
(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c index caf40977f455..50a7b97d37a2 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c +++ b/drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c @@ -39,7 +39,7 @@ wndwc37e_csc_clr(struct nv50_wndw *wndw) static int
wndwc37e_csc_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) {

drivers/gpu/drm/nouveau/dispnv50/base507c.c +1 -1
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 13)))
@@ -52,7 +52,7 @@ wndwc37e_csc_set(struct nv50_wndw *wndw, struct

nv50_wndw_atom *asyw) static int
wndwc37e_ilut_clr(struct nv50_wndw *wndw)
{

drivers/gpu/drm/nouveau/dispnv50/base507c.c +2 -2
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 2)))
@@ -65,7 +65,7 @@ wndwc37e_ilut_clr(struct nv50_wndw *wndw)
 static int
 wndwc37e_ilut_set(struct nv50_wndw *wndw, struct nv50_wndw_atom
 *asyw) {
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 4)))
@@ -94,7 +94,7 @@ wndwc37e_ilut(struct nv50_wndw *wndw, struct

nv50_wndw_atom *asyw, int size) int
wndwc37e_blend_set(struct nv50_wndw *wndw, struct nv50_wndw_atom
*asyw) {

drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c +1 -1
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 8)))
@@ -139,7 +139,7 @@ wndwc37e_blend_set(struct nv50_wndw *wndw, struct

nv50_wndw_atom *asyw) int
wndwc37e_image_clr(struct nv50_wndw *wndw)
{

drivers/gpu/drm/nouveau/dispnv50/base507c.c +2 -2
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 4)))
@@ -156,7 +156,7 @@ wndwc37e_image_clr(struct nv50_wndw *wndw)
 static int
 wndwc37e_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom
 *asyw) {
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 17)))
@@ -209,7 +209,7 @@ wndwc37e_image_set(struct nv50_wndw *wndw, struct

nv50_wndw_atom *asyw) int
wndwc37e_ntfy_clr(struct nv50_wndw *wndw)
{

drivers/gpu/drm/nouveau/dispnv50/base507c.c +2 -2
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 2)))
@@ -222,7 +222,7 @@ wndwc37e_ntfy_clr(struct nv50_wndw *wndw)
 int
 wndwc37e_ntfy_set(struct nv50_wndw *wndw, struct nv50_wndw_atom
 *asyw) {
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 3)))
@@ -239,7 +239,7 @@ wndwc37e_ntfy_set(struct nv50_wndw *wndw, struct

nv50_wndw_atom *asyw) int
wndwc37e_sema_clr(struct nv50_wndw *wndw)
{

drivers/gpu/drm/nouveau/dispnv50/base507c.c +2 -2
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 2)))
@@ -252,7 +252,7 @@ wndwc37e_sema_clr(struct nv50_wndw *wndw)
 int
 wndwc37e_sema_set(struct nv50_wndw *wndw, struct nv50_wndw_atom
 *asyw) {
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 5)))
@@ -268,7 +268,7 @@ wndwc37e_sema_set(struct nv50_wndw *wndw, struct

nv50_wndw_atom *asyw) int
wndwc37e_update(struct nv50_wndw *wndw, u32 *interlock) {

drivers/gpu/drm/nouveau/dispnv50/base507c.c +1 -1
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 5)))
(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/wndwc57e.c index 1d214a4b960a..d1ca51aae58c 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/wndwc57e.c +++ b/drivers/gpu/drm/nouveau/dispnv50/wndwc57e.c @@ -32,7 +32,7 @@
static int
wndwc57e_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom
*asyw) {

drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c +1 -1
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 17)))
@@ -81,7 +81,7 @@ wndwc57e_image_set(struct nv50_wndw *wndw, struct

nv50_wndw_atom *asyw) int
wndwc57e_csc_clr(struct nv50_wndw *wndw)
{

drivers/gpu/drm/nouveau/dispnv50/wndwc57e.c +2 -2
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	const u32 identity[12] = {
 		0x00010000, 0x00000000, 0x00000000, 0x00000000,
 		0x00000000, 0x00010000, 0x00000000, 0x00000000,
@@ -99,7 +99,7 @@ wndwc57e_csc_clr(struct nv50_wndw *wndw)
 int
 wndwc57e_csc_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
 {
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 13)))
@@ -112,7 +112,7 @@ wndwc57e_csc_set(struct nv50_wndw *wndw, struct

nv50_wndw_atom *asyw) int
wndwc57e_ilut_clr(struct nv50_wndw *wndw)
{

drivers/gpu/drm/nouveau/dispnv50/base507c.c +2 -2
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 2)))
@@ -125,7 +125,7 @@ wndwc57e_ilut_clr(struct nv50_wndw *wndw)
 int
 wndwc57e_ilut_set(struct nv50_wndw *wndw, struct nv50_wndw_atom
 *asyw) {
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 4)))
(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/dispnv50/wndwc67e.c index 7a370fa1df20..52af293c98f4 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/wndwc67e.c +++ b/drivers/gpu/drm/nouveau/dispnv50/wndwc67e.c @@ -29,7 +29,7 @@
static int
wndwc67e_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom
*asyw) {

drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c +1 -1
-	struct nvif_push *push = wndw->wndw.push;
+	struct nvif_push *push = &wndw->wndw.push;
 	int ret;
 
 	if ((ret = PUSH_WAIT(push, 17)))
#68 lore raw
In reply to Ben Skeggs

On Fri, 26 Jul 2024 14:37:51 +1000
Ben Skeggs <[email protected]> wrote:

Hi Ben:

I reviewed the v3 patches. Here are some overall comments from me besides the comments in patches:

1) It would be nice that we can wrap some pointer fetch in marcos or inline functions. E.g. introduce xxx_to_yyy() to warp some pointer fetch e.g. in patch 35.

Thus, it will reduce quite some LOCs and reviewing efforts when adjusting the members between the data structures in the code refactor.

2) There are some patches removing stuff that have some history. E.g. support for userspace tools, nvkm running in the userspace, which I haven't seen before. Will leave those to folks who know it and I will review them after they gave an AB.

Thanks,
Zhi.

Quoted 219 lines

This series is a smaller subset of the prior series I posted, that aimed to remove the ioctl layer between NVKM and the nouveau DRM driver.

Whilst this series doesn't go the full way, it aims to remove a bunch of internal APIs that aren't useful anymore so they don't have to be ported, and to cleanup a few paths in the DRM driver that have suffered from bit- rot over the years to ensure it's safe to remove the ioctl layer next.

There's more details of the specific changes in the relevant commits.

A git tree is available at [1], and the remaining commits that were in the prior series, but not this one, are available at [2].

v2:
- prepended a couple of patches that begin to cleanup pci vs tegra paths, addressing some comments about variable naming, more in a future series
- rebased on current drm-misc-next
- other changes mentioned in their relevant commits
v3:
- remove unnecessary change to nouveau_name()
- reword some commit messages/comments

[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 (37):
drm/nouveau: move nouveau_drm_device_fini() above init() drm/nouveau: handle pci/tegra drm_dev_{alloc,register} from common
code
drm/nouveau: replace drm_device* with nouveau_drm* as dev drvdata drm/nouveau: create pci device once
drm/nouveau: store nvkm_device pointer in nouveau_drm drm/nouveau: move allocation of root client out of
nouveau_cli_init() drm/nouveau: add nouveau_cli to nouveau_abi16
drm/nouveau: handle limited nvif ioctl in abi16 drm/nouveau: remove abi16->device
drm/nouveau: remove abi16->handles
drm/nouveau/nvkm: remove detect/mmio/subdev_mask from device args drm/nouveau/nvkm: remove perfmon
drm/nouveau/nvkm: remove nvkm_client_search() drm/nouveau/nvif: remove support for userspace backends drm/nouveau/nvif: remove route/token
drm/nouveau/nvif: remove nvxx_object()
drm/nouveau/nvif: remove nvxx_client()
drm/nouveau/nvif: remove driver keep/fini drm/nouveau/nvif: remove client device arg drm/nouveau/nvif: remove client version
drm/nouveau/nvif: remove client devlist
drm/nouveau/nvif: remove client fini
drm/nouveau/nvif: remove device args
drm/nouveau: always map device
drm/nouveau/nvif: remove device rd/wr
drm/nouveau/nvif: remove disp chan rd/wr
drm/nouveau: move nvxx_* definitions to nouveau_drv.h drm/nouveau: add nvif_mmu to nouveau_drm
drm/nouveau: pass drm to nouveau_mem_new(), instead of cli drm/nouveau: pass drm to nv50_dmac_create(), rather than device+disp drm/nouveau: pass cli to nouveau_channel_new() instead of drm+device drm/nouveau: remove nouveau_chan.device
drm/nouveau: remove chan->drm
drm/nouveau: remove master
drm/nouveau: remove push pointer from nouveau_channel drm/nouveau/kms: remove a few unused struct members and fn decls drm/nouveau/kms: remove push pointer from nv50_dmac

 drivers/gpu/drm/nouveau/Kbuild                |   1 -
 drivers/gpu/drm/nouveau/dispnv04/crtc.c       |  14 +-
 drivers/gpu/drm/nouveau/dispnv04/dac.c        |   2 +-
 drivers/gpu/drm/nouveau/dispnv04/dfp.c        |   2 +-
 drivers/gpu/drm/nouveau/dispnv04/disp.c       |   7 +-
 drivers/gpu/drm/nouveau/dispnv04/disp.h       |   2 +-
 drivers/gpu/drm/nouveau/dispnv04/hw.c         |   9 +-
 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c     |   4 +-
 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c     |   6 +-
 drivers/gpu/drm/nouveau/dispnv50/base507c.c   |  21 +-
 drivers/gpu/drm/nouveau/dispnv50/base827c.c   |   2 +-
 drivers/gpu/drm/nouveau/dispnv50/base907c.c   |  10 +-
 drivers/gpu/drm/nouveau/dispnv50/core507d.c   |   8 +-
 drivers/gpu/drm/nouveau/dispnv50/corec37d.c   |   6 +-
 drivers/gpu/drm/nouveau/dispnv50/corec57d.c   |   2 +-
 drivers/gpu/drm/nouveau/dispnv50/crc907d.c    |   4 +-
 drivers/gpu/drm/nouveau/dispnv50/crcc37d.c    |   4 +-
 drivers/gpu/drm/nouveau/dispnv50/crcc57d.c    |   2 +-
 drivers/gpu/drm/nouveau/dispnv50/dac507d.c    |   2 +-
 drivers/gpu/drm/nouveau/dispnv50/dac907d.c    |   2 +-
 drivers/gpu/drm/nouveau/dispnv50/disp.c       |  74 +-
 drivers/gpu/drm/nouveau/dispnv50/disp.h       |  14 +-
 drivers/gpu/drm/nouveau/dispnv50/head507d.c   |  24 +-
 drivers/gpu/drm/nouveau/dispnv50/head827d.c   |  10 +-
 drivers/gpu/drm/nouveau/dispnv50/head907d.c   |  26 +-
 drivers/gpu/drm/nouveau/dispnv50/head917d.c   |   6 +-
 drivers/gpu/drm/nouveau/dispnv50/headc37d.c   |  18 +-
 drivers/gpu/drm/nouveau/dispnv50/headc57d.c   |  12 +-
 drivers/gpu/drm/nouveau/dispnv50/ovly507e.c   |   6 +-
 drivers/gpu/drm/nouveau/dispnv50/ovly827e.c   |   2 +-
 drivers/gpu/drm/nouveau/dispnv50/ovly907e.c   |   2 +-
 drivers/gpu/drm/nouveau/dispnv50/pior507d.c   |   2 +-
 drivers/gpu/drm/nouveau/dispnv50/sor507d.c    |   2 +-
 drivers/gpu/drm/nouveau/dispnv50/sor907d.c    |   2 +-
 drivers/gpu/drm/nouveau/dispnv50/sorc37d.c    |   2 +-
 drivers/gpu/drm/nouveau/dispnv50/wimmc37b.c   |   7 +-
 drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c   |  24 +-
 drivers/gpu/drm/nouveau/dispnv50/wndwc57e.c   |  10 +-
 drivers/gpu/drm/nouveau/dispnv50/wndwc67e.c   |   2 +-
 drivers/gpu/drm/nouveau/include/nvif/cl0080.h |   7 -
 drivers/gpu/drm/nouveau/include/nvif/class.h  |   3 -
 drivers/gpu/drm/nouveau/include/nvif/client.h |  11 +-
 drivers/gpu/drm/nouveau/include/nvif/device.h |  37 +-
 drivers/gpu/drm/nouveau/include/nvif/driver.h |   5 -
 drivers/gpu/drm/nouveau/include/nvif/if0000.h |  10 -
 drivers/gpu/drm/nouveau/include/nvif/if0002.h |  39 -
 drivers/gpu/drm/nouveau/include/nvif/if0003.h |  34 -
 drivers/gpu/drm/nouveau/include/nvif/ioctl.h  |  27 -
 drivers/gpu/drm/nouveau/include/nvif/object.h |  24 +-
 drivers/gpu/drm/nouveau/include/nvif/os.h     |  19 +
 .../drm/nouveau/include/nvkm/core/client.h    |   1 -
 .../drm/nouveau/include/nvkm/core/device.h    |   1 -
 .../drm/nouveau/include/nvkm/core/layout.h    |   1 -
 .../drm/nouveau/include/nvkm/core/object.h    |  14 -
 .../drm/nouveau/include/nvkm/core/oclass.h    |   2 -
 .../gpu/drm/nouveau/include/nvkm/core/os.h    |  19 -
 .../gpu/drm/nouveau/include/nvkm/core/pci.h   |   1 -
 .../gpu/drm/nouveau/include/nvkm/core/tegra.h |   1 -
 .../gpu/drm/nouveau/include/nvkm/engine/pm.h  |  29 -
 drivers/gpu/drm/nouveau/nouveau_abi16.c       | 330 +++++--
 drivers/gpu/drm/nouveau/nouveau_abi16.h       |   6 +-
 drivers/gpu/drm/nouveau/nouveau_bios.c        |   4 +-
 drivers/gpu/drm/nouveau/nouveau_bios.h        |   1 +
 drivers/gpu/drm/nouveau/nouveau_bo.c          |  10 +-
 drivers/gpu/drm/nouveau/nouveau_bo0039.c      |   6 +-
 drivers/gpu/drm/nouveau/nouveau_bo5039.c      |   6 +-
 drivers/gpu/drm/nouveau/nouveau_bo74c1.c      |   2 +-
 drivers/gpu/drm/nouveau/nouveau_bo85b5.c      |   2 +-
 drivers/gpu/drm/nouveau/nouveau_bo9039.c      |   4 +-
 drivers/gpu/drm/nouveau/nouveau_bo90b5.c      |   2 +-
 drivers/gpu/drm/nouveau/nouveau_boa0b5.c      |   4 +-
 drivers/gpu/drm/nouveau/nouveau_chan.c        |  96 +-
 drivers/gpu/drm/nouveau/nouveau_chan.h        |   8 +-
 drivers/gpu/drm/nouveau/nouveau_display.c     |   4 +-
 drivers/gpu/drm/nouveau/nouveau_display.h     |   2 +-
 drivers/gpu/drm/nouveau/nouveau_dma.c         |   2 +-
 drivers/gpu/drm/nouveau/nouveau_dmem.c        |   4 +-
 drivers/gpu/drm/nouveau/nouveau_drm.c         | 387 ++++----
 drivers/gpu/drm/nouveau/nouveau_drv.h         |  61 +-
 drivers/gpu/drm/nouveau/nouveau_fence.c       |  17 +-
 drivers/gpu/drm/nouveau/nouveau_gem.c         |  21 +-
 drivers/gpu/drm/nouveau/nouveau_hwmon.c       |  46 +-
 drivers/gpu/drm/nouveau/nouveau_led.c         |   2 +-
 drivers/gpu/drm/nouveau/nouveau_mem.c         |  38 +-
 drivers/gpu/drm/nouveau/nouveau_mem.h         |   4 +-
 drivers/gpu/drm/nouveau/nouveau_nvif.c        |   2 -
 drivers/gpu/drm/nouveau/nouveau_platform.c    |  11 +-
 drivers/gpu/drm/nouveau/nouveau_sgdma.c       |   2 +-
 drivers/gpu/drm/nouveau/nouveau_ttm.c         |  12 +-
 drivers/gpu/drm/nouveau/nouveau_usif.c        | 194 ----
 drivers/gpu/drm/nouveau/nouveau_usif.h        |  10 -
 drivers/gpu/drm/nouveau/nouveau_vga.c         |  14 +-
 drivers/gpu/drm/nouveau/nv04_fence.c          |   2 +-
 drivers/gpu/drm/nouveau/nv10_fence.c          |   2 +-
 drivers/gpu/drm/nouveau/nv17_fence.c          |  10 +-
 drivers/gpu/drm/nouveau/nv50_fence.c          |   2 +-
 drivers/gpu/drm/nouveau/nv84_fence.c          |  12 +-
 drivers/gpu/drm/nouveau/nvc0_fence.c          |   4 +-
 drivers/gpu/drm/nouveau/nvif/client.c         |  32 +-
 drivers/gpu/drm/nouveau/nvif/device.c         |  15 +-
 drivers/gpu/drm/nouveau/nvif/driver.c         |  32 +-
 drivers/gpu/drm/nouveau/nvif/object.c         |  40 -
 drivers/gpu/drm/nouveau/nvkm/core/client.c    |  64 +-
 drivers/gpu/drm/nouveau/nvkm/core/ioctl.c     |  91 +-
 drivers/gpu/drm/nouveau/nvkm/core/object.c    |  50 -
 drivers/gpu/drm/nouveau/nvkm/core/oproxy.c    |  42 -
 drivers/gpu/drm/nouveau/nvkm/core/uevent.c    |   4 +-
 drivers/gpu/drm/nouveau/nvkm/engine/Kbuild    |   1 -
 .../gpu/drm/nouveau/nvkm/engine/device/base.c | 479 +++++-----
 .../gpu/drm/nouveau/nvkm/engine/device/pci.c  |   4 +-
 .../gpu/drm/nouveau/nvkm/engine/device/priv.h |   2 -
 .../drm/nouveau/nvkm/engine/device/tegra.c    |   5 +-
 .../gpu/drm/nouveau/nvkm/engine/device/user.c |  93 +-
 .../gpu/drm/nouveau/nvkm/engine/disp/chan.c   |  24 -
 drivers/gpu/drm/nouveau/nvkm/engine/pm/Kbuild |  11 -
 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c | 867
------------------ drivers/gpu/drm/nouveau/nvkm/engine/pm/g84.c  |
165 ---- .../gpu/drm/nouveau/nvkm/engine/pm/gf100.c    | 243 -----
 .../gpu/drm/nouveau/nvkm/engine/pm/gf100.h    |  20 -
 .../gpu/drm/nouveau/nvkm/engine/pm/gf108.c    |  66 --
 .../gpu/drm/nouveau/nvkm/engine/pm/gf117.c    |  80 --
 .../gpu/drm/nouveau/nvkm/engine/pm/gk104.c    | 184 ----
 .../gpu/drm/nouveau/nvkm/engine/pm/gt200.c    | 157 ----
 .../gpu/drm/nouveau/nvkm/engine/pm/gt215.c    | 138 ---
 drivers/gpu/drm/nouveau/nvkm/engine/pm/nv40.c | 123 ---
 drivers/gpu/drm/nouveau/nvkm/engine/pm/nv40.h |  15 -
 drivers/gpu/drm/nouveau/nvkm/engine/pm/nv50.c | 175 ----
 drivers/gpu/drm/nouveau/nvkm/engine/pm/priv.h | 105 ---
 128 files changed, 1119 insertions(+), 4194 deletions(-)
 delete mode 100644 drivers/gpu/drm/nouveau/include/nvif/if0002.h
 delete mode 100644 drivers/gpu/drm/nouveau/include/nvif/if0003.h
 delete mode 100644 drivers/gpu/drm/nouveau/include/nvkm/engine/pm.h
 delete mode 100644 drivers/gpu/drm/nouveau/nouveau_usif.c
 delete mode 100644 drivers/gpu/drm/nouveau/nouveau_usif.h
 delete mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/pm/Kbuild
 delete mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c
 delete mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/pm/g84.c
 delete mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/pm/gf100.c
 delete mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/pm/gf100.h
 delete mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/pm/gf108.c
 delete mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/pm/gf117.c
 delete mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/pm/gk104.c
 delete mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/pm/gt200.c
 delete mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/pm/gt215.c
 delete mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/pm/nv40.c
 delete mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/pm/nv40.h
 delete mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/pm/nv50.c
 delete mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/pm/priv.h
maintainer Applied
#69 lore raw
In reply to Ben Skeggs
Quoted 23 lines · Ben Skeggs

This series is a smaller subset of the prior series I posted, that aimed to remove the ioctl layer between NVKM and the nouveau DRM driver.

Whilst this series doesn't go the full way, it aims to remove a bunch of internal APIs that aren't useful anymore so they don't have to be ported, and to cleanup a few paths in the DRM driver that have suffered from bit- rot over the years to ensure it's safe to remove the ioctl layer next.

There's more details of the specific changes in the relevant commits.

A git tree is available at [1], and the remaining commits that were in the prior series, but not this one, are available at [2].

v2:
- prepended a couple of patches that begin to cleanup pci vs tegra paths, addressing some comments about variable naming, more in a future series
- rebased on current drm-misc-next
- other changes mentioned in their relevant commits
v3:
- remove unnecessary change to nouveau_name()
- reword some commit messages/comments

Quoted 2 lines

[1] https://gitlab.freedesktop.org/bskeggs/nouveau/-/tree/00.00-cleanup
[2] https://gitlab.freedesktop.org/bskeggs/nouveau/-/tree/00.01-remove-ioctl

Applied to drm-misc-next, thanks!

Quoted 193 lines

Ben Skeggs (37):
drm/nouveau: move nouveau_drm_device_fini() above init() drm/nouveau: handle pci/tegra drm_dev_{alloc,register} from common
code
drm/nouveau: replace drm_device* with nouveau_drm* as dev drvdata drm/nouveau: create pci device once
drm/nouveau: store nvkm_device pointer in nouveau_drm drm/nouveau: move allocation of root client out of nouveau_cli_init() drm/nouveau: add nouveau_cli to nouveau_abi16
drm/nouveau: handle limited nvif ioctl in abi16 drm/nouveau: remove abi16->device
drm/nouveau: remove abi16->handles
drm/nouveau/nvkm: remove detect/mmio/subdev_mask from device args drm/nouveau/nvkm: remove perfmon
drm/nouveau/nvkm: remove nvkm_client_search() drm/nouveau/nvif: remove support for userspace backends drm/nouveau/nvif: remove route/token
drm/nouveau/nvif: remove nvxx_object()
drm/nouveau/nvif: remove nvxx_client()
drm/nouveau/nvif: remove driver keep/fini drm/nouveau/nvif: remove client device arg drm/nouveau/nvif: remove client version
drm/nouveau/nvif: remove client devlist
drm/nouveau/nvif: remove client fini
drm/nouveau/nvif: remove device args
drm/nouveau: always map device
drm/nouveau/nvif: remove device rd/wr
drm/nouveau/nvif: remove disp chan rd/wr
drm/nouveau: move nvxx_* definitions to nouveau_drv.h drm/nouveau: add nvif_mmu to nouveau_drm
drm/nouveau: pass drm to nouveau_mem_new(), instead of cli drm/nouveau: pass drm to nv50_dmac_create(), rather than device+disp drm/nouveau: pass cli to nouveau_channel_new() instead of drm+device drm/nouveau: remove nouveau_chan.device
drm/nouveau: remove chan->drm
drm/nouveau: remove master
drm/nouveau: remove push pointer from nouveau_channel drm/nouveau/kms: remove a few unused struct members and fn decls drm/nouveau/kms: remove push pointer from nv50_dmac

 drivers/gpu/drm/nouveau/Kbuild                |   1 -
 drivers/gpu/drm/nouveau/dispnv04/crtc.c       |  14 +-
 drivers/gpu/drm/nouveau/dispnv04/dac.c        |   2 +-
 drivers/gpu/drm/nouveau/dispnv04/dfp.c        |   2 +-
 drivers/gpu/drm/nouveau/dispnv04/disp.c       |   7 +-
 drivers/gpu/drm/nouveau/dispnv04/disp.h       |   2 +-
 drivers/gpu/drm/nouveau/dispnv04/hw.c         |   9 +-
 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c     |   4 +-
 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c     |   6 +-
 drivers/gpu/drm/nouveau/dispnv50/base507c.c   |  21 +-
 drivers/gpu/drm/nouveau/dispnv50/base827c.c   |   2 +-
 drivers/gpu/drm/nouveau/dispnv50/base907c.c   |  10 +-
 drivers/gpu/drm/nouveau/dispnv50/core507d.c   |   8 +-
 drivers/gpu/drm/nouveau/dispnv50/corec37d.c   |   6 +-
 drivers/gpu/drm/nouveau/dispnv50/corec57d.c   |   2 +-
 drivers/gpu/drm/nouveau/dispnv50/crc907d.c    |   4 +-
 drivers/gpu/drm/nouveau/dispnv50/crcc37d.c    |   4 +-
 drivers/gpu/drm/nouveau/dispnv50/crcc57d.c    |   2 +-
 drivers/gpu/drm/nouveau/dispnv50/dac507d.c    |   2 +-
 drivers/gpu/drm/nouveau/dispnv50/dac907d.c    |   2 +-
 drivers/gpu/drm/nouveau/dispnv50/disp.c       |  74 +-
 drivers/gpu/drm/nouveau/dispnv50/disp.h       |  14 +-
 drivers/gpu/drm/nouveau/dispnv50/head507d.c   |  24 +-
 drivers/gpu/drm/nouveau/dispnv50/head827d.c   |  10 +-
 drivers/gpu/drm/nouveau/dispnv50/head907d.c   |  26 +-
 drivers/gpu/drm/nouveau/dispnv50/head917d.c   |   6 +-
 drivers/gpu/drm/nouveau/dispnv50/headc37d.c   |  18 +-
 drivers/gpu/drm/nouveau/dispnv50/headc57d.c   |  12 +-
 drivers/gpu/drm/nouveau/dispnv50/ovly507e.c   |   6 +-
 drivers/gpu/drm/nouveau/dispnv50/ovly827e.c   |   2 +-
 drivers/gpu/drm/nouveau/dispnv50/ovly907e.c   |   2 +-
 drivers/gpu/drm/nouveau/dispnv50/pior507d.c   |   2 +-
 drivers/gpu/drm/nouveau/dispnv50/sor507d.c    |   2 +-
 drivers/gpu/drm/nouveau/dispnv50/sor907d.c    |   2 +-
 drivers/gpu/drm/nouveau/dispnv50/sorc37d.c    |   2 +-
 drivers/gpu/drm/nouveau/dispnv50/wimmc37b.c   |   7 +-
 drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c   |  24 +-
 drivers/gpu/drm/nouveau/dispnv50/wndwc57e.c   |  10 +-
 drivers/gpu/drm/nouveau/dispnv50/wndwc67e.c   |   2 +-
 drivers/gpu/drm/nouveau/include/nvif/cl0080.h |   7 -
 drivers/gpu/drm/nouveau/include/nvif/class.h  |   3 -
 drivers/gpu/drm/nouveau/include/nvif/client.h |  11 +-
 drivers/gpu/drm/nouveau/include/nvif/device.h |  37 +-
 drivers/gpu/drm/nouveau/include/nvif/driver.h |   5 -
 drivers/gpu/drm/nouveau/include/nvif/if0000.h |  10 -
 drivers/gpu/drm/nouveau/include/nvif/if0002.h |  39 -
 drivers/gpu/drm/nouveau/include/nvif/if0003.h |  34 -
 drivers/gpu/drm/nouveau/include/nvif/ioctl.h  |  27 -
 drivers/gpu/drm/nouveau/include/nvif/object.h |  24 +-
 drivers/gpu/drm/nouveau/include/nvif/os.h     |  19 +
 .../drm/nouveau/include/nvkm/core/client.h    |   1 -
 .../drm/nouveau/include/nvkm/core/device.h    |   1 -
 .../drm/nouveau/include/nvkm/core/layout.h    |   1 -
 .../drm/nouveau/include/nvkm/core/object.h    |  14 -
 .../drm/nouveau/include/nvkm/core/oclass.h    |   2 -
 .../gpu/drm/nouveau/include/nvkm/core/os.h    |  19 -
 .../gpu/drm/nouveau/include/nvkm/core/pci.h   |   1 -
 .../gpu/drm/nouveau/include/nvkm/core/tegra.h |   1 -
 .../gpu/drm/nouveau/include/nvkm/engine/pm.h  |  29 -
 drivers/gpu/drm/nouveau/nouveau_abi16.c       | 330 +++++--
 drivers/gpu/drm/nouveau/nouveau_abi16.h       |   6 +-
 drivers/gpu/drm/nouveau/nouveau_bios.c        |   4 +-
 drivers/gpu/drm/nouveau/nouveau_bios.h        |   1 +
 drivers/gpu/drm/nouveau/nouveau_bo.c          |  10 +-
 drivers/gpu/drm/nouveau/nouveau_bo0039.c      |   6 +-
 drivers/gpu/drm/nouveau/nouveau_bo5039.c      |   6 +-
 drivers/gpu/drm/nouveau/nouveau_bo74c1.c      |   2 +-
 drivers/gpu/drm/nouveau/nouveau_bo85b5.c      |   2 +-
 drivers/gpu/drm/nouveau/nouveau_bo9039.c      |   4 +-
 drivers/gpu/drm/nouveau/nouveau_bo90b5.c      |   2 +-
 drivers/gpu/drm/nouveau/nouveau_boa0b5.c      |   4 +-
 drivers/gpu/drm/nouveau/nouveau_chan.c        |  96 +-
 drivers/gpu/drm/nouveau/nouveau_chan.h        |   8 +-
 drivers/gpu/drm/nouveau/nouveau_display.c     |   4 +-
 drivers/gpu/drm/nouveau/nouveau_display.h     |   2 +-
 drivers/gpu/drm/nouveau/nouveau_dma.c         |   2 +-
 drivers/gpu/drm/nouveau/nouveau_dmem.c        |   4 +-
 drivers/gpu/drm/nouveau/nouveau_drm.c         | 387 ++++----
 drivers/gpu/drm/nouveau/nouveau_drv.h         |  61 +-
 drivers/gpu/drm/nouveau/nouveau_fence.c       |  17 +-
 drivers/gpu/drm/nouveau/nouveau_gem.c         |  21 +-
 drivers/gpu/drm/nouveau/nouveau_hwmon.c       |  46 +-
 drivers/gpu/drm/nouveau/nouveau_led.c         |   2 +-
 drivers/gpu/drm/nouveau/nouveau_mem.c         |  38 +-
 drivers/gpu/drm/nouveau/nouveau_mem.h         |   4 +-
 drivers/gpu/drm/nouveau/nouveau_nvif.c        |   2 -
 drivers/gpu/drm/nouveau/nouveau_platform.c    |  11 +-
 drivers/gpu/drm/nouveau/nouveau_sgdma.c       |   2 +-
 drivers/gpu/drm/nouveau/nouveau_ttm.c         |  12 +-
 drivers/gpu/drm/nouveau/nouveau_usif.c        | 194 ----
 drivers/gpu/drm/nouveau/nouveau_usif.h        |  10 -
 drivers/gpu/drm/nouveau/nouveau_vga.c         |  14 +-
 drivers/gpu/drm/nouveau/nv04_fence.c          |   2 +-
 drivers/gpu/drm/nouveau/nv10_fence.c          |   2 +-
 drivers/gpu/drm/nouveau/nv17_fence.c          |  10 +-
 drivers/gpu/drm/nouveau/nv50_fence.c          |   2 +-
 drivers/gpu/drm/nouveau/nv84_fence.c          |  12 +-
 drivers/gpu/drm/nouveau/nvc0_fence.c          |   4 +-
 drivers/gpu/drm/nouveau/nvif/client.c         |  32 +-
 drivers/gpu/drm/nouveau/nvif/device.c         |  15 +-
 drivers/gpu/drm/nouveau/nvif/driver.c         |  32 +-
 drivers/gpu/drm/nouveau/nvif/object.c         |  40 -
 drivers/gpu/drm/nouveau/nvkm/core/client.c    |  64 +-
 drivers/gpu/drm/nouveau/nvkm/core/ioctl.c     |  91 +-
 drivers/gpu/drm/nouveau/nvkm/core/object.c    |  50 -
 drivers/gpu/drm/nouveau/nvkm/core/oproxy.c    |  42 -
 drivers/gpu/drm/nouveau/nvkm/core/uevent.c    |   4 +-
 drivers/gpu/drm/nouveau/nvkm/engine/Kbuild    |   1 -
 .../gpu/drm/nouveau/nvkm/engine/device/base.c | 479 +++++-----
 .../gpu/drm/nouveau/nvkm/engine/device/pci.c  |   4 +-
 .../gpu/drm/nouveau/nvkm/engine/device/priv.h |   2 -
 .../drm/nouveau/nvkm/engine/device/tegra.c    |   5 +-
 .../gpu/drm/nouveau/nvkm/engine/device/user.c |  93 +-
 .../gpu/drm/nouveau/nvkm/engine/disp/chan.c   |  24 -
 drivers/gpu/drm/nouveau/nvkm/engine/pm/Kbuild |  11 -
 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c | 867 ------------------
 drivers/gpu/drm/nouveau/nvkm/engine/pm/g84.c  | 165 ----
 .../gpu/drm/nouveau/nvkm/engine/pm/gf100.c    | 243 -----
 .../gpu/drm/nouveau/nvkm/engine/pm/gf100.h    |  20 -
 .../gpu/drm/nouveau/nvkm/engine/pm/gf108.c    |  66 --
 .../gpu/drm/nouveau/nvkm/engine/pm/gf117.c    |  80 --
 .../gpu/drm/nouveau/nvkm/engine/pm/gk104.c    | 184 ----
 .../gpu/drm/nouveau/nvkm/engine/pm/gt200.c    | 157 ----
 .../gpu/drm/nouveau/nvkm/engine/pm/gt215.c    | 138 ---
 drivers/gpu/drm/nouveau/nvkm/engine/pm/nv40.c | 123 ---
 drivers/gpu/drm/nouveau/nvkm/engine/pm/nv40.h |  15 -
 drivers/gpu/drm/nouveau/nvkm/engine/pm/nv50.c | 175 ----
 drivers/gpu/drm/nouveau/nvkm/engine/pm/priv.h | 105 ---
 128 files changed, 1119 insertions(+), 4194 deletions(-)
 delete mode 100644 drivers/gpu/drm/nouveau/include/nvif/if0002.h
 delete mode 100644 drivers/gpu/drm/nouveau/include/nvif/if0003.h
 delete mode 100644 drivers/gpu/drm/nouveau/include/nvkm/engine/pm.h
 delete mode 100644 drivers/gpu/drm/nouveau/nouveau_usif.c
 delete mode 100644 drivers/gpu/drm/nouveau/nouveau_usif.h
 delete mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/pm/Kbuild
 delete mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c
 delete mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/pm/g84.c
 delete mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/pm/gf100.c
 delete mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/pm/gf100.h
 delete mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/pm/gf108.c
 delete mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/pm/gf117.c
 delete mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/pm/gk104.c
 delete mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/pm/gt200.c
 delete mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/pm/gt215.c
 delete mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/pm/nv40.c
 delete mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/pm/nv40.h
 delete mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/pm/nv50.c
 delete mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/pm/priv.h
Signature · 1 line
2.45.1