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
ef68d295
Commit
ef68d295
authored
May 08, 2007
by
Thomas Hellstrom
Committed by
Dave Airlie
May 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
via: Make sure we flush write-combining using a follow-up read.
Signed-off-by:
Dave Airlie
<
airlied@linux.ie
>
parent
a0a6dd0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
drivers/char/drm/via_dma.c
drivers/char/drm/via_dma.c
+4
-2
No files found.
drivers/char/drm/via_dma.c
View file @
ef68d295
...
...
@@ -436,8 +436,10 @@ static int via_hook_segment(drm_via_private_t * dev_priv,
paused
=
0
;
via_flush_write_combine
();
*
dev_priv
->
last_pause_ptr
=
pause_addr_lo
;
(
void
)
*
(
volatile
uint32_t
*
)(
via_get_dma
(
dev_priv
)
-
1
);
*
paused_at
=
pause_addr_lo
;
via_flush_write_combine
();
(
void
)
*
paused_at
;
reader
=
*
(
dev_priv
->
hw_addr_ptr
);
ptr
=
((
volatile
char
*
)
paused_at
-
dev_priv
->
dma_ptr
)
+
dev_priv
->
dma_offset
+
(
uint32_t
)
dev_priv
->
agpAddr
+
4
;
...
...
@@ -536,7 +538,7 @@ static void via_cmdbuf_start(drm_via_private_t * dev_priv)
&
pause_addr_hi
,
&
pause_addr_lo
,
1
)
-
1
;
via_flush_write_combine
();
while
(
!
*
dev_priv
->
last_pause_ptr
)
;
(
void
)
*
(
volatile
uint32_t
*
)
dev_priv
->
last_pause_ptr
;
VIA_WRITE
(
VIA_REG_TRANSET
,
(
HC_ParaType_PreCR
<<
16
));
VIA_WRITE
(
VIA_REG_TRANSPACE
,
command
);
...
...
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