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
6f4dc18c
Commit
6f4dc18c
authored
Nov 01, 2017
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/fb/ram: use new interfaces for vmm operations
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
f66c57d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c
+14
-4
No files found.
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c
View file @
6f4dc18c
...
@@ -39,12 +39,22 @@ nvkm_vram_map(struct nvkm_memory *memory, u64 offset, struct nvkm_vmm *vmm,
...
@@ -39,12 +39,22 @@ nvkm_vram_map(struct nvkm_memory *memory, u64 offset, struct nvkm_vmm *vmm,
struct
nvkm_vma
*
vma
,
void
*
argv
,
u32
argc
)
struct
nvkm_vma
*
vma
,
void
*
argv
,
u32
argc
)
{
{
struct
nvkm_vram
*
vram
=
nvkm_vram
(
memory
);
struct
nvkm_vram
*
vram
=
nvkm_vram
(
memory
);
struct
nvkm_mem
mem
=
{
struct
nvkm_vmm_map
map
=
{
.
mem
=
vram
->
mn
,
.
memory
=
&
vram
->
memory
,
.
memory
=
&
vram
->
memory
,
.
offset
=
offset
,
.
mem
=
vram
->
mn
,
};
};
nvkm_vm_map_at
(
vma
,
offset
,
&
mem
);
return
0
;
if
(
vma
->
vm
)
{
struct
nvkm_mem
mem
=
{
.
mem
=
vram
->
mn
,
.
memory
=
&
vram
->
memory
,
};
nvkm_vm_map_at
(
vma
,
offset
,
&
mem
);
return
0
;
}
return
nvkm_vmm_map
(
vmm
,
vma
,
argv
,
argc
,
&
map
);
}
}
static
u64
static
u64
...
...
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