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
9f9f51fc
Commit
9f9f51fc
authored
Jun 07, 2011
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nv50-nvc0: lookup pushbuf virtual address on dma_push
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
d02836b4
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/nouveau_dma.c
drivers/gpu/drm/nouveau/nouveau_dma.c
+6
-1
No files found.
drivers/gpu/drm/nouveau/nouveau_dma.c
View file @
9f9f51fc
...
...
@@ -167,8 +167,13 @@ nv50_dma_push(struct nouveau_channel *chan, struct nouveau_bo *bo,
int
delta
,
int
length
)
{
struct
nouveau_bo
*
pb
=
chan
->
pushbuf_bo
;
uint64_t
offset
=
bo
->
vma
.
offset
+
delt
a
;
struct
nouveau_vma
*
vm
a
;
int
ip
=
(
chan
->
dma
.
ib_put
*
2
)
+
chan
->
dma
.
ib_base
;
u64
offset
;
vma
=
nouveau_bo_vma_find
(
bo
,
chan
->
vm
);
BUG_ON
(
!
vma
);
offset
=
vma
->
offset
+
delta
;
BUG_ON
(
chan
->
dma
.
ib_free
<
1
);
nouveau_bo_wr32
(
pb
,
ip
++
,
lower_32_bits
(
offset
));
...
...
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