Re: [PATCH i-g-t] tests/gen7_forcewake_mt: Fix test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux