drm/i915/cnl: Avoid ioremap_wc on Cannonlake as well.
authorRodrigo Vivi <[email protected]>
Tue, 29 Aug 2017 23:09:07 +0000 (16:09 -0700)
committerRodrigo Vivi <[email protected]>
Thu, 31 Aug 2017 16:26:43 +0000 (09:26 -0700)
commit385db982b277a1eb5998b6316a500a2d6d9592b1
tree605a6b45b6743e94a905b843eaebbe7b84304cb6
parent86ebb015fa744dd1e265c9b45ade870ac859a4d5
drm/i915/cnl: Avoid ioremap_wc on Cannonlake as well.

Driver’s CPU access to GTT is via the GTTMMADR BAR.

The current HW implementation of that BAR is to only
support <= DW (and maybe QW) writes—not 16/32/64B writes
that could occur with WC and/or SSE/AVX moves.

GTTMMADR must be marked uncacheable (UC).
Accesses to GTTMMADR(GTT), must be 64 bits or less (ie. 1 GTT entry).

v2: Get clarification on the reasons and spec is getting
    updated to reflect it now.

Cc: Joonas Lahtinen <[email protected]>
Suggested-by: Ben Widawsky <[email protected]>
Signed-off-by: Rodrigo Vivi <[email protected]>
Reviewed-by: Joonas Lahtinen <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/i915_gem_gtt.c