/linux-6.6.21/drivers/gpu/drm/i915/pxp/ |
D | intel_pxp.c | 50 bool intel_pxp_is_supported(const struct intel_pxp *pxp) in intel_pxp_is_supported() argument 52 return IS_ENABLED(CONFIG_DRM_I915_PXP) && pxp; in intel_pxp_is_supported() 55 bool intel_pxp_is_enabled(const struct intel_pxp *pxp) in intel_pxp_is_enabled() argument 57 return IS_ENABLED(CONFIG_DRM_I915_PXP) && pxp && pxp->ce; in intel_pxp_is_enabled() 60 bool intel_pxp_is_active(const struct intel_pxp *pxp) in intel_pxp_is_active() argument 62 return IS_ENABLED(CONFIG_DRM_I915_PXP) && pxp && pxp->arb_is_valid; in intel_pxp_is_active() 65 static void kcr_pxp_set_status(const struct intel_pxp *pxp, bool enable) in kcr_pxp_set_status() argument 70 intel_uncore_write(pxp->ctrl_gt->uncore, KCR_INIT(pxp->kcr_base), val); in kcr_pxp_set_status() 73 static void kcr_pxp_enable(const struct intel_pxp *pxp) in kcr_pxp_enable() argument 75 kcr_pxp_set_status(pxp, true); in kcr_pxp_enable() [all …]
|
D | intel_pxp_session.c | 18 static bool intel_pxp_session_is_in_play(struct intel_pxp *pxp, u32 id) in intel_pxp_session_is_in_play() argument 20 struct intel_uncore *uncore = pxp->ctrl_gt->uncore; in intel_pxp_session_is_in_play() 26 sip = intel_uncore_read(uncore, KCR_SIP(pxp->kcr_base)); in intel_pxp_session_is_in_play() 31 static int pxp_wait_for_session_state(struct intel_pxp *pxp, u32 id, bool in_play) in pxp_wait_for_session_state() argument 33 struct intel_uncore *uncore = pxp->ctrl_gt->uncore; in pxp_wait_for_session_state() 44 KCR_SIP(pxp->kcr_base), in pxp_wait_for_session_state() 54 static int pxp_create_arb_session(struct intel_pxp *pxp) in pxp_create_arb_session() argument 56 struct intel_gt *gt = pxp->ctrl_gt; in pxp_create_arb_session() 59 pxp->arb_is_valid = false; in pxp_create_arb_session() 61 if (intel_pxp_session_is_in_play(pxp, ARB_SESSION)) { in pxp_create_arb_session() [all …]
|
D | intel_pxp_tee.c | 54 static int intel_pxp_tee_io_message(struct intel_pxp *pxp, in intel_pxp_tee_io_message() argument 59 struct drm_i915_private *i915 = pxp->ctrl_gt->i915; in intel_pxp_tee_io_message() 60 struct i915_pxp_component *pxp_component = pxp->pxp_component; in intel_pxp_tee_io_message() 63 mutex_lock(&pxp->tee_mutex); in intel_pxp_tee_io_message() 98 mutex_unlock(&pxp->tee_mutex); in intel_pxp_tee_io_message() 102 int intel_pxp_tee_stream_message(struct intel_pxp *pxp, in intel_pxp_tee_stream_message() argument 109 struct drm_i915_private *i915 = pxp->ctrl_gt->i915; in intel_pxp_tee_stream_message() 110 struct i915_pxp_component *pxp_component = pxp->pxp_component; in intel_pxp_tee_stream_message() 118 mutex_lock(&pxp->tee_mutex); in intel_pxp_tee_stream_message() 125 GEM_BUG_ON(!pxp->stream_cmd.obj); in intel_pxp_tee_stream_message() [all …]
|
D | intel_pxp_pm.c | 14 void intel_pxp_suspend_prepare(struct intel_pxp *pxp) in intel_pxp_suspend_prepare() argument 16 if (!intel_pxp_is_enabled(pxp)) in intel_pxp_suspend_prepare() 19 intel_pxp_end(pxp); in intel_pxp_suspend_prepare() 21 intel_pxp_invalidate(pxp); in intel_pxp_suspend_prepare() 24 void intel_pxp_suspend(struct intel_pxp *pxp) in intel_pxp_suspend() argument 28 if (!intel_pxp_is_enabled(pxp)) in intel_pxp_suspend() 31 with_intel_runtime_pm(&pxp->ctrl_gt->i915->runtime_pm, wakeref) { in intel_pxp_suspend() 32 intel_pxp_fini_hw(pxp); in intel_pxp_suspend() 33 pxp->hw_state_invalidated = false; in intel_pxp_suspend() 37 void intel_pxp_resume_complete(struct intel_pxp *pxp) in intel_pxp_resume_complete() argument [all …]
|
D | intel_pxp_irq.c | 25 void intel_pxp_irq_handler(struct intel_pxp *pxp, u16 iir) in intel_pxp_irq_handler() argument 29 if (GEM_WARN_ON(!intel_pxp_is_enabled(pxp))) in intel_pxp_irq_handler() 32 gt = pxp->ctrl_gt; in intel_pxp_irq_handler() 42 intel_pxp_mark_termination_in_progress(pxp); in intel_pxp_irq_handler() 43 pxp->session_events |= PXP_TERMINATION_REQUEST | PXP_INVAL_REQUIRED; in intel_pxp_irq_handler() 47 pxp->session_events |= PXP_TERMINATION_COMPLETE; in intel_pxp_irq_handler() 49 if (pxp->session_events) in intel_pxp_irq_handler() 50 queue_work(system_unbound_wq, &pxp->session_work); in intel_pxp_irq_handler() 69 void intel_pxp_irq_enable(struct intel_pxp *pxp) in intel_pxp_irq_enable() argument 71 struct intel_gt *gt = pxp->ctrl_gt; in intel_pxp_irq_enable() [all …]
|
D | intel_pxp_debugfs.c | 23 struct intel_pxp *pxp = m->private; in pxp_info_show() local 26 if (!intel_pxp_is_enabled(pxp)) { in pxp_info_show() 31 drm_printf(&p, "active: %s\n", str_yes_no(intel_pxp_is_active(pxp))); in pxp_info_show() 32 drm_printf(&p, "instance counter: %u\n", pxp->key_instance); in pxp_info_show() 47 struct intel_pxp *pxp = data; in pxp_terminate_set() local 48 struct intel_gt *gt = pxp->ctrl_gt; in pxp_terminate_set() 51 if (!intel_pxp_is_active(pxp)) in pxp_terminate_set() 56 intel_pxp_irq_handler(pxp, GEN12_DISPLAY_PXP_STATE_TERMINATED_INTERRUPT); in pxp_terminate_set() 59 timeout_ms = intel_pxp_get_backend_timeout_ms(pxp); in pxp_terminate_set() 61 if (!wait_for_completion_timeout(&pxp->termination, in pxp_terminate_set() [all …]
|
D | intel_pxp.h | 16 bool intel_pxp_is_supported(const struct intel_pxp *pxp); 17 bool intel_pxp_is_enabled(const struct intel_pxp *pxp); 18 bool intel_pxp_is_active(const struct intel_pxp *pxp); 23 void intel_pxp_init_hw(struct intel_pxp *pxp); 24 void intel_pxp_fini_hw(struct intel_pxp *pxp); 26 void intel_pxp_mark_termination_in_progress(struct intel_pxp *pxp); 27 void intel_pxp_tee_end_arb_fw_session(struct intel_pxp *pxp, u32 arb_session_id); 29 int intel_pxp_get_readiness_status(struct intel_pxp *pxp); 30 int intel_pxp_get_backend_timeout_ms(struct intel_pxp *pxp); 31 int intel_pxp_start(struct intel_pxp *pxp); [all …]
|
D | intel_pxp_gsccs.c | 52 gsccs_send_message(struct intel_pxp *pxp, in gsccs_send_message() argument 58 struct intel_gt *gt = pxp->ctrl_gt; in gsccs_send_message() 60 struct gsccs_session_resources *exec_res = &pxp->gsccs_res; in gsccs_send_message() 80 mutex_lock(&pxp->tee_mutex); in gsccs_send_message() 159 mutex_unlock(&pxp->tee_mutex); in gsccs_send_message() 164 gsccs_send_message_retry_complete(struct intel_pxp *pxp, in gsccs_send_message_retry_complete() argument 178 ret = gsccs_send_message(pxp, msg_in, msg_in_size, msg_out, msg_out_size_max, in gsccs_send_message_retry_complete() 190 bool intel_pxp_gsccs_is_ready_for_sessions(struct intel_pxp *pxp) in intel_pxp_gsccs_is_ready_for_sessions() argument 200 if (intel_huc_is_authenticated(&pxp->ctrl_gt->uc.huc, INTEL_HUC_AUTH_BY_GSC) && in intel_pxp_gsccs_is_ready_for_sessions() 201 intel_gsc_uc_fw_proxy_init_done(&pxp->ctrl_gt->uc.gsc, true)) in intel_pxp_gsccs_is_ready_for_sessions() [all …]
|
D | intel_pxp_pm.h | 12 void intel_pxp_suspend_prepare(struct intel_pxp *pxp); 13 void intel_pxp_suspend(struct intel_pxp *pxp); 14 void intel_pxp_resume_complete(struct intel_pxp *pxp); 15 void intel_pxp_runtime_suspend(struct intel_pxp *pxp); 17 static inline void intel_pxp_suspend_prepare(struct intel_pxp *pxp) in intel_pxp_suspend_prepare() argument 21 static inline void intel_pxp_suspend(struct intel_pxp *pxp) in intel_pxp_suspend() argument 25 static inline void intel_pxp_resume_complete(struct intel_pxp *pxp) in intel_pxp_resume_complete() argument 29 static inline void intel_pxp_runtime_suspend(struct intel_pxp *pxp) in intel_pxp_runtime_suspend() argument 33 static inline void intel_pxp_runtime_resume(struct intel_pxp *pxp) in intel_pxp_runtime_resume() argument 35 intel_pxp_resume_complete(pxp); in intel_pxp_runtime_resume()
|
D | intel_pxp_gsccs.h | 23 void intel_pxp_gsccs_fini(struct intel_pxp *pxp); 24 int intel_pxp_gsccs_init(struct intel_pxp *pxp); 26 int intel_pxp_gsccs_create_session(struct intel_pxp *pxp, int arb_session_id); 27 void intel_pxp_gsccs_end_arb_fw_session(struct intel_pxp *pxp, u32 arb_session_id); 30 static inline void intel_pxp_gsccs_fini(struct intel_pxp *pxp) in intel_pxp_gsccs_fini() argument 34 static inline int intel_pxp_gsccs_init(struct intel_pxp *pxp) in intel_pxp_gsccs_init() argument 41 bool intel_pxp_gsccs_is_ready_for_sessions(struct intel_pxp *pxp);
|
D | intel_pxp_irq.h | 23 void intel_pxp_irq_enable(struct intel_pxp *pxp); 24 void intel_pxp_irq_disable(struct intel_pxp *pxp); 25 void intel_pxp_irq_handler(struct intel_pxp *pxp, u16 iir); 27 static inline void intel_pxp_irq_handler(struct intel_pxp *pxp, u16 iir) in intel_pxp_irq_handler() argument 31 static inline void intel_pxp_irq_enable(struct intel_pxp *pxp) in intel_pxp_irq_enable() argument 35 static inline void intel_pxp_irq_disable(struct intel_pxp *pxp) in intel_pxp_irq_disable() argument
|
D | intel_pxp_session.h | 14 void intel_pxp_session_management_init(struct intel_pxp *pxp); 15 void intel_pxp_terminate(struct intel_pxp *pxp, bool post_invalidation_needs_restart); 17 static inline void intel_pxp_session_management_init(struct intel_pxp *pxp) in intel_pxp_session_management_init() argument 21 static inline void intel_pxp_terminate(struct intel_pxp *pxp, bool post_invalidation_needs_restart) in intel_pxp_terminate() argument
|
D | intel_pxp_huc.c | 17 int intel_pxp_huc_load_and_auth(struct intel_pxp *pxp) in intel_pxp_huc_load_and_auth() argument 28 if (!pxp || !pxp->pxp_component) in intel_pxp_huc_load_and_auth() 31 gt = pxp->ctrl_gt; in intel_pxp_huc_load_and_auth() 43 err = intel_pxp_tee_stream_message(pxp, client_id, fence_id, in intel_pxp_huc_load_and_auth()
|
D | intel_pxp_tee.h | 11 int intel_pxp_tee_component_init(struct intel_pxp *pxp); 12 void intel_pxp_tee_component_fini(struct intel_pxp *pxp); 14 int intel_pxp_tee_cmd_create_arb_session(struct intel_pxp *pxp, 17 int intel_pxp_tee_stream_message(struct intel_pxp *pxp,
|
D | intel_pxp_debugfs.h | 13 void intel_pxp_debugfs_register(struct intel_pxp *pxp); 16 intel_pxp_debugfs_register(struct intel_pxp *pxp) in intel_pxp_debugfs_register() argument
|
D | intel_pxp_cmd.c | 97 int intel_pxp_terminate_session(struct intel_pxp *pxp, u32 id) in intel_pxp_terminate_session() argument 100 struct intel_context *ce = pxp->ce; in intel_pxp_terminate_session() 104 if (!intel_pxp_is_enabled(pxp)) in intel_pxp_terminate_session()
|
D | intel_pxp_huc.h | 11 int intel_pxp_huc_load_and_auth(struct intel_pxp *pxp);
|
D | intel_pxp_cmd.h | 13 int intel_pxp_terminate_session(struct intel_pxp *pxp, u32 idx);
|
/linux-6.6.21/Documentation/devicetree/bindings/media/ |
D | fsl,imx6ull-pxp.yaml | 5 $id: http://devicetree.org/schemas/media/fsl,imx6ull-pxp.yaml# 24 - fsl,imx6ul-pxp 25 - fsl,imx6ull-pxp 26 - fsl,imx7d-pxp 29 - fsl,imx6sll-pxp 30 - fsl,imx6sx-pxp 31 - const: fsl,imx6ull-pxp 62 - fsl,imx6sx-pxp 63 - fsl,imx6ul-pxp 81 pxp: pxp@21cc000 { [all …]
|
/linux-6.6.21/drivers/net/ethernet/qlogic/qed/ |
D | qed_hw.c | 37 struct pxp_ptt_entry pxp; member 58 p_pool->ptts[i].pxp.offset = QED_BAR_INVALID_OFFSET; in qed_ptt_pool_alloc() 59 p_pool->ptts[i].pxp.pretend.control = 0; in qed_ptt_pool_alloc() 79 p_ptt->pxp.offset = QED_BAR_INVALID_OFFSET; in qed_ptt_invalidate() 143 return le32_to_cpu(p_ptt->pxp.offset) << 2; in qed_ptt_get_hw_addr() 174 p_ptt->pxp.offset = cpu_to_le32(new_hw_addr >> 2); in qed_ptt_set_win() 179 le32_to_cpu(p_ptt->pxp.offset)); in qed_ptt_set_win() 313 p_ptt->pxp.pretend.control = cpu_to_le16(control); in qed_fid_pretend() 314 p_ptt->pxp.pretend.fid.concrete_fid.fid = cpu_to_le16(fid); in qed_fid_pretend() 319 *(u32 *)&p_ptt->pxp.pretend); in qed_fid_pretend() [all …]
|
/linux-6.6.21/drivers/gpu/drm/i915/ |
D | Makefile | 347 pxp/intel_pxp.o \ 348 pxp/intel_pxp_tee.o \ 349 pxp/intel_pxp_huc.o 352 pxp/intel_pxp_cmd.o \ 353 pxp/intel_pxp_debugfs.o \ 354 pxp/intel_pxp_gsccs.o \ 355 pxp/intel_pxp_irq.o \ 356 pxp/intel_pxp_pm.o \ 357 pxp/intel_pxp_session.o
|
/linux-6.6.21/arch/arm/boot/dts/nxp/imx/ |
D | imx6ull.dtsi | 38 &pxp { 39 compatible = "fsl,imx6ull-pxp";
|
D | imx7d.dtsi | 169 pxp: pxp@30700000 { label 170 compatible = "fsl,imx7d-pxp";
|
/linux-6.6.21/Documentation/devicetree/bindings/soc/imx/ |
D | fsl,imx93-media-blk-ctrl.yaml | 43 - const: pxp 78 "pxp", "lcdif", "isi", "csi", "dsi";
|
/linux-6.6.21/drivers/media/platform/nxp/ |
D | Makefile | 10 obj-$(CONFIG_VIDEO_IMX_PXP) += imx-pxp.o
|