[igt-dev] [Intel-gfx] [PATCH i-g-t] tests/gen7_forcewake_mt: Fix test
Chris Wilson
chris at chris-wilson.co.uk
Thu Mar 1 14:41:39 UTC 2018
Quoting Tvrtko Ursulin (2018-03-01 14:32:17)
> +static void *mmio_base;
> +
> +static void cleanup(int sig)
> +{
> + volatile uint32_t *forcewake_mt =
> + (uint32_t *)((char *)mmio_base + FORCEWAKE_MT);
> + unsigned int bit;
> +
> + for (bit = 2; bit < 16; bit++) {
> + *forcewake_mt = (1 << bit) << 16;
> + if (*forcewake_mt & (1 << bit))
> + igt_warn("Failed to restore bit %u!\n", bit);
> + }
Is the exit handler called after threads are terminated... I don't think
so, my understanding are the threads are terminated by process shutdown
not libc.
-Chris
More information about the igt-dev
mailing list