u-boot/drivers
Dhruva Gole 0c4e36d65f firmware: ti_sci: fix the secure_hdr in do_xfer
The ti_sci driver in U-Boot has support for secure_msg as part of it's
do_xfer function. This let's U-boot send secure messages during boot up.

The protocol to send such secure messages is described as part of the
struct ti_sci_secure_msg_hdr. As part of this, there are 2 fields for
checksum and reserved that occupy the first 4 bytes of any secure
message. This is called as the secure_hdr.

As of now, the secure_hdr needs to be 0 init-ed before sending secure
messages. However the existing code was never putting the zero-inited vars
into the secure_buf, leading to possibility of the first 4 bytes of
secure_buf being possibly garbage.

Fix this by initialising the secure_hdr itself to the secure_buf
location, thus when we make secure_hdr members 0, it automatically ensures
the first 4 bytes of secure_buf are 0.

Fixes: 32cd25128b ("firmware: Add basic support for TI System Control Interface (TI SCI)")
Reviewed-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Dhruva Gole <d-gole@ti.com>
2024-02-06 16:31:06 -05:00
..
adc dm: adc: imx93-adc depends on ADC (fix boot) 2023-10-18 10:02:49 +02:00
ata Prepare v2024.01-rc3 2023-11-20 09:19:50 -05:00
axi axi: fix definition of axi_sandbox_get_emul() 2023-06-01 12:32:03 -04:00
bios_emulator global: Drop common.h inclusion 2023-12-21 08:54:37 -05:00
block blk: blkmap: add ramdisk creation utility function 2023-11-18 10:08:08 +02:00
bootcount bootcount: Add driver model I2C driver 2023-10-31 09:09:04 +01:00
bus bus: Optionally include TI sysc driver in SPL/TPL 2022-12-02 08:39:00 -05:00
button button: qcom-pmic: introduce Qualcomm PMIC button driver 2024-01-16 12:26:53 +00:00
cache cache: add sifive private L2 cache driver 2023-12-27 17:28:57 +08:00
clk clk: clk-gpio: add actual gated clock 2024-01-29 22:35:34 -05:00
core fdt: Check for a valid fdt in oftree_ensure() 2023-12-13 18:39:05 -05:00
cpu smbios: provide type 4 RISC-V SMBIOS Processor ID 2024-02-02 19:57:16 +01:00
crypto global: Drop common.h inclusion 2023-12-21 08:54:37 -05:00
ddr global: Drop common.h inclusion 2023-12-21 08:54:37 -05:00
demo
dfu dfu: add CONFIG_DFU_NAME_MAX_SIZE configuration 2023-11-21 15:28:15 +01:00
dma dma: ti: k3-udma: Use ring_idx to pair k3 nav rings 2024-02-06 16:31:06 -05:00
extcon extcon: add MAX14526 MUIC support 2023-05-02 14:23:58 -04:00
fastboot fastboot: add oem console command support 2024-01-09 14:58:33 +01:00
firmware firmware: ti_sci: fix the secure_hdr in do_xfer 2024-02-06 16:31:06 -05:00
fpga arm64: zynqmp: Fix Siva's email address format 2023-10-09 10:25:32 +02:00
fuzz
fwu-mdata FWU: Add FWU metadata access driver for MTD storage regions 2023-06-09 13:52:40 -04:00
gpio treewide: Remove clk_free 2024-01-29 22:35:02 -05:00
hwspinlock treewide: Remove clk_free 2024-01-29 22:35:02 -05:00
i2c treewide: Remove clk_free 2024-01-29 22:35:02 -05:00
input input: avoid NULL dereference 2023-10-11 10:35:24 -04:00
iommu iommu: dont fail silently 2024-01-18 12:18:48 -05:00
led led: add TI LP5562 LED driver 2023-12-13 11:35:16 -05:00
mailbox treewide: Remove clk_free 2024-01-29 22:35:02 -05:00
memory memory: ti-gpmc: Fix build 2024-01-15 08:58:24 +01:00
mfd mfd: syscon: atmel-smc: Add new helpers to ease SMC regs manipulation 2022-12-08 18:06:27 +02:00
misc smbios: correctly name Structure Table Maximum Size field 2024-02-02 19:57:45 +01:00
mmc Add RaspberryPi5 basic support. 2024-02-05 09:31:48 -05:00
mtd First set of u-boot-at91 features for the 2024.04 cycle 2024-01-31 10:44:33 -05:00
mux tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
net net: phy: motorcomm: configure pad drive strength register 2024-01-31 16:52:49 +08:00
nvme nvme: Update nvme_scan_namespace to keep trying on busy 2024-01-18 20:24:13 -05:00
pch x86: Convert some debug statements to use logging 2023-07-17 17:23:14 +08:00
pci drivers: pci: Fix dm_pci_map_bar() to support 64b BARs 2024-01-18 20:24:13 -05:00
pci_endpoint global: Drop common.h inclusion 2023-12-21 08:54:37 -05:00
phy treewide: Remove clk_free 2024-01-29 22:35:02 -05:00
pinctrl treewide: Remove clk_free 2024-01-29 22:35:02 -05:00
power treewide: Remove clk_free 2024-01-29 22:35:02 -05:00
pwm treewide: use linux/time.h for time conversion defines 2023-11-16 18:59:58 -05:00
qe qe: Add <asm/ppc.h> on PowerPC 2023-11-07 14:50:51 -05:00
ram tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
reboot-mode reboot-mode: Add NVMEM reboot mode 2023-01-11 11:54:50 -05:00
remoteproc remoteproc: k3-dsp: Avoid reloading of firmware 2023-12-19 10:07:48 -05:00
reset reset: reset-hisilicon: also handle #reset-cells = <2> 2024-01-24 16:17:14 -05:00
rng rng: detect RISC-V Zkr RNG device in bind method 2024-01-09 07:37:05 +01:00
rtc treewide: Remove clk_free 2024-01-29 22:35:02 -05:00
scsi Prepare v2024.01-rc3 2023-11-20 09:19:50 -05:00
serial treewide: Remove clk_free 2024-01-29 22:35:02 -05:00
sm drivers: sm: bind child sm devices in the device tree 2023-11-06 09:45:47 +01:00
smem
soc configs: keystone2: Do not include hardware.h 2023-11-29 09:32:15 -05:00
sound test: test sandbox sound driver more rigorously 2022-12-05 17:43:21 +01:00
spi treewide: Remove clk_free 2024-01-29 22:35:02 -05:00
spmi spmi: msm: fix register range names 2024-01-16 12:26:54 +00:00
sysinfo sysinfo: Allow displaying more info on startup 2023-11-28 12:53:04 -05:00
sysreset Prepare v2024.01-rc3 2023-11-20 09:19:50 -05:00
tee tee: optee: don't enumerate services if there ain't any 2023-12-19 10:07:48 -05:00
thermal tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
timer treewide: Remove clk_free 2024-01-29 22:35:02 -05:00
tpm tpm: remove superfluous check in tpm_tis_send() 2023-11-22 10:03:55 +02:00
ufs Merge patch series "ufs: Add a PCI UFS controller support" 2023-11-27 16:19:09 -05:00
usb treewide: Remove clk_free 2024-01-29 22:35:02 -05:00
video Add RaspberryPi5 basic support. 2024-02-05 09:31:48 -05:00
virtio Prepare v2024.01-rc3 2023-11-20 09:19:50 -05:00
w1 dm: treewide: Do not use the return value of simple uclass iterator 2022-10-29 07:36:33 -06:00
w1-eeprom
watchdog drivers: watchdog: add andes atcwdt200 support 2024-02-01 09:08:44 +01:00
xen xen: pvblock: fix the maximum io size in one operation 2023-11-29 09:32:15 -05:00
Kconfig drivers: introduce Secure Monitor uclass 2023-10-15 12:23:48 +02:00
Makefile sunxi: add R528/T113-s3/D1(s) DRAM initialisation code 2023-10-22 23:41:52 +01:00