android_kernel_samsung_a7y1.../drivers/gpu
Jon Bloomfield b5255ebfa9 drm/i915/cmdparser: Ignore Length operands during command matching
commit 926abff21a8f29ef159a3ac893b05c6e50e043c3 upstream.

Some of the gen instruction macros (e.g. MI_DISPLAY_FLIP) have the
length directly encoded in them. Since these are used directly in
the tables, the Length becomes part of the comparison used for
matching during parsing. Thus, if the cmd being parsed has a
different length to that in the table, it is not matched and the
cmd is accepted via the default variable length path.

Fix by masking out everything except the Opcode in the cmd tables

Signed-off-by: Jon Bloomfield <jon.bloomfield@intel.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Dave Airlie <airlied@redhat.com>
Cc: Takashi Iwai <tiwai@suse.de>
Cc: Tyler Hicks <tyhicks@canonical.com>
Reviewed-by: Chris Wilson <chris.p.wilson@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-07 11:59:26 +02:00
..
arm A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
drm drm/i915/cmdparser: Ignore Length operands during command matching 2020-04-07 11:59:26 +02:00
host1x A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ipu-v3 gpu: ipu-v3: ipu-ic: Fix saturation bit offset in TPMEM 2020-04-06 20:04:46 +02:00
vga A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30