Commit ca10b9d6 authored by Vinay Belgaumkar's avatar Vinay Belgaumkar Committed by John Harrison

drm/i915/guc/rc: Use i915_probe_error instead of drm_error

To avoid false positives in error injection cases.
Signed-off-by: default avatarVinay Belgaumkar <vinay.belgaumkar@intel.com>
Reviewed-by: default avatarAlan Previn <alan.previn.teres.alexis@intel.com>
Signed-off-by: default avatarJohn Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220506054142.5025-1-vinay.belgaumkar@intel.com
parent 18fb42db
...@@ -49,7 +49,6 @@ static int guc_action_control_gucrc(struct intel_guc *guc, bool enable) ...@@ -49,7 +49,6 @@ static int guc_action_control_gucrc(struct intel_guc *guc, bool enable)
static int __guc_rc_control(struct intel_guc *guc, bool enable) static int __guc_rc_control(struct intel_guc *guc, bool enable)
{ {
struct intel_gt *gt = guc_to_gt(guc); struct intel_gt *gt = guc_to_gt(guc);
struct drm_device *drm = &guc_to_gt(guc)->i915->drm;
int ret; int ret;
if (!intel_uc_uses_guc_rc(&gt->uc)) if (!intel_uc_uses_guc_rc(&gt->uc))
...@@ -60,8 +59,8 @@ static int __guc_rc_control(struct intel_guc *guc, bool enable) ...@@ -60,8 +59,8 @@ static int __guc_rc_control(struct intel_guc *guc, bool enable)
ret = guc_action_control_gucrc(guc, enable); ret = guc_action_control_gucrc(guc, enable);
if (ret) { if (ret) {
drm_err(drm, "Failed to %s GuC RC (%pe)\n", i915_probe_error(guc_to_gt(guc)->i915, "Failed to %s GuC RC (%pe)\n",
str_enable_disable(enable), ERR_PTR(ret)); str_enable_disable(enable), ERR_PTR(ret));
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment