[igt-dev] [PATCH i-g-t v3] tests/i915/gem_mmap_offset: add new tests to extend coverage

Chris Wilson chris at chris-wilson.co.uk
Mon Dec 9 11:15:29 UTC 2019


Quoting Zbigniew Kempczyński (2019-12-09 11:00:25)
> +static void big_bo(int i915)
> +{
> +       uint64_t step = 256LLU << 20;  /* 256 MB is the minimum */
> +       uint64_t size = step;
> +       uint32_t handle;
> +       uint8_t *ptr;
> +       int i;
> +
> +       while (!__gem_create(i915, size, &handle)) {

This is still meaningless though, the limit for gem_create is just the
value fits in an unsigned long (or equivalent).

It's not until much later that it will be validated for available
resources, and even then we may have partial objects.

Be careful not to assume broken patches on a garbage pile imply ABI.
-Chris


More information about the igt-dev mailing list