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
nexedi
linux
Commits
ef7664d9
Commit
ef7664d9
authored
Jan 17, 2019
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/bar/tu102: rename implementation from tu104
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
c011b254
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
20 deletions
+20
-20
drivers/gpu/drm/nouveau/include/nvkm/subdev/bar.h
drivers/gpu/drm/nouveau/include/nvkm/subdev/bar.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/subdev/bar/Kbuild
drivers/gpu/drm/nouveau/nvkm/subdev/bar/Kbuild
+1
-1
drivers/gpu/drm/nouveau/nvkm/subdev/bar/tu102.c
drivers/gpu/drm/nouveau/nvkm/subdev/bar/tu102.c
+15
-15
No files found.
drivers/gpu/drm/nouveau/include/nvkm/subdev/bar.h
View file @
ef7664d9
...
...
@@ -29,5 +29,5 @@ int gf100_bar_new(struct nvkm_device *, int, struct nvkm_bar **);
int
gk20a_bar_new
(
struct
nvkm_device
*
,
int
,
struct
nvkm_bar
**
);
int
gm107_bar_new
(
struct
nvkm_device
*
,
int
,
struct
nvkm_bar
**
);
int
gm20b_bar_new
(
struct
nvkm_device
*
,
int
,
struct
nvkm_bar
**
);
int
tu10
4
_bar_new
(
struct
nvkm_device
*
,
int
,
struct
nvkm_bar
**
);
int
tu10
2
_bar_new
(
struct
nvkm_device
*
,
int
,
struct
nvkm_bar
**
);
#endif
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
View file @
ef7664d9
...
...
@@ -2437,7 +2437,7 @@ nv140_chipset = {
static
const
struct
nvkm_device_chip
nv162_chipset
=
{
.
name
=
"TU102"
,
.
bar
=
tu10
4
_bar_new
,
.
bar
=
tu10
2
_bar_new
,
.
bios
=
nvkm_bios_new
,
.
bus
=
gf100_bus_new
,
.
devinit
=
tu102_devinit_new
,
...
...
@@ -2469,7 +2469,7 @@ nv162_chipset = {
static
const
struct
nvkm_device_chip
nv164_chipset
=
{
.
name
=
"TU104"
,
.
bar
=
tu10
4
_bar_new
,
.
bar
=
tu10
2
_bar_new
,
.
bios
=
nvkm_bios_new
,
.
bus
=
gf100_bus_new
,
.
devinit
=
tu102_devinit_new
,
...
...
@@ -2501,7 +2501,7 @@ nv164_chipset = {
static
const
struct
nvkm_device_chip
nv166_chipset
=
{
.
name
=
"TU106"
,
.
bar
=
tu10
4
_bar_new
,
.
bar
=
tu10
2
_bar_new
,
.
bios
=
nvkm_bios_new
,
.
bus
=
gf100_bus_new
,
.
devinit
=
tu102_devinit_new
,
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/bar/Kbuild
View file @
ef7664d9
...
...
@@ -5,4 +5,4 @@ nvkm-y += nvkm/subdev/bar/gf100.o
nvkm-y += nvkm/subdev/bar/gk20a.o
nvkm-y += nvkm/subdev/bar/gm107.o
nvkm-y += nvkm/subdev/bar/gm20b.o
nvkm-y += nvkm/subdev/bar/tu10
4
.o
nvkm-y += nvkm/subdev/bar/tu10
2
.o
drivers/gpu/drm/nouveau/nvkm/subdev/bar/tu10
4
.c
→
drivers/gpu/drm/nouveau/nvkm/subdev/bar/tu10
2
.c
View file @
ef7664d9
...
...
@@ -25,7 +25,7 @@
#include <subdev/timer.h>
static
void
tu10
4
_bar_bar2_wait
(
struct
nvkm_bar
*
bar
)
tu10
2
_bar_bar2_wait
(
struct
nvkm_bar
*
bar
)
{
struct
nvkm_device
*
device
=
bar
->
subdev
.
device
;
nvkm_msec
(
device
,
2000
,
...
...
@@ -35,13 +35,13 @@ tu104_bar_bar2_wait(struct nvkm_bar *bar)
}
static
void
tu10
4
_bar_bar2_fini
(
struct
nvkm_bar
*
bar
)
tu10
2
_bar_bar2_fini
(
struct
nvkm_bar
*
bar
)
{
nvkm_mask
(
bar
->
subdev
.
device
,
0xb80f48
,
0x80000000
,
0x00000000
);
}
static
void
tu10
4
_bar_bar2_init
(
struct
nvkm_bar
*
base
)
tu10
2
_bar_bar2_init
(
struct
nvkm_bar
*
base
)
{
struct
nvkm_device
*
device
=
base
->
subdev
.
device
;
struct
gf100_bar
*
bar
=
gf100_bar
(
base
);
...
...
@@ -52,7 +52,7 @@ tu104_bar_bar2_init(struct nvkm_bar *base)
}
static
void
tu10
4
_bar_bar1_wait
(
struct
nvkm_bar
*
bar
)
tu10
2
_bar_bar1_wait
(
struct
nvkm_bar
*
bar
)
{
struct
nvkm_device
*
device
=
bar
->
subdev
.
device
;
nvkm_msec
(
device
,
2000
,
...
...
@@ -62,13 +62,13 @@ tu104_bar_bar1_wait(struct nvkm_bar *bar)
}
static
void
tu10
4
_bar_bar1_fini
(
struct
nvkm_bar
*
bar
)
tu10
2
_bar_bar1_fini
(
struct
nvkm_bar
*
bar
)
{
nvkm_mask
(
bar
->
subdev
.
device
,
0xb80f40
,
0x80000000
,
0x00000000
);
}
static
void
tu10
4
_bar_bar1_init
(
struct
nvkm_bar
*
base
)
tu10
2
_bar_bar1_init
(
struct
nvkm_bar
*
base
)
{
struct
nvkm_device
*
device
=
base
->
subdev
.
device
;
struct
gf100_bar
*
bar
=
gf100_bar
(
base
);
...
...
@@ -77,22 +77,22 @@ tu104_bar_bar1_init(struct nvkm_bar *base)
}
static
const
struct
nvkm_bar_func
tu10
4
_bar
=
{
tu10
2
_bar
=
{
.
dtor
=
gf100_bar_dtor
,
.
oneinit
=
gf100_bar_oneinit
,
.
bar1
.
init
=
tu10
4
_bar_bar1_init
,
.
bar1
.
fini
=
tu10
4
_bar_bar1_fini
,
.
bar1
.
wait
=
tu10
4
_bar_bar1_wait
,
.
bar1
.
init
=
tu10
2
_bar_bar1_init
,
.
bar1
.
fini
=
tu10
2
_bar_bar1_fini
,
.
bar1
.
wait
=
tu10
2
_bar_bar1_wait
,
.
bar1
.
vmm
=
gf100_bar_bar1_vmm
,
.
bar2
.
init
=
tu10
4
_bar_bar2_init
,
.
bar2
.
fini
=
tu10
4
_bar_bar2_fini
,
.
bar2
.
wait
=
tu10
4
_bar_bar2_wait
,
.
bar2
.
init
=
tu10
2
_bar_bar2_init
,
.
bar2
.
fini
=
tu10
2
_bar_bar2_fini
,
.
bar2
.
wait
=
tu10
2
_bar_bar2_wait
,
.
bar2
.
vmm
=
gf100_bar_bar2_vmm
,
.
flush
=
g84_bar_flush
,
};
int
tu10
4
_bar_new
(
struct
nvkm_device
*
device
,
int
index
,
struct
nvkm_bar
**
pbar
)
tu10
2
_bar_new
(
struct
nvkm_device
*
device
,
int
index
,
struct
nvkm_bar
**
pbar
)
{
return
gf100_bar_new_
(
&
tu10
4
_bar
,
device
,
index
,
pbar
);
return
gf100_bar_new_
(
&
tu10
2
_bar
,
device
,
index
,
pbar
);
}
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