drm/xe/gsc: Define GSCCS for MTL

Add the GSCCS to the media_xelpmp engine list. Note that since the
GSCCS is only used with the GSC FW, we can consider it disabled if we
don't have the FW available.

v2: mark GSCCS as allowed on the media IP in kunit tests

Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Alan Previn <alan.previn.teres.alexis@intel.com>
Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
Daniele Ceraolo Spurio
2023-11-17 14:51:51 -08:00
committed by Rodrigo Vivi
parent 0881cbe040
commit 9897eb8555
3 changed files with 24 additions and 7 deletions

View File

@@ -33,13 +33,10 @@ static void check_media_ip(const struct xe_media_desc *media)
struct kunit *test = xe_cur_kunit();
u64 mask = media->hw_engine_mask;
/*
* VCS and VECS engines are allowed on the media IP
*
* TODO: Add GSCCS once support is added to the driver.
*/
/* VCS, VECS and GSCCS engines are allowed on the media IP */
mask &= ~(XE_HW_ENGINE_VCS_MASK |
XE_HW_ENGINE_VECS_MASK);
XE_HW_ENGINE_VECS_MASK |
XE_HW_ENGINE_GSCCS_MASK);
/* Any remaining engines are an error */
KUNIT_ASSERT_EQ(test, mask, 0);