]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: Use intel_engine_mask_t for ring mask
authorMatt Roper <matthew.d.roper@intel.com>
Thu, 5 May 2022 21:38:07 +0000 (14:38 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 10 May 2022 22:31:05 +0000 (15:31 -0700)
commitefb8d0fb997d9b8f850c5882ae1a69da2bab9912
tree34dbe20021bbdebf892eafdf4d84cdf3d7034c49
parent206f5a3ed293cdb115d7d7fe475bf847cc86b74a
drm/i915/gvt: Use intel_engine_mask_t for ring mask

When i915 adds additional PVC blitter instances (in an upcoming patch),
the definition of VECS0 will change from bit(10) to bit(18), causing
GVT's R_ALL mask to overflow the u16 storage that's currently used.
Let's replace the u16 with an intel_engine_mask_t to ensure we avoid
this.

Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Cc: Zhi Wang <zhi.a.wang@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220505213812.3979301-8-matthew.d.roper@intel.com
drivers/gpu/drm/i915/gvt/cmd_parser.c