drm/i915/guc/rc: Use i915_probe_error instead of drm_error
To avoid false positives in error injection cases. Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com> Reviewed-by: Alan Previn <alan.previn.teres.alexis@intel.com> Signed-off-by: John Harrison <John.C.Harrison@Intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220506054142.5025-1-vinay.belgaumkar@intel.com
This commit is contained in:
parent
18fb42db05
commit
ca10b9d60f
@ -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)
|
||||
{
|
||||
struct intel_gt *gt = guc_to_gt(guc);
|
||||
struct drm_device *drm = &guc_to_gt(guc)->i915->drm;
|
||||
int ret;
|
||||
|
||||
if (!intel_uc_uses_guc_rc(>->uc))
|
||||
@ -60,8 +59,8 @@ static int __guc_rc_control(struct intel_guc *guc, bool enable)
|
||||
|
||||
ret = guc_action_control_gucrc(guc, enable);
|
||||
if (ret) {
|
||||
drm_err(drm, "Failed to %s GuC RC (%pe)\n",
|
||||
str_enable_disable(enable), ERR_PTR(ret));
|
||||
i915_probe_error(guc_to_gt(guc)->i915, "Failed to %s GuC RC (%pe)\n",
|
||||
str_enable_disable(enable), ERR_PTR(ret));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user