[Intel-gfx] [PATCH v9 5/5] drm/i915/selftests: Introduce live tests of private PAT management
Chris Wilson
chris at chris-wilson.co.uk
Fri Sep 8 21:32:16 UTC 2017
Quoting Zhi Wang (2017-09-08 19:06:39)
> + /* case 3: negative test 2, suppose PPAT table is still full now */
> + value = generate_new_value(ppat, value_for_negative_test);
> + if (!value) {
> + pr_err("fail to generate new value for negative test 2\n");
> + ret = -EINVAL;
> + goto ppat_put;
> + }
> +
> + entry = intel_ppat_get(i915, value);
> + if (!IS_ERR(entry) || PTR_ERR(entry) != -ENOSPC) {
> + pr_err("fail on negative test\n");
> + ret = -EINVAL;
> + }
Then make a hole and it should work again, that's what I meant. Which I
think is important for long running systems :)
-Chris
More information about the Intel-gfx
mailing list