Re: [PATCH] bootstd: use ARCH_DMA_MINALIGN in memalign() when allocating memory
On Tue, Sep 19, 2023 at 02:27:21PM -0700, Tony Dinh wrote: > Use ARCH_DMA_MINALIGN in memalign() when allocating memory to read the script > from the media. > > Ref: > https://lore.kernel.org/u-boot/cajalify05f3cr4x4g2mvkppxnbefzrhq+5cngyn8ejpg8en...@mail.gmail.com/T/#m26daadc2463fe653b814a94e6309e5e6bb6be1d1 > > Note: this patch depends on the previous patch > https://patchwork.ozlabs.org/project/uboot/patch/20230917230649.30357-1-mibo...@gmail.com/ > > Signed-off-by: Tony Dinh > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature
Re: [PATCH] bootstd: use ARCH_DMA_MINALIGN in memalign() when allocating memory
On Tue, 19 Sept 2023 at 15:27, Tony Dinh wrote: > > Use ARCH_DMA_MINALIGN in memalign() when allocating memory to read the script > from the media. > > Ref: > https://lore.kernel.org/u-boot/cajalify05f3cr4x4g2mvkppxnbefzrhq+5cngyn8ejpg8en...@mail.gmail.com/T/#m26daadc2463fe653b814a94e6309e5e6bb6be1d1 > > Note: this patch depends on the previous patch > https://patchwork.ozlabs.org/project/uboot/patch/20230917230649.30357-1-mibo...@gmail.com/ > > Signed-off-by: Tony Dinh > --- > > boot/bootmeth_script.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass > > diff --git a/boot/bootmeth_script.c b/boot/bootmeth_script.c > index 96e0ec5efa..de2e510da1 100644 > --- a/boot/bootmeth_script.c > +++ b/boot/bootmeth_script.c > @@ -99,7 +99,7 @@ static int script_read_bootflow_file(struct udevice > *bootstd, > if (!bflow->subdir) > return log_msg_ret("prefix", -ENOMEM); > > - ret = bootmeth_alloc_file(bflow, 0x1, 1); > + ret = bootmeth_alloc_file(bflow, 0x1, ARCH_DMA_MINALIGN); > if (ret) > return log_msg_ret("read", ret); > > -- > 2.39.2 >
[PATCH] bootstd: use ARCH_DMA_MINALIGN in memalign() when allocating memory
Use ARCH_DMA_MINALIGN in memalign() when allocating memory to read the script from the media. Ref: https://lore.kernel.org/u-boot/cajalify05f3cr4x4g2mvkppxnbefzrhq+5cngyn8ejpg8en...@mail.gmail.com/T/#m26daadc2463fe653b814a94e6309e5e6bb6be1d1 Note: this patch depends on the previous patch https://patchwork.ozlabs.org/project/uboot/patch/20230917230649.30357-1-mibo...@gmail.com/ Signed-off-by: Tony Dinh --- boot/bootmeth_script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/bootmeth_script.c b/boot/bootmeth_script.c index 96e0ec5efa..de2e510da1 100644 --- a/boot/bootmeth_script.c +++ b/boot/bootmeth_script.c @@ -99,7 +99,7 @@ static int script_read_bootflow_file(struct udevice *bootstd, if (!bflow->subdir) return log_msg_ret("prefix", -ENOMEM); - ret = bootmeth_alloc_file(bflow, 0x1, 1); + ret = bootmeth_alloc_file(bflow, 0x1, ARCH_DMA_MINALIGN); if (ret) return log_msg_ret("read", ret); -- 2.39.2