| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_psp.c | 51 static int psp_load_smu_fw(struct psp_context *psp); 52 static int psp_rap_terminate(struct psp_context *psp); 53 static int psp_securedisplay_terminate(struct psp_context *psp); 55 static int psp_ring_init(struct psp_context *psp, in psp_ring_init() argument 60 struct amdgpu_device *adev = psp->adev; in psp_ring_init() 62 ring = &psp->km_ring; in psp_ring_init() 90 * - Load other non-psp fw 97 static void psp_check_pmfw_centralized_cstate_management(struct psp_context *psp) in psp_check_pmfw_centralized_cstate_management() argument 99 struct amdgpu_device *adev = psp->adev; in psp_check_pmfw_centralized_cstate_management() 102 psp->pmfw_centralized_cstate_management = false; in psp_check_pmfw_centralized_cstate_management() [all …]
|
| H A D | psp_v13_0_4.c | 35 static int psp_v13_0_4_init_microcode(struct psp_context *psp) in psp_v13_0_4_init_microcode() argument 37 struct amdgpu_device *adev = psp->adev; in psp_v13_0_4_init_microcode() 45 err = psp_init_toc_microcode(psp, ucode_prefix); in psp_v13_0_4_init_microcode() 48 err = psp_init_ta_microcode(psp, ucode_prefix); in psp_v13_0_4_init_microcode() 59 static bool psp_v13_0_4_is_sos_alive(struct psp_context *psp) in psp_v13_0_4_is_sos_alive() argument 61 struct amdgpu_device *adev = psp->adev; in psp_v13_0_4_is_sos_alive() 69 static int psp_v13_0_4_wait_for_bootloader(struct psp_context *psp) in psp_v13_0_4_wait_for_bootloader() argument 71 struct amdgpu_device *adev = psp->adev; in psp_v13_0_4_wait_for_bootloader() 80 psp, SOC15_REG_OFFSET(MP0, 0, regMP0_SMN_C2PMSG_35), in psp_v13_0_4_wait_for_bootloader() 90 static int psp_v13_0_4_bootloader_load_component(struct psp_context *psp, in psp_v13_0_4_bootloader_load_component() argument [all …]
|
| H A D | psp_v14_0.c | 61 static int psp_v14_0_init_microcode(struct psp_context *psp) in psp_v14_0_init_microcode() argument 63 struct amdgpu_device *adev = psp->adev; in psp_v14_0_init_microcode() 72 err = psp_init_sos_microcode(psp, ucode_prefix); in psp_v14_0_init_microcode() 75 err = psp_init_ta_microcode(psp, ucode_prefix); in psp_v14_0_init_microcode() 80 err = psp_init_toc_microcode(psp, ucode_prefix); in psp_v14_0_init_microcode() 83 err = psp_init_ta_microcode(psp, ucode_prefix); in psp_v14_0_init_microcode() 94 static bool psp_v14_0_is_sos_alive(struct psp_context *psp) in psp_v14_0_is_sos_alive() argument 96 struct amdgpu_device *adev = psp->adev; in psp_v14_0_is_sos_alive() 104 static int psp_v14_0_wait_for_bootloader(struct psp_context *psp) in psp_v14_0_wait_for_bootloader() argument 106 struct amdgpu_device *adev = psp->adev; in psp_v14_0_wait_for_bootloader() [all …]
|
| H A D | psp_v13_0.c | 85 static int psp_v13_0_init_microcode(struct psp_context *psp) in psp_v13_0_init_microcode() argument 87 struct amdgpu_device *adev = psp->adev; in psp_v13_0_init_microcode() 95 err = psp_init_sos_microcode(psp, ucode_prefix); in psp_v13_0_init_microcode() 100 err = psp_init_ta_microcode(psp, ucode_prefix); in psp_v13_0_init_microcode() 113 err = psp_init_toc_microcode(psp, ucode_prefix); in psp_v13_0_init_microcode() 116 err = psp_init_ta_microcode(psp, ucode_prefix); in psp_v13_0_init_microcode() 127 err = psp_init_sos_microcode(psp, ucode_prefix); in psp_v13_0_init_microcode() 131 err = psp_init_ta_microcode(psp, ucode_prefix); in psp_v13_0_init_microcode() 142 static bool psp_v13_0_is_sos_alive(struct psp_context *psp) in psp_v13_0_is_sos_alive() argument 144 struct amdgpu_device *adev = psp->adev; in psp_v13_0_is_sos_alive() [all …]
|
| H A D | psp_v15_0.c | 36 static int psp_v15_0_0_init_microcode(struct psp_context *psp) in psp_v15_0_0_init_microcode() argument 38 struct amdgpu_device *adev = psp->adev; in psp_v15_0_0_init_microcode() 44 err = psp_init_toc_microcode(psp, ucode_prefix); in psp_v15_0_0_init_microcode() 48 err = psp_init_ta_microcode(psp, ucode_prefix); in psp_v15_0_0_init_microcode() 55 static int psp_v15_0_0_ring_stop(struct psp_context *psp, in psp_v15_0_0_ring_stop() argument 59 struct amdgpu_device *adev = psp->adev; in psp_v15_0_0_ring_stop() 68 ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, regMPASP_SMN_C2PMSG_101), in psp_v15_0_0_ring_stop() 77 ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, regMPASP_SMN_C2PMSG_64), in psp_v15_0_0_ring_stop() 84 static int psp_v15_0_0_ring_create(struct psp_context *psp, in psp_v15_0_0_ring_create() argument 89 struct psp_ring *ring = &psp->km_ring; in psp_v15_0_0_ring_create() [all …]
|
| H A D | psp_v11_0_8.c | 31 static int psp_v11_0_8_ring_stop(struct psp_context *psp, in psp_v11_0_8_ring_stop() argument 35 struct amdgpu_device *adev = psp->adev; in psp_v11_0_8_ring_stop() 45 psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_101), in psp_v11_0_8_ring_stop() 55 psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_64), in psp_v11_0_8_ring_stop() 62 static int psp_v11_0_8_ring_create(struct psp_context *psp, in psp_v11_0_8_ring_create() argument 67 struct psp_ring *ring = &psp->km_ring; in psp_v11_0_8_ring_create() 68 struct amdgpu_device *adev = psp->adev; in psp_v11_0_8_ring_create() 71 ret = psp_v11_0_8_ring_stop(psp, ring_type); in psp_v11_0_8_ring_create() 93 psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_101), in psp_v11_0_8_ring_create() 99 psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_64), in psp_v11_0_8_ring_create() [all …]
|
| H A D | psp_v15_0_8.c | 36 static int psp_v15_0_8_init_microcode(struct psp_context *psp) in psp_v15_0_8_init_microcode() argument 38 struct amdgpu_device *adev = psp->adev; in psp_v15_0_8_init_microcode() 44 err = psp_init_toc_microcode(psp, ucode_prefix); in psp_v15_0_8_init_microcode() 51 static int psp_v15_0_8_ring_stop(struct psp_context *psp, in psp_v15_0_8_ring_stop() argument 55 struct amdgpu_device *adev = psp->adev; in psp_v15_0_8_ring_stop() 64 ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, regMPASP_SMN_C2PMSG_101), in psp_v15_0_8_ring_stop() 73 ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, regMPASP_SMN_C2PMSG_64), in psp_v15_0_8_ring_stop() 80 static int psp_v15_0_8_ring_create(struct psp_context *psp, in psp_v15_0_8_ring_create() argument 85 struct psp_ring *ring = &psp->km_ring; in psp_v15_0_8_ring_create() 86 struct amdgpu_device *adev = psp->adev; in psp_v15_0_8_ring_create() [all …]
|
| H A D | amdgpu_psp_ta.h | 28 #define psp_fn_ta_initialize(psp) ((psp)->ta_funcs->fn_ta_initialize((psp))) argument 29 #define psp_fn_ta_invoke(psp, ta_cmd_id) ((psp)->ta_funcs->fn_ta_invoke((psp), (ta_cmd_id))) argument 30 #define psp_fn_ta_terminate(psp) ((psp)->ta_funcs->fn_ta_terminate((psp))) argument
|
| H A D | amdgpu_dev_coredump.c | 121 drm_printf(p, "PSP SOS feature version: %u, fw version: 0x%08x\n", in amdgpu_devcoredump_fw_info() 122 adev->psp.sos.feature_version, adev->psp.sos.fw_version); in amdgpu_devcoredump_fw_info() 123 drm_printf(p, "PSP ASD feature version: %u, fw version: 0x%08x\n", in amdgpu_devcoredump_fw_info() 124 adev->psp.asd_context.bin_desc.feature_version, in amdgpu_devcoredump_fw_info() 125 adev->psp.asd_context.bin_desc.fw_version); in amdgpu_devcoredump_fw_info() 128 adev->psp.xgmi_context.context.bin_desc.feature_version, in amdgpu_devcoredump_fw_info() 129 adev->psp.xgmi_context.context.bin_desc.fw_version); in amdgpu_devcoredump_fw_info() 131 adev->psp.ras_context.context.bin_desc.feature_version, in amdgpu_devcoredump_fw_info() 132 adev->psp.ras_context.context.bin_desc.fw_version); in amdgpu_devcoredump_fw_info() 134 adev->psp.hdcp_context.context.bin_desc.feature_version, in amdgpu_devcoredump_fw_info() [all …]
|
| /linux/drivers/gpu/drm/amd/display/modules/hdcp/ |
| H A D | hdcp_psp.c | 51 struct psp_context *psp = hdcp->config.psp.handle; in remove_display_from_topology_v2() local 57 dtm_cmd = (struct ta_dtm_shared_memory *)psp->dtm_context.context.mem_context.shared_buf; in remove_display_from_topology_v2() 62 mutex_lock(&psp->dtm_context.mutex); in remove_display_from_topology_v2() 71 psp_dtm_invoke(psp, dtm_cmd->cmd_id); in remove_display_from_topology_v2() 80 mutex_unlock(&psp->dtm_context.mutex); in remove_display_from_topology_v2() 87 struct psp_context *psp = hdcp->config.psp.handle; in remove_display_from_topology_v3() local 93 dtm_cmd = (struct ta_dtm_shared_memory *)psp->dtm_context.context.mem_context.shared_buf; in remove_display_from_topology_v3() 98 mutex_lock(&psp->dtm_context.mutex); in remove_display_from_topology_v3() 107 psp_dtm_invoke(psp, dtm_cmd->cmd_id); in remove_display_from_topology_v3() 108 mutex_unlock(&psp->dtm_context.mutex); in remove_display_from_topology_v3() [all …]
|
| /linux/drivers/crypto/ccp/ |
| H A D | platform-access.c | 3 * AMD Platform Security Processor (PSP) Platform Access interface 34 /* Expect mbox_cmd to be cleared and ready bit to be set by PSP */ in wait_cmd() 38 * Check for readiness of PSP mailbox in a tight loop in order to in wait_cmd() 47 struct psp_device *psp = psp_get_master_device(); in psp_check_platform_access_status() local 49 if (!psp || !psp->platform_access_data) in psp_check_platform_access_status() 59 struct psp_device *psp = psp_get_master_device(); in psp_send_platform_access_msg() local 66 if (!psp || !psp->platform_access_data) in psp_send_platform_access_msg() 69 pa_dev = psp->platform_access_data; in psp_send_platform_access_msg() 75 cmd = psp->io_regs + pa_dev->vdata->cmdresp_reg; in psp_send_platform_access_msg() 76 lo = psp->io_regs + pa_dev->vdata->cmdbuff_addr_lo_reg; in psp_send_platform_access_msg() [all …]
|
| H A D | hsti.c | 12 #include "psp-dev.h" 27 struct psp_device *psp = sp->psp_data; \ 28 return sysfs_emit(buf, "%d\n", psp->capability.name); \ 67 struct psp_device *psp = sp->psp_data; in psp_security_is_visible() local 69 if (psp && psp->capability.security_reporting) in psp_security_is_visible() 80 static int psp_populate_hsti(struct psp_device *psp) in psp_populate_hsti() argument 86 if (psp->capability.security_reporting) in psp_populate_hsti() 101 dev_dbg(psp->dev, "failed to populate HSTI state: %d\n", req->header.status); in psp_populate_hsti() 106 psp->capability.security_reporting = 1; in psp_populate_hsti() 107 psp->capability.raw |= req->hsti << PSP_CAPABILITY_PSP_SECURITY_OFFSET; in psp_populate_hsti() [all …]
|
| H A D | tee-dev.c | 17 #include <linux/psp.h> 18 #include <linux/psp-tee.h> 20 #include "psp-dev.h" 94 ret = psp_mailbox_command(tee->psp, PSP_CMD_TEE_RING_DESTROY, NULL, in tee_send_destroy_cmd() 137 * CPU-PSP message registers in tee_init_ring() 140 ret = psp_mailbox_command(tee->psp, PSP_CMD_TEE_RING_INIT, cmd, in tee_init_ring() 189 int tee_dev_init(struct psp_device *psp) in tee_dev_init() argument 191 struct device *dev = psp->dev; in tee_dev_init() 200 psp->tee_data = tee; in tee_dev_init() 203 tee->psp = psp; in tee_dev_init() [all …]
|
| H A D | sfs.h | 3 * AMD Platform Security Processor (PSP) Seamless Firmware (SFS) Support. 13 #include <uapi/linux/psp-sfs.h> 17 #include <linux/psp-sev.h> 18 #include <linux/psp-platform-access.h> 21 #include "psp-dev.h" 36 struct psp_device *psp; member 44 void sfs_dev_destroy(struct psp_device *psp); 45 int sfs_dev_init(struct psp_device *psp);
|
| H A D | dbc.h | 3 * AMD Platform Security Processor (PSP) Dynamic Boost Control support 13 #include <uapi/linux/psp-dbc.h> 17 #include <linux/psp-platform-access.h> 19 #include "psp-dev.h" 23 struct psp_device *psp; member 44 void dbc_dev_destroy(struct psp_device *psp); 45 int dbc_dev_init(struct psp_device *psp);
|
| H A D | platform-access.h | 3 * AMD Platform Security Processor (PSP) Platform Access interface 16 #include <linux/psp-platform-access.h> 18 #include "psp-dev.h" 22 struct psp_device *psp; member 32 void platform_access_dev_destroy(struct psp_device *psp); 33 int platform_access_dev_init(struct psp_device *psp);
|
| H A D | sfs.c | 31 ret = psp_extended_mailbox_cmd(sfs_dev->psp, in send_sfs_cmd() 36 "msg 0x%x failed with PSP error: 0x%x, extended status: 0x%x\n", in send_sfs_cmd() 133 * if PSP status indicated success or command error. in sfs_ioctl() 162 * if PSP status indicated success or command error. in sfs_ioctl() 192 void sfs_dev_destroy(struct psp_device *psp) in sfs_dev_destroy() argument 194 struct sfs_device *sfs_dev = psp->sfs_data; in sfs_dev_destroy() 209 psp->sfs_data = NULL; in sfs_dev_destroy() 251 int sfs_dev_init(struct psp_device *psp) in sfs_dev_init() argument 253 struct device *dev = psp->dev; in sfs_dev_init() 288 psp->sfs_data = sfs_dev; in sfs_dev_init() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
| H A D | psp.c | 4 #include <net/psp.h> 5 #include <linux/psp.h> 7 #include "psp.h" 9 #include "en_accel/psp.h" 29 struct mutex mutex; /* Protect PSP TX steering */ 71 /* PSP RX flow steering */ 162 "fail to alloc psp copy modify_header_id err=%d\n", err); in accel_psp_fs_rx_err_add_rule() 179 mlx5_core_err(mdev, "fail to add psp rx err copy rule err=%d\n", err); in accel_psp_fs_rx_err_add_rule() 196 mlx5_core_err(mdev, "fail to add psp rx auth fail drop rule err=%d\n", in accel_psp_fs_rx_err_add_rule() 214 mlx5_core_err(mdev, "fail to add psp rx framing err drop rule err=%d\n", in accel_psp_fs_rx_err_add_rule() [all …]
|
| H A D | psp_rxtx.c | 10 #include <net/psp/types.h> 13 #include "psp.h" 15 #include "en_accel/psp.h" 49 /* Set SWP additional flags for packet of type IP|UDP|PSP|[ TCP | UDP ] */ in mlx5e_psp_set_swp() 79 /* Tunnel(VXLAN TCP/UDP) over Transport Mode PSP i.e. PSP payload is vxlan tunnel */ in mlx5e_psp_set_swp() 127 u16 dev_id = priv->psp->psp->id; in mlx5e_psp_offload_handle_rx_skb() 158 /* Special WA for PSP LSO in ConnectX7 */ in mlx5e_psp_tx_build_eseg() 187 atomic_inc(&priv->psp->tx_drop); in mlx5e_psp_handle_tx_skb()
|
| /linux/drivers/i2c/busses/ |
| H A D | i2c-designware-amdpsp.c | 5 #include <linux/psp-platform-access.h> 6 #include <linux/psp.h> 38 /* Helper to verify status returned by PSP */ 43 /* Status field in command-response buffer is updated by PSP */ in check_i2c_req_sts() 58 * Errors in x86-PSP i2c-arbitration protocol may occur at two levels: 59 * 1. mailbox communication - PSP is not operational or some IO errors with 61 * 2. i2c-requests - PSP refuses to grant i2c arbitration to x86 for too long. 110 dev_err(psp_i2c_dev, "Timed out waiting for PSP to %s I2C bus\n", in psp_send_i2c_req() 118 dev_err(psp_i2c_dev, "PSP communication error\n"); in psp_send_i2c_req() 122 dev_dbg(psp_i2c_dev, "Request accepted by PSP after %ums\n", in psp_send_i2c_req() [all …]
|
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm_hdcp.c | 37 * currently loaded SRM, psp will return 0xFFFF as the version 109 static uint8_t *psp_get_srm(struct psp_context *psp, uint32_t *srm_version, uint32_t *srm_size) in psp_get_srm() argument 113 if (!psp->hdcp_context.context.initialized) { in psp_get_srm() 118 hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.context.mem_context.shared_buf; in psp_get_srm() 122 psp_hdcp_invoke(psp, hdcp_cmd->cmd_id); in psp_get_srm() 133 static int psp_set_srm(struct psp_context *psp, in psp_set_srm() argument 138 if (!psp->hdcp_context.context.initialized) { in psp_set_srm() 143 hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.context.mem_context.shared_buf; in psp_set_srm() 150 psp_hdcp_invoke(psp, hdcp_cmd->cmd_id); in psp_set_srm() 220 psp_set_srm(hdcp_work->hdcp.config.psp.handle, hdcp_work->srm, in hdcp_update_display() [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | srv6_end_flavors_test.sh | 13 # - Penultimate Segment Pop (PSP); 19 # Currently in this selftest we consider only the PSP flavor for the SRv6 End 23 # The purpose of the PSP flavor consists in instructing the penultimate node 26 # A PSP enabled SRv6 End behavior instance processes the SRH by: 33 # the IPv6 DA updated during the PSP operation (i.e. the IPv6 DA corresponding 36 # Although the PSP flavor can be set for any SRv6 End behavior instance on any 42 # - a PSP enabled SRv6 End behavior bound to SID Y will apply the PSP operation 45 # - a PSP enabled SRv6 End behavior bound to SID X will *NOT* apply the PSP [all...] |
| /linux/drivers/staging/greybus/ |
| H A D | power_supply.c | 106 static int get_psp_from_gb_prop(int gb_prop, enum power_supply_property *psp) in get_psp_from_gb_prop() argument 305 *psp = (enum power_supply_property)prop; in get_psp_from_gb_prop() 316 enum power_supply_property psp) in get_psy_prop() argument 321 if (gbpsy->props[i].prop == psp) in get_psy_prop() 327 enum power_supply_property psp) in is_psy_prop_writeable() argument 331 prop = get_psy_prop(gbpsy, psp); in is_psy_prop_writeable() 337 static int is_prop_valint(enum power_supply_property psp) in is_prop_valint() argument 339 return ((psp < POWER_SUPPLY_PROP_MODEL_NAME) ? 1 : 0); in is_prop_valint() 513 enum power_supply_property psp; in gb_power_supply_prop_descriptors_get() local 539 ret = get_psp_from_gb_prop(resp->props[i].property, &psp); in gb_power_supply_prop_descriptors_get() [all …]
|
| /linux/net/psp/ |
| H A D | psp_main.c | 8 #include <net/psp.h> 11 #include "psp.h" 12 #include "psp-nl-gen.h" 18 * DOC: PSP locking 27 * psp_dev_check_access() - check if user in a given net ns can access PSP dev 28 * @psd: PSP device structure user is trying to access 31 * Return: 0 if PSP device should be visible in @net, errno otherwise. 41 * psp_dev_create() - create and register PSP device 47 * Return: pointer to allocated PSP device, or ERR_PTR. 114 * psp_dev_unregister() - unregister PSP device [all …]
|
| H A D | Kconfig | 3 # PSP configuration 6 bool "PSP Security Protocol support" 12 Enable kernel support for the PSP Security Protocol (PSP). 14 https://raw.githubusercontent.com/google/psp/main/doc/PSP_Arch_Spec.pdf
|