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
34bf50cd
Commit
34bf50cd
authored
Jul 09, 2016
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/core: increase maximum ce instances to 6
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
c73baa83
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
drivers/gpu/drm/nouveau/include/nvkm/core/device.h
drivers/gpu/drm/nouveau/include/nvkm/core/device.h
+6
-3
drivers/gpu/drm/nouveau/nvkm/core/subdev.c
drivers/gpu/drm/nouveau/nvkm/core/subdev.c
+3
-0
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
+6
-0
No files found.
drivers/gpu/drm/nouveau/include/nvkm/core/device.h
View file @
34bf50cd
...
...
@@ -33,7 +33,10 @@ enum nvkm_devidx {
NVKM_ENGINE_CE0
,
NVKM_ENGINE_CE1
,
NVKM_ENGINE_CE2
,
NVKM_ENGINE_CE_LAST
=
NVKM_ENGINE_CE2
,
NVKM_ENGINE_CE3
,
NVKM_ENGINE_CE4
,
NVKM_ENGINE_CE5
,
NVKM_ENGINE_CE_LAST
=
NVKM_ENGINE_CE5
,
NVKM_ENGINE_CIPHER
,
NVKM_ENGINE_DISP
,
...
...
@@ -136,7 +139,7 @@ struct nvkm_device {
struct
nvkm_volt
*
volt
;
struct
nvkm_engine
*
bsp
;
struct
nvkm_engine
*
ce
[
3
];
struct
nvkm_engine
*
ce
[
6
];
struct
nvkm_engine
*
cipher
;
struct
nvkm_disp
*
disp
;
struct
nvkm_dma
*
dma
;
...
...
@@ -206,7 +209,7 @@ struct nvkm_device_chip {
int
(
*
volt
)(
struct
nvkm_device
*
,
int
idx
,
struct
nvkm_volt
**
);
int
(
*
bsp
)(
struct
nvkm_device
*
,
int
idx
,
struct
nvkm_engine
**
);
int
(
*
ce
[
3
]
)(
struct
nvkm_device
*
,
int
idx
,
struct
nvkm_engine
**
);
int
(
*
ce
[
6
]
)(
struct
nvkm_device
*
,
int
idx
,
struct
nvkm_engine
**
);
int
(
*
cipher
)(
struct
nvkm_device
*
,
int
idx
,
struct
nvkm_engine
**
);
int
(
*
disp
)(
struct
nvkm_device
*
,
int
idx
,
struct
nvkm_disp
**
);
int
(
*
dma
)(
struct
nvkm_device
*
,
int
idx
,
struct
nvkm_dma
**
);
...
...
drivers/gpu/drm/nouveau/nvkm/core/subdev.c
View file @
34bf50cd
...
...
@@ -57,6 +57,9 @@ nvkm_subdev_name[NVKM_SUBDEV_NR] = {
[
NVKM_ENGINE_CE0
]
=
"ce0"
,
[
NVKM_ENGINE_CE1
]
=
"ce1"
,
[
NVKM_ENGINE_CE2
]
=
"ce2"
,
[
NVKM_ENGINE_CE3
]
=
"ce3"
,
[
NVKM_ENGINE_CE4
]
=
"ce4"
,
[
NVKM_ENGINE_CE5
]
=
"ce5"
,
[
NVKM_ENGINE_CIPHER
]
=
"cipher"
,
[
NVKM_ENGINE_DISP
]
=
"disp"
,
[
NVKM_ENGINE_DMAOBJ
]
=
"dma"
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
View file @
34bf50cd
...
...
@@ -2221,6 +2221,9 @@ nvkm_device_engine(struct nvkm_device *device, int index)
_
(
CE0
,
device
->
ce
[
0
]
,
device
->
ce
[
0
]);
_
(
CE1
,
device
->
ce
[
1
]
,
device
->
ce
[
1
]);
_
(
CE2
,
device
->
ce
[
2
]
,
device
->
ce
[
2
]);
_
(
CE3
,
device
->
ce
[
3
]
,
device
->
ce
[
3
]);
_
(
CE4
,
device
->
ce
[
4
]
,
device
->
ce
[
4
]);
_
(
CE5
,
device
->
ce
[
5
]
,
device
->
ce
[
5
]);
_
(
CIPHER
,
device
->
cipher
,
device
->
cipher
);
_
(
DISP
,
device
->
disp
,
&
device
->
disp
->
engine
);
_
(
DMAOBJ
,
device
->
dma
,
&
device
->
dma
->
engine
);
...
...
@@ -2659,6 +2662,9 @@ nvkm_device_ctor(const struct nvkm_device_func *func,
_
(
NVKM_ENGINE_CE0
,
ce
[
0
]);
_
(
NVKM_ENGINE_CE1
,
ce
[
1
]);
_
(
NVKM_ENGINE_CE2
,
ce
[
2
]);
_
(
NVKM_ENGINE_CE3
,
ce
[
3
]);
_
(
NVKM_ENGINE_CE4
,
ce
[
4
]);
_
(
NVKM_ENGINE_CE5
,
ce
[
5
]);
_
(
NVKM_ENGINE_CIPHER
,
cipher
);
_
(
NVKM_ENGINE_DISP
,
disp
);
_
(
NVKM_ENGINE_DMAOBJ
,
dma
);
...
...
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