提交 583ebae7 编写于 作者: J John Harrison

drm/i915/guc: Rename GuC register state capture node to be more obvious

The GuC specific register state entry in the error capture object was
just called 'capture'. Although the companion 'node' entry was called
'guc_capture_node'. Rename the base entry to be 'guc_capture' instead
so that it is a) more consistent and b) more obvious what it is.
Signed-off-by: NJohn Harrison <John.C.Harrison@Intel.com>
Reviewed-by: NDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230127002842.3169194-9-John.C.Harrison@Intel.com
上级 e9823f0f
...@@ -1506,7 +1506,7 @@ int intel_guc_capture_print_engine_node(struct drm_i915_error_state_buf *ebuf, ...@@ -1506,7 +1506,7 @@ int intel_guc_capture_print_engine_node(struct drm_i915_error_state_buf *ebuf,
if (!ebuf || !ee) if (!ebuf || !ee)
return -EINVAL; return -EINVAL;
cap = ee->capture; cap = ee->guc_capture;
if (!cap || !ee->engine) if (!cap || !ee->engine)
return -ENODEV; return -ENODEV;
...@@ -1576,8 +1576,8 @@ void intel_guc_capture_free_node(struct intel_engine_coredump *ee) ...@@ -1576,8 +1576,8 @@ void intel_guc_capture_free_node(struct intel_engine_coredump *ee)
if (!ee || !ee->guc_capture_node) if (!ee || !ee->guc_capture_node)
return; return;
guc_capture_add_node_to_cachelist(ee->capture, ee->guc_capture_node); guc_capture_add_node_to_cachelist(ee->guc_capture, ee->guc_capture_node);
ee->capture = NULL; ee->guc_capture = NULL;
ee->guc_capture_node = NULL; ee->guc_capture_node = NULL;
} }
...@@ -1611,7 +1611,7 @@ void intel_guc_capture_get_matching_node(struct intel_gt *gt, ...@@ -1611,7 +1611,7 @@ void intel_guc_capture_get_matching_node(struct intel_gt *gt,
(ce->lrc.lrca & CTX_GTT_ADDRESS_MASK)) { (ce->lrc.lrca & CTX_GTT_ADDRESS_MASK)) {
list_del(&n->link); list_del(&n->link);
ee->guc_capture_node = n; ee->guc_capture_node = n;
ee->capture = guc->capture; ee->guc_capture = guc->capture;
return; return;
} }
} }
......
...@@ -94,7 +94,7 @@ struct intel_engine_coredump { ...@@ -94,7 +94,7 @@ struct intel_engine_coredump {
struct intel_instdone instdone; struct intel_instdone instdone;
/* GuC matched capture-lists info */ /* GuC matched capture-lists info */
struct intel_guc_state_capture *capture; struct intel_guc_state_capture *guc_capture;
struct __guc_capture_parsed_output *guc_capture_node; struct __guc_capture_parsed_output *guc_capture_node;
struct i915_gem_context_coredump { struct i915_gem_context_coredump {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册