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
8f9d9cdf
Commit
8f9d9cdf
authored
Feb 22, 2005
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AGPGART] Don't clobber other bits in control register when flushing TLB on VIA.
Signed-off-by:
Dave Jones
<
davej@redhat.com
>
parent
3425492a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
drivers/char/agp/via-agp.c
drivers/char/agp/via-agp.c
+7
-2
No files found.
drivers/char/agp/via-agp.c
View file @
8f9d9cdf
...
...
@@ -79,8 +79,13 @@ static void via_cleanup(void)
static
void
via_tlbflush
(
struct
agp_memory
*
mem
)
{
pci_write_config_dword
(
agp_bridge
->
dev
,
VIA_GARTCTRL
,
0x0000008f
);
pci_write_config_dword
(
agp_bridge
->
dev
,
VIA_GARTCTRL
,
0x0000000f
);
u32
temp
;
pci_read_config_dword
(
agp_bridge
->
dev
,
VIA_GARTCTRL
,
&
temp
);
temp
|=
(
1
<<
7
);
pci_write_config_dword
(
agp_bridge
->
dev
,
VIA_GARTCTRL
,
temp
);
temp
&=
~
(
1
<<
7
);
pci_write_config_dword
(
agp_bridge
->
dev
,
VIA_GARTCTRL
,
temp
);
}
...
...
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