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
7a083293
Commit
7a083293
authored
Aug 31, 2012
by
Alex Deucher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/radeon: document async VM changes in ni.c
Signed-off-by:
Alex Deucher
<
alexander.deucher@amd.com
>
parent
2a6f1abb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
drivers/gpu/drm/radeon/ni.c
drivers/gpu/drm/radeon/ni.c
+15
-0
No files found.
drivers/gpu/drm/radeon/ni.c
View file @
7a083293
...
@@ -1517,6 +1517,13 @@ uint32_t cayman_vm_page_flags(struct radeon_device *rdev, uint32_t flags)
...
@@ -1517,6 +1517,13 @@ uint32_t cayman_vm_page_flags(struct radeon_device *rdev, uint32_t flags)
return
r600_flags
;
return
r600_flags
;
}
}
/**
* cayman_vm_set_page - update the page tables using the CP
*
* @rdev: radeon_device pointer
*
* Update the page tables using the CP (cayman-si).
*/
void
cayman_vm_set_page
(
struct
radeon_device
*
rdev
,
struct
radeon_vm
*
vm
,
void
cayman_vm_set_page
(
struct
radeon_device
*
rdev
,
struct
radeon_vm
*
vm
,
unsigned
pfn
,
struct
ttm_mem_reg
*
mem
,
unsigned
pfn
,
struct
ttm_mem_reg
*
mem
,
unsigned
npages
,
uint32_t
flags
)
unsigned
npages
,
uint32_t
flags
)
...
@@ -1541,6 +1548,14 @@ void cayman_vm_set_page(struct radeon_device *rdev, struct radeon_vm *vm,
...
@@ -1541,6 +1548,14 @@ void cayman_vm_set_page(struct radeon_device *rdev, struct radeon_vm *vm,
}
}
}
}
/**
* cayman_vm_flush - vm flush using the CP
*
* @rdev: radeon_device pointer
*
* Update the page table base and flush the VM TLB
* using the CP (cayman-si).
*/
void
cayman_vm_flush
(
struct
radeon_device
*
rdev
,
struct
radeon_ib
*
ib
)
void
cayman_vm_flush
(
struct
radeon_device
*
rdev
,
struct
radeon_ib
*
ib
)
{
{
struct
radeon_ring
*
ring
=
&
rdev
->
ring
[
ib
->
ring
];
struct
radeon_ring
*
ring
=
&
rdev
->
ring
[
ib
->
ring
];
...
...
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