[igt-dev] [PATH i-g-t v11 2/2] tests: add slice power programming test

Tvrtko Ursulin tvrtko.ursulin at linux.intel.com
Tue Sep 11 12:00:31 UTC 2018


On 11/09/2018 12:45, Chris Wilson wrote:
> Quoting Tvrtko Ursulin (2018-09-11 12:34:17)
>> +igt_main
>> +{
>> +       unsigned int max_slices = 3, max_subslices = 3;
>> +       unsigned int i;
>> +       int fd;
>> +
>> +       igt_fixture {
>> +               fd = drm_open_driver(DRIVER_INTEL);
>> +               igt_require_gem(fd);
>> +
>> +               __intel_devid__ = intel_get_drm_devid(fd);
>> +               __intel_gen__ = intel_gen(__intel_devid__);
>> +
>> +               igt_require(kernel_has_per_context_sseu_support(fd));
>> +       }
>> +
>> +       igt_subtest_group {
>> +               igt_fixture {
>> +                       igt_require(!platform_has_per_context_sseu_support());
> 
> Why does the kernel say that the platform has context sseu support?

Note sure what are you aiming at. Here I have a subgroup of tests (well 
one) which test that the kernel and IGT expectation of which platforms 
should support the feature match.

Regards,

Tvrtko


More information about the igt-dev mailing list