Skip to content

Commit 5abc174

Browse files
sivadurmichalsimek
authored andcommitted
firmware: xilinx: Dont send linux address to get fpga config get status
Fpga get config status just returns status through ret_payload and there is no need to allocate local buf and send its address through SMC args. Moreover, the address that is being passed till now is linux virtual address and is incorrect. Corresponding modification has been done in the firmware to avoid using the address sent by linux. Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.prasad.paladugu@amd.com> Signed-off-by: Nava kishore Manne <nava.kishore.manne@amd.com> Link: https://lore.kernel.org/r/20250207054951.1650534-1-nava.kishore.manne@amd.com Signed-off-by: Michal Simek <michal.simek@amd.com>
1 parent 40384c8 commit 5abc174

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

drivers/firmware/xilinx/zynqmp.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,17 +1139,13 @@ EXPORT_SYMBOL_GPL(zynqmp_pm_fpga_get_status);
11391139
int zynqmp_pm_fpga_get_config_status(u32 *value)
11401140
{
11411141
u32 ret_payload[PAYLOAD_ARG_CNT];
1142-
u32 buf, lower_addr, upper_addr;
11431142
int ret;
11441143

11451144
if (!value)
11461145
return -EINVAL;
11471146

1148-
lower_addr = lower_32_bits((u64)&buf);
1149-
upper_addr = upper_32_bits((u64)&buf);
1150-
11511147
ret = zynqmp_pm_invoke_fn(PM_FPGA_READ, ret_payload, 4,
1152-
XILINX_ZYNQMP_PM_FPGA_CONFIG_STAT_OFFSET, lower_addr, upper_addr,
1148+
XILINX_ZYNQMP_PM_FPGA_CONFIG_STAT_OFFSET, 0, 0,
11531149
XILINX_ZYNQMP_PM_FPGA_READ_CONFIG_REG);
11541150

11551151
*value = ret_payload[1];

0 commit comments

Comments
 (0)