Skip to content

Commit

Permalink
Add perf logging
Browse files Browse the repository at this point in the history
Signed-off-by: Sun, Jing <[email protected]>
  • Loading branch information
jsunintel committed Jan 2, 2025
1 parent 30c33d1 commit 69b9c63
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion drivers/gpu/drm/i915/pxp/intel_pxp.c
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ static int pxp_query_tag(struct intel_pxp *pxp, struct prelim_drm_i915_pxp_ops *
&params.pxp_tag);

drm_info(&pxp->ctrl_gt->i915->drm,
"Queried tag (is_alive %d pxp_tag %d ret %d)\n",
"SJ Queried tag (is_alive %d pxp_tag %d ret %d)\n",
params.session_is_alive, params.pxp_tag, ret);

if (ret >= 0) {
Expand Down Expand Up @@ -838,6 +838,8 @@ int i915_pxp_ops_ioctl(struct drm_device *dev, void *data, struct drm_file *drmf
struct intel_pxp *pxp = i915->pxp;
intel_wakeref_t wakeref;

drm_info(&i915->drm, "SJ: i915_pxp_ops_ioctl started\n");

if (!intel_pxp_is_enabled(pxp))
return -ENODEV;

Expand All @@ -848,6 +850,8 @@ int i915_pxp_ops_ioctl(struct drm_device *dev, void *data, struct drm_file *drmf
return 0;
}

drm_info(&i915->drm, "SJ: intel_runtime_pm_get_if_in_use finished\n");

if (pxp_action_needs_arb_session(pxp_ops->action)) {
if (pxp->hw_state_invalidated) {
drm_err(&i915->drm,
Expand All @@ -862,9 +866,11 @@ int i915_pxp_ops_ioctl(struct drm_device *dev, void *data, struct drm_file *drmf
drm_err(&i915->drm, "Failed to start PXP\n");
goto out_pm;
}
drm_info(&i915->drm, "SJ: intel_pxp_start finished\n");
}
}

drm_info(&i915->drm, "SJ: mutex_lock started\n");
mutex_lock(&pxp->session_mutex);

if (HAS_ENGINE(pxp->ctrl_gt, GSC0)) {
Expand Down Expand Up @@ -898,6 +904,8 @@ int i915_pxp_ops_ioctl(struct drm_device *dev, void *data, struct drm_file *drmf
out_pm:
intel_runtime_pm_put(&i915->runtime_pm, wakeref);

drm_info(&i915->drm, "SJ: i915_pxp_ops_ioctl finished\n");

return ret;
}

Expand Down

0 comments on commit 69b9c63

Please sign in to comment.