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
a708d8a7
Commit
a708d8a7
authored
Aug 11, 2020
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/kms/nv50-: add module option to select EVO/NVD push buffer location
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
7c1f6bbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
drivers/gpu/drm/nouveau/dispnv50/disp.c
drivers/gpu/drm/nouveau/dispnv50/disp.c
+6
-1
No files found.
drivers/gpu/drm/nouveau/dispnv50/disp.c
View file @
a708d8a7
...
...
@@ -220,6 +220,10 @@ nv50_dmac_wait(struct nvif_push *push, u32 size)
return
0
;
}
MODULE_PARM_DESC
(
kms_vram_pushbuf
,
"Place EVO/NVD push buffers in VRAM (default: auto)"
);
static
int
nv50_dmac_vram_pushbuf
=
-
1
;
module_param_named
(
kms_vram_pushbuf
,
nv50_dmac_vram_pushbuf
,
int
,
0400
);
int
nv50_dmac_create
(
struct
nvif_device
*
device
,
struct
nvif_object
*
disp
,
const
s32
*
oclass
,
u8
head
,
void
*
data
,
u32
size
,
s64
syncbuf
,
...
...
@@ -241,7 +245,8 @@ nv50_dmac_create(struct nvif_device *device, struct nvif_object *disp,
*
* This appears to match NVIDIA's behaviour on Pascal.
*/
if
(
device
->
info
.
family
==
NV_DEVICE_INFO_V0_PASCAL
)
if
((
nv50_dmac_vram_pushbuf
>
0
)
||
(
nv50_dmac_vram_pushbuf
<
0
&&
device
->
info
.
family
==
NV_DEVICE_INFO_V0_PASCAL
))
type
|=
NVIF_MEM_VRAM
;
ret
=
nvif_mem_ctor_map
(
&
cli
->
mmu
,
"kmsChanPush"
,
type
,
0x1000
,
...
...
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