Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
f10271ff
Commit
f10271ff
authored
Jan 17, 2019
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/fifo/tu102: rename implementation from tu104
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
86037742
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
34 additions
and
34 deletions
+34
-34
drivers/gpu/drm/nouveau/include/nvkm/engine/fifo.h
drivers/gpu/drm/nouveau/include/nvkm/engine/fifo.h
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
+3
-3
drivers/gpu/drm/nouveau/nvkm/engine/fifo/Kbuild
drivers/gpu/drm/nouveau/nvkm/engine/fifo/Kbuild
+3
-3
drivers/gpu/drm/nouveau/nvkm/engine/fifo/changk104.h
drivers/gpu/drm/nouveau/nvkm/engine/fifo/changk104.h
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifotu102.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifotu102.c
+5
-5
drivers/gpu/drm/nouveau/nvkm/engine/fifo/tu102.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/tu102.c
+15
-15
drivers/gpu/drm/nouveau/nvkm/engine/fifo/user.h
drivers/gpu/drm/nouveau/nvkm/engine/fifo/user.h
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/fifo/usertu102.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/usertu102.c
+5
-5
No files found.
drivers/gpu/drm/nouveau/include/nvkm/engine/fifo.h
View file @
f10271ff
...
@@ -74,5 +74,5 @@ int gm20b_fifo_new(struct nvkm_device *, int, struct nvkm_fifo **);
...
@@ -74,5 +74,5 @@ int gm20b_fifo_new(struct nvkm_device *, int, struct nvkm_fifo **);
int
gp100_fifo_new
(
struct
nvkm_device
*
,
int
,
struct
nvkm_fifo
**
);
int
gp100_fifo_new
(
struct
nvkm_device
*
,
int
,
struct
nvkm_fifo
**
);
int
gp10b_fifo_new
(
struct
nvkm_device
*
,
int
,
struct
nvkm_fifo
**
);
int
gp10b_fifo_new
(
struct
nvkm_device
*
,
int
,
struct
nvkm_fifo
**
);
int
gv100_fifo_new
(
struct
nvkm_device
*
,
int
,
struct
nvkm_fifo
**
);
int
gv100_fifo_new
(
struct
nvkm_device
*
,
int
,
struct
nvkm_fifo
**
);
int
tu10
4
_fifo_new
(
struct
nvkm_device
*
,
int
,
struct
nvkm_fifo
**
);
int
tu10
2
_fifo_new
(
struct
nvkm_device
*
,
int
,
struct
nvkm_fifo
**
);
#endif
#endif
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
View file @
f10271ff
...
@@ -2463,7 +2463,7 @@ nv162_chipset = {
...
@@ -2463,7 +2463,7 @@ nv162_chipset = {
.
ce
[
4
]
=
tu104_ce_new
,
.
ce
[
4
]
=
tu104_ce_new
,
.
disp
=
tu102_disp_new
,
.
disp
=
tu102_disp_new
,
.
dma
=
gv100_dma_new
,
.
dma
=
gv100_dma_new
,
.
fifo
=
tu10
4
_fifo_new
,
.
fifo
=
tu10
2
_fifo_new
,
};
};
static
const
struct
nvkm_device_chip
static
const
struct
nvkm_device_chip
...
@@ -2495,7 +2495,7 @@ nv164_chipset = {
...
@@ -2495,7 +2495,7 @@ nv164_chipset = {
.
ce
[
4
]
=
tu104_ce_new
,
.
ce
[
4
]
=
tu104_ce_new
,
.
disp
=
tu102_disp_new
,
.
disp
=
tu102_disp_new
,
.
dma
=
gv100_dma_new
,
.
dma
=
gv100_dma_new
,
.
fifo
=
tu10
4
_fifo_new
,
.
fifo
=
tu10
2
_fifo_new
,
};
};
static
const
struct
nvkm_device_chip
static
const
struct
nvkm_device_chip
...
@@ -2527,7 +2527,7 @@ nv166_chipset = {
...
@@ -2527,7 +2527,7 @@ nv166_chipset = {
.
ce
[
4
]
=
tu104_ce_new
,
.
ce
[
4
]
=
tu104_ce_new
,
.
disp
=
tu102_disp_new
,
.
disp
=
tu102_disp_new
,
.
dma
=
gv100_dma_new
,
.
dma
=
gv100_dma_new
,
.
fifo
=
tu10
4
_fifo_new
,
.
fifo
=
tu10
2
_fifo_new
,
};
};
static
int
static
int
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/Kbuild
View file @
f10271ff
...
@@ -16,7 +16,7 @@ nvkm-y += nvkm/engine/fifo/gm20b.o
...
@@ -16,7 +16,7 @@ nvkm-y += nvkm/engine/fifo/gm20b.o
nvkm-y += nvkm/engine/fifo/gp100.o
nvkm-y += nvkm/engine/fifo/gp100.o
nvkm-y += nvkm/engine/fifo/gp10b.o
nvkm-y += nvkm/engine/fifo/gp10b.o
nvkm-y += nvkm/engine/fifo/gv100.o
nvkm-y += nvkm/engine/fifo/gv100.o
nvkm-y += nvkm/engine/fifo/tu10
4
.o
nvkm-y += nvkm/engine/fifo/tu10
2
.o
nvkm-y += nvkm/engine/fifo/chan.o
nvkm-y += nvkm/engine/fifo/chan.o
nvkm-y += nvkm/engine/fifo/channv50.o
nvkm-y += nvkm/engine/fifo/channv50.o
...
@@ -34,7 +34,7 @@ nvkm-y += nvkm/engine/fifo/gpfifog84.o
...
@@ -34,7 +34,7 @@ nvkm-y += nvkm/engine/fifo/gpfifog84.o
nvkm-y += nvkm/engine/fifo/gpfifogf100.o
nvkm-y += nvkm/engine/fifo/gpfifogf100.o
nvkm-y += nvkm/engine/fifo/gpfifogk104.o
nvkm-y += nvkm/engine/fifo/gpfifogk104.o
nvkm-y += nvkm/engine/fifo/gpfifogv100.o
nvkm-y += nvkm/engine/fifo/gpfifogv100.o
nvkm-y += nvkm/engine/fifo/gpfifotu10
4
.o
nvkm-y += nvkm/engine/fifo/gpfifotu10
2
.o
nvkm-y += nvkm/engine/fifo/usergv100.o
nvkm-y += nvkm/engine/fifo/usergv100.o
nvkm-y += nvkm/engine/fifo/usertu10
4
.o
nvkm-y += nvkm/engine/fifo/usertu10
2
.o
drivers/gpu/drm/nouveau/nvkm/engine/fifo/changk104.h
View file @
f10271ff
...
@@ -47,6 +47,6 @@ int gv100_fifo_gpfifo_engine_init(struct nvkm_fifo_chan *,
...
@@ -47,6 +47,6 @@ int gv100_fifo_gpfifo_engine_init(struct nvkm_fifo_chan *,
int
gv100_fifo_gpfifo_engine_fini
(
struct
nvkm_fifo_chan
*
,
int
gv100_fifo_gpfifo_engine_fini
(
struct
nvkm_fifo_chan
*
,
struct
nvkm_engine
*
,
bool
);
struct
nvkm_engine
*
,
bool
);
int
tu10
4
_fifo_gpfifo_new
(
struct
gk104_fifo
*
,
const
struct
nvkm_oclass
*
,
int
tu10
2
_fifo_gpfifo_new
(
struct
gk104_fifo
*
,
const
struct
nvkm_oclass
*
,
void
*
data
,
u32
size
,
struct
nvkm_object
**
);
void
*
data
,
u32
size
,
struct
nvkm_object
**
);
#endif
#endif
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifotu10
4
.c
→
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifotu10
2
.c
View file @
f10271ff
...
@@ -29,14 +29,14 @@
...
@@ -29,14 +29,14 @@
#include <nvif/unpack.h>
#include <nvif/unpack.h>
static
u32
static
u32
tu10
4
_fifo_gpfifo_submit_token
(
struct
nvkm_fifo_chan
*
base
)
tu10
2
_fifo_gpfifo_submit_token
(
struct
nvkm_fifo_chan
*
base
)
{
{
struct
gk104_fifo_chan
*
chan
=
gk104_fifo_chan
(
base
);
struct
gk104_fifo_chan
*
chan
=
gk104_fifo_chan
(
base
);
return
(
chan
->
runl
<<
16
)
|
chan
->
base
.
chid
;
return
(
chan
->
runl
<<
16
)
|
chan
->
base
.
chid
;
}
}
static
const
struct
nvkm_fifo_chan_func
static
const
struct
nvkm_fifo_chan_func
tu10
4
_fifo_gpfifo
=
{
tu10
2
_fifo_gpfifo
=
{
.
dtor
=
gk104_fifo_gpfifo_dtor
,
.
dtor
=
gk104_fifo_gpfifo_dtor
,
.
init
=
gk104_fifo_gpfifo_init
,
.
init
=
gk104_fifo_gpfifo_init
,
.
fini
=
gk104_fifo_gpfifo_fini
,
.
fini
=
gk104_fifo_gpfifo_fini
,
...
@@ -45,11 +45,11 @@ tu104_fifo_gpfifo = {
...
@@ -45,11 +45,11 @@ tu104_fifo_gpfifo = {
.
engine_dtor
=
gk104_fifo_gpfifo_engine_dtor
,
.
engine_dtor
=
gk104_fifo_gpfifo_engine_dtor
,
.
engine_init
=
gv100_fifo_gpfifo_engine_init
,
.
engine_init
=
gv100_fifo_gpfifo_engine_init
,
.
engine_fini
=
gv100_fifo_gpfifo_engine_fini
,
.
engine_fini
=
gv100_fifo_gpfifo_engine_fini
,
.
submit_token
=
tu10
4
_fifo_gpfifo_submit_token
,
.
submit_token
=
tu10
2
_fifo_gpfifo_submit_token
,
};
};
int
int
tu10
4
_fifo_gpfifo_new
(
struct
gk104_fifo
*
fifo
,
const
struct
nvkm_oclass
*
oclass
,
tu10
2
_fifo_gpfifo_new
(
struct
gk104_fifo
*
fifo
,
const
struct
nvkm_oclass
*
oclass
,
void
*
data
,
u32
size
,
struct
nvkm_object
**
pobject
)
void
*
data
,
u32
size
,
struct
nvkm_object
**
pobject
)
{
{
struct
nvkm_object
*
parent
=
oclass
->
parent
;
struct
nvkm_object
*
parent
=
oclass
->
parent
;
...
@@ -67,7 +67,7 @@ tu104_fifo_gpfifo_new(struct gk104_fifo *fifo, const struct nvkm_oclass *oclass,
...
@@ -67,7 +67,7 @@ tu104_fifo_gpfifo_new(struct gk104_fifo *fifo, const struct nvkm_oclass *oclass,
args
->
v0
.
ilength
,
args
->
v0
.
runlist
,
args
->
v0
.
priv
);
args
->
v0
.
ilength
,
args
->
v0
.
runlist
,
args
->
v0
.
priv
);
if
(
args
->
v0
.
priv
&&
!
oclass
->
client
->
super
)
if
(
args
->
v0
.
priv
&&
!
oclass
->
client
->
super
)
return
-
EINVAL
;
return
-
EINVAL
;
return
gv100_fifo_gpfifo_new_
(
&
tu10
4
_fifo_gpfifo
,
fifo
,
return
gv100_fifo_gpfifo_new_
(
&
tu10
2
_fifo_gpfifo
,
fifo
,
&
args
->
v0
.
runlist
,
&
args
->
v0
.
runlist
,
&
args
->
v0
.
chid
,
&
args
->
v0
.
chid
,
args
->
v0
.
vmm
,
args
->
v0
.
vmm
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/tu10
4
.c
→
drivers/gpu/drm/nouveau/nvkm/engine/fifo/tu10
2
.c
View file @
f10271ff
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
#include <nvif/class.h>
#include <nvif/class.h>
static
void
static
void
tu10
4
_fifo_runlist_commit
(
struct
gk104_fifo
*
fifo
,
int
runl
,
tu10
2
_fifo_runlist_commit
(
struct
gk104_fifo
*
fifo
,
int
runl
,
struct
nvkm_memory
*
mem
,
int
nr
)
struct
nvkm_memory
*
mem
,
int
nr
)
{
{
struct
nvkm_device
*
device
=
fifo
->
base
.
engine
.
subdev
.
device
;
struct
nvkm_device
*
device
=
fifo
->
base
.
engine
.
subdev
.
device
;
...
@@ -44,15 +44,15 @@ tu104_fifo_runlist_commit(struct gk104_fifo *fifo, int runl,
...
@@ -44,15 +44,15 @@ tu104_fifo_runlist_commit(struct gk104_fifo *fifo, int runl,
}
}
const
struct
gk104_fifo_runlist_func
const
struct
gk104_fifo_runlist_func
tu10
4
_fifo_runlist
=
{
tu10
2
_fifo_runlist
=
{
.
size
=
16
,
.
size
=
16
,
.
cgrp
=
gv100_fifo_runlist_cgrp
,
.
cgrp
=
gv100_fifo_runlist_cgrp
,
.
chan
=
gv100_fifo_runlist_chan
,
.
chan
=
gv100_fifo_runlist_chan
,
.
commit
=
tu10
4
_fifo_runlist_commit
,
.
commit
=
tu10
2
_fifo_runlist_commit
,
};
};
static
const
struct
nvkm_enum
static
const
struct
nvkm_enum
tu10
4
_fifo_fault_engine
[]
=
{
tu10
2
_fifo_fault_engine
[]
=
{
{
0x01
,
"DISPLAY"
},
{
0x01
,
"DISPLAY"
},
{
0x03
,
"PTP"
},
{
0x03
,
"PTP"
},
{
0x06
,
"PWR_PMU"
},
{
0x06
,
"PWR_PMU"
},
...
@@ -80,7 +80,7 @@ tu104_fifo_fault_engine[] = {
...
@@ -80,7 +80,7 @@ tu104_fifo_fault_engine[] = {
};
};
static
void
static
void
tu10
4
_fifo_pbdma_init
(
struct
gk104_fifo
*
fifo
)
tu10
2
_fifo_pbdma_init
(
struct
gk104_fifo
*
fifo
)
{
{
struct
nvkm_device
*
device
=
fifo
->
base
.
engine
.
subdev
.
device
;
struct
nvkm_device
*
device
=
fifo
->
base
.
engine
.
subdev
.
device
;
const
u32
mask
=
(
1
<<
fifo
->
pbdma_nr
)
-
1
;
const
u32
mask
=
(
1
<<
fifo
->
pbdma_nr
)
-
1
;
...
@@ -89,28 +89,28 @@ tu104_fifo_pbdma_init(struct gk104_fifo *fifo)
...
@@ -89,28 +89,28 @@ tu104_fifo_pbdma_init(struct gk104_fifo *fifo)
}
}
static
const
struct
gk104_fifo_pbdma_func
static
const
struct
gk104_fifo_pbdma_func
tu10
4
_fifo_pbdma
=
{
tu10
2
_fifo_pbdma
=
{
.
nr
=
gm200_fifo_pbdma_nr
,
.
nr
=
gm200_fifo_pbdma_nr
,
.
init
=
tu10
4
_fifo_pbdma_init
,
.
init
=
tu10
2
_fifo_pbdma_init
,
.
init_timeout
=
gk208_fifo_pbdma_init_timeout
,
.
init_timeout
=
gk208_fifo_pbdma_init_timeout
,
};
};
static
const
struct
gk104_fifo_func
static
const
struct
gk104_fifo_func
tu10
4
_fifo
=
{
tu10
2
_fifo
=
{
.
pbdma
=
&
tu10
4
_fifo_pbdma
,
.
pbdma
=
&
tu10
2
_fifo_pbdma
,
.
fault
.
access
=
gv100_fifo_fault_access
,
.
fault
.
access
=
gv100_fifo_fault_access
,
.
fault
.
engine
=
tu10
4
_fifo_fault_engine
,
.
fault
.
engine
=
tu10
2
_fifo_fault_engine
,
.
fault
.
reason
=
gv100_fifo_fault_reason
,
.
fault
.
reason
=
gv100_fifo_fault_reason
,
.
fault
.
hubclient
=
gv100_fifo_fault_hubclient
,
.
fault
.
hubclient
=
gv100_fifo_fault_hubclient
,
.
fault
.
gpcclient
=
gv100_fifo_fault_gpcclient
,
.
fault
.
gpcclient
=
gv100_fifo_fault_gpcclient
,
.
runlist
=
&
tu10
4
_fifo_runlist
,
.
runlist
=
&
tu10
2
_fifo_runlist
,
.
user
=
{{
-
1
,
-
1
,
VOLTA_USERMODE_A
},
tu10
4
_fifo_user_new
},
.
user
=
{{
-
1
,
-
1
,
VOLTA_USERMODE_A
},
tu10
2
_fifo_user_new
},
.
chan
=
{{
0
,
0
,
TURING_CHANNEL_GPFIFO_A
},
tu10
4
_fifo_gpfifo_new
},
.
chan
=
{{
0
,
0
,
TURING_CHANNEL_GPFIFO_A
},
tu10
2
_fifo_gpfifo_new
},
.
cgrp_force
=
true
,
.
cgrp_force
=
true
,
};
};
int
int
tu10
4
_fifo_new
(
struct
nvkm_device
*
device
,
int
index
,
struct
nvkm_fifo
**
pfifo
)
tu10
2
_fifo_new
(
struct
nvkm_device
*
device
,
int
index
,
struct
nvkm_fifo
**
pfifo
)
{
{
return
gk104_fifo_new_
(
&
tu10
4
_fifo
,
device
,
index
,
4096
,
pfifo
);
return
gk104_fifo_new_
(
&
tu10
2
_fifo
,
device
,
index
,
4096
,
pfifo
);
}
}
drivers/gpu/drm/nouveau/nvkm/engine/fifo/user.h
View file @
f10271ff
...
@@ -3,6 +3,6 @@
...
@@ -3,6 +3,6 @@
#include "priv.h"
#include "priv.h"
int
gv100_fifo_user_new
(
const
struct
nvkm_oclass
*
,
void
*
,
u32
,
int
gv100_fifo_user_new
(
const
struct
nvkm_oclass
*
,
void
*
,
u32
,
struct
nvkm_object
**
);
struct
nvkm_object
**
);
int
tu10
4
_fifo_user_new
(
const
struct
nvkm_oclass
*
,
void
*
,
u32
,
int
tu10
2
_fifo_user_new
(
const
struct
nvkm_oclass
*
,
void
*
,
u32
,
struct
nvkm_object
**
);
struct
nvkm_object
**
);
#endif
#endif
drivers/gpu/drm/nouveau/nvkm/engine/fifo/usertu10
4
.c
→
drivers/gpu/drm/nouveau/nvkm/engine/fifo/usertu10
2
.c
View file @
f10271ff
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
#include "user.h"
#include "user.h"
static
int
static
int
tu10
4
_fifo_user_map
(
struct
nvkm_object
*
object
,
void
*
argv
,
u32
argc
,
tu10
2
_fifo_user_map
(
struct
nvkm_object
*
object
,
void
*
argv
,
u32
argc
,
enum
nvkm_object_map
*
type
,
u64
*
addr
,
u64
*
size
)
enum
nvkm_object_map
*
type
,
u64
*
addr
,
u64
*
size
)
{
{
struct
nvkm_device
*
device
=
object
->
engine
->
subdev
.
device
;
struct
nvkm_device
*
device
=
object
->
engine
->
subdev
.
device
;
...
@@ -33,13 +33,13 @@ tu104_fifo_user_map(struct nvkm_object *object, void *argv, u32 argc,
...
@@ -33,13 +33,13 @@ tu104_fifo_user_map(struct nvkm_object *object, void *argv, u32 argc,
}
}
static
const
struct
nvkm_object_func
static
const
struct
nvkm_object_func
tu10
4
_fifo_user
=
{
tu10
2
_fifo_user
=
{
.
map
=
tu10
4
_fifo_user_map
,
.
map
=
tu10
2
_fifo_user_map
,
};
};
int
int
tu10
4
_fifo_user_new
(
const
struct
nvkm_oclass
*
oclass
,
void
*
argv
,
u32
argc
,
tu10
2
_fifo_user_new
(
const
struct
nvkm_oclass
*
oclass
,
void
*
argv
,
u32
argc
,
struct
nvkm_object
**
pobject
)
struct
nvkm_object
**
pobject
)
{
{
return
nvkm_object_new_
(
&
tu10
4
_fifo_user
,
oclass
,
argv
,
argc
,
pobject
);
return
nvkm_object_new_
(
&
tu10
2
_fifo_user
,
oclass
,
argv
,
argc
,
pobject
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment