OSDN Git Service

minigbm: i915: use explicit cache flush to maintain coherency
authorGurchetan Singh <gurchetansingh@chromium.org>
Wed, 18 Jan 2017 21:48:11 +0000 (13:48 -0800)
committerchrome-bot <chrome-bot@chromium.org>
Mon, 1 May 2017 19:20:01 +0000 (12:20 -0700)
commit68af9c2b9ed1addebca93506d6a5b7f5a5eef7f7
tree12a09367bd7360129b35144a92e2b39a661eb162
parentfcad5ad55338d6b4825804ac84be50d277229f5f
minigbm: i915: use explicit cache flush to maintain coherency

The Intel last level cache (LLC) acts a coherency controller on
hardware that has it. Use I915_PARAM_HAS_LLC to determine if the
hardware has LLC.

We can maintain coherency by doing a clflush on non-LLC platforms, like the
Vulkan driver in Mesa does.

BUG=none
TEST=gbmtest on Cyan, Chrome boots, Android boots, mmap_test -g, 5-10 CTS
tests. No regressions.

CQ-DEPEND=CL:425716

Change-Id: I054e69c23016cd3336c2de1d07b49bb2c3709389
Reviewed-on: https://chromium-review.googlesource.com/454105
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
i915.c