drm/i915: allow cache sharing policy control
authorJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 3 Aug 2011 18:28:44 +0000 (11:28 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 4 Aug 2011 00:45:15 +0000 (17:45 -0700)
commit07b7ddd9b7f17a567e3ac2b33a4dffcb2a4524e0
tree7a731bfd6992123f1809e121ef5d74e88be090c0
parentc0864cb39c68696e80657360eba63da5e743b7aa
drm/i915: allow cache sharing policy control

Expose the SNB+ cache sharing policy register in debugfs.  The new file,
i915_cache_sharing, has 4 values, 0-3, with 0 being "max uncore
resources" and 3 being the minimum.  Exposing this control should make
benchmarking easier and help us choose a good default.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_reg.h