* [PATCH 1/2] imx8m: Enable LTO by default
@ 2024-01-18 15:06 Fabio Estevam
2024-01-18 15:06 ` [PATCH 2/2] arm: imx: imx8m: Enable the SError exception Fabio Estevam
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Fabio Estevam @ 2024-01-18 15:06 UTC (permalink / raw)
To: sbabic; +Cc: uboot-imx, marex, thomas.schaefer, u-boot, Fabio Estevam
From: Fabio Estevam <festevam@denx.de>
In an attempt to select ARMV8_SPL_EXCEPTION_VECTORS, the SPL size
could not fit into the internal SRAM of some imx8m targets:
aarch64: + imx8mm_phg
+aarch64-linux-ld.bfd: u-boot-spl section `__u_boot_list' will not fit in region `.sram'
+aarch64-linux-ld.bfd: region `.sram' overflowed by 1824 bytes
Select LTO to prevent that.
Signed-off-by: Fabio Estevam <festevam@denx.de>
---
arch/arm/mach-imx/imx8m/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-imx/imx8m/Kconfig b/arch/arm/mach-imx/imx8m/Kconfig
index b1937198402f..328c3e388051 100644
--- a/arch/arm/mach-imx/imx8m/Kconfig
+++ b/arch/arm/mach-imx/imx8m/Kconfig
@@ -5,6 +5,7 @@ config IMX8M
select BINMAN
select GICV3 if ARMV8_PSCI
select HAS_CAAM
+ select LTO
select ROM_UNIFIED_SECTIONS
select ARMV8_CRYPTO
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread* [PATCH 2/2] arm: imx: imx8m: Enable the SError exception
2024-01-18 15:06 [PATCH 1/2] imx8m: Enable LTO by default Fabio Estevam
@ 2024-01-18 15:06 ` Fabio Estevam
2024-01-18 18:44 ` Marek Vasut
2024-01-18 18:43 ` [PATCH 1/2] imx8m: Enable LTO by default Marek Vasut
2024-01-22 12:59 ` Fabio Estevam
2 siblings, 1 reply; 6+ messages in thread
From: Fabio Estevam @ 2024-01-18 15:06 UTC (permalink / raw)
To: sbabic
Cc: uboot-imx, marex, thomas.schaefer, u-boot, Ye Li, Peng Fan,
Fabio Estevam
From: Ye Li <ye.li@nxp.com>
To work with commit 2f3c92060dcd ("imx8m: workaround ROM serror")
we need to enable the SError exception and install vector in SPL.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reported-by: Thomas Schaefer <thomas.schaefer@kontron.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
arch/arm/mach-imx/imx8m/Kconfig | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/mach-imx/imx8m/Kconfig b/arch/arm/mach-imx/imx8m/Kconfig
index 328c3e388051..eb0488a9e8bf 100644
--- a/arch/arm/mach-imx/imx8m/Kconfig
+++ b/arch/arm/mach-imx/imx8m/Kconfig
@@ -13,14 +13,17 @@ config IMX8MQ
bool
select IMX8M
select CLK_IMX8MQ
+ select ARMV8_SPL_EXCEPTION_VECTORS
config IMX8MM
bool
select IMX8M
+ select ARMV8_SPL_EXCEPTION_VECTORS
config IMX8MN
bool
select IMX8M
+ select ARMV8_SPL_EXCEPTION_VECTORS
config IMX8MP
bool
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH 2/2] arm: imx: imx8m: Enable the SError exception
2024-01-18 15:06 ` [PATCH 2/2] arm: imx: imx8m: Enable the SError exception Fabio Estevam
@ 2024-01-18 18:44 ` Marek Vasut
2024-01-18 20:45 ` Fabio Estevam
0 siblings, 1 reply; 6+ messages in thread
From: Marek Vasut @ 2024-01-18 18:44 UTC (permalink / raw)
To: Fabio Estevam, sbabic; +Cc: uboot-imx, thomas.schaefer, u-boot, Ye Li, Peng Fan
On 1/18/24 16:06, Fabio Estevam wrote:
> From: Ye Li <ye.li@nxp.com>
>
> To work with commit 2f3c92060dcd ("imx8m: workaround ROM serror")
> we need to enable the SError exception and install vector in SPL.
This really does need better commit message, sorry.
Details, please.
What does trigger the SError ?
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH 2/2] arm: imx: imx8m: Enable the SError exception
2024-01-18 18:44 ` Marek Vasut
@ 2024-01-18 20:45 ` Fabio Estevam
0 siblings, 0 replies; 6+ messages in thread
From: Fabio Estevam @ 2024-01-18 20:45 UTC (permalink / raw)
To: Marek Vasut, Ye Li; +Cc: sbabic, uboot-imx, thomas.schaefer, u-boot, Peng Fan
On Thu, Jan 18, 2024 at 4:08 PM Marek Vasut <marex@denx.de> wrote:
>
> On 1/18/24 16:06, Fabio Estevam wrote:
> > From: Ye Li <ye.li@nxp.com>
> >
> > To work with commit 2f3c92060dcd ("imx8m: workaround ROM serror")
> > we need to enable the SError exception and install vector in SPL.
>
> This really does need better commit message, sorry.
>
> Details, please.
>
> What does trigger the SError ?
Ye Li, please improve the commit message and send a v2.
Thanks
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] imx8m: Enable LTO by default
2024-01-18 15:06 [PATCH 1/2] imx8m: Enable LTO by default Fabio Estevam
2024-01-18 15:06 ` [PATCH 2/2] arm: imx: imx8m: Enable the SError exception Fabio Estevam
@ 2024-01-18 18:43 ` Marek Vasut
2024-01-22 12:59 ` Fabio Estevam
2 siblings, 0 replies; 6+ messages in thread
From: Marek Vasut @ 2024-01-18 18:43 UTC (permalink / raw)
To: Fabio Estevam, sbabic; +Cc: uboot-imx, thomas.schaefer, u-boot, Fabio Estevam
On 1/18/24 16:06, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
>
> In an attempt to select ARMV8_SPL_EXCEPTION_VECTORS, the SPL size
> could not fit into the internal SRAM of some imx8m targets:
>
> aarch64: + imx8mm_phg
> +aarch64-linux-ld.bfd: u-boot-spl section `__u_boot_list' will not fit in region `.sram'
> +aarch64-linux-ld.bfd: region `.sram' overflowed by 1824 bytes
>
> Select LTO to prevent that.
>
> Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Marek Vasut <marex@denx.de>
I wouldn't mind seeing LTO enabled for all of ARM64 eventually, but
that's for another patch.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] imx8m: Enable LTO by default
2024-01-18 15:06 [PATCH 1/2] imx8m: Enable LTO by default Fabio Estevam
2024-01-18 15:06 ` [PATCH 2/2] arm: imx: imx8m: Enable the SError exception Fabio Estevam
2024-01-18 18:43 ` [PATCH 1/2] imx8m: Enable LTO by default Marek Vasut
@ 2024-01-22 12:59 ` Fabio Estevam
2 siblings, 0 replies; 6+ messages in thread
From: Fabio Estevam @ 2024-01-22 12:59 UTC (permalink / raw)
To: sbabic; +Cc: uboot-imx, marex, thomas.schaefer, u-boot, Fabio Estevam
On Thu, Jan 18, 2024 at 12:06 PM Fabio Estevam <festevam@gmail.com> wrote:
>
> From: Fabio Estevam <festevam@denx.de>
>
> In an attempt to select ARMV8_SPL_EXCEPTION_VECTORS, the SPL size
> could not fit into the internal SRAM of some imx8m targets:
>
> aarch64: + imx8mm_phg
> +aarch64-linux-ld.bfd: u-boot-spl section `__u_boot_list' will not fit in region `.sram'
> +aarch64-linux-ld.bfd: region `.sram' overflowed by 1824 bytes
>
> Select LTO to prevent that.
>
> Signed-off-by: Fabio Estevam <festevam@denx.de>
Applied only this one, thanks.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-01-22 12:59 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-18 15:06 [PATCH 1/2] imx8m: Enable LTO by default Fabio Estevam
2024-01-18 15:06 ` [PATCH 2/2] arm: imx: imx8m: Enable the SError exception Fabio Estevam
2024-01-18 18:44 ` Marek Vasut
2024-01-18 20:45 ` Fabio Estevam
2024-01-18 18:43 ` [PATCH 1/2] imx8m: Enable LTO by default Marek Vasut
2024-01-22 12:59 ` Fabio Estevam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox