-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
agp/intel: Fix cache control for Sandybridge
Sandybridge GTT has new cache control bits in PTE, which controls graphics page cache in LLC or LLC/MLC, so we need to extend the mask function to respect the new bits. And set cache control to always LLC only by default on Gen6. Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com> Cc: stable@kernel.org Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
- Loading branch information
Zhenyu Wang
authored and
Chris Wilson
committed
Sep 7, 2010
1 parent
93f5f7f
commit f8f235e
Showing
4 changed files
with
62 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* Common Intel AGPGART and GTT definitions. | ||
*/ | ||
#ifndef _INTEL_GTT_H | ||
#define _INTEL_GTT_H | ||
|
||
#include <linux/agp_backend.h> | ||
|
||
/* This is for Intel only GTT controls. | ||
* | ||
* Sandybridge: AGP_USER_CACHED_MEMORY default to LLC only | ||
*/ | ||
|
||
#define AGP_USER_CACHED_MEMORY_LLC_MLC (AGP_USER_TYPES + 2) | ||
#define AGP_USER_UNCACHED_MEMORY (AGP_USER_TYPES + 4) | ||
|
||
/* flag for GFDT type */ | ||
#define AGP_USER_CACHED_MEMORY_GFDT (1 << 3) | ||
|
||
#endif |