]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfaf9e23290989d05928e61029ad2754d02cceb09
tree7a731bfd6992123f1809e121ef5d74e88be090c0
parent2328d7591fd45cf7043f79bf45d683d9a6208b6e
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