From 9897eb855544f0ef0921a5cc4517deb1fcf06c6f Mon Sep 17 00:00:00 2001 From: Daniele Ceraolo Spurio Date: Fri, 17 Nov 2023 14:51:51 -0800 Subject: 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 Cc: Alan Previn Reviewed-by: John Harrison Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/xe/tests/xe_pci_test.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'drivers/gpu/drm/xe/tests') diff --git a/drivers/gpu/drm/xe/tests/xe_pci_test.c b/drivers/gpu/drm/xe/tests/xe_pci_test.c index daf652517608..171e4180f1aa 100644 --- a/drivers/gpu/drm/xe/tests/xe_pci_test.c +++ b/drivers/gpu/drm/xe/tests/xe_pci_test.c @@ -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); -- cgit v1.2.3