Commit Graph

189 Commits

Author SHA1 Message Date
Rahul Kumar Yadav
d415b45bdc LF-15637: drivers: firmware: imx: se: fix ELE Get FW version API
Fix ELE Get FW version API, to get invoked only for ELE platforms.

Signed-off-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
2025-06-20 08:11:02 +02:00
Meenakshi Aggarwal
7fcf608527 LF-14837: Unregister ELE TRNG
Issue: ELE TRNG register with hwrng and open a kthread
which remains running after suspend also and results in
random interrupts from ELE.

Fix: unregister hwrng in suspend and re-register in resume

Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@nxp.com>
2025-06-11 08:05:04 +02:00
Meenakshi Aggarwal
296c64f096 LF-15348: firmware: imx: Add ioctl flag
Add ioctl flag to reset the shared memory position.

Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@nxp.com>
2025-06-11 08:04:56 +02:00
Pankaj Gupta
89391c3b3d LF-14885-2: drivers: firmware: imx: se: enable dual FW support
Enables dual FW support for i.MX95
- loading of runtime fw from rootfs.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:40:15 +08:00
Pankaj Gupta
8406270373 LF-14885: drivers: firmware: imx: se: add ele-get-fw-version
Adds a new API ELE_GET_FW_VERSION, to fetch the FW version and other
misc. details.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:40:10 +08:00
Pankaj Gupta
934c85903f LF-15060: drivers: firmware: imx: se: Enables support of i.MX95 rev B0
Enables the support for V2X-SG#0 & V2X-SG#1 on i.MX95 B0.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:40:06 +08:00
Pankaj Gupta
9d86c4874b LF-14029-1: drivers: firmware: imx: new api v2x debug dump
New API support is added for dumping v2x debug logs.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Reviewed-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
Reviewed-by: Gaurav Jain <gaurav.jain@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:40:02 +08:00
Pankaj Gupta
d97abaf3e7 LF-14029: drivers: firmware: imx: v2x suspend resume
As part linux suspend resume, v2x-fw is requested to:
- power-down as part of suspend.
- power-up as part of resume.

Squash: 8fd2c1e95e24a ("TBS: drivers: firmware: imx: replace the hardcoded debugging address.")
 4a6e34427205b TBS: LF-14638: driver: firmware: imx: v2x suspend-resume snd-rcv error checking

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Reviewed-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
Reviewed-by: Gaurav Jain <gaurav.jain@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:39:56 +08:00
Pankaj Gupta
af7dddaced LF-14060-1: drivers: firmware: imx: msg-seq flow applied
imx: Enforcing the msg-seq flow feature is applied
to change voltage API(s).

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
Tested-by: Ye Li <ye.li@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:39:49 +08:00
Pankaj Gupta
9773681cdd LF-14060: drivers: firmware: imx: enforce msg-seq flow
New kernel feature to enforce the msg-seq flow:
- Once started before the first API,
- will continue for all the intermediate participating API(s),
- will halt after the last API successfully exchanged.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
Tested-by: Ye Li <ye.li@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:39:39 +08:00
Pankaj Gupta
88996dad6b LF-13910-9: drivers: firmware: imx: add IOCTL for performance benchmarking
add IOCTL for performance benchmarking

Squash: 1937148af0929 ("TBS: drivers: firmware: imx: ioctl: includes header file")
Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Signed-off-by: Nikhil Singla <nikhil.singla@nxp.com>
Acked-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
Acked-by: Vabhav Sharma <vabhav.sharma@nxp.com>
Acked-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:39:31 +08:00
Pankaj Gupta
4faa6aeb8b LF-13910-8: drivers: firmware: imx: add support for i.MX8DXL/QXP/QM
add support for i.MX8DXL/QXP/QM

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
Acked-by: Vabhav Sharma <vabhav.sharma@nxp.com>
Acked-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:39:24 +08:00
Pankaj Gupta
9e7d5cc9f6 LF-13910-7: drivers: firmware: imx: add support for i.MX95 soc
add support for i.MX95 soc

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
Acked-by: Vabhav Sharma <vabhav.sharma@nxp.com>
Acked-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Reviewed-by: Gaurav Jain <gaurav.jain@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:39:18 +08:00
Pankaj Gupta
b47a70ecb1 LF-13910-6: drivers: firmware: imx: export se-api(s) in se_api.h
export se-api(s) in se_api.h:
- for reading/writing fuses
- for voltage control interface.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
Acked-by: Vabhav Sharma <vabhav.sharma@nxp.com>
Acked-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:39:11 +08:00
Pankaj Gupta
c44540c6a8 LF-13910-5: drivers: firmware: imx: add support for imx93 soc
Add support for imx93 soc and its platforms.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
Acked-by: Vabhav Sharma <vabhav.sharma@nxp.com>
Acked-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:39:03 +08:00
Pankaj Gupta
2c2034c656 LF-13910-4: drivers: firmware: imx: se debug dump log file
Debugging feature to enable time synchronised logging of:
- the Message exchange over MU with FW.
- IOCTL(s)
- any user articulated debug messages.

The logs are saved to a file in the linux filesystem.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
Acked-by: Vabhav Sharma <vabhav.sharma@nxp.com>
Acked-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:38:55 +08:00
Pankaj Gupta
ad497d1c5b LF-13910-3: firmware: imx: additional changes to the upstream driver.
additional changes to the upstream driver.
- construct se_name from se_type_id and instance id
- move soc_register to info_list
- move fetch soc info function pointer to info_list
- ele soc fetch generalization
- ele debug dump

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
Acked-by: Vabhav Sharma <vabhav.sharma@nxp.com>
Acked-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:38:49 +08:00
Pankaj Gupta
9dfd27b6b2 LF-13910-2: firmware: imx: add miscdev
Add the driver for communication interface to secure-enclave,
for exchanging messages with NXP secure enclave HW IP(s) like
EdgeLock Enclave from:
- User-Space Applications via character driver.

ABI documentation for the NXP secure-enclave driver.

User-space library using this driver:
- i.MX Secure Enclave library:
  -- URL: https://github.com/nxp-imx/imx-secure-enclave.git,
- i.MX Secure Middle-Ware:
  -- URL: https://github.com/nxp-imx/imx-smw.git

Squash: <8e91220ab110> ("drivers: fw: imx: increased wait-timeout value")
Squash: <a0c004d35ef4> ("firmware:imx: Fix cleanup of SE driver")
Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
Acked-by: Vabhav Sharma <vabhav.sharma@nxp.com>
Acked-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:38:41 +08:00
Pankaj Gupta
a21e6e64e3 LF-13910-1: firmware: imx: add driver for NXP EdgeLock Enclave
NXP hardware IP(s) for secure-enclaves like Edgelock Enclave(ELE),
are embedded in the SoC to support the features like HSM, SHE & V2X,
using message based communication interface.

The secure enclave FW communicates on a dedicated messaging unit(MU)
based interface(s) with application core, where kernel is running.
It exists on specific i.MX processors. e.g. i.MX8ULP, i.MX93.

This patch adds the driver for communication interface to secure-enclave,
for exchanging messages with NXP secure enclave HW IP(s) like EdgeLock
Enclave (ELE) from Kernel-space, used by kernel management layers like
- DM-Crypt.

squash e7d2fac2d1ceb TBS: LF-14067: drivers: firmware: imx: se suspend-resume
squash c4c9b2f7cf710 TBS: drivers: firmware: imx: correct macro ELE_DEBUG_DUMP_RSP_SZ value

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
Acked-by: Vabhav Sharma <vabhav.sharma@nxp.com>
Acked-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Reviewed-by: Gaurav Jain <gaurav.jain@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:38:08 +08:00
Pankaj Gupta
bdeff7cd56 LF-13910: remove base driver for secure-enclave
remove base driver for secure-enclave

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:37:55 +08:00
Rahul Kumar Yadav
aa31dd8e0b LF-13853: firmware: imx: se-fw: fix uninitialized err variable
Initialized the err variable to fix the coverity issue,
"Uninitialized scalar variable"

Signed-off-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2024-11-11 14:20:22 +01:00
Pankaj Gupta
acc316c606 LF-13448 : drivers: firmware: imx: FW abort indication
Secure-enclave FW drivers enhanced to publish the FW abort
indication with an error print.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
2024-10-22 15:47:22 +05:30
Meenakshi Aggarwal
fcab0c7e9b LF-13675: imx: Support to run SHE NVM on debug MU
Change CMD and RSP tag id of dubug MU for i.MX95
to support running SHE NVM on Debug MU

Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
2024-10-17 11:32:44 +02:00
Vabhav Sharma
3da9266a17 LF-12610: drivers: se_fw: fix signed message support
signed message ioctl() is not available due to which
test will fail on i.MX8X SECO that have signed message
 not null.

Signed-off-by: Vabhav Sharma <vabhav.sharma@nxp.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Reviewed-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2024-09-03 09:22:23 +02:00
Meenakshi Aggarwal
b6ee9559b3 LF-13063:imx:se_fw: Add board_type information in soc info structure
Update soc_info structure to have board_type information.
board_type is deduced by reading fuse values using nvmem framework

get_soc_info ioctl is updated to return board_type for i.MX8dxl

Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@nxp.com>
2024-08-30 11:14:20 +02:00
Ye Li
128b768e49 LF-13112 firmware: se_fw: Re-install FW for 8ULP ELE iMEM lost
When running below low power case on 8ULP dual boot, we meet Linux fail to
restore ELE imem from file

APD: Linux boot, then “poweroff” to DPD.
RTD: After linux “poweroff”, enter DPD and wake up by timer (G+T+2)
     then enter PD and wake up by timer (F+T+2), wake up APD (W).

The root cause is when RTD is waken up from DPD, it is booted from ROM,
and ROM reloads the ELE FW and RTD image. Then when RTD is waken up from PD
and wake up APD, APD will try to restore the ELE imem which was saved
before ELE FW reloading. So this imem restore is failed.

To avoid moving ELE imem save/restore to M33, because of RAM size problem
and big codes change. The proposed solution is replacing the imem restore
from file with re-install ELE FW. This patch needs to work with ELE FW
which supports the re-install feature.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@nxp.com>
2024-08-07 18:27:26 +08:00
Rahul Kumar Yadav
1b51a84995 LF-12931: firmware: imx: se-fw: fetch SoC Info for i.MX8DXL and i.MX8QXP
Modified IOCTL to provide SoC ID and SoC Rev for i.MX8DXL and i.MX8QXP

Signed-off-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
2024-08-01 08:48:32 +02:00
Ye Li
4207e96647 LF-11663-1 firmware: imx: ele_fw: Support Voltage start and finish API
To support iMX93 GDET enabled part, it needs to isolate GDET when VDD_SOC
changing between OD and LD. ELE introduces two new APIs: voltage start and
finish for this purpose.

Voltage change start:
 - This command isolates GDET and launches a 5 ms timer.
   During the 5 ms, the voltage needs to be changed and voltage change
   finish command must be called to remove GDET isolation (no other command
   will be accepted). A GDET software reset is done before removing the
   isolation in voltage change finish.

Voltage change finish:
 - This command can’t be called without voltage change start.

To support above commands, especailly no other command will be accepted
after voltage change start issued, so adjust the mu_cmd_lock to each
command begin, this also resolves potential issue in imx_se_alloc_tx_rx_buf
since the buf pointer is not locked.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
2024-07-19 13:43:36 +08:00
Pankaj Gupta
f44e7ab360 LF-11066: firmware: imx: se-fw: fix for ctrl + c
Clean-up, when signal interrupt from ctrl + c, is received
by se-fw kernel driver; in order to achieve the graceful
exit to any application based on se-lib.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
2024-07-15 11:29:34 +02:00
Pankaj Gupta
b45a4a643f LF-12608: seco: fix: error prints for ele api(s).
On platforms that supports HSM backed by SECO, fix the error
prints for calling ELE API(s).

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
2024-07-12 13:05:22 +02:00
Ye Li
b586a52177 LF-12620 firmware: se_fw: Fix 8ULP iMEM issue when RTD is power down
When RTD is power down, 64kB over the 96kB of ELE FW RAM are lost and
must be restored at resume. However when kernel (APD) is poweroff,
current implementation does not restore the ELE RAM, so cause failure
when trying to load externd FW.

To fix the issue, this patch checks the iMEM state from ELE get info API
to determine loading extend FW or restore iMEM. It also saves ELE iMEM RAM
to file on rootfs at ELE driver probe and resume.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Tested-by: Jacky Bai <ping.bai@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2024-06-07 21:15:57 +08:00
Vabhav Sharma
da4e1bbc0a LF-12593-4 driver: firmware: enable she support
SHE info structure is added for SECO SHE support

Signed-off-by: Vabhav Sharma <vabhav.sharma@nxp.com>
Reviewed-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2024-06-05 17:17:42 +08:00
Vabhav Sharma
51d550573a LF-12593-3 drivers: imx: enable v2x support
i.MX8DXL support SECO and V2X, Info structure is modified
to support V2X nodes.

Signed-off-by: Vabhav Sharma <vabhav.sharma@nxp.com>
Reviewed-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2024-06-05 17:17:42 +08:00
Vabhav Sharma
667059c3d5 LF-12593-2 drivers: firmware: imx: unify seco mu driver with se fw
Two different drivers for ELE SE and SECO SE. Both SE use
MU framework. Unify ELE SE FW driver with SECO MU driver.

Add base patch support of SECO MU in ELE SE FW driver.

Signed-off-by: Vabhav Sharma <vabhav.sharma@nxp.com>
Reviewed-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2024-06-05 17:17:42 +08:00
Peng Fan
d4f2a37685 LF-12259 firmware: imx: fix scmi misc event
Using rising/falling edge as event id is wrong. To SCMI MISC, event id
is always 0. But rising/falling edge flags still needs to be passed to
System Manager to configure, so export a new hook misc_ctrl_req_notify
to enable notification.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
Tested-by: Shenwei Wang <shenwei.wang@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2024-05-08 11:11:19 +08:00
Nikhil Singla
4958e7a7a6 LF-11912: drivers: se: Add V2X SV MU support
Added support for V2X SV MU on i.MX95

Signed-off-by: Nikhil Singla <nikhil.singla@nxp.com>

Signed-off-by: Vabhav Sharma <vabhav.sharma@nxp.com>
2024-05-03 17:44:56 +02:00
Pankaj Gupta
80bac5f595 LF-12079: firmware: imx: soc rev is fetched for each se mu interface
Stop fetching soc rev for each se mu interface.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
2024-05-01 13:33:03 +02:00
Vabhav Sharma
2a64314a05 LF-11461: drivers: se: add v2x changes
Added changes for v2x mu node name uniformity.

Signed-off-by: Vabhav Sharma <vabhav.sharma@nxp.com>
2024-04-24 11:38:38 +02:00
Vabhav Sharma
f23f62d148 LF-11196: secure enclave driver: mu name uniform
MU name added as per IP functionality.

Signed-off-by: Vabhav Sharma <vabhav.sharma@nxp.com>
2024-04-24 11:38:38 +02:00
Gaurav Jain
403afa8f3a LF-11873-2: firmware: imx95: ele: enable ele pseudo rng on imx95
imx95 firmware does not support reseed functionality,
hence enabling pseudo rng in kernel.

Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com>
2024-04-22 08:01:02 +02:00
Pankaj Gupta
72ec553fef LF-11873-1: firmware: imx: add api for getting soc id
added get_se_soc_id() api which returns the socid of device

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
2024-04-22 08:01:02 +02:00
Pankaj Gupta
6b3baff953 LF-12031: firmware: imx: se-fw: i.MX9x: prevent soc-registration
Now, SoC attributes registration will be done based on data
fetched from TF-A, on NXP i.MX9 series SoC.

Changes prevents soc-registration for all NXP i.MX9 Series SoC,
as part the driver.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
2024-04-18 13:18:24 +02:00
Ranjani Vaidyanathan
ed2b7cd474 LF-11618 firmware: imx: sm-misc: Fix kernel crash when no wakeup sources are defined in dts.
Using u32 type to store the number of wakeup sources results
in kernel crash when no wakeup sources are defined in dts.
Need to use integer data type.

Signed-off-by: Ranjani Vaidyanathan <ranjani.vaidyanathan@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
2024-04-03 15:05:43 -05:00
Robert Chiras
7568a4a5da LF-11070-3: firmware: imx: add IPC ISP-MU drivers
Implement mailbox specific driver for the Messaging Units used by ISP-FW
running on a remote core.
This will be used as a communication protocol for the ISP firmware code.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
2024-04-03 10:00:36 +03:00
Pankaj Gupta
619b47abe1 firmware: imx: ele-base-api: clean-up
- Allocated buffer clean-up in the func "ele_service_swap".
- Sending/receiving the same message twice in the func "ele_get_trng_state".

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
2024-04-02 13:11:12 +02:00
Pankaj Gupta
87431bb05e LF-10752: firmware: imx: se-fw: imx8ulp: Dual FW support
Enabling Dual FW support on i.MX8ULP, such that secondary
FW is copied from RFS and sent for authentication to ELE-FW
before loading it, to enable HSM feature-set.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
2024-04-02 13:11:11 +02:00
Nikhil Singla
79048174f8 LF-11665: imx: secure enclave driver: Add IOCTL to provide MU request and response timers
Added IOCTL to provide timestamps for the request and response from FW for
crypto operations.

Signed-off-by: Nikhil Singla <nikhil.singla@nxp.com>
2024-04-02 08:54:44 +02:00
Meenakshi Aggarwal
d0af6cde3d LF-11689:imx Data abort while using FAST MAC v2
Issue:
Data abort during memset() operation when using FAST MAC v2
with maximum supported message length i.e. 240 bytes.

Fix:
MU buffer is a device type memory, when calling memset()
with 240 bytes then it optimizes the call and perform cache
clean operation which results in exception as device type
memory is on-cacheable.
Using recommended memset_io() for device_type memory.

Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
2024-04-02 07:48:44 +02:00
Meenakshi Aggarwal
20184bbc23 LF-11656: imx: Correct offset to read RNG init status
Issue:
data offset 0 was used to compare the Primary and Secondary
RNG entopy generation status

Fix:
change data offset to 1

Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
2024-04-02 07:48:44 +02:00
Jacky Bai
71f38ad9e9 LF-11148 firmware: imx: Fix the pwr key press event missing
The key 'suspended' status will be set to 'false' in resume
callback. But the 'pwrkey_event' is called after resume callback,
the pwr key press event will be lost when resumed pwr key event.

Set 'suspended' to false in 'pwrkey_event' to fix the key press
event missing issue.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
2024-04-02 09:28:42 +08:00