drm/i915/tgl: Add Wa_1606054188:tgl
authorMatt Atwood <matthew.s.atwood@intel.com>
Mon, 24 Feb 2020 22:36:51 +0000 (14:36 -0800)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 26 Feb 2020 23:07:42 +0000 (15:07 -0800)
commit0b3a4dd4af97535551f1fe02501c485cc3c5329a
tree4b6005f6272f3ff43d9b135913aec22ec6263366
parent3a1b82a19ff91cfef9b5d9d9faabb0ebcac15df0
drm/i915/tgl: Add Wa_1606054188:tgl

On Tiger Lake we do not support source keying in the pixel formats P010,
P012, P016.

v2: Move WA to end of function. Create helper function for format
check. Less verbose debugging messaging.

v3: whitespace

v4(MattR):
 - Actually return EINVAL to reject this combination.
 - Pass format parameter as u32.
 - Make test TGL-specific for now.
 - Switch to per-device logging.
 - Shorten/simplify comment.

Bspec: 52890
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Manasi Navare <manasi.d.navare@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Matt Atwood <matthew.s.atwood@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200224223651.3801646-1-matthew.d.roper@intel.com
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
drivers/gpu/drm/i915/display/intel_sprite.c