Re: [Intel-gfx] [PATCH igt] igt/gen7_forcewake_mt: Make the mmio register as volatile

2018-03-06 Thread Chris Wilson
Quoting Chris Wilson (2018-03-06 10:41:41) > static void *thread(void *arg) > { > + static const char acquire_error[] = "acquire"; > + static const char release_error[] = "release"; > + > struct thread *t = arg; > - uint32_t *forcewake_mt = (uint32_t *)((char *)t->mmio

[Intel-gfx] [PATCH igt] igt/gen7_forcewake_mt: Make the mmio register as volatile

2018-03-06 Thread Chris Wilson
Prevent the compiler from caching reads/writes to the hw register as we do want to perform mmio. Whilst fixing up the mmio access, also ensure that we do not leave the test with any other bits still set in the forcewake register to prevent affecting other tests, as spotted by Tvrtko. v2: Use

[Intel-gfx] [PATCH igt] igt/gen7_forcewake_mt: Make the mmio register as volatile

2018-01-19 Thread Chris Wilson
Prevent the compiler from caching reads/writes to the hw register as we do want to perform mmio. Signed-off-by: Chris Wilson --- tests/gen7_forcewake_mt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/gen7_forcewake_mt.c