[PATCH] lib: utils/fdt: devices to use MMIO memory
Anup Patel
anup at brainfault.org
Mon Dec 8 20:09:04 PST 2025
On Mon, Dec 8, 2025 at 2:56 PM Vladimir Kondratiev
<vladimir.kondratiev at mobileye.com> wrote:
>
> When applying FDT fixups, request device memory to be of
> MMIO type. MMIO memory type may imply different properties
> like cacheability. Request for the regular memory may be
> incompatible with the platform arrangement.
>
> Signed-off-by: Vladimir Kondratiev <vladimir.kondratiev at mobileye.com>
This is already taken care of by Samuel's patch.
Refer, https://github.com/riscv-software-src/opensbi/commit/51fe6a8bc958166ff79805cf69bafe5e297776f4
Regards,
Anup
> ---
> lib/utils/fdt/fdt_fixup.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/utils/fdt/fdt_fixup.c b/lib/utils/fdt/fdt_fixup.c
> index f3fe8af91dfa..b0ed20c85144 100644
> --- a/lib/utils/fdt/fdt_fixup.c
> +++ b/lib/utils/fdt/fdt_fixup.c
> @@ -185,7 +185,7 @@ static void fdt_domain_based_fixup_one(void *fdt, int nodeoff)
> return;
>
> if (!sbi_domain_check_addr(dom, reg_addr, dom->next_mode,
> - SBI_DOMAIN_READ | SBI_DOMAIN_WRITE)) {
> + SBI_DOMAIN_READ | SBI_DOMAIN_WRITE | SBI_DOMAIN_MMIO)) {
> rc = fdt_open_into(fdt, fdt, fdt_totalsize(fdt) + 32);
> if (rc < 0)
> return;
>
> base-commit: de376252f4f3e3df4998bd14893cb687821b4102
> --
> 2.43.0
>
More information about the opensbi
mailing list