diff options
author | Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> | 2023-09-14 02:28:35 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-21 19:41:13 +0300 |
commit | c4991ee01d480c45c789b43eb001a978bf016f58 (patch) | |
tree | bc58539225efd22759a61c8a6f0c5e0cd5807514 /drivers/gpu/drm/xe/xe_execlist.c | |
parent | 3856b0f71f52b8397887c1765e14d0245d722233 (diff) | |
download | linux-c4991ee01d480c45c789b43eb001a978bf016f58.tar.xz |
drm/xe/uc: Rename guc_submission_enabled() to uc_enabled()
The guc_submission_enabled() function is being used as a boolean toggle
for all firmwares and all related features, not just GuC submission. We
could add additional flags/functions to distinguish and allow different
use-cases (e.g. loading HuC but not using GuC submission), but given
that not using GuC is a debug-only scenario having a global switch for
all FWs is enough. However, we want to make it clear that this switch
turns off everything, so rename it to uc_enabled().
v2: rebase on s/XE_WARN_ON/xe_assert
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: John Harrison <John.C.Harrison@Intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_execlist.c')
-rw-r--r-- | drivers/gpu/drm/xe/xe_execlist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/xe/xe_execlist.c b/drivers/gpu/drm/xe/xe_execlist.c index 5b26b6e35afc..22dfe91b2b83 100644 --- a/drivers/gpu/drm/xe/xe_execlist.c +++ b/drivers/gpu/drm/xe/xe_execlist.c @@ -322,7 +322,7 @@ static int execlist_exec_queue_init(struct xe_exec_queue *q) struct xe_device *xe = gt_to_xe(q->gt); int err; - xe_assert(xe, !xe_device_guc_submission_enabled(xe)); + xe_assert(xe, !xe_device_uc_enabled(xe)); drm_info(&xe->drm, "Enabling execlist submission (GuC submission disabled)\n"); @@ -371,7 +371,7 @@ static void execlist_exec_queue_fini_async(struct work_struct *w) struct xe_device *xe = gt_to_xe(q->gt); unsigned long flags; - xe_assert(xe, !xe_device_guc_submission_enabled(xe)); + xe_assert(xe, !xe_device_uc_enabled(xe)); spin_lock_irqsave(&exl->port->lock, flags); if (WARN_ON(exl->active_priority != XE_EXEC_QUEUE_PRIORITY_UNSET)) @@ -458,7 +458,7 @@ static const struct xe_exec_queue_ops execlist_exec_queue_ops = { int xe_execlist_init(struct xe_gt *gt) { /* GuC submission enabled, nothing to do */ - if (xe_device_guc_submission_enabled(gt_to_xe(gt))) + if (xe_device_uc_enabled(gt_to_xe(gt))) return 0; gt->exec_queue_ops = &execlist_exec_queue_ops; |