linux_dsm_epyc7002/drivers/gpu/drm/i915/gt/uc
Don Hiatt e367925e80 drm/i915/guc: Skip suspend/resume GuC action on platforms w/o GuC submission
On some platforms (e.g. KBL) that do not support GuC submission, but
the user enabled the GuC communication (e.g for HuC authentication)
calling the GuC EXIT_S_STATE action results in lose of ability to
enter RC6. We can remove the GuC suspend/resume entirely as we do
not need to save the GuC submission status.

Add intel_guc_submission_is_enabled() function to determine if
GuC submission is active.

v2: Do not suspend/resume the GuC on platforms that do not support
    Guc Submission.
v3: Fix typo, move suspend logic to remove goto.
v4: Use intel_guc_submission_is_enabled() to check GuC submission
    status.
v5: No need to look at engine to determine if submission is enabled.
    Squash fix + intel_guc_submission_is_enabled() patch into one.
v6: Move resume check into intel_guc_resume() for symmetry.
    Fix commit Fixes tag.

Reported-by: KiteStramuort <kitestramuort@autistici.org>
Reported-by: S. Zharkoff <s.zharkoff@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111594
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111623
Fixes: ffd5ce22fa ("drm/i915/guc: Updates for GuC 32.0.3 firmware")
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Daniele Ceralo Spurio <daniele.ceraolospurio@intel.com>
Cc: Stuart Summers <stuart.summers@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Tested-by: Tomas Janousek <tomi@nomi.cz>
Signed-off-by: Don Hiatt <don.hiatt@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20191115231538.1249-1-don.hiatt@intel.com
(cherry picked from commit 82e0c5bbd6)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
2019-11-18 16:36:44 +02:00
..
intel_guc_ads.c drm/i915/uc: Update copyright and license 2019-08-12 13:01:34 +01:00
intel_guc_ads.h drm/i915/uc: Update copyright and license 2019-08-12 13:01:34 +01:00
intel_guc_ct.c drm/i915/uc: Update copyright and license 2019-08-12 13:01:34 +01:00
intel_guc_ct.h drm/i915/uc: Update copyright and license 2019-08-12 13:01:34 +01:00
intel_guc_fw.c drm/i915/uc: Log fw status changes only under debug config 2019-08-13 10:46:15 +01:00
intel_guc_fw.h drm/i915/uc: Update copyright and license 2019-08-12 13:01:34 +01:00
intel_guc_fwif.h drm/i915/guc: Update H2G enable logging action definition 2019-10-23 15:05:01 -07:00
intel_guc_log.c drm/i915/guc: Enable guc logging on guc log relay write 2019-10-23 15:05:00 -07:00
intel_guc_log.h drm/i915/guc: Enable guc logging on guc log relay write 2019-10-23 15:05:00 -07:00
intel_guc_reg.h drm/i915/tgl: Move GTCR register to cope with GAM MMIO address remap 2019-08-23 10:07:35 -07:00
intel_guc_submission.c drm/i915: Fix i915_inject_load_error() name to read *_probe_* 2019-10-29 15:37:57 +00:00
intel_guc_submission.h drm/i915/guc: Remove client->submissions 2019-08-14 09:04:56 +01:00
intel_guc.c drm/i915/guc: Skip suspend/resume GuC action on platforms w/o GuC submission 2019-11-18 16:36:44 +02:00
intel_guc.h drm/i915/guc: drop guc shared area 2019-10-31 16:47:23 +00:00
intel_huc_fw.c drm/i915/huc: improve documentation 2019-10-17 09:30:34 -07:00
intel_huc_fw.h drm/i915/uc: Update copyright and license 2019-08-12 13:01:34 +01:00
intel_huc.c drm/i915: Fix i915_inject_load_error() name to read *_probe_* 2019-10-29 15:37:57 +00:00
intel_huc.h drm/i915/uc: Add explicit DISABLED state for firmware 2019-08-16 23:45:54 +01:00
intel_uc_fw_abi.h drm/i915/guc: improve documentation 2019-10-17 09:30:32 -07:00
intel_uc_fw.c drm/i915/uc: define GuC and HuC binaries for TGL 2019-10-30 14:33:25 -07:00
intel_uc_fw.h drm/i915/uc: Cleanup fw fetch on every GuC/HuC init failure 2019-08-17 15:04:36 +01:00
intel_uc.c drm/i915: Fix i915_inject_load_error() name to read *_probe_* 2019-10-29 15:37:57 +00:00
intel_uc.h drm/i915/uc: Never fail on uC preparation step 2019-08-17 15:04:37 +01:00
Makefile drm/i915: use upstream version of header tests 2019-07-30 12:11:57 +03:00
selftest_guc.c drm/i915/selftests: Teach guc to take intel_gt as its argument 2019-10-16 18:19:46 +01:00