History

drm/i915: Use Write-Through cacheing for the display plane on Iris

Haswell GT3e has the unique feature of supporting Write-Through cacheing of objects within the eLLC/LLC. The purpose of this is to enable the display plane to remain coherent whilst objects lie resident in the eLLC/LLC - so that we, in theory, get the best of both worlds, perfect display and fast access. However, we still need to be careful as the CPU does not see the WT when accessing the cache. In particular, this means that we need to flush the cache lines after writing to an object through the CPU, and on transitioning from a cached state to WT. v2: Actually do the clflush on transition to WT, nagging by Ville. v3: Flush the CPU cache after writes into WT objects. v4: Rease onto LLC updates and report WT as "uncached" for get_cache_level_ioctl to remain symmetric with set_cache_level_ioctl.

Chris Wilson committed 13 years ago

Commit 651d7941 parent ea04cb35 files · +29 −4Browse files

Showing the changes to include/uapi (1 of 5 files). Show all

Unified · Split

include/uapi/drm/i915_drm.h+1−0
@@ -334,6 +334,7 @@ typedef struct drm_i915_irq_wait { · 333 unmodified lines
334334 #define I915_PARAM_HAS_PINNED_BATCHES 24
335335 #define I915_PARAM_HAS_EXEC_NO_RELOC 25
336336 #define I915_PARAM_HAS_EXEC_HANDLE_LUT 26
337+#define I915_PARAM_HAS_WT 27
337338
338339 typedef struct drm_i915_getparam {
339340 int param;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t