]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915: Skip over MI_NOOP when parsing
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 1 Oct 2020 10:26:32 +0000 (11:26 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 6 Oct 2020 09:41:11 +0000 (10:41 +0100)
commita6c5e2aea70451f6f1012734a606721c75c57276
tree894fdabca3bf5c5ba0914a46ec9e921c89a8bc4d
parentb05734720de982a40676a14ddfdca5f87b4aab5e
drm/i915: Skip over MI_NOOP when parsing

Though less likely in practice, igt uses MI_NOOP frequently to pad out
its batch buffers. The lookup and valiation of so many MI_NOOP command
descriptions is noticeable, though the side-effect of poisoning the
last-validated-command cache is more likely to impact upon real CS.

Testcase: igt/gen9_exec_parse/bb-large
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201001102632.18789-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_cmd_parser.c