linux_dsm_epyc7002/drivers/gpu/drm/i915/gt/uc
Fernando Pacheco 9be02fde93 drm/i915/uc: Extract common code from GuC stop/disable comm
During normal driver unload we attempt to disable GuC communication
while it is currently stopped. This results in a nop'd call to
intel_guc_ct_disable within guc_disable_communication because
stop/disable rely on the same flag to prevent further comms with CT.

We can avoid the call to disable and still leave communication in a
satisfactory state by extracting a set of shared steps from stop/disable.
This set can include guc_disable_interrupts as we do not require the
single caller of guc_stop_communication to be atomic:
"drm/i915/selftests: Fixup atomic reset checking".

This situation (stop -> disable) only occurs during intel_uc_fini_hw,
so during fini, call guc_disable_communication only if currently enabled.
The symmetric calls to enable/disable remain unmodified for all other
scenarios.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110943
Signed-off-by: Fernando Pacheco <fernando.pacheco@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190829174154.14675-1-fernando.pacheco@intel.com
2019-08-29 19:46:40 +01: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/uc: Update copyright and license 2019-08-12 13:01:34 +01:00
intel_guc_log.c drm/i915/guc: Don't open log relay if GuC is not running 2019-08-18 11:58:40 +01:00
intel_guc_log.h drm/i915/uc: Update copyright and license 2019-08-12 13:01:34 +01: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/guc: Remove client->submissions 2019-08-14 09:04:56 +01:00
intel_guc_submission.h drm/i915/guc: Remove client->submissions 2019-08-14 09:04:56 +01:00
intel_guc.c drm/i915/uc: Never fail on uC preparation step 2019-08-17 15:04:37 +01:00
intel_guc.h drm/i915/uc: Add explicit DISABLED state for firmware 2019-08-16 23:45:54 +01:00
intel_huc_fw.c drm/i915/uc: Add explicit DISABLED state for firmware 2019-08-16 23:45:54 +01: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/uc: Never fail on HuC firmware errors 2019-08-18 11:58:41 +01: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/uc: Remove redundant header_offset/size definitions 2019-07-26 21:15:05 +01:00
intel_uc_fw.c drm/i915/uc: define GuC and HuC FWs for EHL 2019-08-23 13:50:54 -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/uc: Extract common code from GuC stop/disable comm 2019-08-29 19:46:40 +01: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/uc: Update copyright and license 2019-08-12 13:01:34 +01:00