Introduce Intel PXP component
Subsystems (6)
v4 cover Introduce Intel PXP component
PXP is an i915 componment, that helps user space to establish the hardware protected session and manage the status of each alive software session, as well as the life cycle of each session.
This ioctl is to allow user space driver to create, set, and destroy each session. It also provides the communication chanel to TEE (Trusted Execution Environment) for the protected hardware session creation.
Anshuman Gupta (1):
drm/i915/pxp: Add plane decryption support
Bommu Krishnaiah (2):
drm/i915/uapi: introduce drm_i915_gem_create_ext drm/i915/pxp: User interface for Protected buffer
Huang, Sean Z (22):
drm/i915/pxp: Introduce Intel PXP component drm/i915/pxp: Enable PXP irq worker and callback stub drm/i915/pxp: Add PXP context for logical hardware states. drm/i915/pxp: set KCR reg init during the boot time drm/i915/pxp: Implement ioctl action to set the user space context drm/i915/pxp: Add PXP-related registers into allowlist drm/i915/pxp: Read register to check hardware session state drm/i915/pxp: Implement funcs to get/set PXP tag drm/i915/pxp: Implement ioctl action to reserve session slot drm/i915/pxp: Implement ioctl action to set session in play drm/i915/pxp: Func to send hardware session termination drm/i915/pxp: Implement ioctl action to terminate the session drm/i915/pxp: Enable ioctl action to query PXP tag drm/i915/pxp: Destroy all type0 sessions upon teardown drm/i915/pxp: Termiante the session upon app crash drm/i915/pxp: Enable PXP power management
drm/i915/pxp: Implement funcs to create the TEE channel drm/i915/pxp: Implement ioctl action to send TEE commands drm/i915/pxp: Create the arbitrary session after boot drm/i915/pxp: Add i915 trace logs for PXP operations drm/i915/pxp: Expose session state for display protection flip drm/i915/pxp: Enable the PXP ioctl for protected session
Vitaly Lubart (1):
mei: pxp: export pavp client to me client bus
drivers/gpu/drm/i915/Kconfig | 19 + drivers/gpu/drm/i915/Makefile | 8 + drivers/gpu/drm/i915/display/intel_sprite.c | 21 +- drivers/gpu/drm/i915/gem/i915_gem_context.c | 15 +- drivers/gpu/drm/i915/gem/i915_gem_context.h | 10 + .../gpu/drm/i915/gem/i915_gem_context_types.h | 2 +- .../gpu/drm/i915/gem/i915_gem_object_types.h | 5 + drivers/gpu/drm/i915/gt/intel_gt_irq.c | 4 + drivers/gpu/drm/i915/i915_drv.c | 18 +- drivers/gpu/drm/i915/i915_drv.h | 10 + drivers/gpu/drm/i915/i915_gem.c | 63 +- drivers/gpu/drm/i915/i915_reg.h | 8 + drivers/gpu/drm/i915/i915_trace.h | 44 + drivers/gpu/drm/i915/intel_uncore.c | 50 +- drivers/gpu/drm/i915/pxp/intel_pxp.c | 336 +++++ drivers/gpu/drm/i915/pxp/intel_pxp.h | 117 ++ drivers/gpu/drm/i915/pxp/intel_pxp_context.c | 69 + drivers/gpu/drm/i915/pxp/intel_pxp_context.h | 47 + drivers/gpu/drm/i915/pxp/intel_pxp_pm.c | 72 + drivers/gpu/drm/i915/pxp/intel_pxp_pm.h | 31 + drivers/gpu/drm/i915/pxp/intel_pxp_sm.c | 1180 +++++++++++++++++ drivers/gpu/drm/i915/pxp/intel_pxp_sm.h | 126 ++ drivers/gpu/drm/i915/pxp/intel_pxp_tee.c | 216 +++ drivers/gpu/drm/i915/pxp/intel_pxp_tee.h | 25 + drivers/misc/mei/Kconfig | 2 + drivers/misc/mei/Makefile | 1 + drivers/misc/mei/pxp/Kconfig | 13 + drivers/misc/mei/pxp/Makefile | 7 + drivers/misc/mei/pxp/mei_pxp.c | 230 ++++ drivers/misc/mei/pxp/mei_pxp.h | 18 + include/drm/i915_component.h | 1 + include/drm/i915_pxp_tee_interface.h | 45 + include/uapi/drm/i915_drm.h | 141 ++ 33 files changed, 2928 insertions(+), 26 deletions(-) create mode 100644 drivers/gpu/drm/i915/pxp/intel_pxp.c create mode 100644 drivers/gpu/drm/i915/pxp/intel_pxp.h create mode 100644 drivers/gpu/drm/i915/pxp/intel_pxp_context.c create mode 100644 drivers/gpu/drm/i915/pxp/intel_pxp_context.h create mode 100644 drivers/gpu/drm/i915/pxp/intel_pxp_pm.c create mode 100644 drivers/gpu/drm/i915/pxp/intel_pxp_pm.h create mode 100644 drivers/gpu/drm/i915/pxp/intel_pxp_sm.c create mode 100644 drivers/gpu/drm/i915/pxp/intel_pxp_sm.h create mode 100644 drivers/gpu/drm/i915/pxp/intel_pxp_tee.c create mode 100644 drivers/gpu/drm/i915/pxp/intel_pxp_tee.h create mode 100644 drivers/misc/mei/pxp/Kconfig create mode 100644 drivers/misc/mei/pxp/Makefile create mode 100644 drivers/misc/mei/pxp/mei_pxp.c create mode 100644 drivers/misc/mei/pxp/mei_pxp.h create mode 100644 include/drm/i915_pxp_tee_interface.h
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC v4 1/26 drm/i915/pxp: Introduce Intel PXP component
PXP (Protected Xe Path) is an i915 componment, available on GEN12+, that helps user space to establish the hardware protected session and manage the status of each alive software session, as well as the life cycle of each session.
By design PXP will expose ioctl so allow user space to create, set, and destroy each session. It will also provide the communication chanel to TEE (Trusted Execution Environment) for the protected hardware session creation.
--- drivers/gpu/drm/i915/Kconfig | 19 ++++++++++++++++ drivers/gpu/drm/i915/Makefile | 4 ++++ drivers/gpu/drm/i915/i915_drv.c | 4 ++++ drivers/gpu/drm/i915/i915_drv.h | 4 ++++ drivers/gpu/drm/i915/pxp/intel_pxp.c | 25 +++++++++++++++++++++ drivers/gpu/drm/i915/pxp/intel_pxp.h | 33 ++++++++++++++++++++++++++++ 6 files changed, 89 insertions(+) create mode 100644 drivers/gpu/drm/i915/pxp/intel_pxp.c create mode 100644 drivers/gpu/drm/i915/pxp/intel_pxp.h
drivers/gpu/drm/i915/Kconfig +19 -0
@@ -130,6 +130,25 @@ config DRM_I915_GVT_KVMGT Choose this option if you want to enable KVMGT support for Intel GVT-g. +config DRM_I915_PXP + bool "Enable Intel PXP support for Intel Gen12+ platform" + depends on DRM_I915 + select INTEL_MEI_PXP + default n + help + This option selects INTEL_MEI_ME if it isn't already selected to + enabled full PXP Services on Intel platforms. + + PXP is an i915 componment, available on Gen12+, that helps user + space to establish the hardware protected session and manage the + status of each alive software session, as well as the life cycle + of each session. + + PXP expose ioctl so allow user space to create, set, and destroy + each session. It will also provide the communication chanel to + TEE (Trusted Execution Environment) for the protected hardware + session creation. + menu "drm/i915 Debugging" depends on DRM_I915 depends on EXPERT
drivers/gpu/drm/i915/Makefile +4 -0
@@ -254,6 +254,10 @@ i915-y += \ i915-y += i915_perf.o +# Protected execution platform (PXP) support +i915-$(CONFIG_DRM_I915_PXP) += \ + pxp/intel_pxp.o + # Post-mortem debug and GPU hang state capture i915-$(CONFIG_DRM_I915_CAPTURE_ERROR) += i915_gpu_error.o i915-$(CONFIG_DRM_I915_SELFTEST) += \
drivers/gpu/drm/i915/i915_drv.c +4 -0
@@ -889,6 +889,8 @@ int i915_driver_probe(struct pci_dev *pdev, const struct pci_device_id *ent)if (ret) goto out_cleanup_gem; +intel_pxp_init (i915); +i915_driver_register (i915);enable_rpm_wakeref_asserts (&i915->runtime_pm);
@@ -938,6 +940,8 @@ void i915_driver_remove(struct drm_i915_private *i915)/* Flush any external code that still may be under the RCU lock */ synchronize_rcu (); +intel_pxp_uninit (i915); +i915_gem_suspend (i915);drm_atomic_helper_shutdown (&i915->drm);
drivers/gpu/drm/i915/i915_drv.h +4 -0
@@ -105,6 +105,8 @@#include "intel_region_lmem.h" +#include "pxp/intel_pxp.h" +/* General customization: */
@@ -1215,6 +1217,8 @@ struct drm_i915_private {/* Mutex to protect the above hdcp component related values. */ struct mutex hdcp_comp_mutex; +struct intel_pxp pxp; + I915_SELFTEST_DECLARE(struct i915_selftest_stash selftest;)/*
drivers/gpu/drm/i915/pxp/intel_pxp.c new file +25 -0
@@ -0,0 +1,25 @@ +// SPDX-License-Identifier: MIT +/* +* Copyright(c) 2020 Intel Corporation. +*/ + +#include "i915_drv.h" +#include "intel_pxp.h" + +int intel_pxp_init (struct drm_i915_private *i915) +{ +if (!i915) +return -EINVAL ; + +/* PXP only available for GEN12+ */ +if (INTEL_GEN (i915) <12 ) +return 0 ; + +drm_info (&i915->drm,"i915 PXP is inited with i915=[%p]\n" , i915); + +return 0 ; +} + +void intel_pxp_uninit (struct drm_i915_private *i915) +{ +}
drivers/gpu/drm/i915/pxp/intel_pxp.h new file +33 -0
@@ -0,0 +1,33 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright(c) 2020, Intel Corporation. All rights reserved. +*/ + +#ifndef __INTEL_PXP_H__ +#define __INTEL_PXP_H__ + +#include <drm/drm_file.h> + +struct pxp_context ; + +struct intel_pxp { +struct pxp_context *ctx; +}; + +struct drm_i915_private ; + +#ifdef CONFIG_DRM_I915_PXP +int intel_pxp_init (struct drm_i915_private *i915); +void intel_pxp_uninit (struct drm_i915_private *i915); +#else +static inline int intel_pxp_init (struct drm_i915_private *i915) +{ +return 0 ; +} + +static inline void intel_pxp_uninit (struct drm_i915_private *i915) +{ +} +#endif + +#endif /* __INTEL_PXP_PM_H__ */
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC v4 2/26 drm/i915/pxp: Enable PXP irq worker and callback stub
In reply to Huang, Sean ZCreate the irq worker that serves as callback handler, those callback stubs should be called while the hardware key teardown occurs.
--- drivers/gpu/drm/i915/gt/intel_gt_irq.c | 4 ++ drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/pxp/intel_pxp.c | 88 ++++++++++++++++++++++++++ drivers/gpu/drm/i915/pxp/intel_pxp.h | 36 +++++++++++ 4 files changed, 129 insertions(+)
drivers/gpu/drm/i915/gt/intel_gt_irq.c +4 -0
@@ -13,6 +13,7 @@#include "intel_gt_irq.h" #include "intel_uncore.h" #include "intel_rps.h" +#include "pxp/intel_pxp.h" static void guc_irq_handler (struct intel_guc *guc,u16 iir) {
@@ -106,6 +107,9 @@ gen11_other_irq_handler(struct intel_gt *gt, const u8 instance,if (instance ==OTHER_GTPM_INSTANCE )return gen11_rps_irq_handler (>->rps, iir); +if (instance ==OTHER_KCR_INSTANCE ) +return intel_pxp_irq_handler (gt, iir); +WARN_ONCE (1 ,"unhandled other interrupt instance=0x%x, iir=0x%x\n" , instance, iir); }
drivers/gpu/drm/i915/i915_reg.h +1 -0
@@ -7943,6 +7943,7 @@ enum {/* irq instances for OTHER_CLASS */ #define OTHER_GUC_INSTANCE 0#define OTHER_GTPM_INSTANCE 1 +#define OTHER_KCR_INSTANCE 4#define GEN11_INTR_IDENTITY_REG (x) _MMIO(0x190060 + ((x) * 4))
drivers/gpu/drm/i915/pxp/intel_pxp.c +88 -0
103 lines not on this page · raw message
drivers/gpu/drm/i915/pxp/intel_pxp.h +36 -0
@@ -8,18 +8,54 @@#include <drm/drm_file.h> +#define PXP_IRQ_VECTOR_DISPLAY_PXP_STATE_TERMINATED BIT(1) +#define PXP_IRQ_VECTOR_DISPLAY_APP_TERM_PER_FW_REQ BIT(2) +#define PXP_IRQ_VECTOR_PXP_DISP_STATE_RESET_COMPLETE BIT(3) + +enum pxp_sm_session_req { +/* Request KMD to allocate session id and move it to IN INIT */ +PXP_SM_REQ_SESSION_ID_INIT =0x0 , +/* Inform KMD that UMD has completed the initialization */ +PXP_SM_REQ_SESSION_IN_PLAY , +/* Request KMD to terminate the session */ +PXP_SM_REQ_SESSION_TERMINATE +}; +struct pxp_context ;struct intel_pxp { +struct work_struct irq_work; +u32 handled_irr; +u32 current_events; +struct pxp_context *ctx; }; +struct intel_gt ;struct drm_i915_private ;#ifdef CONFIG_DRM_I915_PXP +void intel_pxp_irq_handler (struct intel_gt *gt,u16 iir); +int i915_pxp_teardown_required_callback (struct drm_i915_private *i915); +int i915_pxp_global_terminate_complete_callback (struct drm_i915_private *i915); +int intel_pxp_init (struct drm_i915_private *i915);void intel_pxp_uninit (struct drm_i915_private *i915);#else +static inline void intel_pxp_irq_handler (struct intel_gt *gt,u16 iir) +{ +} + +static inline int i915_pxp_teardown_required_callback (struct drm_i915_private *i915) +{ +return 0 ; +} + +static inline int i915_pxp_global_terminate_complete_callback (struct drm_i915_private *i915) +{ +return 0 ; +} +static inline int intel_pxp_init (struct drm_i915_private *i915) {return 0 ;
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC v4 3/26 drm/i915/pxp: Add PXP context for logical hardware states.
In reply to Huang, Sean ZAdd PXP context which represents combined view
of driver and logical HW states.
--- drivers/gpu/drm/i915/Makefile | 3 +- drivers/gpu/drm/i915/pxp/intel_pxp.c | 29 ++++++++++++- drivers/gpu/drm/i915/pxp/intel_pxp.h | 3 ++ drivers/gpu/drm/i915/pxp/intel_pxp_context.c | 45 ++++++++++++++++++++ drivers/gpu/drm/i915/pxp/intel_pxp_context.h | 44 +++++++++++++++++++ 5 files changed, 122 insertions(+), 2 deletions(-) create mode 100644 drivers/gpu/drm/i915/pxp/intel_pxp_context.c create mode 100644 drivers/gpu/drm/i915/pxp/intel_pxp_context.h
drivers/gpu/drm/i915/Makefile +2 -1
@@ -256,7 +256,8 @@ i915-y += i915_perf.o # Protected execution platform (PXP) support i915-$(CONFIG_DRM_I915_PXP) += \ - pxp/intel_pxp.o + pxp/intel_pxp.o \ + pxp/intel_pxp_context.o # Post-mortem debug and GPU hang state capture i915-$(CONFIG_DRM_I915_CAPTURE_ERROR) += i915_gpu_error.o
drivers/gpu/drm/i915/pxp/intel_pxp.c +28 -1
@@ -5,6 +5,7 @@#include "i915_drv.h" #include "intel_pxp.h" +#include "intel_pxp_context.h" static void intel_pxp_write_irq_mask_reg (struct drm_i915_private *i915,u32 mask) {
@@ -28,12 +29,28 @@ static void intel_pxp_mask_irq(struct intel_gt *gt, u32 mask)static int intel_pxp_teardown_required_callback (struct drm_i915_private *i915) { +mutex_lock (&i915->pxp.ctx->ctx_mutex); + + i915->pxp.ctx->global_state_attacked = true; + i915->pxp.ctx->flag_display_hm_surface_keys = false; + +mutex_unlock (&i915->pxp.ctx->ctx_mutex); +return 0 ; }static int intel_pxp_global_terminate_complete_callback (struct drm_i915_private *i915) { -return 0 ; +int ret =0 ; + +mutex_lock (&i915->pxp.ctx->ctx_mutex); + +if (i915->pxp.ctx->global_state_attacked) + i915->pxp.ctx->global_state_attacked = false; + +mutex_unlock (&i915->pxp.ctx->ctx_mutex); + +return ret; }static void intel_pxp_irq_work (struct work_struct *work)
@@ -69,6 +86,12 @@ int intel_pxp_init(struct drm_i915_private *i915)drm_info (&i915->drm,"i915 PXP is inited with i915=[%p]\n" , i915); + i915->pxp.ctx =intel_pxp_create_ctx (i915); +if (!i915->pxp.ctx) { +drm_err (&i915->drm,"Failed to create pxp ctx\n" ); +return -EFAULT ; + } +INIT_WORK (&i915->pxp.irq_work, intel_pxp_irq_work); i915->pxp.handled_irr = (PXP_IRQ_VECTOR_DISPLAY_PXP_STATE_TERMINATED |
@@ -80,6 +103,10 @@ int intel_pxp_init(struct drm_i915_private *i915)void intel_pxp_uninit (struct drm_i915_private *i915) { +if (!i915 ||INTEL_GEN (i915) <12 ) +return ; + +intel_pxp_destroy_ctx (i915); }/**
drivers/gpu/drm/i915/pxp/intel_pxp.h +3 -0
@@ -12,6 +12,9 @@#define PXP_IRQ_VECTOR_DISPLAY_APP_TERM_PER_FW_REQ BIT(2)#define PXP_IRQ_VECTOR_PXP_DISP_STATE_RESET_COMPLETE BIT(3) +#define MAX_TYPE0_SESSIONS 16 +#define MAX_TYPE1_SESSIONS 6 +enum pxp_sm_session_req {/* Request KMD to allocate session id and move it to IN INIT */ PXP_SM_REQ_SESSION_ID_INIT =0x0 ,
drivers/gpu/drm/i915/pxp/intel_pxp_context.c new file +45 -0
45 lines not on this page · raw message
drivers/gpu/drm/i915/pxp/intel_pxp_context.h new file +44 -0
44 lines not on this page · raw message
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC v4 4/26 drm/i915/pxp: set KCR reg init during the boot time
In reply to Huang, Sean ZSet the KCR init during the boot time, which is required by hardware, to allow us doing further protection operation such as sending commands to GPU or TEE
--- drivers/gpu/drm/i915/Makefile | 3 +- drivers/gpu/drm/i915/pxp/intel_pxp.c | 11 ++++++- drivers/gpu/drm/i915/pxp/intel_pxp_sm.c | 38 +++++++++++++++++++++++++ drivers/gpu/drm/i915/pxp/intel_pxp_sm.h | 20 +++++++++++++ 4 files changed, 70 insertions(+), 2 deletions(-) create mode 100644 drivers/gpu/drm/i915/pxp/intel_pxp_sm.c create mode 100644 drivers/gpu/drm/i915/pxp/intel_pxp_sm.h
drivers/gpu/drm/i915/Makefile +2 -1
@@ -257,7 +257,8 @@ i915-y += i915_perf.o # Protected execution platform (PXP) support i915-$(CONFIG_DRM_I915_PXP) += \ pxp/intel_pxp.o \ - pxp/intel_pxp_context.o + pxp/intel_pxp_context.o \ + pxp/intel_pxp_sm.o # Post-mortem debug and GPU hang state capture i915-$(CONFIG_DRM_I915_CAPTURE_ERROR) += i915_gpu_error.o
drivers/gpu/drm/i915/pxp/intel_pxp.c +10 -1
@@ -6,6 +6,7 @@#include "i915_drv.h" #include "intel_pxp.h" #include "intel_pxp_context.h" +#include "intel_pxp_sm.h" static void intel_pxp_write_irq_mask_reg (struct drm_i915_private *i915,u32 mask) {
@@ -77,6 +78,8 @@ static void intel_pxp_irq_work(struct work_struct *work)int intel_pxp_init (struct drm_i915_private *i915) { +int ret; +if (!i915)return -EINVAL ;
@@ -92,13 +95,19 @@ int intel_pxp_init(struct drm_i915_private *i915)return -EFAULT ; } + ret =pxp_sm_set_kcr_init_reg (i915); +if (ret) { +drm_err (&i915->drm,"Failed to set kcr init reg\n" ); +return ret; + } +INIT_WORK (&i915->pxp.irq_work, intel_pxp_irq_work); i915->pxp.handled_irr = (PXP_IRQ_VECTOR_DISPLAY_PXP_STATE_TERMINATED |PXP_IRQ_VECTOR_DISPLAY_APP_TERM_PER_FW_REQ |PXP_IRQ_VECTOR_PXP_DISP_STATE_RESET_COMPLETE ); -return 0 ; +return ret; }void intel_pxp_uninit (struct drm_i915_private *i915)
drivers/gpu/drm/i915/pxp/intel_pxp_sm.c new file +38 -0
@@ -0,0 +1,38 @@ +// SPDX-License-Identifier: MIT +/* +* Copyright(c) 2020, Intel Corporation. All rights reserved. +*/ + +#include "gt/intel_context.h" +#include "gt/intel_engine_pm.h" + +#include "intel_pxp.h" +#include "intel_pxp_sm.h" +#include "intel_pxp_context.h" + +static int pxp_reg_write (struct drm_i915_private *i915,u32 offset,u32 regval) +{ +intel_wakeref_t wakeref; + +if (!i915) +return -EINVAL ; + + with_intel_runtime_pm(&i915->runtime_pm, wakeref) { +i915_reg_t reg_offset = {offset}; + +intel_uncore_write (&i915->uncore, reg_offset, regval); + } + +return 0 ; +} + +int pxp_sm_set_kcr_init_reg (struct drm_i915_private *i915) +{ +int ret; + + ret =pxp_reg_write (i915,KCR_INIT .reg,KCR_INIT_ALLOW_DISPLAY_ME_WRITES ); +if (ret) +drm_err (&i915->drm,"Failed to write()\n" ); + +return ret; +}
drivers/gpu/drm/i915/pxp/intel_pxp_sm.h new file +20 -0
@@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright(c) 2020, Intel Corporation. All rights reserved. +*/ + +#ifndef __INTEL_PXP_SM_H__ +#define __INTEL_PXP_SM_H__ + +#include "i915_drv.h" +#include "i915_reg.h" + +/* KCR register definitions */ +#define KCR_INIT _MMIO(0x320f0) +#define KCR_INIT_MASK_SHIFT (16) +/* Setting KCR Init bit is required after system boot */ +#define KCR_INIT_ALLOW_DISPLAY_ME_WRITES (BIT(14) | (BIT(14) << KCR_INIT_MASK_SHIFT)) + +int pxp_sm_set_kcr_init_reg (struct drm_i915_private *i915); + +#endif /* __INTEL_PXP_SM_H__ */
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC v4 5/26 drm/i915/pxp: Implement ioctl action to set the user space context
In reply to Huang, Sean ZImplement one ioctl action to allow user space driver to set its user space context, so PXP can track the context id through this user space context list.
--- drivers/gpu/drm/i915/pxp/intel_pxp.c | 57 ++++++++++++++++++++ drivers/gpu/drm/i915/pxp/intel_pxp.h | 26 +++++++++ drivers/gpu/drm/i915/pxp/intel_pxp_context.c | 24 +++++++++ drivers/gpu/drm/i915/pxp/intel_pxp_context.h | 3 ++ 4 files changed, 110 insertions(+)
drivers/gpu/drm/i915/pxp/intel_pxp.c +57 -0
@@ -8,6 +8,61 @@#include "intel_pxp_context.h" #include "intel_pxp_sm.h" +int i915_pxp_ops_ioctl (struct drm_device *dev,void *data,struct drm_file *drmfile) +{ +int ret; +struct pxp_info pxp_info = {0 }; +struct drm_i915_pxp_ops *pxp_ops = data; +struct drm_i915_private *i915 =to_i915 (dev); + +if (!i915 || !i915->pxp.ctx || !drmfile || !pxp_ops || + pxp_ops->info_size !=sizeof (pxp_info)) +return -EINVAL ; + +if (copy_from_user (&pxp_info, pxp_ops->info_ptr,sizeof (pxp_info)) !=0 ) +return -EFAULT ; + +mutex_lock (&i915->pxp.ctx->ctx_mutex); + +if (i915->pxp.ctx->global_state_in_suspend) { +drm_err (&i915->drm,"Return failure due to state in suspend\n" ); + pxp_info.sm_status =PXP_SM_STATUS_SESSION_NOT_AVAILABLE ; + ret =0 ; + goto end; + } + +if (i915->pxp.ctx->global_state_attacked) { +drm_err (&i915->drm,"Retry required due to state attacked\n" ); + pxp_info.sm_status =PXP_SM_STATUS_RETRY_REQUIRED ; + ret =0 ; + goto end; + } + +switch (pxp_info.action) { +case PXP_ACTION_SET_USER_CONTEXT : + { + ret =intel_pxp_set_user_ctx (i915, pxp_info.set_user_ctx); +break ; + } +default : +drm_err (&i915->drm,"Failed to %s due to bad params\n" , __func__); + ret = -EINVAL ; + goto end; + } + +end: +mutex_unlock (&i915->pxp.ctx->ctx_mutex); + +if (ret ==0 ) +if (copy_to_user (pxp_ops->info_ptr, &pxp_info,sizeof (pxp_info)) !=0 ) + ret = -EFAULT ; + +if (ret) +dev_err (&dev->pdev->dev,"pid=%d, ret = %d\n" ,task_pid_nr (current), ret); + +return ret; +} +static void intel_pxp_write_irq_mask_reg (struct drm_i915_private *i915,u32 mask) {/* crypto mask is in bit31-16 (Engine1 Interrupt Mask) */
@@ -35,6 +90,8 @@ static int intel_pxp_teardown_required_callback(struct drm_i915_private *i915) i915->pxp.ctx->global_state_attacked = true; i915->pxp.ctx->flag_display_hm_surface_keys = false; +intel_pxp_destroy_user_ctx_list (i915); +mutex_unlock (&i915->pxp.ctx->ctx_mutex);return 0 ;
drivers/gpu/drm/i915/pxp/intel_pxp.h +26 -0
@@ -24,6 +24,26 @@ enum pxp_sm_session_req {PXP_SM_REQ_SESSION_TERMINATE }; +#define PXP_ACTION_SET_USER_CONTEXT 5 + +enum pxp_sm_status { +PXP_SM_STATUS_SUCCESS , +PXP_SM_STATUS_RETRY_REQUIRED , +PXP_SM_STATUS_SESSION_NOT_AVAILABLE , +PXP_SM_STATUS_ERROR_UNKNOWN +}; + +struct pxp_info { +u32 action; +u32 sm_status; +u32 set_user_ctx; +} __attribute__((packed)); + +struct drm_i915_pxp_ops { +struct pxp_info __user *info_ptr; +__u32 info_size; +}; +struct pxp_context ;struct intel_pxp {
@@ -38,6 +58,7 @@ struct intel_gt;struct drm_i915_private ;#ifdef CONFIG_DRM_I915_PXP +int i915_pxp_ops_ioctl (struct drm_device *dev,void *data,struct drm_file *drmfile);void intel_pxp_irq_handler (struct intel_gt *gt,u16 iir);int i915_pxp_teardown_required_callback (struct drm_i915_private *i915);int i915_pxp_global_terminate_complete_callback (struct drm_i915_private *i915);
@@ -45,6 +66,11 @@ int i915_pxp_global_terminate_complete_callback(struct drm_i915_private *i915);int intel_pxp_init (struct drm_i915_private *i915);void intel_pxp_uninit (struct drm_i915_private *i915);#else +static inline int i915_pxp_ops_ioctl (struct drm_device *dev,void *data,struct drm_file *drmfile) +{ +return 0 ; +} +static inline void intel_pxp_irq_handler (struct intel_gt *gt,u16 iir) { }
drivers/gpu/drm/i915/pxp/intel_pxp_context.c +24 -0
@@ -43,3 +43,27 @@ void intel_pxp_destroy_ctx(struct drm_i915_private *i915)kfree (i915->pxp.ctx); i915->pxp.ctx =NULL ; } + +int intel_pxp_set_user_ctx (struct drm_i915_private *i915,u32 user_ctx_in) +{ +struct pxp_user_ctx *user_ctx; + + user_ctx =kzalloc (sizeof (*user_ctx),GFP_KERNEL ); +if (!user_ctx) +return -ENOMEM ; + + user_ctx->user_ctx = user_ctx_in; + +list_add (&user_ctx->listhead, &i915->pxp.ctx->user_ctx_list); +return 0 ; +} + +void intel_pxp_destroy_user_ctx_list (struct drm_i915_private *i915) +{ +struct pxp_user_ctx *user_ctx, *n; + +list_for_each_entry_safe (user_ctx, n, &i915->pxp.ctx->user_ctx_list, listhead) { +list_del (&user_ctx->listhead); +kfree (user_ctx); + } +}
drivers/gpu/drm/i915/pxp/intel_pxp_context.h +3 -0
@@ -41,4 +41,7 @@ struct pxp_user_ctx {struct pxp_context *intel_pxp_create_ctx (struct drm_i915_private *i915);void intel_pxp_destroy_ctx (struct drm_i915_private *i915); +int intel_pxp_set_user_ctx (struct drm_i915_private *i915,u32 user_ctx); +void intel_pxp_destroy_user_ctx_list (struct drm_i915_private *i915); +#endif /* __INTEL_PXP_CONTEXT_H__ */
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC v4 6/26 drm/i915/pxp: Add PXP-related registers into allowlist
In reply to Huang, Sean ZAdd several PXP-related reg into allowlist to allow user space driver to read the those register values.
--- drivers/gpu/drm/i915/i915_reg.h | 6 ++++ drivers/gpu/drm/i915/intel_uncore.c | 50 ++++++++++++++++++++--------- 2 files changed, 41 insertions(+), 15 deletions(-)
drivers/gpu/drm/i915/i915_reg.h +6 -0
@@ -12421,4 +12421,10 @@ enum skl_power_gate {#define TGL_ROOT_DEVICE_SKU_ULX 0x2#define TGL_ROOT_DEVICE_SKU_ULT 0x4 +/* Registers for allowlist check */ +#define PXP_REG_01_LOWERBOUND _MMIO(0x32260) +#define PXP_REG_01_UPPERBOUND _MMIO(0x32268) +#define PXP_REG_02_LOWERBOUND _MMIO(0x32670) +#define PXP_REG_02_UPPERBOUND _MMIO(0x32678) +#endif /* _I915_REG_H_ */
drivers/gpu/drm/i915/intel_uncore.c +35 -15
92 lines not on this page · raw message
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC v4 7/26 drm/i915/pxp: Read register to check hardware session state
In reply to Huang, Sean ZImplement the functions to check the hardware protected session state via reading the hardware register session in play.
--- drivers/gpu/drm/i915/pxp/intel_pxp.h | 3 + drivers/gpu/drm/i915/pxp/intel_pxp_sm.c | 177 ++++++++++++++++++++++++ drivers/gpu/drm/i915/pxp/intel_pxp_sm.h | 51 +++++++ 3 files changed, 231 insertions(+)
drivers/gpu/drm/i915/pxp/intel_pxp.h +3 -0
@@ -12,6 +12,9 @@#define PXP_IRQ_VECTOR_DISPLAY_APP_TERM_PER_FW_REQ BIT(2)#define PXP_IRQ_VECTOR_PXP_DISP_STATE_RESET_COMPLETE BIT(3) +#define pxp_session_list (i915, session_type) (((session_type) == SESSION_TYPE_TYPE0) ? \ + &(i915)->pxp.ctx->active_pxp_type0_sessions : &(i915)->pxp.ctx->active_pxp_type1_sessions) +#define MAX_TYPE0_SESSIONS 16#define MAX_TYPE1_SESSIONS 6
drivers/gpu/drm/i915/pxp/intel_pxp_sm.c +177 -0
189 lines not on this page · raw message
drivers/gpu/drm/i915/pxp/intel_pxp_sm.h +51 -0
57 lines not on this page · raw message
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC v4 8/26 drm/i915/pxp: Implement funcs to get/set PXP tag
In reply to Huang, Sean ZImplement the functions to get/set the PXP tag, which is 32-bit bitwise value containing the hardware session info, such as its session id, protection mode or whether it's enabled.
--- drivers/gpu/drm/i915/pxp/intel_pxp_sm.c | 95 +++++++++++++++++++++++++ drivers/gpu/drm/i915/pxp/intel_pxp_sm.h | 18 +++++ 2 files changed, 113 insertions(+)
drivers/gpu/drm/i915/pxp/intel_pxp_sm.c +95 -0
@@ -41,6 +41,16 @@ static int pxp_reg_write(struct drm_i915_private *i915, u32 offset, u32 regval)return 0 ; } +static u8 pxp_get_session_id (int session_index,int session_type) +{ +u8 session_id = session_index &SESSION_ID_MASK ; + +if (session_type ==SESSION_TYPE_TYPE1 ) + session_id |=SESSION_TYPE_MASK ; + +return session_id; +} +/** * is_sw_session_active - Check if the given sw session id is active. * @i915: i915 device handle.
@@ -78,6 +88,91 @@ static bool is_sw_session_active(struct drm_i915_private *i915, int session_typereturn false; } +static int pxp_set_pxp_tag (struct drm_i915_private *i915,int session_type, +int session_idx,int protection_mode) +{ +struct pxp_tag *pxp_tag; + +if (!i915 || session_type >=SESSION_TYPE_MAX ) +return -EINVAL ; + +if (session_type ==SESSION_TYPE_TYPE0 && session_idx <MAX_TYPE0_SESSIONS ) { + pxp_tag = (struct pxp_tag *)&i915->pxp.ctx->type0_session_pxp_tag[session_idx]; + }else if (session_type ==SESSION_TYPE_TYPE1 && session_idx <MAX_TYPE1_SESSIONS ) { + pxp_tag = (struct pxp_tag *)&i915->pxp.ctx->type1_session_pxp_tag[session_idx]; + }else { +drm_err (&i915->drm,"Failed to %s, bad params session_type=[%d], session_idx=[%d]\n" , + __func__, session_type, session_idx); +return -EINVAL ; + } + +switch (protection_mode) { +case PROTECTION_MODE_NONE : + { + pxp_tag->enable = false; + pxp_tag->hm = false; + pxp_tag->sm = false; +break ; + } +case PROTECTION_MODE_LM : + { + pxp_tag->enable = true; + pxp_tag->hm = false; + pxp_tag->sm = false; + pxp_tag->instance_id++; +break ; + } +case PROTECTION_MODE_HM : + { + pxp_tag->enable = true; + pxp_tag->hm = true; + pxp_tag->sm = false; + pxp_tag->instance_id++; +break ; + } +case PROTECTION_MODE_SM : + { + pxp_tag->enable = true; + pxp_tag->hm = true; + pxp_tag->sm = true; + pxp_tag->instance_id++; +break ; + } +default : +drm_err (&i915->drm,"Failed to %s, bad params protection_mode=[%d]\n" , + __func__, protection_mode); +return -EINVAL ; + } + + pxp_tag->session_id =pxp_get_session_id (session_idx, session_type); +end: +return 0 ; +} + +u32 intel_pxp_get_pxp_tag (struct drm_i915_private *i915,int session_idx, +int session_type,u32 *session_is_alive) +{ +struct pxp_tag *pxp_tag; + +if (!i915 || session_type >=SESSION_TYPE_MAX ) +return -EINVAL ; + +if (session_type ==SESSION_TYPE_TYPE0 && session_idx <MAX_TYPE0_SESSIONS ) { + pxp_tag = (struct pxp_tag *)&i915->pxp.ctx->type0_session_pxp_tag[session_idx]; + }else if (session_type ==SESSION_TYPE_TYPE1 && session_idx <MAX_TYPE1_SESSIONS ) { + pxp_tag = (struct pxp_tag *)&i915->pxp.ctx->type1_session_pxp_tag[session_idx]; + }else { +drm_err (&i915->drm,"Failed to %s, bad params session_type=[%d], session_idx=[%d]\n" , + __func__, session_type, session_idx); +return -EINVAL ; + } + +if (session_is_alive) + *session_is_alive = pxp_tag->enable; + +return pxp_tag->value; +} +static bool is_hw_type0_session_in_play (struct drm_i915_private *i915,int session_index) {u32 regval_sip =0 ;
drivers/gpu/drm/i915/pxp/intel_pxp_sm.h +18 -0
@@ -20,6 +20,9 @@#define GEN12_KCR_TSIP_LOW _MMIO(0x32264)/* KCR type1 session in play 0-31 */ #define GEN12_KCR_TSIP_HIGH _MMIO(0x32268)/* KCR type1 session in play 32-63 */ +#define SESSION_TYPE_MASK BIT(7) +#define SESSION_ID_MASK (BIT(7) - 1) +enum pxp_session_types {SESSION_TYPE_TYPE0 =0 ,SESSION_TYPE_TYPE1 =1 ,
@@ -36,6 +39,21 @@ enum pxp_protection_modes { PROTECTION_MODE_ALL }; +struct pxp_tag { +union { +u32 value; +struct { +u32 session_id :8 ; +u32 instance_id :8 ; +u32 enable :1 ; +u32 hm :1 ; +u32 reserved_1 :1 ; +u32 sm :1 ; +u32 reserved_2 :12 ; + }; + }; +}; +/** * struct pxp_protected_session - linked list to track all active sessions. */
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC v4 9/26 drm/i915/pxp: Implement ioctl action to reserve session slot
In reply to Huang, Sean ZWith this ioctl action, user space driver can reserve a specific session slot/id assigned by PXP, as the first step of PXP session establishment flow. The session info is stored in the session list structure.
--- drivers/gpu/drm/i915/pxp/intel_pxp.c | 20 ++++ drivers/gpu/drm/i915/pxp/intel_pxp.h | 24 +++- drivers/gpu/drm/i915/pxp/intel_pxp_sm.c | 149 +++++++++++++++++++++++- drivers/gpu/drm/i915/pxp/intel_pxp_sm.h | 3 + 4 files changed, 193 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/pxp/intel_pxp.c +20 -0
@@ -39,6 +39,26 @@ int i915_pxp_ops_ioctl(struct drm_device *dev, void *data, struct drm_file *drmf }switch (pxp_info.action) { +case PXP_ACTION_SET_SESSION_STATUS : + { +struct pxp_sm_set_session_status_params *params = &pxp_info.set_session_status; + +if (params->req_session_state ==PXP_SM_REQ_SESSION_ID_INIT ) { + ret =intel_pxp_sm_reserve_session (i915, drmfile,0 , + params->session_type, + params->session_mode, + ¶ms->pxp_tag); +if (ret ==PXP_SM_STATUS_RETRY_REQUIRED || + ret ==PXP_SM_STATUS_SESSION_NOT_AVAILABLE ) { + pxp_info.sm_status = ret; + ret =0 ; + } + }else { + ret = -EINVAL ; + goto end; + } +break ; + }case PXP_ACTION_SET_USER_CONTEXT : { ret =intel_pxp_set_user_ctx (i915, pxp_info.set_user_ctx);
drivers/gpu/drm/i915/pxp/intel_pxp.h +22 -2
@@ -15,6 +15,9 @@#define pxp_session_list (i915, session_type) (((session_type) == SESSION_TYPE_TYPE0) ? \ &(i915)->pxp.ctx->active_pxp_type0_sessions : &(i915)->pxp.ctx->active_pxp_type1_sessions) +#define pxp_session_max (session_type) (((session_type) == SESSION_TYPE_TYPE0) ? \ + MAX_TYPE0_SESSIONS : MAX_TYPE1_SESSIONS) +#define MAX_TYPE0_SESSIONS 16#define MAX_TYPE1_SESSIONS 6
@@ -27,7 +30,10 @@ enum pxp_sm_session_req {PXP_SM_REQ_SESSION_TERMINATE }; -#define PXP_ACTION_SET_USER_CONTEXT 5 +enum pxp_ioctl_action { +PXP_ACTION_SET_SESSION_STATUS =1 , +PXP_ACTION_SET_USER_CONTEXT =5 , +};enum pxp_sm_status {PXP_SM_STATUS_SUCCESS ,
@@ -36,10 +42,24 @@ enum pxp_sm_status {PXP_SM_STATUS_ERROR_UNKNOWN }; +struct pxp_sm_set_session_status_params { +/** @pxp_tag: in [optional], for Arbitrator session, out pxp tag */ +u32 pxp_tag; +/** @session_type: in, session type */ +u32 session_type; +/** @session_mode: in, session mode */ +u32 session_mode; +/** @req_session_state: in, new session state */ +u32 req_session_state; +}; +struct pxp_info {u32 action;u32 sm_status; -u32 set_user_ctx; +union { +struct pxp_sm_set_session_status_params set_session_status; +u32 set_user_ctx; + }; } __attribute__((packed));struct drm_i915_pxp_ops {
drivers/gpu/drm/i915/pxp/intel_pxp_sm.c +148 -1
161 lines not on this page · raw message
drivers/gpu/drm/i915/pxp/intel_pxp_sm.h +3 -0
@@ -84,6 +84,9 @@ struct pxp_protected_session { bool session_is_in_play; }; +int intel_pxp_sm_reserve_session (struct drm_i915_private *i915,struct drm_file *drmfile, +int context_id,int session_type,int protection_mode, +u32 *pxp_tag);int pxp_sm_set_kcr_init_reg (struct drm_i915_private *i915);#endif /* __INTEL_PXP_SM_H__ */
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC v4 10/26 drm/i915/pxp: Implement ioctl action to set session in play
In reply to Huang, Sean ZWith this ioctl action, user space driver can set the session in state "session in play", after dirver reserved the session slot/id from driver, and sent the TEE commands to activate the corresponding hardware session. Session state "session in play" means this session is ready for secure playback.
--- drivers/gpu/drm/i915/pxp/intel_pxp.c | 4 ++ drivers/gpu/drm/i915/pxp/intel_pxp_sm.c | 69 +++++++++++++++++++++++++ drivers/gpu/drm/i915/pxp/intel_pxp_sm.h | 2 + 3 files changed, 75 insertions(+)
drivers/gpu/drm/i915/pxp/intel_pxp.c +4 -0
@@ -53,6 +53,10 @@ int i915_pxp_ops_ioctl(struct drm_device *dev, void *data, struct drm_file *drmf pxp_info.sm_status = ret; ret =0 ; } + }else if (params->req_session_state ==PXP_SM_REQ_SESSION_IN_PLAY ) { + ret =pxp_sm_mark_protected_session_in_play (i915, params->session_type, + params->pxp_tag); + }else { ret = -EINVAL ; goto end;
drivers/gpu/drm/i915/pxp/intel_pxp_sm.c +69 -0
81 lines not on this page · raw message
drivers/gpu/drm/i915/pxp/intel_pxp_sm.h +2 -0
@@ -87,6 +87,8 @@ struct pxp_protected_session {int intel_pxp_sm_reserve_session (struct drm_i915_private *i915,struct drm_file *drmfile,int context_id,int session_type,int protection_mode,u32 *pxp_tag); +int pxp_sm_mark_protected_session_in_play (struct drm_i915_private *i915,int session_type, +u32 session_id);int pxp_sm_set_kcr_init_reg (struct drm_i915_private *i915);#endif /* __INTEL_PXP_SM_H__ */
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC v4 11/26 drm/i915/pxp: Func to send hardware session termination
In reply to Huang, Sean ZImplement the functions to allow PXP to send a GPU command, in order to terminate the hardware session, so hardware can recycle this session slot for the next usage.
--- drivers/gpu/drm/i915/pxp/intel_pxp_sm.c | 288 ++++++++++++++++++++++++ drivers/gpu/drm/i915/pxp/intel_pxp_sm.h | 16 ++ 2 files changed, 304 insertions(+)
drivers/gpu/drm/i915/pxp/intel_pxp_sm.c +288 -0
@@ -3,13 +3,163 @@* Copyright(c) 2020, Intel Corporation. All rights reserved. */ +#include "gt/intel_gpu_commands.h" +#include "gt/intel_gt.h" #include "gt/intel_context.h" +#include "gt/intel_gt_buffer_pool.h" #include "gt/intel_engine_pm.h" #include "intel_pxp.h" #include "intel_pxp_sm.h" #include "intel_pxp_context.h" +static struct i915_vma *pxp_get_batch (struct drm_i915_private *i915, +struct intel_context *ce, +struct intel_gt_buffer_pool_node *pool, +u32 *cmd_buf,int cmd_size_in_dw) +{ +struct i915_vma *batch =ERR_PTR (-EINVAL ); +u32 *cmd; + +if (!ce || !ce->engine || !cmd_buf) +return ERR_PTR (-EINVAL ); + +if (cmd_size_in_dw *4 >PAGE_SIZE ) { +drm_err (&i915->drm,"Failed to %s, invalid cmd_size_id_dw=[%d]\n" , + __func__, cmd_size_in_dw); +return ERR_PTR (-EINVAL ); + } + + cmd =i915_gem_object_pin_map (pool->obj,I915_MAP_FORCE_WC ); +if (IS_ERR (cmd)) { +drm_err (&i915->drm,"Failed to i915_gem_object_pin_map()\n" ); +return ERR_PTR (-EINVAL ); + } + +memcpy (cmd, cmd_buf, cmd_size_in_dw *4 ); + +if (drm_debug_enabled (DRM_UT_DRIVER )) { +print_hex_dump (KERN_DEBUG ,"cmd binaries:" , +DUMP_PREFIX_OFFSET ,4 ,4 , cmd, cmd_size_in_dw *4 , true); + } + +i915_gem_object_unpin_map (pool->obj); + + batch =i915_vma_instance (pool->obj, ce->vm,NULL ); +if (IS_ERR (batch)) { +drm_err (&i915->drm,"Failed to i915_vma_instance()\n" ); +return batch; + } + +return batch; +} + +static int pxp_submit_cmd (struct drm_i915_private *i915,u32 *cmd,int cmd_size_in_dw) +{ +int err = -EINVAL ; +struct i915_vma *batch; +struct i915_request *rq; +struct intel_context *ce =NULL ; +bool is_engine_pm_get = false; +bool is_batch_vma_pin = false; +bool is_skip_req_on_err = false; +bool is_engine_get_pool = false; +struct intel_gt_buffer_pool_node *pool =NULL ; +struct intel_gt *gt =NULL ; + +if (!i915 || !HAS_ENGINE (&i915->gt,VCS0 ) || + !i915->gt.engine[VCS0 ]->kernel_context) { + err = -EINVAL ; + goto end; + } + +if (!cmd || (cmd_size_in_dw *4 ) >PAGE_SIZE ) { +drm_err (&i915->drm,"Failed to %s bad params\n" , __func__); +return -EINVAL ; + } + + gt = &i915->gt; + ce = i915->gt.engine[VCS0 ]->kernel_context; + +intel_engine_pm_get (ce->engine); + is_engine_pm_get = true; + + pool =intel_gt_get_buffer_pool (gt,PAGE_SIZE ); +if (IS_ERR (pool)) { +drm_err (&i915->drm,"Failed to intel_engine_get_pool()\n" ); + goto end; + } + is_engine_get_pool = true; + + batch =pxp_get_batch (i915, ce, pool, cmd, cmd_size_in_dw); +if (IS_ERR (batch)) { +drm_err (&i915->drm,"Failed to pxp_get_batch()\n" ); + goto end; + } + + err =i915_vma_pin (batch,0 ,0 ,PIN_USER ); +if (err) { +drm_err (&i915->drm,"Failed to i915_vma_pin()\n" ); + goto end; + } + is_batch_vma_pin = true; + + rq =intel_context_create_request (ce); +if (IS_ERR (rq)) { +drm_err (&i915->drm,"Failed to intel_context_create_request()\n" ); + goto end; + } + is_skip_req_on_err = true; + + err =intel_gt_buffer_pool_mark_active (pool, rq); +if (err) { +drm_err (&i915->drm,"Failed to intel_engine_pool_mark_active()\n" ); + goto end; + } + +i915_vma_lock (batch); + err =i915_request_await_object (rq, batch->obj, false); +if (!err) + err =i915_vma_move_to_active (batch, rq,0 ); +i915_vma_unlock (batch); +if (err) { +drm_err (&i915->drm,"Failed to i915_request_await_object()\n" ); + goto end; + } + +if (ce->engine->emit_init_breadcrumb) { + err = ce->engine->emit_init_breadcrumb (rq); +if (err) { +drm_err (&i915->drm,"Failed to emit_init_breadcrumb()\n" ); + goto end; + } + } + + err = ce->engine->emit_bb_start (rq, batch->node.start, + batch->node.size,0 ); +if (err) { +drm_err (&i915->drm,"Failed to emit_bb_start()\n" ); + goto end; + } + +i915_request_add (rq); + +end: +if (unlikely (err) && is_skip_req_on_err) +i915_request_set_error_once (rq, err); + +if (is_batch_vma_pin) +i915_vma_unpin (batch); + +if (is_engine_get_pool) +intel_gt_buffer_pool_put (pool); + +if (is_engine_pm_get) +intel_engine_pm_put (ce->engine); + +return err; +} +static int pxp_sm_reg_read (struct drm_i915_private *i915,u32 offset,u32 *regval) {intel_wakeref_t wakeref;
@@ -514,6 +664,144 @@ int pxp_sm_mark_protected_session_in_play(struct drm_i915_private *i915, int sesreturn -EINVAL ; } +static int add_pxp_prolog (struct drm_i915_private *i915,u32 *cmd,int session_type, +int session_index) +{ +u32 increased_size_in_dw =0 ; +u32 *cmd_prolog = cmd; +const int cmd_prolog_size_in_dw =10 ; + +if (!cmd) +return cmd_prolog_size_in_dw; + +/* MFX_WAIT - stall until prior PXP and MFX/HCP/HUC objects are cmopleted */ + *cmd_prolog++ = (MFX_WAIT |MFX_WAIT_DW0_PXP_SYNC_CONTROL_FLAG | +MFX_WAIT_DW0_MFX_SYNC_CONTROL_FLAG ); + +/* MI_FLUSH_DW - pxp off */ + *cmd_prolog++ =MI_FLUSH_DW ;/* DW0 */ + *cmd_prolog++ =0 ;/* DW1 */ + *cmd_prolog++ =0 ;/* DW2 */ + +/* MI_SET_APPID */ +if (session_type ==SESSION_TYPE_TYPE1 ) { +if (session_index >=MAX_TYPE1_SESSIONS ) { +drm_err (&i915->drm,"Failed to %s invalid session_index\n" , __func__); + goto end; + } + + *cmd_prolog++ = (MI_SET_APPID |MI_SET_APPID_TYPE1_APP | +MI_SET_APPID_SESSION_ID (session_index)); + }else { +if (session_index >=MAX_TYPE0_SESSIONS ) { +drm_err (&i915->drm,"Failed to %s invalid session_index\n" , __func__); + goto end; + } + + *cmd_prolog++ = (MI_SET_APPID |MI_SET_APPID_SESSION_ID (session_index)); + } + +/* MFX_WAIT */ + *cmd_prolog++ = (MFX_WAIT |MFX_WAIT_DW0_PXP_SYNC_CONTROL_FLAG | +MFX_WAIT_DW0_MFX_SYNC_CONTROL_FLAG ); + +/* MI_FLUSH_DW - pxp on */ + *cmd_prolog++ = (MI_FLUSH_DW |MI_FLUSH_DW_DW0_PROTECTED_MEMORY_ENABLE );/* DW0 */ + *cmd_prolog++ =0 ;/* DW1 */ + *cmd_prolog++ =0 ;/* DW2 */ + +/* MFX_WAIT */ + *cmd_prolog++ = (MFX_WAIT |MFX_WAIT_DW0_PXP_SYNC_CONTROL_FLAG | +MFX_WAIT_DW0_MFX_SYNC_CONTROL_FLAG ); + + increased_size_in_dw = (cmd_prolog - cmd); +end: +return increased_size_in_dw; +} + +static int add_pxp_epilog (u32 *cmd) +{ +u32 increased_size_in_dw =0 ; +u32 *cmd_epilog = cmd; +const int cmd_epilog_size_in_dw =5 ; + +if (!cmd) +return cmd_epilog_size_in_dw; + +/* MI_FLUSH_DW - pxp off */ + *cmd_epilog++ =MI_FLUSH_DW ;/* DW0 */ + *cmd_epilog++ =0 ;/* DW1 */ + *cmd_epilog++ =0 ;/* DW2 */ + +/* MFX_WAIT - stall until prior PXP and MFX/HCP/HUC objects are cmopleted */ + *cmd_epilog++ = (MFX_WAIT |MFX_WAIT_DW0_PXP_SYNC_CONTROL_FLAG | +MFX_WAIT_DW0_MFX_SYNC_CONTROL_FLAG ); + +/* MI_BATCH_BUFFER_END */ + *cmd_epilog++ =MI_BATCH_BUFFER_END ; + + increased_size_in_dw = (cmd_epilog - cmd); +return increased_size_in_dw; +} + +static int add_pxp_inline_termination (u32 *cmd) +{ +u32 increased_size_in_dw =0 ; +u32 *cmd_termin = cmd; +const int cmd_termin_size_in_dw =2 ; + +if (!cmd) +return cmd_termin_size_in_dw; + +/* CRYPTO_KEY_EXCHANGE - session inline termination */ + *cmd_termin++ =CRYPTO_KEY_EXCHANGE ;/* DW0 */ + *cmd_termin++ =0 ;/* DW1 */ + + increased_size_in_dw = (cmd_termin - cmd); +return increased_size_in_dw; +} + +static int issue_hw_terminate_for_session (struct drm_i915_private *i915,int session_type, +int session_index) +{ +u32 *cmd =NULL ; +u32 *cmd_ptr =NULL ; +int cmd_size_in_dw =0 ; +int ret; + +if (!i915) +return -EINVAL ; + + cmd_size_in_dw +=add_pxp_prolog (i915,NULL , session_type, session_index); + cmd_size_in_dw +=add_pxp_inline_termination (NULL ); + cmd_size_in_dw +=add_pxp_epilog (NULL ); + + cmd =kzalloc (cmd_size_in_dw *4 ,GFP_KERNEL ); +if (!cmd) +return -ENOMEM ; + + cmd_ptr = cmd; + cmd_ptr +=add_pxp_prolog (i915, cmd_ptr, session_type, session_index); + cmd_ptr +=add_pxp_inline_termination (cmd_ptr); + cmd_ptr +=add_pxp_epilog (cmd_ptr); + +if (cmd_size_in_dw != (cmd_ptr - cmd)) { + ret = -EINVAL ; +drm_err (&i915->drm,"Failed to %s\n" , __func__); + goto end; + } + + ret =pxp_submit_cmd (i915, cmd, cmd_size_in_dw); +if (ret) { +drm_err (&i915->drm,"Failed to pxp_submit_cmd()\n" ); + goto end; + } + +end: +kfree (cmd); +return ret; +} +int pxp_sm_set_kcr_init_reg (struct drm_i915_private *i915) {int ret;
drivers/gpu/drm/i915/pxp/intel_pxp_sm.h +16 -0
@@ -23,6 +23,22 @@#define SESSION_TYPE_MASK BIT(7)#define SESSION_ID_MASK (BIT(7) - 1) +/* PXP GPU command definitions */ + +/* MI_SET_APPID */ +#define MI_SET_APPID_TYPE1_APP BIT(7) +#define MI_SET_APPID_SESSION_ID (x) ((x) << 0) + +/* MI_FLUSH_DW */ +#define MI_FLUSH_DW_DW0_PROTECTED_MEMORY_ENABLE BIT(22) + +/* MI_WAIT */ +#define MFX_WAIT_DW0_PXP_SYNC_CONTROL_FLAG BIT(9) +#define MFX_WAIT_DW0_MFX_SYNC_CONTROL_FLAG BIT(8) + +/* CRYPTO_KEY_EXCHANGE */ +#define CRYPTO_KEY_EXCHANGE ((0x3 << 29) | (0x01609 << 16)) +enum pxp_session_types {SESSION_TYPE_TYPE0 =0 ,SESSION_TYPE_TYPE1 =1 ,
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC v4 12/26 drm/i915/pxp: Implement ioctl action to terminate the session
In reply to Huang, Sean ZImplement the PXP ioctl action to allow user space driver to terminate the hardware session and cleanup its software session state. PXP sends the session termination command to GPU once receves this ioctl action.
--- drivers/gpu/drm/i915/pxp/intel_pxp.c | 7 + drivers/gpu/drm/i915/pxp/intel_pxp_sm.c | 190 ++++++++++++++++++++++++ drivers/gpu/drm/i915/pxp/intel_pxp_sm.h | 5 + 3 files changed, 202 insertions(+)
drivers/gpu/drm/i915/pxp/intel_pxp.c +7 -0
@@ -57,6 +57,13 @@ int i915_pxp_ops_ioctl(struct drm_device *dev, void *data, struct drm_file *drmf ret =pxp_sm_mark_protected_session_in_play (i915, params->session_type, params->pxp_tag); + }else if (params->req_session_state ==PXP_SM_REQ_SESSION_TERMINATE ) { + ret =pxp_sm_terminate_protected_session_safe (i915,0 , + params->session_type, + params->pxp_tag); + +if (!intel_pxp_sm_is_any_type0_session_in_play (i915,PROTECTION_MODE_ALL )) +intel_pxp_destroy_user_ctx_list (i915); }else { ret = -EINVAL ; goto end;
drivers/gpu/drm/i915/pxp/intel_pxp_sm.c +190 -0
199 lines not on this page · raw message
drivers/gpu/drm/i915/pxp/intel_pxp_sm.h +5 -0
@@ -105,6 +105,11 @@ int intel_pxp_sm_reserve_session(struct drm_i915_private *i915, struct drm_file u32 *pxp_tag);int pxp_sm_mark_protected_session_in_play (struct drm_i915_private *i915,int session_type,u32 session_id); +int pxp_sm_terminate_protected_session_safe (struct drm_i915_private *i915,int context_id, +int session_type,int session_id); +int pxp_sm_terminate_protected_session_unsafe (struct drm_i915_private *i915,int session_type, +int session_id);int pxp_sm_set_kcr_init_reg (struct drm_i915_private *i915); +bool intel_pxp_sm_is_any_type0_session_in_play (struct drm_i915_private *i915,int protection_mode);#endif /* __INTEL_PXP_SM_H__ */
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC v4 13/26 drm/i915/pxp: Enable ioctl action to query PXP tag
In reply to Huang, Sean ZEnable the PXP ioctl action to allow user space driver to query the PXP tag, which is a 32-bit bitwise value indicating the current session info, including protection type, session id, and whether the session is enabled.
--- drivers/gpu/drm/i915/pxp/intel_pxp.c | 7 +++++++ drivers/gpu/drm/i915/pxp/intel_pxp.h | 7 +++++++ drivers/gpu/drm/i915/pxp/intel_pxp_sm.c | 20 ++++++++++++++++++++ drivers/gpu/drm/i915/pxp/intel_pxp_sm.h | 3 +++ 4 files changed, 37 insertions(+)
drivers/gpu/drm/i915/pxp/intel_pxp.c +7 -0
@@ -70,6 +70,13 @@ int i915_pxp_ops_ioctl(struct drm_device *dev, void *data, struct drm_file *drmf }break ; } +case PXP_ACTION_QUERY_PXP_TAG : + { +struct pxp_sm_query_pxp_tag *params = &pxp_info.query_pxp_tag; + + ret =pxp_sm_ioctl_query_pxp_tag (i915, ¶ms->session_is_alive, ¶ms->pxp_tag); +break ; + }case PXP_ACTION_SET_USER_CONTEXT : { ret =intel_pxp_set_user_ctx (i915, pxp_info.set_user_ctx);
drivers/gpu/drm/i915/pxp/intel_pxp.h +7 -0
@@ -31,6 +31,7 @@ enum pxp_sm_session_req { };enum pxp_ioctl_action { +PXP_ACTION_QUERY_PXP_TAG =0 ,PXP_ACTION_SET_SESSION_STATUS =1 ,PXP_ACTION_SET_USER_CONTEXT =5 , };
@@ -42,6 +43,11 @@ enum pxp_sm_status {PXP_SM_STATUS_ERROR_UNKNOWN }; +struct pxp_sm_query_pxp_tag { +u32 session_is_alive; +u32 pxp_tag;/* in - Session ID, out pxp tag */ +}; +struct pxp_sm_set_session_status_params {/** @pxp_tag: in [optional], for Arbitrator session, out pxp tag */ u32 pxp_tag;
@@ -57,6 +63,7 @@ struct pxp_info {u32 action;u32 sm_status;union { +struct pxp_sm_query_pxp_tag query_pxp_tag;struct pxp_sm_set_session_status_params set_session_status;u32 set_user_ctx; };
drivers/gpu/drm/i915/pxp/intel_pxp_sm.c +20 -0
@@ -970,6 +970,26 @@ int pxp_sm_terminate_protected_session_unsafe(struct drm_i915_private *i915, intreturn ret; } +int pxp_sm_ioctl_query_pxp_tag (struct drm_i915_private *i915,u32 *session_is_alive,u32 *pxp_tag) +{ +int session_type =0 ; +int session_index =0 ; +int ret; + +if (!session_is_alive || !pxp_tag) +return -EINVAL ; + + ret =pxp_get_session_index (i915, *pxp_tag, &session_index, &session_type); +if (ret) { +drm_err (&i915->drm,"Failed to __pxpsessionid_to_sessionid\n" ); +return ret; + } + + *pxp_tag =intel_pxp_get_pxp_tag (i915, session_index, session_type, session_is_alive); +end: +return 0 ; +} +int pxp_sm_set_kcr_init_reg (struct drm_i915_private *i915) {int ret;
drivers/gpu/drm/i915/pxp/intel_pxp_sm.h +3 -0
@@ -109,7 +109,10 @@ int pxp_sm_terminate_protected_session_safe(struct drm_i915_private *i915, int c int session_type, int session_id);int pxp_sm_terminate_protected_session_unsafe (struct drm_i915_private *i915,int session_type,int session_id); +int pxp_sm_ioctl_query_pxp_tag (struct drm_i915_private *i915,u32 *session_is_alive,u32 *pxp_tag);int pxp_sm_set_kcr_init_reg (struct drm_i915_private *i915); +u32 intel_pxp_get_pxp_tag (struct drm_i915_private *i915,int session_idx, +int session_type,u32 *session_is_alive);bool intel_pxp_sm_is_any_type0_session_in_play (struct drm_i915_private *i915,int protection_mode);#endif /* __INTEL_PXP_SM_H__ */
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC v4 14/26 drm/i915/pxp: Destroy all type0 sessions upon teardown
In reply to Huang, Sean ZTeardown is triggered when the display topology changes and no long meets the secure playback requirement, and hardware trashes all the encryption keys for display. So as a result, PXP should handle such case and terminate all the type0 sessions.
--- drivers/gpu/drm/i915/pxp/intel_pxp.c | 6 +- drivers/gpu/drm/i915/pxp/intel_pxp_sm.c | 112 +++++++++++++++++++++++- drivers/gpu/drm/i915/pxp/intel_pxp_sm.h | 1 + 3 files changed, 117 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/pxp/intel_pxp.c +5 -1
@@ -123,16 +123,20 @@ static void intel_pxp_mask_irq(struct intel_gt *gt, u32 mask)static int intel_pxp_teardown_required_callback (struct drm_i915_private *i915) { +int ret; +mutex_lock (&i915->pxp.ctx->ctx_mutex); i915->pxp.ctx->global_state_attacked = true; i915->pxp.ctx->flag_display_hm_surface_keys = false; + ret =intel_pxp_sm_terminate_all_active_sessions (i915,SESSION_TYPE_TYPE0 ); +intel_pxp_destroy_user_ctx_list (i915);mutex_unlock (&i915->pxp.ctx->ctx_mutex); -return 0 ; +return ret; }static int intel_pxp_global_terminate_complete_callback (struct drm_i915_private *i915)
drivers/gpu/drm/i915/pxp/intel_pxp_sm.c +111 -1
130 lines not on this page · raw message
drivers/gpu/drm/i915/pxp/intel_pxp_sm.h +1 -0
@@ -109,6 +109,7 @@ int pxp_sm_terminate_protected_session_safe(struct drm_i915_private *i915, int c int session_type, int session_id);int pxp_sm_terminate_protected_session_unsafe (struct drm_i915_private *i915,int session_type,int session_id); +int intel_pxp_sm_terminate_all_active_sessions (struct drm_i915_private *i915,int session_type);int pxp_sm_ioctl_query_pxp_tag (struct drm_i915_private *i915,u32 *session_is_alive,u32 *pxp_tag);int pxp_sm_set_kcr_init_reg (struct drm_i915_private *i915); u32 intel_pxp_get_pxp_tag(struct drm_i915_private *i915, int session_idx,
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC v4 15/26 drm/i915/pxp: Termiante the session upon app crash
In reply to Huang, Sean ZPXP should terminate the hardware session and cleanup the software state gracefully when the application has established the protection session, but doesn't close the session correctly due to some cases like application crash.
--- drivers/gpu/drm/i915/i915_drv.c | 2 ++ drivers/gpu/drm/i915/pxp/intel_pxp.c | 10 ++++++++++ drivers/gpu/drm/i915/pxp/intel_pxp.h | 5 +++++ drivers/gpu/drm/i915/pxp/intel_pxp_sm.c | 19 +++++++++++++++++++ drivers/gpu/drm/i915/pxp/intel_pxp_sm.h | 1 + 5 files changed, 37 insertions(+)
drivers/gpu/drm/i915/i915_drv.c +2 -0
@@ -1028,6 +1028,8 @@ static void i915_driver_postclose(struct drm_device *dev, struct drm_file *file)/* Catch up with all the deferred frees from "this" client */ i915_gem_flush_free_objects (to_i915 (dev)); + +intel_pxp_close (to_i915 (dev), file); }static void intel_suspend_encoders (struct drm_i915_private *dev_priv)
drivers/gpu/drm/i915/pxp/intel_pxp.c +10 -0
@@ -101,6 +101,16 @@ int i915_pxp_ops_ioctl(struct drm_device *dev, void *data, struct drm_file *drmfreturn ret; } +void intel_pxp_close (struct drm_i915_private *i915,struct drm_file *drmfile) +{ +if (!i915 || !i915->pxp.ctx || !drmfile) +return ; + +mutex_lock (&i915->pxp.ctx->ctx_mutex); +intel_pxp_sm_close (i915, drmfile); +mutex_unlock (&i915->pxp.ctx->ctx_mutex); +} +static void intel_pxp_write_irq_mask_reg (struct drm_i915_private *i915,u32 mask) {/* crypto mask is in bit31-16 (Engine1 Interrupt Mask) */
drivers/gpu/drm/i915/pxp/intel_pxp.h +5 -0
@@ -89,6 +89,7 @@ struct drm_i915_private;#ifdef CONFIG_DRM_I915_PXP int i915_pxp_ops_ioctl (struct drm_device *dev,void *data,struct drm_file *drmfile); +void intel_pxp_close (struct drm_i915_private *i915,struct drm_file *drmfile);void intel_pxp_irq_handler (struct intel_gt *gt,u16 iir);int i915_pxp_teardown_required_callback (struct drm_i915_private *i915);int i915_pxp_global_terminate_complete_callback (struct drm_i915_private *i915);
@@ -101,6 +102,10 @@ static inline int i915_pxp_ops_ioctl(struct drm_device *dev, void *data, structreturn 0 ; } +static inline void intel_pxp_close (struct drm_i915_private *i915,struct drm_file *drmfile) +{ +} +static inline void intel_pxp_irq_handler (struct intel_gt *gt,u16 iir) { }
drivers/gpu/drm/i915/pxp/intel_pxp_sm.c +19 -0
@@ -1132,3 +1132,22 @@ bool intel_pxp_sm_is_any_type0_session_in_play(struct drm_i915_private *i915, inreturn false; } + +int intel_pxp_sm_close (struct drm_i915_private *i915,struct drm_file *drmfile) +{ +struct pxp_protected_session *s, *n; +int ret =0 ; + +list_for_each_entry_safe (s, n,pxp_session_list (i915,SESSION_TYPE_TYPE0 ), session_list) { +if (s->drmfile && s->drmfile == drmfile && s->pid ==pid_nr (drmfile->pid)) { + ret =terminate_protected_session (i915,0 , s->session_type, + s->session_index, false); +if (ret) { +drm_err (&i915->drm,"Failed to terminate_protected_session()\n" ); +return ret; + } + } + } + +return ret; +}
drivers/gpu/drm/i915/pxp/intel_pxp_sm.h +1 -0
@@ -115,5 +115,6 @@ int pxp_sm_set_kcr_init_reg(struct drm_i915_private *i915);u32 intel_pxp_get_pxp_tag (struct drm_i915_private *i915,int session_idx,int session_type,u32 *session_is_alive);bool intel_pxp_sm_is_any_type0_session_in_play (struct drm_i915_private *i915,int protection_mode); +int intel_pxp_sm_close (struct drm_i915_private *i915,struct drm_file *drmfile);#endif /* __INTEL_PXP_SM_H__ */
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC v4 16/26 drm/i915/pxp: Enable PXP power management
In reply to Huang, Sean ZDuring 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 terminate all the hardware sessions and cleanup all the software states after the power cycle.
--- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/i915_drv.c | 8 +++ drivers/gpu/drm/i915/pxp/intel_pxp_pm.c | 72 +++++++++++++++++++++++++ drivers/gpu/drm/i915/pxp/intel_pxp_pm.h | 31 +++++++++++ 4 files changed, 112 insertions(+) create mode 100644 drivers/gpu/drm/i915/pxp/intel_pxp_pm.c create mode 100644 drivers/gpu/drm/i915/pxp/intel_pxp_pm.h
drivers/gpu/drm/i915/Makefile +1 -0
@@ -258,6 +258,7 @@ i915-y += i915_perf.o i915-$(CONFIG_DRM_I915_PXP) += \ pxp/intel_pxp.o \ pxp/intel_pxp_context.o \ + pxp/intel_pxp_pm.o \ pxp/intel_pxp_sm.o # Post-mortem debug and GPU hang state capture
drivers/gpu/drm/i915/i915_drv.c +8 -0
@@ -68,6 +68,8 @@#include "gt/intel_gt_pm.h" #include "gt/intel_rc6.h" +#include "pxp/intel_pxp_pm.h" +#include "i915_debugfs.h" #include "i915_drv.h" #include "i915_ioc32.h"
@@ -1094,6 +1096,8 @@ static int i915_drm_prepare(struct drm_device *dev)*/ i915_gem_suspend (i915); +intel_pxp_pm_prepare_suspend (i915); +return 0 ; }
@@ -1279,6 +1283,8 @@ static int i915_drm_resume(struct drm_device *dev)intel_gvt_resume (dev_priv); +intel_pxp_pm_resume (dev_priv); +enable_rpm_wakeref_asserts (&dev_priv->runtime_pm);return 0 ;
@@ -1350,6 +1356,8 @@ static int i915_drm_resume_early(struct drm_device *dev)intel_power_domains_resume (dev_priv); +intel_pxp_pm_resume_early (dev_priv); +enable_rpm_wakeref_asserts (&dev_priv->runtime_pm);return ret;
drivers/gpu/drm/i915/pxp/intel_pxp_pm.c new file +72 -0
72 lines not on this page · raw message
drivers/gpu/drm/i915/pxp/intel_pxp_pm.h new file +31 -0
@@ -0,0 +1,31 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright(c) 2020, Intel Corporation. All rights reserved. +*/ + +#ifndef __INTEL_PXP_PM_H__ +#define __INTEL_PXP_PM_H__ + +#include "i915_drv.h" + +#ifdef CONFIG_DRM_I915_PXP +void intel_pxp_pm_prepare_suspend (struct drm_i915_private *i915); + +void intel_pxp_pm_resume_early (struct drm_i915_private *i915); +int intel_pxp_pm_resume (struct drm_i915_private *i915); +#else +static inline void intel_pxp_pm_prepare_suspend (struct drm_i915_private *i915) +{ +} + +static inline void intel_pxp_pm_resume_early (struct drm_i915_private *i915) +{ +} + +static inline int intel_pxp_pm_resume (struct drm_i915_private *i915) +{ +return 0 ; +} +#endif + +#endif /* __INTEL_PXP_PM_H__ */
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC v4 17/26 drm/i915/pxp: Implement funcs to create the TEE channel
In reply to Huang, Sean ZCurrently ring3 driver sends the TEE commands directly to TEE, but later, as our design, we would like to make ring3 sending the TEE commands via the ring0 PXP ioctl action instead of TEE ioctl, so we can centralize those protection operations at ring0 PXP.
--- drivers/gpu/drm/i915/Makefile | 3 +- drivers/gpu/drm/i915/i915_drv.c | 1 + drivers/gpu/drm/i915/i915_drv.h | 6 ++ drivers/gpu/drm/i915/pxp/intel_pxp.c | 5 + drivers/gpu/drm/i915/pxp/intel_pxp_tee.c | 127 +++++++++++++++++++++++ drivers/gpu/drm/i915/pxp/intel_pxp_tee.h | 14 +++ include/drm/i915_component.h | 1 + include/drm/i915_pxp_tee_interface.h | 45 ++++++++ 8 files changed, 201 insertions(+), 1 deletion(-) create mode 100644 drivers/gpu/drm/i915/pxp/intel_pxp_tee.c create mode 100644 drivers/gpu/drm/i915/pxp/intel_pxp_tee.h create mode 100644 include/drm/i915_pxp_tee_interface.h
drivers/gpu/drm/i915/Makefile +2 -1
@@ -259,7 +259,8 @@ i915-$(CONFIG_DRM_I915_PXP) += \ pxp/intel_pxp.o \ pxp/intel_pxp_context.o \ pxp/intel_pxp_pm.o \ - pxp/intel_pxp_sm.o + pxp/intel_pxp_sm.o \ + pxp/intel_pxp_tee.o # Post-mortem debug and GPU hang state capture i915-$(CONFIG_DRM_I915_CAPTURE_ERROR) += i915_gpu_error.o
drivers/gpu/drm/i915/i915_drv.c +1 -0
@@ -324,6 +324,7 @@ static int i915_driver_early_probe(struct drm_i915_private *dev_priv)mutex_init (&dev_priv->wm.wm_mutex);mutex_init (&dev_priv->pps_mutex);mutex_init (&dev_priv->hdcp_comp_mutex); +mutex_init (&dev_priv->pxp_tee_comp_mutex);i915_memcpy_init_early (dev_priv);intel_runtime_pm_init_early (&dev_priv->runtime_pm);
drivers/gpu/drm/i915/i915_drv.h +6 -0
@@ -1219,6 +1219,12 @@ struct drm_i915_private {struct intel_pxp pxp; +struct i915_pxp_comp_master *pxp_tee_master; +bool pxp_tee_comp_added; + +/* Mutex to protect the above pxp_tee component related values. */ +struct mutex pxp_tee_comp_mutex; + I915_SELFTEST_DECLARE(struct i915_selftest_stash selftest;)/*
drivers/gpu/drm/i915/pxp/intel_pxp.c +5 -0
@@ -7,6 +7,7 @@#include "intel_pxp.h" #include "intel_pxp_context.h" #include "intel_pxp_sm.h" +#include "intel_pxp_tee.h" int i915_pxp_ops_ioctl (struct drm_device *dev,void *data,struct drm_file *drmfile) {
@@ -210,6 +211,8 @@ int intel_pxp_init(struct drm_i915_private *i915)return ret; } +intel_pxp_tee_component_init (i915); +INIT_WORK (&i915->pxp.irq_work, intel_pxp_irq_work); i915->pxp.handled_irr = (PXP_IRQ_VECTOR_DISPLAY_PXP_STATE_TERMINATED |
@@ -224,6 +227,8 @@ void intel_pxp_uninit(struct drm_i915_private *i915)if (!i915 ||INTEL_GEN (i915) <12 )return ; +intel_pxp_tee_component_fini (i915); +intel_pxp_destroy_ctx (i915); }
drivers/gpu/drm/i915/pxp/intel_pxp_tee.c new file +127 -0
127 lines not on this page · raw message
drivers/gpu/drm/i915/pxp/intel_pxp_tee.h new file +14 -0
@@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright(c) 2020, Intel Corporation. All rights reserved. +*/ + +#ifndef __INTEL_PXP_TEE_H__ +#define __INTEL_PXP_TEE_H__ + +#include "i915_drv.h" + +void intel_pxp_tee_component_init (struct drm_i915_private *i915); +void intel_pxp_tee_component_fini (struct drm_i915_private *i915); + +#endif /* __INTEL_PXP_TEE_H__ */
include/drm/i915_component.h +1 -0
@@ -29,6 +29,7 @@enum i915_component_type {I915_COMPONENT_AUDIO =1 ,I915_COMPONENT_HDCP , +I915_COMPONENT_PXP };/* MAX_PORT is the number of port
include/drm/i915_pxp_tee_interface.h new file +45 -0
45 lines not on this page · raw message
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC v4 18/26 drm/i915/pxp: Implement ioctl action to send TEE commands
In reply to Huang, Sean ZImplement the ioctl action to allow user space driver sends TEE commands via PXP ioctl, instead of TEE iotcl. So we can centralize those protection operations at PXP.
--- drivers/gpu/drm/i915/pxp/intel_pxp.c | 14 ++++++ drivers/gpu/drm/i915/pxp/intel_pxp.h | 18 ++++++++ drivers/gpu/drm/i915/pxp/intel_pxp_tee.c | 55 ++++++++++++++++++++++++ drivers/gpu/drm/i915/pxp/intel_pxp_tee.h | 5 +++ 4 files changed, 92 insertions(+)
drivers/gpu/drm/i915/pxp/intel_pxp.c +14 -0
@@ -78,6 +78,20 @@ int i915_pxp_ops_ioctl(struct drm_device *dev, void *data, struct drm_file *drmf ret =pxp_sm_ioctl_query_pxp_tag (i915, ¶ms->session_is_alive, ¶ms->pxp_tag);break ; } +case PXP_ACTION_TEE_IO_MESSAGE : + { +struct pxp_tee_io_message_params *params = &pxp_info.tee_io_message; + + ret =pxp_tee_ioctl_io_message (i915, + params->msg_in, params->msg_in_size, + params->msg_out, ¶ms->msg_out_size, + params->msg_out_buf_size); +if (ret) { +drm_err (&i915->drm,"Failed to send TEE IO message\n" ); + ret = -EFAULT ; + } +break ; + }case PXP_ACTION_SET_USER_CONTEXT : { ret =intel_pxp_set_user_ctx (i915, pxp_info.set_user_ctx);
drivers/gpu/drm/i915/pxp/intel_pxp.h +18 -0
@@ -33,6 +33,7 @@ enum pxp_sm_session_req {enum pxp_ioctl_action {PXP_ACTION_QUERY_PXP_TAG =0 ,PXP_ACTION_SET_SESSION_STATUS =1 , +PXP_ACTION_TEE_IO_MESSAGE =4 ,PXP_ACTION_SET_USER_CONTEXT =5 , };
@@ -59,12 +60,29 @@ struct pxp_sm_set_session_status_params {u32 req_session_state; }; +/** +* struct pxp_tee_io_message_params - Params to send/receive message to/from TEE. +*/ +struct pxp_tee_io_message_params { +/** @msg_in: in - message input from UMD */ +u8 __user *msg_in; +/** @msg_in_size: in - message input size from UMD */ +u32 msg_in_size; +/** @msg_out: in - message output buffer from UMD */ +u8 __user *msg_out; +/** @msg_out_size: out- message output size from TEE */ +u32 msg_out_size; +/** @msg_out_buf_size: in - message output buffer size from UMD */ +u32 msg_out_buf_size; +}; +struct pxp_info {u32 action;u32 sm_status;union {struct pxp_sm_query_pxp_tag query_pxp_tag;struct pxp_sm_set_session_status_params set_session_status; +struct pxp_tee_io_message_params tee_io_message;u32 set_user_ctx; }; } __attribute__((packed));
drivers/gpu/drm/i915/pxp/intel_pxp_tee.c +55 -0
61 lines not on this page · raw message
drivers/gpu/drm/i915/pxp/intel_pxp_tee.h +5 -0
@@ -11,4 +11,9 @@void intel_pxp_tee_component_init (struct drm_i915_private *i915);void intel_pxp_tee_component_fini (struct drm_i915_private *i915); +int pxp_tee_ioctl_io_message (struct drm_i915_private *i915, +void __user *msg_in_user_ptr,u32 msg_in_size, +void __user *msg_out_user_ptr,u32 *msg_out_size_ptr, +u32 msg_out_buf_size); +#endif /* __INTEL_PXP_TEE_H__ */
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC v4 19/26 drm/i915/pxp: Create the arbitrary session after boot
In reply to Huang, Sean ZCreate the arbitrary session, with the fixed session id 0xf, after system boot, for the case that application allocates the protected buffer without establishing any protection session. Because the hardware requires at least one alive session for protected buffer creation. This arbitrary session needs to be re-created after teardown or power event because hardware encryption key won't be valid after such cases.
--- drivers/gpu/drm/i915/pxp/intel_pxp.c | 47 +++++++++++++++++++++++- drivers/gpu/drm/i915/pxp/intel_pxp.h | 7 ++++ drivers/gpu/drm/i915/pxp/intel_pxp_sm.c | 27 ++++++++++++++ drivers/gpu/drm/i915/pxp/intel_pxp_sm.h | 6 +++ drivers/gpu/drm/i915/pxp/intel_pxp_tee.c | 34 +++++++++++++++++ drivers/gpu/drm/i915/pxp/intel_pxp_tee.h | 6 +++ 6 files changed, 126 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/pxp/intel_pxp.c +46 -1
@@ -126,6 +126,43 @@ void intel_pxp_close(struct drm_i915_private *i915, struct drm_file *drmfile)mutex_unlock (&i915->pxp.ctx->ctx_mutex); } +int intel_pxp_create_arb_session (struct drm_i915_private *i915) +{ +struct pxp_tag pxptag; +int ret; + +lockdep_assert_held (&i915->pxp.ctx->ctx_mutex); + +if (i915->pxp.ctx->flag_display_hm_surface_keys) { +drm_err (&i915->drm,"%s: arb session is alive so skipping the creation\n" , + __func__); +return 0 ; + } + + ret =intel_pxp_sm_reserve_arb_session (i915, &pxptag.value); +if (ret) { +drm_err (&i915->drm,"Failed to reserve session\n" ); + goto end; + } + + ret =intel_pxp_tee_cmd_create_arb_session (i915); +if (ret) { +drm_err (&i915->drm,"Failed to send tee cmd for arb session creation\n" ); + goto end; + } + + ret =pxp_sm_mark_protected_session_in_play (i915,ARB_SESSION_TYPE , pxptag.session_id); +if (ret) { +drm_err (&i915->drm,"Failed to mark session status in play\n" ); + goto end; + } + + i915->pxp.ctx->flag_display_hm_surface_keys = true; + +end: +return ret; +} +static void intel_pxp_write_irq_mask_reg (struct drm_i915_private *i915,u32 mask) {/* crypto mask is in bit31-16 (Engine1 Interrupt Mask) */
@@ -170,9 +207,17 @@ static int intel_pxp_global_terminate_complete_callback(struct drm_i915_privatemutex_lock (&i915->pxp.ctx->ctx_mutex); -if (i915->pxp.ctx->global_state_attacked) +if (i915->pxp.ctx->global_state_attacked) { i915->pxp.ctx->global_state_attacked = false; +/* Re-create the arb session after teardown handle complete */ + ret =intel_pxp_create_arb_session (i915); +if (ret) { +drm_err (&i915->drm,"Failed to create arb session\n" ); + goto end; + } + } +end:mutex_unlock (&i915->pxp.ctx->ctx_mutex);return ret;
drivers/gpu/drm/i915/pxp/intel_pxp.h +7 -0
@@ -108,6 +108,8 @@ struct drm_i915_private;#ifdef CONFIG_DRM_I915_PXP int i915_pxp_ops_ioctl (struct drm_device *dev,void *data,struct drm_file *drmfile);void intel_pxp_close (struct drm_i915_private *i915,struct drm_file *drmfile); +int intel_pxp_create_arb_session (struct drm_i915_private *i915); +void intel_pxp_irq_handler (struct intel_gt *gt,u16 iir);int i915_pxp_teardown_required_callback (struct drm_i915_private *i915);int i915_pxp_global_terminate_complete_callback (struct drm_i915_private *i915);
@@ -124,6 +126,11 @@ static inline void intel_pxp_close(struct drm_i915_private *i915, struct drm_fil { } +static inline int intel_pxp_create_arb_session (struct drm_i915_private *i915) +{ +return 0 ; +}; +static inline void intel_pxp_irq_handler (struct intel_gt *gt,u16 iir) { }
drivers/gpu/drm/i915/pxp/intel_pxp_sm.c +27 -0
@@ -607,6 +607,33 @@ int intel_pxp_sm_reserve_session(struct drm_i915_private *i915, struct drm_filereturn ret; } +int intel_pxp_sm_reserve_arb_session (struct drm_i915_private *i915,u32 *pxp_tag) +{ +int ret; + +lockdep_assert_held (&i915->pxp.ctx->ctx_mutex); + +if (!pxp_tag || !i915) +return -EINVAL ; + + ret =sync_hw_sw_state (i915,ARB_SESSION_INDEX ,ARB_SESSION_TYPE ); +if (unlikely (ret)) + goto end; + + ret =create_new_session_entry (i915,NULL ,0 ,ARB_SESSION_TYPE , +ARB_PROTECTION_MODE ,ARB_SESSION_INDEX ); +if (unlikely (ret)) + goto end; + + ret =pxp_set_pxp_tag (i915,ARB_SESSION_TYPE ,ARB_SESSION_INDEX ,ARB_PROTECTION_MODE ); + +end: +if (ret ==0 ) + *pxp_tag =intel_pxp_get_pxp_tag (i915,ARB_SESSION_INDEX ,ARB_SESSION_TYPE ,NULL ); + +return ret; +} +/** * pxp_sm_mark_protected_session_in_play - To put an reserved protected session to "in_play" state * @i915: i915 device handle.
drivers/gpu/drm/i915/pxp/intel_pxp_sm.h +6 -0
@@ -39,6 +39,11 @@/* CRYPTO_KEY_EXCHANGE */ #define CRYPTO_KEY_EXCHANGE ((0x3 << 29) | (0x01609 << 16)) +/* Arbitrary session */ +#define ARB_SESSION_INDEX 0xf +#define ARB_SESSION_TYPE SESSION_TYPE_TYPE0 +#define ARB_PROTECTION_MODE PROTECTION_MODE_HM +enum pxp_session_types {SESSION_TYPE_TYPE0 =0 ,SESSION_TYPE_TYPE1 =1 ,
@@ -103,6 +108,7 @@ struct pxp_protected_session {int intel_pxp_sm_reserve_session (struct drm_i915_private *i915,struct drm_file *drmfile,int context_id,int session_type,int protection_mode,u32 *pxp_tag); +int intel_pxp_sm_reserve_arb_session (struct drm_i915_private *i915,u32 *pxp_tag);int pxp_sm_mark_protected_session_in_play (struct drm_i915_private *i915,int session_type,u32 session_id); int pxp_sm_terminate_protected_session_safe(struct drm_i915_private *i915, int context_id,
drivers/gpu/drm/i915/pxp/intel_pxp_tee.c +34 -0
@@ -122,6 +122,7 @@ int pxp_tee_ioctl_io_message(struct drm_i915_private *i915,static int i915_pxp_tee_component_bind (struct device *i915_kdev,struct device *tee_kdev,void *data) { +int ret;struct drm_i915_private *i915 =kdev_to_i915 (i915_kdev);if (!i915 || !tee_kdev || !data)
@@ -132,6 +133,16 @@ static int i915_pxp_tee_component_bind(struct device *i915_kdev, i915->pxp_tee_master->tee_dev = tee_kdev;mutex_unlock (&i915->pxp_tee_comp_mutex); +mutex_lock (&i915->pxp.ctx->ctx_mutex); +/* Create arb session only if tee is ready, during system boot or sleep/resume */ + ret =intel_pxp_create_arb_session (i915); +mutex_unlock (&i915->pxp.ctx->ctx_mutex); + +if (ret) { +drm_err (&i915->drm,"Failed to create arb session ret=[%d]\n" , ret); +return ret; + } +return 0 ; }
@@ -180,3 +191,26 @@ void intel_pxp_tee_component_fini(struct drm_i915_private *i915)component_del (i915->drm.dev, &i915_pxp_tee_component_ops); } + +int intel_pxp_tee_cmd_create_arb_session (struct drm_i915_private *i915) +{ +int ret; +u32 msg_out_size_received =0 ; +u32 msg_in[PXP_TEE_ARB_CMD_DW_LEN ] =PXP_TEE_ARB_CMD_BIN ; +u32 msg_out[PXP_TEE_ARB_CMD_DW_LEN ] = {0 }; + +mutex_lock (&i915->pxp_tee_comp_mutex); + + ret =intel_pxp_tee_io_message (i915, + &msg_in, +sizeof (msg_in), + &msg_out, &msg_out_size_received, +sizeof (msg_out)); + +mutex_unlock (&i915->pxp_tee_comp_mutex); + +if (ret) +drm_err (&i915->drm,"Failed to send/receive tee message\n" ); + +return ret; +}
drivers/gpu/drm/i915/pxp/intel_pxp_tee.h +6 -0
@@ -16,4 +16,10 @@ int pxp_tee_ioctl_io_message(struct drm_i915_private *i915, void __user *msg_out_user_ptr, u32 *msg_out_size_ptr, u32 msg_out_buf_size); +int intel_pxp_tee_cmd_create_arb_session (struct drm_i915_private *i915); + +/* TEE command to create the arbitrary session */ +#define PXP_TEE_ARB_CMD_BIN {0x00040000, 0x0000001e, 0x00000000, 0x00000008, 0x00000002, 0x0000000f} +#define PXP_TEE_ARB_CMD_DW_LEN (6) +#endif /* __INTEL_PXP_TEE_H__ */
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC v4 20/26 drm/i915/pxp: Add i915 trace logs for PXP operations
In reply to Huang, Sean ZAdd several i915 trace logs for PXP calls for debugging or performance measurement, including:
(1) PXP ioctl
(2) PXP teardown callbacks
To trun on this feature, we need to set "CONFIG_DRM_I915_LOW_LEVEL_TRACEPOINTS=y" in .config for compiling the Linux kernel.
--- drivers/gpu/drm/i915/i915_trace.h | 44 ++++++++++++++++++++++++++++ drivers/gpu/drm/i915/pxp/intel_pxp.c | 6 ++++ 2 files changed, 50 insertions(+)
drivers/gpu/drm/i915/i915_trace.h +44 -0
@@ -1031,6 +1031,50 @@ DEFINE_EVENT(i915_context, i915_context_free,TP_ARGS (ctx) ); +TRACE_EVENT (i915_pxp_ops_ioctl, + TP_PROTO(struct drm_device *dev, void *data, struct drm_file *file, u32 action), +TP_ARGS (dev, data, file, action), + +TP_STRUCT__entry ( + __field(struct drm_device *, dev) + __field(void *, data) + __field(struct drm_file *, file) +__field (u32, action) + ), + +TP_fast_assign ( + __entry->dev = dev; + __entry->data = data; + __entry->file = file; + __entry->action = action; + ), + +TP_printk ("dev=%p, data=%p, file=%p, action=%u" , + __entry->dev, __entry->data, __entry->file, __entry->action) +); + +TRACE_EVENT (i915_pxp_teardown_required_callback, + TP_PROTO(bool global_state_attacked), +TP_ARGS (global_state_attacked), + +TP_STRUCT__entry (__field (bool, global_state_attacked)), + + TP_fast_assign(__entry->global_state_attacked = global_state_attacked;), + +TP_printk ("global_state_attacked=%s" ,yesno (__entry->global_state_attacked)) +); + +TRACE_EVENT (i915_pxp_global_terminate_complete_callback, + TP_PROTO(bool global_state_attacked), +TP_ARGS (global_state_attacked), + +TP_STRUCT__entry (__field (bool, global_state_attacked)), + + TP_fast_assign(__entry->global_state_attacked = global_state_attacked;), + +TP_printk ("global_state_attacked=%s" ,yesno (__entry->global_state_attacked)) +); +#endif /* _I915_TRACE_H_ */ /* This part must be outside protection */
drivers/gpu/drm/i915/pxp/intel_pxp.c +6 -0
@@ -8,6 +8,7 @@#include "intel_pxp_context.h" #include "intel_pxp_sm.h" #include "intel_pxp_tee.h" +#include "i915_trace.h" int i915_pxp_ops_ioctl (struct drm_device *dev,void *data,struct drm_file *drmfile) {
@@ -23,6 +24,8 @@ int i915_pxp_ops_ioctl(struct drm_device *dev, void *data, struct drm_file *drmfif (copy_from_user (&pxp_info, pxp_ops->info_ptr,sizeof (pxp_info)) !=0 )return -EFAULT ; +trace_i915_pxp_ops_ioctl (dev, data, drmfile, pxp_info.action); +mutex_lock (&i915->pxp.ctx->ctx_mutex);if (i915->pxp.ctx->global_state_in_suspend) {
@@ -198,6 +201,8 @@ static int intel_pxp_teardown_required_callback(struct drm_i915_private *i915)mutex_unlock (&i915->pxp.ctx->ctx_mutex); +trace_i915_pxp_teardown_required_callback (i915->pxp.ctx->global_state_attacked); +return ret; }
@@ -220,6 +225,7 @@ static int intel_pxp_global_terminate_complete_callback(struct drm_i915_private end:mutex_unlock (&i915->pxp.ctx->ctx_mutex); +trace_i915_pxp_global_terminate_complete_callback (i915->pxp.ctx->global_state_attacked);return ret; }
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC v4 21/26 drm/i915/pxp: Expose session state for display protection flip
In reply to Huang, Sean ZImplement the intel_pxp_gem_object_status() to allow i915 display querying the current PXP session state. In the design, display should not perform protection flip on the protected buffers if there is no PXP session alive.
--- drivers/gpu/drm/i915/pxp/intel_pxp.c | 8 ++++++++ drivers/gpu/drm/i915/pxp/intel_pxp.h | 7 +++++++ 2 files changed, 15 insertions(+)
drivers/gpu/drm/i915/pxp/intel_pxp.c +8 -0
@@ -326,3 +326,11 @@ void intel_pxp_irq_handler(struct intel_gt *gt, u16 iir) i915->pxp.current_events |= events;schedule_work (&i915->pxp.irq_work); } + +bool intel_pxp_gem_object_status (struct drm_i915_private *i915) +{ +if (i915->pxp.ctx && i915->pxp.ctx->flag_display_hm_surface_keys) +return true; +else +return false; +}
drivers/gpu/drm/i915/pxp/intel_pxp.h +7 -0
@@ -116,6 +116,8 @@ int i915_pxp_global_terminate_complete_callback(struct drm_i915_private *i915);int intel_pxp_init (struct drm_i915_private *i915);void intel_pxp_uninit (struct drm_i915_private *i915); + +bool intel_pxp_gem_object_status (struct drm_i915_private *i915);#else static inline int i915_pxp_ops_ioctl (struct drm_device *dev,void *data,struct drm_file *drmfile) {
@@ -153,6 +155,11 @@ static inline int intel_pxp_init(struct drm_i915_private *i915)static inline void intel_pxp_uninit (struct drm_i915_private *i915) { } + +static inline bool intel_pxp_gem_object_status (struct drm_i915_private *i915) +{ +return false; +}#endif #endif /* __INTEL_PXP_PM_H__ */
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC v4 22/26 mei: pxp: export pavp client to me client bus
In reply to Huang, Sean ZFrom: Vitaly Lubart <[email protected]>
Export PAVP client to work with i915_cp driver,
for binding it uses kernel component framework.
--- drivers/misc/mei/Kconfig | 2 + drivers/misc/mei/Makefile | 1 + drivers/misc/mei/pxp/Kconfig | 13 ++ drivers/misc/mei/pxp/Makefile | 7 + drivers/misc/mei/pxp/mei_pxp.c | 230 +++++++++++++++++++++++++++++++++ drivers/misc/mei/pxp/mei_pxp.h | 18 +++ 6 files changed, 271 insertions(+) create mode 100644 drivers/misc/mei/pxp/Kconfig create mode 100644 drivers/misc/mei/pxp/Makefile create mode 100644 drivers/misc/mei/pxp/mei_pxp.c create mode 100644 drivers/misc/mei/pxp/mei_pxp.h
drivers/misc/mei/Kconfig +2 -0
@@ -57,3 +57,5 @@ config INTEL_MEI_VIRTIO device over virtio. source "drivers/misc/mei/hdcp/Kconfig" +source "drivers/misc/mei/pxp/Kconfig" +
drivers/misc/mei/Makefile +1 -0
@@ -29,3 +29,4 @@ mei-$(CONFIG_EVENT_TRACING) += mei-trace.o CFLAGS_mei-trace.o = -I$(src) obj-$(CONFIG_INTEL_MEI_HDCP) += hdcp/ +obj-$(CONFIG_INTEL_MEI_PXP) += pxp/
drivers/misc/mei/pxp/Kconfig new file +13 -0
@@ -0,0 +1,13 @@ + +# SPDX-License-Identifier: GPL-2.0 +# Copyright (c) 2020, Intel Corporation. All rights reserved. +# +config INTEL_MEI_PXP + tristate "Intel PXP services of ME Interface" + select INTEL_MEI_ME + depends on DRM_I915 + help + MEI Support for PXP Services on Intel platforms. + + Enables the ME FW services required for PXP support through + I915 display driver of Intel.
drivers/misc/mei/pxp/Makefile new file +7 -0
@@ -0,0 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0 +# +# Copyright (c) 2020, Intel Corporation. All rights reserved. +# +# Makefile - PXP client driver for Intel MEI Bus Driver. + +obj-$(CONFIG_INTEL_MEI_PXP) += mei_pxp.o
drivers/misc/mei/pxp/mei_pxp.c new file +230 -0
230 lines not on this page · raw message
drivers/misc/mei/pxp/mei_pxp.h new file +18 -0
@@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* +* Copyright © 2020 Intel Corporation +* +* Authors: +* Vitaly Lubart <[email protected]> +*/ + +#ifndef __MEI_PXP_H__ +#define __MEI_PXP_H__ + +/* me_pxp_status: Enumeration of all PXP Status Codes */ +enum me_pxp_status { +ME_PXP_STATUS_SUCCESS =0x0000 , + +}; + +#endif /* __MEI_PXP_H__ */
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC v4 23/26 drm/i915/uapi: introduce drm_i915_gem_create_ext
In reply to Huang, Sean ZFrom: Bommu Krishnaiah <[email protected]>
Same old gem_create but with now with extensions support. This is needed to support various upcoming usecases. For now we use the extensions mechanism to support PAVP.
--- drivers/gpu/drm/i915/i915_drv.c | 2 +- drivers/gpu/drm/i915/i915_gem.c | 42 ++++++++++++++++++++++++++++- include/uapi/drm/i915_drm.h | 47 +++++++++++++++++++++++++++++++++ 3 files changed, 89 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/i915_drv.c +1 -1
@@ -1744,7 +1744,7 @@ static const struct drm_ioctl_desc i915_ioctls[] = {DRM_IOCTL_DEF_DRV (I915_GEM_THROTTLE , i915_gem_throttle_ioctl,DRM_RENDER_ALLOW ),DRM_IOCTL_DEF_DRV (I915_GEM_ENTERVT , drm_noop,DRM_AUTH |DRM_MASTER |DRM_ROOT_ONLY ),DRM_IOCTL_DEF_DRV (I915_GEM_LEAVEVT , drm_noop,DRM_AUTH |DRM_MASTER |DRM_ROOT_ONLY ), -DRM_IOCTL_DEF_DRV (I915_GEM_CREATE , i915_gem_create_ioctl,DRM_RENDER_ALLOW ), +DRM_IOCTL_DEF_DRV (I915_GEM_CREATE_EXT , i915_gem_create_ioctl,DRM_RENDER_ALLOW ),DRM_IOCTL_DEF_DRV (I915_GEM_PREAD , i915_gem_pread_ioctl,DRM_RENDER_ALLOW ),DRM_IOCTL_DEF_DRV (I915_GEM_PWRITE , i915_gem_pwrite_ioctl,DRM_RENDER_ALLOW ), DRM_IOCTL_DEF_DRV(I915_GEM_MMAP, i915_gem_mmap_ioctl, DRM_RENDER_ALLOW),
drivers/gpu/drm/i915/i915_gem.c +41 -1
63 lines not on this page · raw message
include/uapi/drm/i915_drm.h +47 -0
65 lines not on this page · raw message
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC v4 24/26 drm/i915/pxp: User interface for Protected buffer
In reply to Huang, Sean ZFrom: Bommu Krishnaiah <[email protected]>
This api allow user mode to create Protected buffer and context creation.
--- drivers/gpu/drm/i915/gem/i915_gem_context.c | 15 ++++++++++-- drivers/gpu/drm/i915/gem/i915_gem_context.h | 10 ++++++++ .../gpu/drm/i915/gem/i915_gem_context_types.h | 2 +- .../gpu/drm/i915/gem/i915_gem_object_types.h | 5 ++++ drivers/gpu/drm/i915/i915_gem.c | 23 +++++++++++++++---- include/uapi/drm/i915_drm.h | 19 +++++++++++++++ 6 files changed, 67 insertions(+), 7 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_context.c +13 -2
@@ -2060,12 +2060,23 @@ static int ctx_setparam(struct drm_i915_file_private *fpriv,case I915_CONTEXT_PARAM_RECOVERABLE :if (args->size) ret = -EINVAL ; -else if (args->value) -i915_gem_context_set_recoverable (ctx); +else if (args->value) { +if (!i915_gem_context_is_protected (ctx)) +i915_gem_context_set_recoverable (ctx); +else + ret = -EPERM ; + }else i915_gem_context_clear_recoverable (ctx);break ; +case I915_CONTEXT_PARAM_PROTECTED_CONTENT : +if (args->size) + ret = -EINVAL ; +else if (args->value) +i915_gem_context_set_protected (ctx); +break ; +case I915_CONTEXT_PARAM_PRIORITY : ret =set_priority (ctx, args);break ;
drivers/gpu/drm/i915/gem/i915_gem_context.h +10 -0
@@ -70,6 +70,16 @@ static inline void i915_gem_context_set_recoverable(struct i915_gem_context *ctxset_bit (UCONTEXT_RECOVERABLE , &ctx->user_flags); } +static inline void i915_gem_context_set_protected (struct i915_gem_context *ctx) +{ +set_bit (UCONTEXT_PROTECTED , &ctx->user_flags); +} + +static inline bool i915_gem_context_is_protected (struct i915_gem_context *ctx) +{ +return test_bit (UCONTEXT_PROTECTED , &ctx->user_flags); +} +static inline void i915_gem_context_clear_recoverable (struct i915_gem_context *ctx) {clear_bit (UCONTEXT_RECOVERABLE , &ctx->user_flags);
drivers/gpu/drm/i915/gem/i915_gem_context_types.h +1 -1
@@ -135,7 +135,7 @@ struct i915_gem_context {#define UCONTEXT_BANNABLE 2#define UCONTEXT_RECOVERABLE 3#define UCONTEXT_PERSISTENCE 4 - +#define UCONTEXT_PROTECTED 5/** * @flags: small set of booleans */
drivers/gpu/drm/i915/gem/i915_gem_object_types.h +5 -0
@@ -161,6 +161,11 @@ struct drm_i915_gem_object { } mmo; I915_SELFTEST_DECLARE(struct list_head st_link); +/** +* @user_flags: small set of booleans set by the user +*/ +unsigned long user_flags; +#define I915_BO_PROTECTED BIT(0)unsigned long flags;#define I915_BO_ALLOC_CONTIGUOUS BIT(0)
drivers/gpu/drm/i915/i915_gem.c +19 -4
@@ -184,7 +184,8 @@ static int i915_gem_create(struct drm_file *file, struct intel_memory_region *mr, u64 *size_p, - u32 *handle_p) + u32 *handle_p, + u64 user_flags) { struct drm_i915_gem_object *obj;u32 handle;
@@ -204,6 +205,8 @@ i915_gem_create(struct drm_file *file,if (IS_ERR (obj))return PTR_ERR (obj); + obj->user_flags = user_flags; + ret =drm_gem_handle_create (file, &obj->base, &handle);/* drop reference from allocate - handle holds it now */ i915_gem_object_put (obj);
@@ -258,11 +261,12 @@ i915_gem_dumb_create(struct drm_file *file,return i915_gem_create (file,intel_memory_region_by_type (to_i915 (dev), mem_type), - &args->size, &args->handle); + &args->size, &args->handle,0 ); }struct create_ext { -struct drm_i915_private *i915; +struct drm_i915_private *i915; +unsigned long user_flags; }; static int __create_setparam(struct drm_i915_gem_object_param *args,
@@ -273,6 +277,17 @@ static int __create_setparam(struct drm_i915_gem_object_param *args,return -EINVAL ; } +switch (lower_32_bits (args->param)) { +case I915_PARAM_PROTECTED_CONTENT : +if (args->size) { +return -EINVAL ; + }else if (args->data) { + ext_data->user_flags = args->data; +return 0 ; + } +break ; + } +return -EINVAL ; }
@@ -318,7 +333,7 @@ i915_gem_create_ioctl(struct drm_device *dev, void *data,return i915_gem_create (file,intel_memory_region_by_type (i915,INTEL_MEMORY_SYSTEM ), - &args->size, &args->handle); + &args->size, &args->handle, ext_data.user_flags); } static int
include/uapi/drm/i915_drm.h +19 -0
@@ -1715,6 +1715,15 @@ struct drm_i915_gem_context_param {* Default is 16 KiB. */ #define I915_CONTEXT_PARAM_RINGSIZE 0xc + +/* +* I915_CONTEXT_PARAM_PROTECTED_CONTENT: +* +* If set to true (1) PAVP content protection is enabled. +* When enabled, the context is marked unrecoverable and may +* become invalid due to PAVP teardown event or other error. +*/ +#define I915_CONTEXT_PARAM_PROTECTED_CONTENT 0xd/* Must be kept compact -- no holes and well documented */ __u64 value;
@@ -1734,6 +1743,16 @@ struct drm_i915_gem_object_param {*/ #define I915_OBJECT_PARAM (1ull<<32) +/* +* I915_PARAM_PROTECTED_CONTENT: +* +* If set to true (1) buffer contents is expected to be protected by +* PAVP encryption and requires decryption for scan out and processing. +* Protected buffers can only be used in PAVP protected contexts. +* A protected buffer may become invalid as a result of PAVP teardown. +*/ +#define I915_PARAM_PROTECTED_CONTENT 0x1 +__u64 param;/* Data value or pointer */
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [RFC-v4 24/26] drm/i915/pxp: User interface for Protected buffer
Quoted 170 lines · Sean Z
From: Bommu Krishnaiah <[email protected]>
This api allow user mode to create Protected buffer and context creation.
Signed-off-by Bommu Krishnaiah <[email protected]>Cc Telukuntla Sreedhar <[email protected]>Cc Kondapally Kalyan <[email protected]>Cc Gupta Anshuman <[email protected]>Cc Huang Sean Z <[email protected]>--- drivers/gpu/drm/i915/gem/i915_gem_context.c | 15 ++++++++++-- drivers/gpu/drm/i915/gem/i915_gem_context.h | 10 ++++++++ .../gpu/drm/i915/gem/i915_gem_context_types.h | 2 +- .../gpu/drm/i915/gem/i915_gem_object_types.h | 5 ++++ drivers/gpu/drm/i915/i915_gem.c | 23 +++++++++++++++---- include/uapi/drm/i915_drm.h | 19 +++++++++++++++ 6 files changed, 67 insertions(+), 7 deletions(-)drivers/gpu/drm/i915/gem/i915_gem_context.c +13
-2@@ -2060,12 +2060,23 @@ static int ctx_setparam(struct drm_i915_file_private *fpriv,case I915_CONTEXT_PARAM_RECOVERABLE :if (args->size) ret = -EINVAL ; -else if (args->value) -i915_gem_context_set_recoverable (ctx); +else if (args->value) { +if (!i915_gem_context_is_protected (ctx)) +i915_gem_context_set_recoverable (ctx); +else + ret = -EPERM ; + }else i915_gem_context_clear_recoverable (ctx);break ; +case I915_CONTEXT_PARAM_PROTECTED_CONTENT : +if (args->size) + ret = -EINVAL ; +else if (args->value) +i915_gem_context_set_protected (ctx); +break ; +case I915_CONTEXT_PARAM_PRIORITY : ret =set_priority (ctx, args);break ;drivers/gpu/drm/i915/gem/i915_gem_context.h +10
-0@@ -70,6 +70,16 @@ static inline void i915_gem_context_set_recoverable(struct i915_gem_context *ctxset_bit (UCONTEXT_RECOVERABLE , &ctx->user_flags); } +static inline void i915_gem_context_set_protected (struct i915_gem_context *ctx) +{ +set_bit (UCONTEXT_PROTECTED , &ctx->user_flags); +} + +static inline bool i915_gem_context_is_protected (struct i915_gem_context *ctx) +{ +return test_bit (UCONTEXT_PROTECTED , &ctx->user_flags); +} +static inline void i915_gem_context_clear_recoverable (struct i915_gem_context *ctx) {clear_bit (UCONTEXT_RECOVERABLE , &ctx->user_flags);drivers/gpu/drm/i915/gem/i915_gem_context_types.h +1
-1@@ -135,7 +135,7 @@ struct i915_gem_context {#define UCONTEXT_BANNABLE 2#define UCONTEXT_RECOVERABLE 3#define UCONTEXT_PERSISTENCE 4 - +#define UCONTEXT_PROTECTED 5/** * @flags: small set of booleans */ drivers/gpu/drm/i915/gem/i915_gem_object_types.h +5
-0@@ -161,6 +161,11 @@ struct drm_i915_gem_object { } mmo; I915_SELFTEST_DECLARE(struct list_head st_link); +/** +* @user_flags: small set of booleans set by the user +*/ +unsigned long user_flags; +#define I915_BO_PROTECTED BIT(0)unsigned long flags;#define I915_BO_ALLOC_CONTIGUOUS BIT(0)drivers/gpu/drm/i915/i915_gem.c +19
-4@@ -184,7 +184,8 @@ static int i915_gem_create(struct drm_file *file, struct intel_memory_region *mr, u64 *size_p, - u32 *handle_p) + u32 *handle_p, + u64 user_flags) { struct drm_i915_gem_object *obj;u32 handle;@@ -204,6 +205,8 @@ i915_gem_create(struct drm_file *file,if (IS_ERR (obj))return PTR_ERR (obj); + obj->user_flags = user_flags; + ret =drm_gem_handle_create (file, &obj->base, &handle);/* drop reference from allocate - handle holds it now */ i915_gem_object_put (obj);@@ -258,11 +261,12 @@ i915_gem_dumb_create(struct drm_file *file,return i915_gem_create (file,intel_memory_region_by_type (to_i915 (dev), mem_type), - &args->size, &args->handle); + &args->size, &args->handle,0 ); }struct create_ext { -struct drm_i915_private *i915; +struct drm_i915_private *i915; +unsigned long user_flags; }; static int __create_setparam(struct drm_i915_gem_object_param *args,@@ -273,6 +277,17 @@ static int __create_setparam(struct drm_i915_gem_object_param *args,return -EINVAL ; } +switch (lower_32_bits (args->param)) { +case I915_PARAM_PROTECTED_CONTENT : +if (args->size) { +return -EINVAL ; + }else if (args->data) { + ext_data->user_flags = args->data; +return 0 ; + } +break ; + } +return -EINVAL ; }@@ -318,7 +333,7 @@ i915_gem_create_ioctl(struct drm_device *dev, void *data,return i915_gem_create (file,intel_memory_region_by_type (i915,INTEL_MEMORY_SYSTEM ), - &args->size, &args->handle); + &args->size, &args->handle, ext_data.user_flags); } static intinclude/uapi/drm/i915_drm.h +0
-0@@ -1715,6 +1715,15 @@ struct drm_i915_gem_context_param {* Default is 16 KiB. */
include/uapi/drm/i915_drm.h struct drm_i915_gem_context_param { · line 1726
Quoted 10 lines
include/uapi/drm/i915_drm.h +9
-0#define I915_CONTEXT_PARAM_RINGSIZE 0xc + +/* +* I915_CONTEXT_PARAM_PROTECTED_CONTENT: +* +* If set to true (1) PAVP content protection is enabled. +* When enabled, the context is marked unrecoverable and may +* become invalid due to PAVP teardown event or other error. +*/ +#define I915_CONTEXT_PARAM_PROTECTED_CONTENT 0xd
This is about protected contexts. It should probably go into its own patch along with the code for the gem_context object.
-Lionel
Quoted 10 lines
include/uapi/drm/i915_drm.h +3
-0/* Must be kept compact -- no holes and well documented */ __u64 value;@@ -1734,6 +1743,16 @@ struct drm_i915_gem_object_param {*/ #define I915_OBJECT_PARAM (1ull<<32) +/* +* I915_PARAM_PROTECTED_CONTENT: +*
include/uapi/drm/i915_drm.h struct drm_i915_gem_object_param { · line 1758
Quoted 10 lines
include/uapi/drm/i915_drm.h +7
-0+* If set to true (1) buffer contents is expected to be protected by +* PAVP encryption and requires decryption for scan out and processing. +* Protected buffers can only be used in PAVP protected contexts. +* A protected buffer may become invalid as a result of PAVP teardown. +*/ +#define I915_PARAM_PROTECTED_CONTENT 0x1 +__u64 param;/* Data value or pointer */
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [RFC-v4 24/26] drm/i915/pxp: User interface for Protected buffer
Hi Landwerlin,
Thanks for your feedback, Let me check with the commit owner. And I will upload another reversion once it's done.
Hi Krishnaiah,
May I have your comment for this? Please let me know if there is new revision path thanks.
Best regards,
Sean
-----Original Message-----
From: Lionel Landwerlin <[email protected]>
Sent: Friday, December 4, 2020 6:24 AM
To: Huang, Sean Z <[email protected]>; [email protected]
Cc: Bommu, Krishnaiah <[email protected]>; Kondapally, Kalyan <[email protected]>
Subject: Re: [Intel-gfx] [RFC-v4 24/26] drm/i915/pxp: User interface for Protected buffer
Quoted 172 lines · Sean Z
From: Bommu Krishnaiah <[email protected]>
This api allow user mode to create Protected buffer and context creation.
Signed-off-by Bommu Krishnaiah <[email protected]>Cc Telukuntla Sreedhar <[email protected]>Cc Kondapally Kalyan <[email protected]>Cc Gupta Anshuman <[email protected]>Cc Huang Sean Z <[email protected]>--- drivers/gpu/drm/i915/gem/i915_gem_context.c | 15 ++++++++++-- drivers/gpu/drm/i915/gem/i915_gem_context.h | 10 ++++++++ .../gpu/drm/i915/gem/i915_gem_context_types.h | 2 +- .../gpu/drm/i915/gem/i915_gem_object_types.h | 5 ++++ drivers/gpu/drm/i915/i915_gem.c | 23 +++++++++++++++---- include/uapi/drm/i915_drm.h | 19 +++++++++++++++ 6 files changed, 67 insertions(+), 7 deletions(-)drivers/gpu/drm/i915/gem/i915_gem_context.c +13
-2@@ -2060,12 +2060,23 @@ static int ctx_setparam(struct drm_i915_file_private *fpriv,case I915_CONTEXT_PARAM_RECOVERABLE :if (args->size) ret = -EINVAL ; -else if (args->value) -i915_gem_context_set_recoverable (ctx); +else if (args->value) { +if (!i915_gem_context_is_protected (ctx)) +i915_gem_context_set_recoverable (ctx); +else + ret = -EPERM ; + }else i915_gem_context_clear_recoverable (ctx);break ; +case I915_CONTEXT_PARAM_PROTECTED_CONTENT : +if (args->size) + ret = -EINVAL ; +else if (args->value) +i915_gem_context_set_protected (ctx); +break ; +case I915_CONTEXT_PARAM_PRIORITY : ret =set_priority (ctx, args);break ;drivers/gpu/drm/i915/gem/i915_gem_context.h +8
-0@@ -70,6 +70,16 @@ static inline void i915_gem_context_set_recoverable(struct i915_gem_context *ctxset_bit (UCONTEXT_RECOVERABLE , &ctx->user_flags); } +static inline void i915_gem_context_set_protected (struct +i915_gem_context *ctx) { +set_bit (UCONTEXT_PROTECTED , &ctx->user_flags); } + +static inline bool i915_gem_context_is_protected (struct +i915_gem_context *ctx) { +return test_bit (UCONTEXT_PROTECTED , &ctx->user_flags); } +static inline void i915_gem_context_clear_recoverable (struct i915_gem_context *ctx) { clear_bit(UCONTEXT_RECOVERABLE, &ctx->user_flags); diff --git
a/drivers/gpu/drm/i915/gem/i915_gem_context_types.hb/drivers/gpu/drm/i915/gem/i915_gem_context_types.hindexae14ca24a11f..81ae94c2be86100644drivers/gpu/drm/i915/gem/i915_gem_context_types.h +1
-1@@ -135,7 +135,7 @@ struct i915_gem_context {#define UCONTEXT_BANNABLE 2#define UCONTEXT_RECOVERABLE 3#define UCONTEXT_PERSISTENCE 4 - +#define UCONTEXT_PROTECTED 5/** * @flags: small set of booleans */ drivers/gpu/drm/i915/gem/i915_gem_object_types.h +5
-0@@ -161,6 +161,11 @@ struct drm_i915_gem_object { } mmo; I915_SELFTEST_DECLARE(struct list_head st_link); +/** +* @user_flags: small set of booleans set by the user +*/ +unsigned long user_flags; +#define I915_BO_PROTECTED BIT(0)unsigned long flags;#define I915_BO_ALLOC_CONTIGUOUS BIT(0) diff --git
a/drivers/gpu/drm/i915/i915_gem.cb/drivers/gpu/drm/i915/i915_gem.cindex41698a823737..6a791fd24eaa100644drivers/gpu/drm/i915/i915_gem.c +19
-4@@ -184,7 +184,8 @@ static int i915_gem_create(struct drm_file *file, struct intel_memory_region *mr, u64 *size_p, - u32 *handle_p) + u32 *handle_p, + u64 user_flags) { struct drm_i915_gem_object *obj;u32 handle;@@ -204,6 +205,8 @@ i915_gem_create(struct drm_file *file,if (IS_ERR (obj))return PTR_ERR (obj); + obj->user_flags = user_flags; + ret =drm_gem_handle_create (file, &obj->base, &handle);/* drop reference from allocate - handle holds it now */ i915_gem_object_put (obj);@@ -258,11 +261,12 @@ i915_gem_dumb_create(struct drm_file *file,return i915_gem_create (file,intel_memory_region_by_type (to_i915 (dev), mem_type), - &args->size, &args->handle); + &args->size, &args->handle,0 ); }struct create_ext { -struct drm_i915_private *i915; +struct drm_i915_private *i915; +unsigned long user_flags; }; static int __create_setparam(struct drm_i915_gem_object_param *args,@@ -273,6 +277,17 @@ static int __create_setparam(struct drm_i915_gem_object_param *args,return -EINVAL ; } +switch (lower_32_bits (args->param)) { +case I915_PARAM_PROTECTED_CONTENT : +if (args->size) { +return -EINVAL ; + }else if (args->data) { + ext_data->user_flags = args->data; +return 0 ; + } +break ; + } +return -EINVAL ; }@@ -318,7 +333,7 @@ i915_gem_create_ioctl(struct drm_device *dev, void *data,return i915_gem_create (file,intel_memory_region_by_type (i915,INTEL_MEMORY_SYSTEM ), - &args->size, &args->handle); + &args->size, &args->handle, ext_data.user_flags); } static intinclude/uapi/drm/i915_drm.h +0
-0@@ -1715,6 +1715,15 @@ struct drm_i915_gem_context_param {* Default is 16 KiB. */
include/uapi/drm/i915_drm.h struct drm_i915_gem_context_param { · line 1726
Quoted 10 lines
include/uapi/drm/i915_drm.h +9
-0#define I915_CONTEXT_PARAM_RINGSIZE 0xc + +/* +* I915_CONTEXT_PARAM_PROTECTED_CONTENT: +* +* If set to true (1) PAVP content protection is enabled. +* When enabled, the context is marked unrecoverable and may +* become invalid due to PAVP teardown event or other error. +*/ +#define I915_CONTEXT_PARAM_PROTECTED_CONTENT 0xd
This is about protected contexts. It should probably go into its own patch along with the code for the gem_context object.
-Lionel
Quoted 10 lines
include/uapi/drm/i915_drm.h +3
-0/* Must be kept compact -- no holes and well documented */ __u64 value;@@ -1734,6 +1743,16 @@ struct drm_i915_gem_object_param {*/ #define I915_OBJECT_PARAM (1ull<<32) +/* +* I915_PARAM_PROTECTED_CONTENT: +*
include/uapi/drm/i915_drm.h struct drm_i915_gem_object_param { · line 1758
Quoted 10 lines
include/uapi/drm/i915_drm.h +7
-0+* If set to true (1) buffer contents is expected to be protected by +* PAVP encryption and requires decryption for scan out and processing. +* Protected buffers can only be used in PAVP protected contexts. +* A protected buffer may become invalid as a result of PAVP teardown. +*/ +#define I915_PARAM_PROTECTED_CONTENT 0x1 +__u64 param;/* Data value or pointer */
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC v4 25/26 drm/i915/pxp: Add plane decryption support
In reply to Huang, Sean ZFrom: Anshuman Gupta <[email protected]>
Add support to enable/disable PLANE_SURF Decryption Request bit. It requires only to enable plane decryption support when following condition met.
1. PAVP session is enabled.
2. Buffer object is protected.
v2:
- Rebased to libva_cp-drm-tip_tgl_cp tree.
- Used gen fb obj user_flags instead gem_object_metadata. [Krishna]
--- drivers/gpu/drm/i915/display/intel_sprite.c | 21 ++++++++++++++++++--- drivers/gpu/drm/i915/i915_reg.h | 1 + 2 files changed, 19 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/display/intel_sprite.c +18 -3
@@ -39,6 +39,8 @@#include <drm/drm_plane_helper.h> #include <drm/drm_rect.h> +#include "pxp/intel_pxp.h" +#include "i915_drv.h" #include "i915_trace.h" #include "i915_vgpu.h"
@@ -752,6 +754,11 @@ icl_program_input_csc(struct intel_plane *plane, PLANE_INPUT_CSC_POSTOFF(pipe, plane_id, 2), 0x0); } +static bool intel_fb_obj_protected (const struct drm_i915_gem_object *obj) +{ +return obj->user_flags &I915_BO_PROTECTED ? true : false; +} + static void skl_plane_async_flip(struct intel_plane *plane, const struct intel_crtc_state *crtc_state,
@@ -788,6 +795,7 @@ skl_program_plane(struct intel_plane *plane,u32 surf_addr = plane_state->color_plane[color_plane].offset;u32 stride =skl_plane_stride (plane_state, color_plane);const struct drm_framebuffer *fb = plane_state->hw.fb; +const struct drm_i915_gem_object *obj =intel_fb_obj (fb);int aux_plane =intel_main_to_aux_plane (fb, color_plane);int crtc_x = plane_state->uapi.dst.x1;int crtc_y = plane_state->uapi.dst.y1;
@@ -798,7 +806,7 @@ skl_program_plane(struct intel_plane *plane,u8 alpha = plane_state->hw.alpha >>8 ;u32 plane_color_ctl =0 , aux_dist =0 ;unsigned long irqflags; -u32 keymsk, keymax; +u32 keymsk, keymax, plane_surf;u32 plane_ctl = plane_state->ctl; plane_ctl |=skl_plane_ctl_crtc (crtc_state);
@@ -874,8 +882,15 @@ skl_program_plane(struct intel_plane *plane,* the control register just before the surface register. */ intel_de_write_fw (dev_priv,PLANE_CTL (pipe, plane_id), plane_ctl); -intel_de_write_fw (dev_priv,PLANE_SURF (pipe, plane_id), -intel_plane_ggtt_offset (plane_state) + surf_addr); + plane_surf =intel_plane_ggtt_offset (plane_state) + surf_addr; + +if (intel_pxp_gem_object_status (dev_priv) && +intel_fb_obj_protected (obj)) + plane_surf |=PLANE_SURF_DECRYPTION_ENABLED ; +else + plane_surf &= ~PLANE_SURF_DECRYPTION_ENABLED ; + +intel_de_write_fw (dev_priv,PLANE_SURF (pipe, plane_id), plane_surf);if (plane_state->scaler_id >=0 )skl_program_scaler (plane, crtc_state, plane_state);
drivers/gpu/drm/i915/i915_reg.h +1 -0
@@ -7208,6 +7208,7 @@ enum {#define _PLANE_SURF_3 (pipe) _PIPE(pipe, _PLANE_SURF_3_A, _PLANE_SURF_3_B)#define PLANE_SURF (pipe, plane) \ _MMIO_PLANE(plane, _PLANE_SURF_1(pipe), _PLANE_SURF_2(pipe)) +#define PLANE_SURF_DECRYPTION_ENABLED REG_BIT(2)#define _PLANE_OFFSET_1_B 0x711a4#define _PLANE_OFFSET_2_B 0x712a4
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC v4 26/26 drm/i915/pxp: Enable the PXP ioctl for protected session
In reply to Huang, Sean ZIn the previous commits, we have implemented the PXP ioctl functions. Now we enable those handlers and expose them as PXP ioctl, so allow the user space driver can establish, set, or destory the protected session via this ioctl.
--- drivers/gpu/drm/i915/i915_drv.c | 1 + drivers/gpu/drm/i915/pxp/intel_pxp.h | 48 ------------------ include/uapi/drm/i915_drm.h | 75 ++++++++++++++++++++++++++++ 3 files changed, 76 insertions(+), 48 deletions(-)
drivers/gpu/drm/i915/i915_drv.c +1 -0
@@ -1774,6 +1774,7 @@ static const struct drm_ioctl_desc i915_ioctls[] = {DRM_IOCTL_DEF_DRV (I915_QUERY , i915_query_ioctl,DRM_RENDER_ALLOW ),DRM_IOCTL_DEF_DRV (I915_GEM_VM_CREATE , i915_gem_vm_create_ioctl,DRM_RENDER_ALLOW ),DRM_IOCTL_DEF_DRV (I915_GEM_VM_DESTROY , i915_gem_vm_destroy_ioctl,DRM_RENDER_ALLOW ), + DRM_IOCTL_DEF_DRV(I915_PXP_OPS, i915_pxp_ops_ioctl, DRM_RENDER_ALLOW), }; static const struct drm_driver driver = {
drivers/gpu/drm/i915/pxp/intel_pxp.h +0 -48
54 lines not on this page · raw message
include/uapi/drm/i915_drm.h +75 -0
93 lines not on this page · raw message
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Introduce Intel PXP component (rev4)
In reply to Huang, Sean Z== Series Details ==
== Series Details ==
Series: Introduce Intel PXP component (rev4)
URL : https://patchwork.freedesktop.org/series/84136/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip 3ce53f7dc704 drm/i915/pxp: Introduce Intel PXP component -:108: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #108: new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 125 lines checkedb069e4460363 drm/i915/pxp: Enable PXP irq worker and callback stub9d93e3de599a drm/i915/pxp: Add PXP context for logical hardware states.
-:106: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #106:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 165 lines checkedac644173c4a0 drm/i915/pxp: set KCR reg init during the boot time
-:69: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #69:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 102 lines checked ea5b0b6c33c2 drm/i915/pxp: Implement ioctl action to set the user space context -:109: WARNING:PREFER_PACKED: __packed is preferred over __attribute__((packed)) #109: FILE: drivers/gpu/drm/i915/pxp/intel_pxp.h:40:
+} __attribute__((packed));
total: 0 errors, 1 warnings, 0 checks, 147 lines checkedb2bf2b5d0e5c drm/i915/pxp: Add PXP-related registers into allowlist 791a4cc06927 drm/i915/pxp: Read register to check hardware session state -:19: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'i915' - possible side-effects? #19: FILE: drivers/gpu/drm/i915/pxp/intel_pxp.h:15:
+#define pxp_session_list(i915, session_type) (((session_type) == SESSION_TYPE_TYPE0) ? \
+ &(i915)->pxp.ctx->active_pxp_type0_sessions : &(i915)->pxp.ctx->active_pxp_type1_sessions)
total: 0 errors, 0 warnings, 1 checks, 255 lines checked80f5b789b7aa drm/i915/pxp: Implement funcs to get/set PXP tag89660e95826a drm/i915/pxp: Implement ioctl action to reserve session slot 4e64444547d5 drm/i915/pxp: Implement ioctl action to set session in play a50087361687 drm/i915/pxp: Func to send hardware session termination5c9dfa8888d1 drm/i915/pxp: Implement ioctl action to terminate the session 260be06ba629 drm/i915/pxp: Enable ioctl action to query PXP tag789007105c02 drm/i915/pxp: Destroy all type0 sessions upon teardown99e9bd56cb87 drm/i915/pxp: Termiante the session upon app crashdb542427db49 drm/i915/pxp: Enable PXP power management
-:67: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #67:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 142 lines checked62932c88f944 drm/i915/pxp: Implement funcs to create the TEE channel
-:87: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #87:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 244 lines checked 87ef8cfabefd drm/i915/pxp: Implement ioctl action to send TEE commands 0328e28c02df drm/i915/pxp: Create the arbitrary session after boot 3f8d34287fc8 drm/i915/pxp: Add i915 trace logs for PXP operations -:11: WARNING:TYPO_SPELLING: 'trun' may be misspelled - perhaps 'turn'? #11:
To trun on this feature, we need to set
-:29: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #29: FILE: drivers/gpu/drm/i915/i915_trace.h:1038:
+ TP_STRUCT__entry(
-:36: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #36: FILE: drivers/gpu/drm/i915/i915_trace.h:1045:
+ TP_fast_assign(
total: 0 errors, 1 warnings, 2 checks, 80 lines checked0c225361f287 drm/i915/pxp: Expose session state for display protection flip 3f9d21975353 mei: pxp: export pavp client to me client bus
-:32: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #32:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 277 lines checkedb730c330356d drm/i915/uapi: introduce drm_i915_gem_create_ext
-:12: ERROR:BAD_SIGN_OFF: Unrecognized email address: 'Joonas Lahtinen [email protected]' #12:
Cc: Joonas Lahtinen [email protected]
-:13: ERROR:BAD_SIGN_OFF: Unrecognized email address: 'Matthew Auld [email protected]' #13:
Cc: Matthew Auld [email protected]
-:46: ERROR:CODE_INDENT: code indent should use tabs where possible #46: FILE: drivers/gpu/drm/i915/i915_gem.c:265:
+ struct drm_i915_private *i915;$
-:46: WARNING:LEADING_SPACE: please, no spaces at the start of a line #46: FILE: drivers/gpu/drm/i915/i915_gem.c:265:
+ struct drm_i915_private *i915;$
-:50: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #50: FILE: drivers/gpu/drm/i915/i915_gem.c:269:
+static int __create_setparam(struct drm_i915_gem_object_param *args,
+ struct create_ext *ext_data)
-:95: CHECK:LINE_SPACING: Please don't use multiple blank lines #95: FILE: drivers/gpu/drm/i915/i915_gem.c:317:
+
+
-:107: WARNING:LONG_LINE: line length of 120 exceeds 100 columns #107: FILE: include/uapi/drm/i915_drm.h:394:
+#define DRM_IOCTL_I915_GEM_CREATE_EXT DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_CREATE, struct drm_i915_gem_create_ext)
-:155: CHECK:SPACING: spaces preferred around that '<<' (ctx:VxV) #155: FILE: include/uapi/drm/i915_drm.h:1735:
+#define I915_OBJECT_PARAM (1ull<<32)
^
total: 3 errors, 2 warnings, 3 checks, 136 lines checked afcf0d8a5ee0 drm/i915/pxp: User interface for Protected buffer 6de7943d6605 drm/i915/pxp: Add plane decryption support 71c5f649a82e drm/i915/pxp: Enable the PXP ioctl for protected session -:9: WARNING:TYPO_SPELLING: 'destory' may be misspelled - perhaps 'destroy'? #9:
destory the protected session via this ioctl.
-:100: WARNING:LONG_LINE: line length of 110 exceeds 100 columns #100: FILE: include/uapi/drm/i915_drm.h:427:
+#define DRM_IOCTL_I915_PXP_OPS DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_PXP_OPS, struct drm_i915_pxp_ops)
total: 0 errors, 2 warnings, 0 checks, 154 lines checked
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for Introduce Intel PXP component (rev4)
In reply to Huang, Sean Z== Series Details ==
== Series Details ==
Series: Introduce Intel PXP component (rev4)
URL : https://patchwork.freedesktop.org/series/84136/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_9418 -> Patchwork_19034
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/index.html
New tests
---------
New tests have been introduced between CI_DRM_9418 and Patchwork_19034:
### New CI tests (1) ###
* boot:
- Statuses : 1 fail(s) 40 pass(s)
- Exec time: [0.0] s
Known issues
------------
Here are the changes found in Patchwork_19034 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_module_load@reload:
- fi-byt-j1900: [PASS][1] -> [DMESG-WARN][2] ([i915#1982])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/fi-byt-j1900/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/fi-byt-j1900/igt@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- fi-tgl-y: [PASS][3] -> [DMESG-WARN][4] ([i915#1982])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/fi-tgl-y/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/fi-tgl-y/igt@[email protected]
* igt@vgem_basic@dmabuf-fence:
- fi-tgl-y: [PASS][5] -> [DMESG-WARN][6] ([i915#402]) +2 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/fi-tgl-y/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/fi-tgl-y/igt@[email protected]
#### Possible fixes ####
* igt@gem_flink_basic@bad-flink:
- fi-tgl-y: [DMESG-WARN][7] ([i915#402]) -> [PASS][8] +1 similar issue
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/fi-tgl-y/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/fi-tgl-y/igt@[email protected]
* igt@i915_pm_rpm@basic-pci-d3-state:
- {fi-ehl-1}: [DMESG-WARN][9] ([i915#1982]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/fi-ehl-1/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/fi-ehl-1/igt@[email protected]
* igt@i915_selftest@live@gt_heartbeat:
- fi-kbl-soraka: [DMESG-FAIL][11] ([i915#2291] / [i915#541]) -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/fi-kbl-soraka/igt@i915_selftest@live@gt_heartbeat.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/fi-kbl-soraka/igt@i915_selftest@live@gt_heartbeat.html
- fi-bsw-kefka: [DMESG-FAIL][13] ([i915#2675] / [i915#541]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/fi-bsw-kefka/igt@i915_selftest@live@gt_heartbeat.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/fi-bsw-kefka/igt@i915_selftest@live@gt_heartbeat.html
* igt@i915_selftest@live@gt_lrc:
- fi-bsw-n3050: [DMESG-FAIL][15] ([i915#2675]) -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/fi-bsw-n3050/igt@i915_selftest@live@gt_lrc.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/fi-bsw-n3050/igt@i915_selftest@live@gt_lrc.html
* igt@kms_chamelium@dp-crc-fast:
- fi-kbl-7500u: [DMESG-WARN][17] ([i915#1982] / [i915#262]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/fi-kbl-7500u/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/fi-kbl-7500u/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
- fi-byt-j1900: [DMESG-WARN][19] ([i915#1982]) -> [PASS][20] +1 similar issue
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/fi-byt-j1900/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/fi-byt-j1900/igt@[email protected]
- fi-icl-u2: [DMESG-WARN][21] ([i915#1982]) -> [PASS][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/fi-icl-u2/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/fi-icl-u2/igt@[email protected]
#### Warnings ####
* igt@debugfs_test@read_all_entries:
- fi-tgl-y: [DMESG-WARN][23] ([i915#402]) -> [DMESG-WARN][24] ([i915#1982])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/fi-tgl-y/igt@debugfs_test@read_all_entries.html
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/fi-tgl-y/igt@debugfs_test@read_all_entries.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2291]: https://gitlab.freedesktop.org/drm/intel/issues/2291
[i915#262]: https://gitlab.freedesktop.org/drm/intel/issues/262
[i915#2675]: https://gitlab.freedesktop.org/drm/intel/issues/2675
[i915#402]: https://gitlab.freedesktop.org/drm/intel/issues/402
[i915#541]: https://gitlab.freedesktop.org/drm/intel/issues/541
Participating hosts (45 -> 41)
------------------------------
Missing (4): fi-ilk-m540 fi-bsw-cyan fi-bdw-samus fi-hsw-4200u
Build changes
-------------
* Linux: CI_DRM_9418 -> Patchwork_19034
CI-20190529: 20190529
CI_DRM_9418: 5ef90940f82646746fbc78f3af9cdfa503355ab0 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5878: e96c0d8e6952d892bcbbcdf004999880a4dfb42e @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_19034: 71c5f649a82e92ae4c5f2990271f458261fd4cd6 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
71c5f649a82e drm/i915/pxp: Enable the PXP ioctl for protected session 6de7943d6605 drm/i915/pxp: Add plane decryption support afcf0d8a5ee0 drm/i915/pxp: User interface for Protected buffer b730c330356d drm/i915/uapi: introduce drm_i915_gem_create_ext 3f9d21975353 mei: pxp: export pavp client to me client bus 0c225361f287 drm/i915/pxp: Expose session state for display protection flip 3f8d34287fc8 drm/i915/pxp: Add i915 trace logs for PXP operations 0328e28c02df drm/i915/pxp: Create the arbitrary session after boot 87ef8cfabefd drm/i915/pxp: Implement ioctl action to send TEE commands 62932c88f944 drm/i915/pxp: Implement funcs to create the TEE channel db542427db49 drm/i915/pxp: Enable PXP power management 99e9bd56cb87 drm/i915/pxp: Termiante the session upon app crash 789007105c02 drm/i915/pxp: Destroy all type0 sessions upon teardown 260be06ba629 drm/i915/pxp: Enable ioctl action to query PXP tag 5c9dfa8888d1 drm/i915/pxp: Implement ioctl action to terminate the session a50087361687 drm/i915/pxp: Func to send hardware session termination 4e64444547d5 drm/i915/pxp: Implement ioctl action to set session in play 89660e95826a drm/i915/pxp: Implement ioctl action to reserve session slot 80f5b789b7aa drm/i915/pxp: Implement funcs to get/set PXP tag 791a4cc06927 drm/i915/pxp: Read register to check hardware session state b2bf2b5d0e5c drm/i915/pxp: Add PXP-related registers into allowlist ea5b0b6c33c2 drm/i915/pxp: Implement ioctl action to set the user space context ac644173c4a0 drm/i915/pxp: set KCR reg init during the boot time 9d93e3de599a drm/i915/pxp: Add PXP context for logical hardware states. b069e4460363 drm/i915/pxp: Enable PXP irq worker and callback stub 3ce53f7dc704 drm/i915/pxp: Introduce Intel PXP component
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✓ Fi.CI.IGT: success for Introduce Intel PXP component (rev4)
In reply to Huang, Sean Z== Series Details ==
== Series Details ==
Series: Introduce Intel PXP component (rev4)
URL : https://patchwork.freedesktop.org/series/84136/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_9418_full -> Patchwork_19034_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
New tests
---------
New tests have been introduced between CI_DRM_9418_full and Patchwork_19034_full:
### New CI tests (1) ###
* boot:
- Statuses : 198 pass(s)
- Exec time: [0.0] s
Known issues
------------
Here are the changes found in Patchwork_19034_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_whisper@basic-queues-forked:
- shard-glk: [PASS][1] -> [DMESG-WARN][2] ([i915#118] / [i915#95])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-glk5/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-glk6/igt@[email protected]
* igt@i915_pm_rpm@gem-mmap-type@uc:
- shard-skl: [PASS][3] -> [DMESG-WARN][4] ([i915#1982]) +2 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-skl9/igt@i915_pm_rpm@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-skl2/igt@i915_pm_rpm@[email protected]
* igt@i915_selftest@live@gt_heartbeat:
- shard-skl: [PASS][5] -> [DMESG-FAIL][6] ([i915#2291] / [i915#541])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-skl7/igt@i915_selftest@live@gt_heartbeat.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-skl4/igt@i915_selftest@live@gt_heartbeat.html
* igt@i915_suspend@forcewake:
- shard-skl: [PASS][7] -> [INCOMPLETE][8] ([i915#636])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-skl8/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-skl2/igt@[email protected]
* igt@kms_cursor_crc@pipe-b-cursor-64x21-onscreen:
- shard-skl: [PASS][9] -> [FAIL][10] ([i915#54]) +2 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-skl1/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-skl1/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank@a-edp1:
- shard-skl: [PASS][11] -> [FAIL][12] ([i915#79])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-skl2/igt@kms_flip@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-skl5/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible@c-dp1:
- shard-kbl: [PASS][13] -> [DMESG-WARN][14] ([i915#180])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-kbl4/igt@kms_flip@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-kbl3/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-ts-check-interruptible@a-edp1:
- shard-skl: [PASS][15] -> [FAIL][16] ([i915#2122]) +1 similar issue
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-skl10/igt@kms_flip@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-skl2/igt@kms_flip@[email protected]
* igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-shrfb-draw-render:
- shard-tglb: [PASS][17] -> [DMESG-WARN][18] ([i915#1982]) +2 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-tglb2/igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-shrfb-draw-render.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-tglb1/igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-shrfb-draw-render.html
* igt@kms_hdr@bpc-switch-suspend:
- shard-skl: [PASS][19] -> [FAIL][20] ([i915#1188])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-skl5/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-skl3/igt@[email protected]
* igt@kms_psr@psr2_cursor_render:
- shard-iclb: [PASS][21] -> [SKIP][22] ([fdo#109441]) +2 similar issues
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-iclb2/igt@kms_psr@psr2_cursor_render.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-iclb5/igt@kms_psr@psr2_cursor_render.html
* igt@kms_vblank@crtc-id:
- shard-apl: [PASS][23] -> [DMESG-WARN][24] ([i915#1982])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-apl6/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-apl6/igt@[email protected]
#### Possible fixes ####
* igt@api_intel_bb@render-ccs:
- shard-glk: [INCOMPLETE][25] ([i915#2405] / [i915#2499]) -> [PASS][26]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-glk4/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-glk8/igt@[email protected]
- shard-tglb: [INCOMPLETE][27] ([i915#2588]) -> [PASS][28]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-tglb2/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-tglb8/igt@[email protected]
* igt@gem_exec_flush@basic-wb-rw-default:
- shard-hsw: [INCOMPLETE][29] ([i915#2055]) -> [PASS][30]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-hsw2/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-hsw6/igt@[email protected]
* igt@gem_exec_gttfill@engines@rcs0:
- shard-glk: [DMESG-WARN][31] ([i915#118] / [i915#95]) -> [PASS][32]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-glk9/igt@gem_exec_gttfill@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-glk1/igt@gem_exec_gttfill@[email protected]
* igt@gem_exec_reloc@basic-many-active@rcs0:
- shard-apl: [FAIL][33] ([i915#2389]) -> [PASS][34]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-apl3/igt@gem_exec_reloc@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-apl1/igt@gem_exec_reloc@[email protected]
- shard-hsw: [FAIL][35] ([i915#2389]) -> [PASS][36]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-hsw2/igt@gem_exec_reloc@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-hsw6/igt@gem_exec_reloc@[email protected]
* igt@gem_exec_whisper@basic-fds-all:
- shard-iclb: [INCOMPLETE][37] -> [PASS][38]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-iclb4/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-iclb1/igt@[email protected]
* igt@i915_pm_dc@dc6-psr:
- shard-iclb: [FAIL][39] ([i915#454]) -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-iclb6/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-iclb2/igt@[email protected]
* {igt@kms_async_flips@alternate-sync-async-flip}:
- shard-skl: [FAIL][41] ([i915#2521]) -> [PASS][42]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-skl5/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-skl1/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-64x64-offscreen:
- shard-skl: [FAIL][43] ([i915#54]) -> [PASS][44]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-skl6/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-skl10/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-atomic:
- shard-skl: [FAIL][45] ([i915#2346]) -> [PASS][46]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-skl9/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-skl2/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-crc-legacy:
- shard-tglb: [FAIL][47] ([i915#2346]) -> [PASS][48]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-tglb7/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-tglb7/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-toggle:
- shard-hsw: [FAIL][49] -> [PASS][50]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-hsw6/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-hsw1/igt@[email protected]
* igt@kms_cursor_legacy@short-flip-before-cursor-toggle:
- shard-apl: [DMESG-WARN][51] ([i915#1982]) -> [PASS][52] +1 similar issue
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-apl6/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-apl1/igt@[email protected]
* igt@kms_flip@absolute-wf_vblank-interruptible@a-edp1:
- shard-skl: [DMESG-WARN][53] ([i915#1982]) -> [PASS][54]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-skl5/igt@kms_flip@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-skl8/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-expired-vblank@a-edp1:
- shard-tglb: [FAIL][55] ([i915#2598]) -> [PASS][56]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-tglb2/igt@kms_flip@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-tglb1/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-expired-vblank@c-edp1:
- shard-skl: [FAIL][57] ([i915#79]) -> [PASS][58]
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-skl2/igt@kms_flip@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-skl5/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible@a-edp1:
- shard-skl: [INCOMPLETE][59] ([i915#198]) -> [PASS][60]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-skl9/igt@kms_flip@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-skl2/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-fb-recreate@b-edp1:
- shard-skl: [FAIL][61] ([i915#2122]) -> [PASS][62]
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-skl2/igt@kms_flip@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-skl5/igt@kms_flip@[email protected]
* igt@kms_hdr@bpc-switch-dpms:
- shard-skl: [FAIL][63] ([i915#1188]) -> [PASS][64]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-skl6/igt@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-skl10/igt@[email protected]
* igt@kms_plane@plane-position-covered-pipe-a-planes:
- shard-glk: [DMESG-WARN][65] ([i915#1982]) -> [PASS][66] +1 similar issue
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-glk2/igt@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-glk2/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-coverage-7efc:
- shard-skl: [FAIL][67] ([fdo#108145] / [i915#265]) -> [PASS][68]
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-skl3/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-skl5/igt@[email protected]
* igt@kms_psr@psr2_no_drrs:
- shard-iclb: [SKIP][69] ([fdo#109441]) -> [PASS][70] +2 similar issues
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-iclb7/igt@kms_psr@psr2_no_drrs.html
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-iclb2/igt@kms_psr@psr2_no_drrs.html
#### Warnings ####
* igt@i915_pm_dc@dc3co-vpb-simulation:
- shard-iclb: [SKIP][71] ([i915#588]) -> [SKIP][72] ([i915#658])
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-iclb2/igt@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-iclb5/igt@[email protected]
* igt@i915_pm_rc6_residency@rc6-fence:
- shard-iclb: [WARN][73] ([i915#1804] / [i915#2684]) -> [WARN][74] ([i915#2684])
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-iclb6/igt@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-iclb2/igt@[email protected]
* igt@i915_pm_rc6_residency@rc6-idle:
- shard-iclb: [WARN][75] ([i915#2681] / [i915#2684]) -> [WARN][76] ([i915#1804] / [i915#2684])
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-iclb8/igt@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-iclb6/igt@[email protected]
* igt@kms_dp_dsc@basic-dsc-enable-edp:
- shard-iclb: [SKIP][77] ([fdo#109349]) -> [DMESG-WARN][78] ([i915#1226])
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-iclb7/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-iclb2/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-alpha-basic:
- shard-apl: [FAIL][79] ([fdo#108145] / [i915#265]) -> [DMESG-FAIL][80] ([fdo#108145] / [i915#1982])
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-apl3/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-apl1/igt@[email protected]
* igt@runner@aborted:
- shard-kbl: ([FAIL][81], [FAIL][82]) ([i915#1436] / [i915#2295] / [i915#2426] / [i915#2505] / [i915#2722] / [i915#483]) -> ([FAIL][83], [FAIL][84], [FAIL][85]) ([i915#1436] / [i915#2295] / [i915#2426] / [i915#2722] / [i915#483])
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-kbl6/igt@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-kbl1/igt@[email protected]
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-kbl2/igt@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-kbl3/igt@[email protected]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-kbl1/igt@[email protected]
- shard-iclb: ([FAIL][86], [FAIL][87]) ([i915#2295] / [i915#2722]) -> ([FAIL][88], [FAIL][89], [FAIL][90]) ([i915#2295] / [i915#2426] / [i915#2722] / [i915#483])
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-iclb4/igt@[email protected]
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-iclb2/igt@[email protected]
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-iclb3/igt@[email protected]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-iclb4/igt@[email protected]
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-iclb8/igt@[email protected]
- shard-apl: ([FAIL][91], [FAIL][92], [FAIL][93]) ([i915#2295] / [i915#2426] / [i915#2722]) -> ([FAIL][94], [FAIL][95]) ([i915#2295] / [i915#2722])
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-apl1/igt@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-apl6/igt@[email protected]
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-apl7/igt@[email protected]
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-apl2/igt@[email protected]
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-apl7/igt@[email protected]
- shard-glk: ([FAIL][96], [FAIL][97], [FAIL][98]) ([i915#2295] / [i915#2426] / [i915#2722] / [i915#483] / [k.org#202321]) -> ([FAIL][99], [FAIL][100], [FAIL][101]) ([i915#2295] / [i915#2426] / [i915#2722] / [k.org#202321])
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-glk7/igt@[email protected]
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-glk2/igt@[email protected]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-glk5/igt@[email protected]
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-glk6/igt@[email protected]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-glk6/igt@[email protected]
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-glk5/igt@[email protected]
- shard-tglb: ([FAIL][102], [FAIL][103], [FAIL][104]) ([i915#1602] / [i915#2295] / [i915#2426] / [i915#2722]) -> ([FAIL][105], [FAIL][106]) ([i915#1602] / [i915#2295] / [i915#2722])
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-tglb5/igt@[email protected]
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-tglb5/igt@[email protected]
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-tglb1/igt@[email protected]
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-tglb7/igt@[email protected]
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-tglb2/igt@[email protected]
- shard-skl: ([FAIL][107], [FAIL][108], [FAIL][109]) ([i915#1436] / [i915#2029] / [i915#2295] / [i915#2426] / [i915#2722]) -> ([FAIL][110], [FAIL][111]) ([i915#2295] / [i915#2722] / [i915#483])
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-skl3/igt@[email protected]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-skl6/igt@[email protected]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9418/shard-skl10/igt@[email protected]
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-skl3/igt@[email protected]
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/shard-skl8/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#109349]: https://bugs.freedesktop.org/show_bug.cgi?id=109349
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[i915#118]: https://gitlab.freedesktop.org/drm/intel/issues/118
[i915#1188]: https://gitlab.freedesktop.org/drm/intel/issues/1188
[i915#1226]: https://gitlab.freedesktop.org/drm/intel/issues/1226
[i915#1436]: https://gitlab.freedesktop.org/drm/intel/issues/1436
[i915#1602]: https://gitlab.freedesktop.org/drm/intel/issues/1602
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#1804]: https://gitlab.freedesktop.org/drm/intel/issues/1804
[i915#198]: https://gitlab.freedesktop.org/drm/intel/issues/198
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2029]: https://gitlab.freedesktop.org/drm/intel/issues/2029
[i915#2055]: https://gitlab.freedesktop.org/drm/intel/issues/2055
[i915#2122]: https://gitlab.freedesktop.org/drm/intel/issues/2122
[i915#2291]: https://gitlab.freedesktop.org/drm/intel/issues/2291
[i915#2295]: https://gitlab.freedesktop.org/drm/intel/issues/2295
[i915#2346]: https://gitlab.freedesktop.org/drm/intel/issues/2346
[i915#2389]: https://gitlab.freedesktop.org/drm/intel/issues/2389
[i915#2405]: https://gitlab.freedesktop.org/drm/intel/issues/2405
[i915#2426]: https://gitlab.freedesktop.org/drm/intel/issues/2426
[i915#2499]: https://gitlab.freedesktop.org/drm/intel/issues/2499
[i915#2502]: https://gitlab.freedesktop.org/drm/intel/issues/2502
[i915#2505]: https://gitlab.freedesktop.org/drm/intel/issues/2505
[i915#2521]: https://gitlab.freedesktop.org/drm/intel/issues/2521
[i915#2588]: https://gitlab.freedesktop.org/drm/intel/issues/2588
[i915#2598]: https://gitlab.freedesktop.org/drm/intel/issues/2598
[i915#265]: https://gitlab.freedesktop.org/drm/intel/issues/265
[i915#2681]: https://gitlab.freedesktop.org/drm/intel/issues/2681
[i915#2684]: https://gitlab.freedesktop.org/drm/intel/issues/2684
[i915#2722]: https://gitlab.freedesktop.org/drm/intel/issues/2722
[i915#454]: https://gitlab.freedesktop.org/drm/intel/issues/454
[i915#483]: https://gitlab.freedesktop.org/drm/intel/issues/483
[i915#54]: https://gitlab.freedesktop.org/drm/intel/issues/54
[i915#541]: https://gitlab.freedesktop.org/drm/intel/issues/541
[i915#588]: https://gitlab.freedesktop.org/drm/intel/issues/588
[i915#636]: https://gitlab.freedesktop.org/drm/intel/issues/636
[i915#658]: https://gitlab.freedesktop.org/drm/intel/issues/658
[i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79
[i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95
[k.org#202321]: https://bugzilla.kernel.org/show_bug.cgi?id=202321
Participating hosts (10 -> 10)
------------------------------
No changes in participating hosts
Build changes
-------------
* Linux: CI_DRM_9418 -> Patchwork_19034
CI-20190529: 20190529
CI_DRM_9418: 5ef90940f82646746fbc78f3af9cdfa503355ab0 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5878: e96c0d8e6952d892bcbbcdf004999880a4dfb42e @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_19034: 71c5f649a82e92ae4c5f2990271f458261fd4cd6 @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19034/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx