drm/i915/guc/slpc: Add selftest for slpc tile-tile interaction
authorRiana Tauro <riana.tauro@intel.com>
Wed, 9 Nov 2022 11:25:41 +0000 (16:55 +0530)
committerAnshuman Gupta <anshuman.gupta@intel.com>
Fri, 11 Nov 2022 14:48:33 +0000 (20:18 +0530)
commit733827eea6f0fafd7e280c70800fcf47a724f72a
treea5e753eac727e1cbb786a84cb5135ece866f21fa
parent9bae30de136a645e29f632313c0ebb02fc00641b
drm/i915/guc/slpc: Add selftest for slpc tile-tile interaction

Run a workload on tiles simultaneously by requesting for RP0 frequency.
Pcode can however limit the frequency being granted due to throttling
reasons. This test checks if there is any throttling but does not fail
if RP0 is not granted due to throttle reasons

v2: Fix build error
v3: Use IS_ERR_OR_NULL to check worker
    Addressed cosmetic review comments (Tvrtko)
v4: do not skip test on media engines if gt type is GT_MEDIA.
    Use correct PERF_LIMIT_REASONS register for MTL (Vinay)

Signed-off-by: Riana Tauro <riana.tauro@intel.com>
Reviewed-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221109112541.275021-2-riana.tauro@intel.com
drivers/gpu/drm/i915/gt/selftest_slpc.c