mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
drm/i915/pxp: Add firmware status when ARB session fails
Add firmware status using a drm_warn when ARB session fails or else a drm_dbg when the ARB session register slot bit did get set. Signed-off-by: Alan Previn <alan.previn.teres.alexis@intel.com> Reviewed-by: Juston Li <justonli@chromium.org> Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220923064542.415252-2-alan.previn.teres.alexis@intel.com
This commit is contained in:
parent
86b972ef10
commit
abf46db341
2 changed files with 4 additions and 0 deletions
|
@ -77,6 +77,7 @@ static int pxp_create_arb_session(struct intel_pxp *pxp)
|
|||
drm_err(>->i915->drm, "arb session failed to go in play\n");
|
||||
return ret;
|
||||
}
|
||||
drm_dbg(>->i915->drm, "PXP ARB session is alive\n");
|
||||
|
||||
if (!++pxp->key_instance)
|
||||
++pxp->key_instance;
|
||||
|
|
|
@ -174,6 +174,9 @@ int intel_pxp_tee_cmd_create_arb_session(struct intel_pxp *pxp,
|
|||
|
||||
if (ret)
|
||||
drm_err(&i915->drm, "Failed to send tee msg ret=[%d]\n", ret);
|
||||
else if (msg_out.header.status != 0x0)
|
||||
drm_warn(&i915->drm, "PXP firmware failed arb session init request ret=[0x%08x]\n",
|
||||
msg_out.header.status);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue