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
a2757b6f
Commit
a2757b6f
authored
Jul 09, 2010
by
Zhenyu Wang
Committed by
Eric Anholt
Aug 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agp/intel: Add actual definitions of the Sandybridge PTE caching bits.
parent
3869d4a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
drivers/char/agp/intel-agp.h
drivers/char/agp/intel-agp.h
+6
-0
drivers/char/agp/intel-gtt.c
drivers/char/agp/intel-gtt.c
+1
-1
No files found.
drivers/char/agp/intel-agp.h
View file @
a2757b6f
...
@@ -60,6 +60,12 @@
...
@@ -60,6 +60,12 @@
#define I810_PTE_LOCAL 0x00000002
#define I810_PTE_LOCAL 0x00000002
#define I810_PTE_VALID 0x00000001
#define I810_PTE_VALID 0x00000001
#define I830_PTE_SYSTEM_CACHED 0x00000006
#define I830_PTE_SYSTEM_CACHED 0x00000006
/* GT PTE cache control fields */
#define GEN6_PTE_UNCACHED 0x00000002
#define GEN6_PTE_LLC 0x00000004
#define GEN6_PTE_LLC_MLC 0x00000006
#define GEN6_PTE_GFDT 0x00000008
#define I810_SMRAM_MISCC 0x70
#define I810_SMRAM_MISCC 0x70
#define I810_GFX_MEM_WIN_SIZE 0x00010000
#define I810_GFX_MEM_WIN_SIZE 0x00010000
#define I810_GFX_MEM_WIN_32M 0x00010000
#define I810_GFX_MEM_WIN_32M 0x00010000
...
...
drivers/char/agp/intel-gtt.c
View file @
a2757b6f
...
@@ -176,7 +176,7 @@ static void intel_agp_insert_sg_entries(struct agp_memory *mem,
...
@@ -176,7 +176,7 @@ static void intel_agp_insert_sg_entries(struct agp_memory *mem,
if
(
agp_bridge
->
dev
->
device
==
PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB
||
if
(
agp_bridge
->
dev
->
device
==
PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB
||
agp_bridge
->
dev
->
device
==
PCI_DEVICE_ID_INTEL_SANDYBRIDGE_M_HB
)
agp_bridge
->
dev
->
device
==
PCI_DEVICE_ID_INTEL_SANDYBRIDGE_M_HB
)
{
{
cache_bits
=
I830_PTE_SYSTEM_CACHED
;
cache_bits
=
GEN6_PTE_LLC_MLC
;
}
}
for
(
i
=
0
,
j
=
pg_start
;
i
<
mem
->
page_count
;
i
++
,
j
++
)
{
for
(
i
=
0
,
j
=
pg_start
;
i
<
mem
->
page_count
;
i
++
,
j
++
)
{
...
...
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