History log of /rk3399_rockchip-uboot/drivers/firmware/scmi/smt.c (Results 1 – 5 of 5)
Revision Date Author Comments
# 486ce4e4 12-Sep-2024 Xuhui Lin <xuhui.lin@rock-chips.com>

UPSTREAM: dm: core: Add address translation in fdt_get_resource

Today of_address_to_resource() is called only in
ofnode_read_resource() for livetree support and
fdt_get_resource() is called when liv

UPSTREAM: dm: core: Add address translation in fdt_get_resource

Today of_address_to_resource() is called only in
ofnode_read_resource() for livetree support and
fdt_get_resource() is called when livetree is not supported.

The fdt_get_resource() doesn't do the address translation
so when it is required, but the address translation is done
by ofnode_read_resource() caller, for example in
drivers/firmware/scmi/smt.c::scmi_dt_get_smt_buffer() {
...
ret = ofnode_read_resource(args.node, 0, &resource);
if (ret)
return ret;

faddr = cpu_to_fdt32(resource.start);
paddr = ofnode_translate_address(args.node, &faddr);
...

The both behavior should be aligned and the address translation
must be called in fdt_get_resource() and removed for each caller.

Change-Id: Ic4a3a19fe7401fc21e446793f453bbc1a8ab4001
Fixes: a44810123f9e ("dm: core: Add dev_read_resource() to read device resources")
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Xuhui Lin <xuhui.lin@rock-chips.com>

show more ...


# ec5fec8d 14-Apr-2021 XiaoDong Huang <derrick.huang@rock-chips.com>

scmi: smt: fix error of get smt buffer

1. Don't translate resource.start.
2. Use 4k-aligned address to config smt_buffer's mmu region.

Change-Id: I15f4aa6dfbe05ae1a424132cd1c8b3a5e28b7a06
Signed-of

scmi: smt: fix error of get smt buffer

1. Don't translate resource.start.
2. Use 4k-aligned address to config smt_buffer's mmu region.

Change-Id: I15f4aa6dfbe05ae1a424132cd1c8b3a5e28b7a06
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>

show more ...


# 95a919af 12-Apr-2021 Joseph Chen <chenjh@rock-chips.com>

firmware: scmi: fix compile error after backport

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I603faeb2a13a45a324ba5b0880d3c2cf6ae3770e


# c2abcd78 05-Oct-2020 Sean Anderson <seanga2@gmail.com>

UPSTREAM: firmware: scmi: Include device_compat.h

This header is necessary for the dev_xxx macros.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>

(che

UPSTREAM: firmware: scmi: Include device_compat.h

This header is necessary for the dev_xxx macros.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>

(cherry picked from commit 66e7348fe7cbd40091dad017363f0d788ea69739)
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I8e225067f8a4204e0306d307914a547d2a66270d

show more ...


# 533e551c 09-Sep-2020 Etienne Carriere <etienne.carriere@linaro.org>

UPSTREAM: firmware: scmi: mailbox/smt agent device

This change implements a mailbox transport using SMT format for SCMI
exchanges. This implementation follows the Linux kernel and
SCP-firmware [1] a

UPSTREAM: firmware: scmi: mailbox/smt agent device

This change implements a mailbox transport using SMT format for SCMI
exchanges. This implementation follows the Linux kernel and
SCP-firmware [1] as references implementation for SCMI message
processing using SMT format for communication channel meta-data.

Use of mailboxes in SCMI FDT bindings are defined in the Linux kernel
DT bindings since v4.17.

Links: [1] https://github.com/ARM-software/SCP-firmware
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Cc: Simon Glass <sjg@chromium.org>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Sudeep Holla <sudeep.holla@arm.com>
Reviewed-by: Simon Glass <sjg@chromium.org>

(cherry picked from commit 240720e9052fa7459e4d8a46d508db1ae41ed238)
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I02ed9ea6925d9d90e8b46deecd9137ed78172f94

show more ...