[Intel-gfx] [PATCH i-g-t] tests/gen7_forcewake_mt: Fix test
Tvrtko Ursulin
tvrtko.ursulin at linux.intel.com
Thu Mar 1 14:47:25 UTC 2018
On 01/03/2018 14:41, Chris Wilson wrote:
> 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.
Yes, my bad. At least we'll see if orderly thread exit makes any difference.
Regards,
Tvrtko
More information about the Intel-gfx
mailing list