Re: [Intel-gfx] [PATCH v2 10/16] drm/i915/pxp: Enable PXP power management

2021-03-03 Thread Chris Wilson
Quoting Daniele Ceraolo Spurio (2021-03-01 19:31:54) > +int intel_pxp_runtime_resume(struct intel_pxp *pxp) > +{ > + struct intel_gt *gt = pxp_to_gt(pxp); > + int ret; > + > + if (!intel_pxp_is_enabled(pxp)) > + return 0; > + > + intel_pxp_irq_enable(pxp); > +

[Intel-gfx] [PATCH v2 10/16] drm/i915/pxp: Enable PXP power management

2021-03-01 Thread Daniele Ceraolo Spurio
From: "Huang, Sean Z" During the power event S3+ sleep/resume, hardware will lose all the encryption keys for every hardware session, even though the software session state was marked as alive after resume. So to handle such case, PXP should unconditionally terminate the hardware sessions and cle