[PATCH 9/9] mci: core: add missing slice range for extract_psn function

2024-05-28 Thread Stefan Kerkmann
Signed-off-by: Stefan Kerkmann --- drivers/mci/mci-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c index 8907e9dc83..75cdb049fb 100644 --- a/drivers/mci/mci-core.c +++ b/drivers/mci/mci-core.c @@ -1988,7 +1988,7 @@ static

[PATCH 5/9] mci: core: parse cid into parameters

2024-05-28 Thread Stefan Kerkmann
To make the MMC/SD CID information accessible for scripting all available CID fields are added as parameters during device probing. As some fields have different data types for MMC and SD cards a string representation is chosen these cases. Signed-off-by: Stefan Kerkmann --- drivers/mci/mci

[PATCH 8/9] mci: core: fix extract_oid and write to string buffer

2024-05-28 Thread Stefan Kerkmann
The oem id (OID) field is a 2 character long ASCII string for SD cards and a 8-bit binary number for MMC cards. Both are used in their string representation. Signed-off-by: Stefan Kerkmann --- drivers/mci/mci-core.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff

[PATCH 1/9] mci: core: rename mtd to mdt

2024-05-28 Thread Stefan Kerkmann
The field MDT (manufacturing date) was written with a small typo back in commit 7051227d2e68ad67078b9e7afb15ad5826161686, this commit fixes it. Signed-off-by: Stefan Kerkmann --- drivers/mci/mci-core.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/mci

[PATCH 6/9] mci: core: fix extract_prv and write to string buffer

2024-05-28 Thread Stefan Kerkmann
The product revision PRV field has a slightly different position for MMC and SD cards. As we almost certainly don't want to use the BCD representation for scripting the PRV is printed in a human friendly representation. Signed-off-by: Stefan Kerkmann --- drivers/mci/mci-core.c | 12

[PATCH 0/9] mci: core: add CID as parameters and fix parsing

2024-05-28 Thread Stefan Kerkmann
t32) Signed-off-by: Stefan Kerkmann --- Stefan Kerkmann (9): mci: core: rename mtd to mdt mci: core: add cbx extraction function mci: core: add product name extraction function mci: core: add manufacturing date extraction function mci: core: parse cid into paramet

[PATCH 7/9] mci: core: add CBX field as parameter and print it

2024-05-28 Thread Stefan Kerkmann
Signed-off-by: Stefan Kerkmann --- drivers/mci/mci-core.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c index 5e686c17d2..2f0f4c25f8 100644 --- a/drivers/mci/mci-core.c +++ b/drivers/mci/mci-core.c @@ -2123,6 +2123,8 @@ static void

[PATCH 3/9] mci: core: add product name extraction function

2024-05-28 Thread Stefan Kerkmann
The product name field PNM is available for both SD cards (len=5) and MMC cards (len=6). The currently used method doesn't respect the length for MMC cards. Signed-off-by: Stefan Kerkmann --- drivers/mci/mci-core.c | 25 + 1 file changed, 25 insertions(+) diff --git

[PATCH 2/9] mci: core: add cbx extraction function

2024-05-28 Thread Stefan Kerkmann
The CBX field is only present for eMMC and designates the type: 00 - Device (Removable) 01 - BGA (Discrete embedded) 10 - POP 11 - Reserved Signed-off-by: Stefan Kerkmann --- drivers/mci/mci-core.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/mci/mci-core.c b

[PATCH 4/9] mci: core: add manufacturing date extraction function

2024-05-28 Thread Stefan Kerkmann
This function operates on a string buffer and concatenates both the year and month. It will be used later when the mdt is added as a parameter. Signed-off-by: Stefan Kerkmann --- drivers/mci/mci-core.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/mci/mci-core.c b

[PATCH 0/3] net: phy: dp83867: sync dp83867_phy_reset

2024-05-23 Thread Stefan Kerkmann
ream Linux implementation. Signed-off-by: Stefan Kerkmann --- Stefan Kerkmann (3): net: phy: allow PHY drivers to implement their own software reset net: phy: document core PHY structures net: phy: dp83867: sync dp83867_phy_rest drivers/net/phy/dp83

[PATCH 2/3] net: phy: document core PHY structures

2024-05-23 Thread Stefan Kerkmann
This is a port of linux commit 4069a572d423b73919ae40a500dfc4b10f8a6f32 ("net: phy: Document core PHY structures"), that copies the Doxygen comments for the PHY structure where applicable. Signed-off-by: Stefan Kerkmann --- include/linux/phy.h | 20 +++- 1 file c

[PATCH 3/3] net: phy: dp83867: sync dp83867_phy_rest

2024-05-23 Thread Stefan Kerkmann
oring of commit 095cd32961aab64cfe72941ce43d99876852e12b ("net: phy: dp83867: reset PHY on probe") which already ported parts of the function, but diverted from the upstream implementation. Signed-off-by: Stefan Kerkmann --- drivers/net/phy/dp83867.c | 28 ++-

[PATCH 1/3] net: phy: allow PHY drivers to implement their own software reset

2024-05-23 Thread Stefan Kerkmann
ow applied always even if .config_init is undefined. This shouldn't be possible to happen though, because phy_driver_register will populate the member with genphy_config_init in that case, so the member should never be NULL. Signed-off-by: Stefan Kerkmann --- drivers/net/phy/phy.c | 16 ++-

[PATCH v2 4/6] arm: dts: karo: import dts for karo-qsxp-ml81

2024-03-11 Thread Stefan Kerkmann
-nxp.git Signed-off-by: Marc Kleine-Budde Signed-off-by: Stefan Kerkmann --- arch/arm/dts/imx8mp-karo-qsxp-ml81-upstream.dtsi | 71 arch/arm/dts/imx8mp-karo-qsxp-ml81.dtsi | 112 +++ arch/arm/dts/imx8mp-karo.dtsi| 398 +++ 3 files changed, 581

[PATCH v2 2/6] net: phy: micrel: update id table from Linux kernel

2024-03-11 Thread Stefan Kerkmann
From: Marc Kleine-Budde This syncs the known Micrel PHY IDs and register definitions with the Linux kernel, commit f600bb612b06adf70ccdefbd3294c71275b650c2. Signed-off-by: Marc Kleine-Budde Signed-off-by: Stefan Kerkmann --- include/linux/micrel_phy.h | 49

[PATCH v2 6/6] arm: imx8mp: add karo electronics qsxp-ml81 som support

2024-03-11 Thread Stefan Kerkmann
From: Marc Kleine-Budde The Ka-Ro QSXP is a i.MX8M Plus solder down system on module. This commit adds support for the SOM on the QSBASE4 RDK. [1]: https://www.karo-electronics.de/qsxp Signed-off-by: Marc Kleine-Budde Signed-off-by: Stefan Kerkmann --- arch/arm/boards/Makefile

[PATCH v2 0/6] arm: imx8mp: add karo electronics qsxp imx8mp som support

2024-03-11 Thread Stefan Kerkmann
-by: Stefan Kerkmann --- Changes in v2: - Adressed review comments from Ahmad - Link to v1: https://lore.barebox.org/20240311-karo-imx8mp-som-board-upstreaming-v1-0-7c77f9ba0...@pengutronix.de --- Marc Kleine-Budde (4): net: phy: micrel: update id table from Linux kernel net: phy

[PATCH v2 5/6] arm: dts: karo: add karo imx8mp-karo-qsxp-ml81-qsbase4

2024-03-11 Thread Stefan Kerkmann
]: https://karo-electronics.github.io/docs/getting-started/qsbase4/quickstart-qsbase4.html [2]: https://github.com/karo-electronics/meta-karo-nxp.git Signed-off-by: Stefan Kerkmann --- arch/arm/dts/imx8mp-karo-qsxp-ml81-qsbase4.dts | 82 ++ 1 file changed, 82 insertions(+) diff

[PATCH v2 3/6] net: phy: micrel: add support for ksz9131 phy

2024-03-11 Thread Stefan Kerkmann
From: Marc Kleine-Budde This imports the micrel KSZ9131 gigabit phy driver from Linux, commit 0316c7e66bbd16cf2d01a4e2f5afa6afb01278f2. Signed-off-by: Marc Kleine-Budde Signed-off-by: Stefan Kerkmann --- drivers/net/phy/micrel.c | 188 +++ 1 file

[PATCH v2 1/6] of: introduce of_property_read_s32

2024-03-11 Thread Stefan Kerkmann
From: Sebastian Reichel Introduce signed 32bit integer of_property_read method. Signed-off-by: Sebastian Reichel Signed-off-by: Grant Likely Signed-off-by: Marc Kleine-Budde Signed-off-by: Stefan Kerkmann --- include/of.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include

Re: [PATCH 4/6] arm: dts: karo: import dts for karo-qsxp-ml81

2024-03-11 Thread Stefan Kerkmann
Hello Ahmad, On 11.03.24 15:33, Ahmad Fatoum wrote: > Hello Stefan, > > On 11.03.24 15:23, Stefan Kerkmann wrote: >> Hello Ahmad, >> >> On 11.03.24 11:02, Ahmad Fatoum wrote: >>> Hello Stefan, >>> >>> On 11.03.24 10:10, Stefan Kerkmann wrote

Re: [PATCH 4/6] arm: dts: karo: import dts for karo-qsxp-ml81

2024-03-11 Thread Stefan Kerkmann
Hello Ahmad, On 11.03.24 11:02, Ahmad Fatoum wrote: > Hello Stefan, > > On 11.03.24 10:10, Stefan Kerkmann wrote: >> From: Marc Kleine-Budde >> >> This imports the device tree for the Ka-Ro QSXP, which is a i.MX8M Plus >> solder down system on module. T

Re: [PATCH 6/6] arm: imx8mp: add karo electronics qsxp imx8mp som support

2024-03-11 Thread Stefan Kerkmann
Hello Ahmad, On 11.03.24 14:58, Ahmad Fatoum wrote: > Hello Stefan, > > On 11.03.24 14:32, Stefan Kerkmann wrote: >> Hello Ahmad, >> >> On 11.03.24 11:13, Ahmad Fatoum wrote: >>> Hello Stefan, >>> >>> On 11.03.24 10:10, Stefan Kerkmann wr

Re: [PATCH 6/6] arm: imx8mp: add karo electronics qsxp imx8mp som support

2024-03-11 Thread Stefan Kerkmann
Hello Ahmad, On 11.03.24 11:13, Ahmad Fatoum wrote: > Hello Stefan, > > On 11.03.24 10:10, Stefan Kerkmann wrote: >> From: Marc Kleine-Budde >> >> The Ka-Ro QSXP is a i.MX8M Plus solder down system on module. This >> commit adds support for the SOM on

Re: [PATCH 5/6] arm: dts: karo: add karo imx8mp-karo-qsxp-qsbase4

2024-03-11 Thread Stefan Kerkmann
Hello Ahmad, On 11.03.24 11:05, Ahmad Fatoum wrote: > On 11.03.24 10:10, Stefan Kerkmann wrote: >> +/dts-v1/; >> + >> +#include "imx8mp-karo-qsxp-ml81.dts" >> + >> +&{/} { > > While not wrong, this is unnecessary. We know that there is a /

[PATCH 6/6] arm: imx8mp: add karo electronics qsxp imx8mp som support

2024-03-11 Thread Stefan Kerkmann
From: Marc Kleine-Budde The Ka-Ro QSXP is a i.MX8M Plus solder down system on module. This commit adds support for the SOM on the QSBASE4 RDK. [1]: https://www.karo-electronics.de/qsxp Signed-off-by: Marc Kleine-Budde Signed-off-by: Stefan Kerkmann --- arch/arm/boards/Makefile

[PATCH 4/6] arm: dts: karo: import dts for karo-qsxp-ml81

2024-03-11 Thread Stefan Kerkmann
-nxp.git Signed-off-by: Marc Kleine-Budde Signed-off-by: Stefan Kerkmann --- arch/arm/dts/imx8mp-karo-qsxp-ml81.dts | 160 + arch/arm/dts/imx8mp-karo.dtsi | 407 + 2 files changed, 567 insertions(+) diff --git a/arch/arm/dts/imx8mp-karo-qsxp-ml81

[PATCH 1/6] of: introduce of_property_read_s32

2024-03-11 Thread Stefan Kerkmann
From: Sebastian Reichel Introduce signed 32bit integer of_property_read method. Signed-off-by: Sebastian Reichel Signed-off-by: Grant Likely Signed-off-by: Marc Kleine-Budde Signed-off-by: Stefan Kerkmann --- include/of.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include

[PATCH 2/6] net: phy: micrel: update id table from Linux kernel

2024-03-11 Thread Stefan Kerkmann
From: Marc Kleine-Budde This syncs the known Micrel PHY IDs and register definitions with the Linux kernel, commit f600bb612b06adf70ccdefbd3294c71275b650c2. Signed-off-by: Marc Kleine-Budde Signed-off-by: Stefan Kerkmann --- include/linux/micrel_phy.h | 49

[PATCH 5/6] arm: dts: karo: add karo imx8mp-karo-qsxp-qsbase4

2024-03-11 Thread Stefan Kerkmann
]: https://karo-electronics.github.io/docs/getting-started/qsbase4/quickstart-qsbase4.html [2]: https://github.com/karo-electronics/meta-karo-nxp.git Signed-off-by: Stefan Kerkmann --- arch/arm/dts/imx8mp-karo-qsxp-ml81-qsbase4.dts | 86 ++ 1 file changed, 86 insertions(+) diff

[PATCH 0/6] arm: imx8mp: add karo electronics qsxp imx8mp som support

2024-03-11 Thread Stefan Kerkmann
-by: Stefan Kerkmann --- Marc Kleine-Budde (4): net: phy: micrel: update id table from Linux kernel net: phy: micrel: add support for ksz9131 phy arm: dts: karo: import dts for karo-qsxp-ml81 arm: imx8mp: add karo electronics qsxp imx8mp som support Sebastian Reichel (1

[PATCH 3/6] net: phy: micrel: add support for ksz9131 phy

2024-03-11 Thread Stefan Kerkmann
From: Marc Kleine-Budde This imports the micrel KSZ9131 gigabit phy driver from Linux, commit 0316c7e66bbd16cf2d01a4e2f5afa6afb01278f2. Signed-off-by: Marc Kleine-Budde Signed-off-by: Stefan Kerkmann --- drivers/net/phy/micrel.c | 188 +++ 1 file

Re: [PATCH 3/3] arm: mach-imx: tzasc: convert to cpu_is_mx8xyz macros

2024-02-28 Thread Stefan Kerkmann
Hi Sascha, On 28.02.24 12:05, Sascha Hauer wrote: > On Wed, Feb 28, 2024 at 09:46:51AM +0100, Stefan Kerkmann wrote: >> Hi Sascha, >> >> On 27.02.24 09:44, Sascha Hauer wrote: >>> On Mon, Feb 26, 2024 at 03:40:23PM +0100, Stefan Kerkmann wrote: >>>> Inst

[PATCH v2 1/3] arm: mach-imx: tzasc: lock id_swap_bypass bit

2024-02-28 Thread Stefan Kerkmann
t; it implemented. > > Since we're here, provide also names to bits from TRM instead of using > BIT() macro in the code. Reviewed-by: Ahmad Fatoum Reviewed-by: Andrey Zhizhikin Signed-off-by: Andrey Zhizhikin Signed-off-by: Stefan Kerkmann --- arch/arm/mach-imx/tzasc.c | 42 +++

[PATCH v2 3/3] arm: mach-imx: tzasc: convert to cpu_is_mx8xyz macros

2024-02-28 Thread Stefan Kerkmann
Instead of passing in configuration parameters at runtime we can utilize the `cpu_is_mx8xyz` macro family to determine which bits should be set. As the tzasc driver is imx specific, all functions are prefixed with `imx8m_` as well. Reviewed-by: Ahmad Fatoum Signed-off-by: Stefan Kerkmann

[PATCH v2 0/3] arm: mach-imx: tzasc: port lock id_swap_bypass bit

2024-02-28 Thread Stefan Kerkmann
This series ports the U-Boot commit 1289ff7bd7e4 ("imx8m: lock id_swap_bypass bit in tzc380 enable") to barebox and refactors the tzasc driver for the imx platform to use the `cpu_is_mx8xyz` macros. Signed-off-by: Stefan Kerkmann --- Changes in v2: - Rebased onto next to pickup code

[PATCH v2 2/3] arm: mach-imx: set cpu type in pbl

2024-02-28 Thread Stefan Kerkmann
as the `imx_init` function is discarded during linking as the whole `init_call` section is not linked into the final binary. Reviewed-by: Ahmad Fatoum Signed-off-by: Stefan Kerkmann --- arch/arm/mach-imx/Makefile | 2 +- arch/arm/mach-imx/atf.c| 5 + include/mach/imx/generic.h | 5 + 3 files

Re: [PATCH 3/3] arm: mach-imx: tzasc: convert to cpu_is_mx8xyz macros

2024-02-28 Thread Stefan Kerkmann
Hi Sascha, On 27.02.24 09:44, Sascha Hauer wrote: On Mon, Feb 26, 2024 at 03:40:23PM +0100, Stefan Kerkmann wrote: Instead of passing in configuration parameters at runtime we can utilize the `cpu_is_mx8xyz` macro family to determine which bits should be set. As the tzasc driver is imx

[PATCH 1/3] arm: mach-imx: tzasc: lock id_swap_bypass bit

2024-02-26 Thread Stefan Kerkmann
t; it implemented. > > Since we're here, provide also names to bits from TRM instead of using > BIT() macro in the code. Signed-off-by: Andrey Zhizhikin Signed-off-by: Stefan Kerkmann --- arch/arm/mach-imx/tzasc.c | 42 -- 1 file changed, 32 insert

[PATCH 0/3] arm: mach-imx: tzasc: port lock id_swap_bypass bit

2024-02-26 Thread Stefan Kerkmann
This series ports the U-Boot commit 1289ff7bd7e4 ("imx8m: lock id_swap_bypass bit in tzc380 enable") to barebox and refactors the tzasc driver for the imx platform to use the `cpu_is_mx8xyz` macros. Signed-off-by: Stefan Kerkmann --- Stefan Kerkmann (3): arm: mach-imx: t

[PATCH 2/3] arm: mach-imx: set cpu type in pbl

2024-02-26 Thread Stefan Kerkmann
as the `imx_init` function is discarded during linking as the whole `init_call` section is not linked into the final binary. Signed-off-by: Stefan Kerkmann --- arch/arm/mach-imx/Makefile | 2 +- arch/arm/mach-imx/atf.c| 5 + include/mach/imx/generic.h | 5 + 3 files changed, 11 insertions(+), 1

[PATCH 3/3] arm: mach-imx: tzasc: convert to cpu_is_mx8xyz macros

2024-02-26 Thread Stefan Kerkmann
Instead of passing in configuration parameters at runtime we can utilize the `cpu_is_mx8xyz` macro family to determine which bits should be set. As the tzasc driver is imx specific, all functions are prefixed with `imx8m_` as well. Signed-off-by: Stefan Kerkmann --- arch/arm/mach-imx/atf.c

[PATCH v2 2/2] of: fdt: fix oob writes with large fdt properties

2024-02-01 Thread Stefan Kerkmann
; fdt_ensure_space -> allocate only 128k for fdt->dt -> memcopy 8M into fdt->dt buffer -> crash The fix is to grow fdt->dt to hold at least the new property. The power of 2 increment is untouched to keep the same behaviour otherwise. Signed-off-by: Stefan Kerkmann --- drivers/of/fdt.c |

[PATCH v2 0/2] of: fdt: fix memory leak and oob writes in fdt_ensure_space

2024-02-01 Thread Stefan Kerkmann
I have encountered the oob write while attempting to modify a large FIT image with of_property. While hunting for the root cause I noticed that there is a potential memory leak in fdt_ensure_space as well. Both is fixed in this series. Signed-off-by: Stefan Kerkmann --- Changes in v2: - Review

[PATCH v2 1/2] of: fdt: fix memory leak in fdt_ensure_space

2024-02-01 Thread Stefan Kerkmann
If the reallocation failed the old memory remains allocated and is never freed, this is fixed by freeing the old memory on error. Signed-off-by: Stefan Kerkmann Reviewed-by: Ahmad Fatoum --- drivers/of/fdt.c | 28 +--- 1 file changed, 21 insertions(+), 7 deletions

Re: [PATCH 2/2] of: fdt: fix oob writes with large ftd properties

2024-02-01 Thread Stefan Kerkmann
Hello Ahmad, On 31.01.24 18:21, Ahmad Fatoum wrote: On 31.01.24 17:57, Stefan Kerkmann wrote: OOB writes can be triggered when fdt->dt_size * 2 is still smaller than the property for which memory should be allocated. This can happen under rare circumstances when editing a

Re: [PATCH 2/2] of: fdt: fix oob writes with large ftd properties

2024-02-01 Thread Stefan Kerkmann
Hi Sascha, On 01.02.24 08:47, Sascha Hauer wrote: In the subject: s/ftd/fdt/ Applied. Sascha On Wed, Jan 31, 2024 at 05:57:00PM +0100, Stefan Kerkmann wrote: OOB writes can be triggered when fdt->dt_size * 2 is still smaller than the property for which memory should be alloca

Re: [PATCH 1/2] of: fdt: fix memory leak in fdt_ensure_space

2024-02-01 Thread Stefan Kerkmann
Hello Ahmad, On 31.01.24 18:15, Ahmad Fatoum wrote: Hello Stefan, On 31.01.24 17:56, Stefan Kerkmann wrote: If the reallocation failed the old memory remains allocated and is never freed, this is fixed by freeing the old memory on error. Signed-off-by: Stefan Kerkmann --- drivers/of/fdt.c

[PATCH 1/2] of: fdt: fix memory leak in fdt_ensure_space

2024-01-31 Thread Stefan Kerkmann
If the reallocation failed the old memory remains allocated and is never freed, this is fixed by freeing the old memory on error. Signed-off-by: Stefan Kerkmann --- drivers/of/fdt.c | 27 --- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/drivers/of/fdt.c

[PATCH 2/2] of: fdt: fix oob writes with large ftd properties

2024-01-31 Thread Stefan Kerkmann
; fdt_ensure_space -> allocate only 128k for fdt->dt -> memcopy 8M into fdt->dt buffer -> crash The fix is to grow fdt->dt to hold at least the new property. The power of 2 increment is untouched to keep the same behaviour otherwise. Signed-off-by: Stefan Kerkmann --- drivers/of/fdt.c |

[PATCH 0/2] of: fdt: fix memory leak and oob writes in fdt_ensure_space

2024-01-31 Thread Stefan Kerkmann
I have encountered the oob write while attempting to modify a large FIT image with of_property. While hunting for the root cause I noticed that there is a potential memory leak in fdt_ensure_space as well. Both is fixed in this series. Signed-off-by: Stefan Kerkmann --- Stefan Kerkmann (2

Re: [PATCH v2 2/2] habv4: use hab rom implementation of report_event

2024-01-16 Thread Stefan Kerkmann
Hello Ahmad, Hello Sascha, On 17.01.24 08:20, Sascha Hauer wrote: On Tue, Jan 16, 2024 at 09:13:48AM +0100, Ahmad Fatoum wrote: Hello Stefan, On 12.01.24 16:21, Stefan Kerkmann wrote: +static enum hab_status hab_sip_report_event(enum hab_status status

[PATCH] ARM: i.MX8MP: enhance support for ocotp driver

2024-01-16 Thread Stefan Kerkmann
for HAB boot. As the peripheral is identical to the other SOCs found in the i.MX family the standard implementation was simply added. [1]: see Figure 6-25 OTP Memory Footprint, i.MX8MP RM Rev. 1 [2]: see Figure 6-28 OTP Memory Footprint, i.MX8MM RM Rev. 3 Signed-off-by: Stefan Kerkmann --- drivers

Re: [PATCH v2 2/2] habv4: use hab rom implementation of report_event

2024-01-12 Thread Stefan Kerkmann
On 12.01.24 16:21, Stefan Kerkmann wrote: The existing habv4 rom vector table had some mismatches in the API of the function pointers which broke calling into the HAB rom - mainly observed with the `report_event` function. The suspected culprit here is the `bytes` pointer which was `uint32_t

Re: [PATCH 1/2] habv4: correct habv4 rom vector table

2024-01-12 Thread Stefan Kerkmann
-- Pengutronix e.K. | Stefan Kerkmann | Steuerwalder Str. 21 | https://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-128 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9|

[PATCH v2 2/2] habv4: use hab rom implementation of report_event

2024-01-12 Thread Stefan Kerkmann
-off-by: Stefan Kerkmann --- drivers/hab/habv4.c | 48 ++-- 1 file changed, 38 insertions(+), 10 deletions(-) diff --git a/drivers/hab/habv4.c b/drivers/hab/habv4.c index 92bee8399d..4e401ca9d3 100644 --- a/drivers/hab/habv4.c +++ b/drivers/hab/habv4.c

[PATCH v2 1/2] habv4: correct habv4 rom vector table

2024-01-12 Thread Stefan Kerkmann
IP enum was extended with FSL_SIP_HAB_AUTH_IMG_NO_DCD which is supported by the upstream TF-A release 2.10. Signed-off-by: Stefan Kerkmann --- drivers/hab/habv4.c | 54 + 1 file changed, 34 insertions(+), 20 deletions(-) diff --git a/drivers/hab/habv4.c

[PATCH v2 0/2] Use HABv4 report_event implementation for imx8mm and imx8mn

2024-01-12 Thread Stefan Kerkmann
cause for the ram parsing workaround, with the corrections to the API these hangs were no longer observed. Signed-off-by: Stefan Kerkmann --- Changes in v2: - Fixed coding style from review comments - Added FSL_SIP_HAB_AUTH_IMG_NO_DCD to hab_sip_cmd found in TF-A 2.10 - Added imx8mp to known good

[PATCH 2/2] habv4: use hab rom implementation of report_event

2024-01-11 Thread Stefan Kerkmann
-by: Stefan Kerkmann --- drivers/hab/habv4.c | 43 ++- 1 file changed, 38 insertions(+), 5 deletions(-) diff --git a/drivers/hab/habv4.c b/drivers/hab/habv4.c index dfa0207435..db5862a92a 100644 --- a/drivers/hab/habv4.c +++ b/drivers/hab/habv4.c @@ -180,6

[PATCH 1/2] habv4: correct habv4 rom vector table

2024-01-11 Thread Stefan Kerkmann
All function signatures have been taken from the NXP manual "High Assurance Boot Version 4 Application Programming Interface Reference Manual" revision 1.4 under section "4.5 ROM vector table". A copy can be obtained from the imx code signing tool (imx-cst). Signed-off

[PATCH 0/2] Use HABv4 report_event implementation for imx8mm and imx8mn

2024-01-11 Thread Stefan Kerkmann
cause for the ram parsing workaround, with the corrections to the API these hangs were no longer observed. Signed-off-by: Stefan Kerkmann --- Stefan Kerkmann (2): habv4: correct habv4 rom vector table habv4: use hab rom implementation of report_event drivers/hab/habv4.c | 93

[PATCH] doc: user: barebox: add missing empty lines

2023-12-18 Thread Stefan Kerkmann
These where missed in b90e9ad8f7922b6a694c119017168bea1b6e16a1 and thus didn't render the code blocks. Signed-off-by: Stefan Kerkmann --- Documentation/user/barebox.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/user/barebox.rst b/Documentation/user/barebox.rst index

[PATCH v2 0/2] doc: user: barebox: add method for fit image chainloading

2023-12-15 Thread Stefan Kerkmann
This small series fixes one small usage of `bootm` and adds a section for chainloading a Barebox FIT image from U-Boot. To: open list:BAREBOX Signed-off-by: Stefan Kerkmann --- Changes in v2: - Added missing SOB - Added Acked-by from Ahmad Fatoum - Link to v1: https://lore.kernel.org/r

[PATCH v2 1/2] doc: user: barebox: bootz instead of bootm

2023-12-15 Thread Stefan Kerkmann
barebox-dt-2nd.img is in the `zImage` format, therefore use the proper command for booting on 32-bit platforms. Signed-off-by: Stefan Kerkmann Acked-by: Ahmad Fatoum --- Documentation/user/barebox.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/user

[PATCH v2 2/2] doc: user: barebox: add chainloading of fit images

2023-12-15 Thread Stefan Kerkmann
This documents an alternate method for chainloading Barebox from U-Boot by packing the Barebox image and matching device tree into an FIT image. Signed-off-by: Stefan Kerkmann Acked-by: Ahmad Fatoum --- Documentation/user/barebox.rst | 26 ++ 1 file changed, 26

[PATCH 0/2] doc: user: barebox: add method for fit image chainloading

2023-12-15 Thread Stefan Kerkmann
This small series fixes one small usage of `bootm` and adds a section for chainloading a Barebox FIT image from U-Boot. To: open list:BAREBOX Signed-off-by: Stefan Kerkmann --- Stefan Kerkmann (2): doc: user: barebox: bootz instead of bootm doc: user: barebox: add chainloading

[PATCH 1/2] doc: user: barebox: bootz instead of bootm

2023-12-15 Thread Stefan Kerkmann
barebox-dt-2nd.img is in the `zImage` format, therefore use the proper command for booting on 32-bit platforms. --- Documentation/user/barebox.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/user/barebox.rst b/Documentation/user/barebox.rst index

[PATCH 2/2] doc: user: barebox: add chainloading of fit images

2023-12-15 Thread Stefan Kerkmann
This documents an alternate method for chainloading Barebox from U-Boot by packing the Barebox image and matching device tree into an FIT image. --- Documentation/user/barebox.rst | 26 ++ 1 file changed, 26 insertions(+) diff --git a/Documentation/user/barebox.rst

[PATCH] arm: mach-socfpga: detect workaround for dram controller erratum

2023-12-14 Thread Stefan Kerkmann
Signed-off-by: Ahmad Fatoum Signed-off-by: Stefan Kerkmann --- To work around an erratum in the Altera DRAM controller, the previous booting stage may have increased the amount of rows to fake having 4G of RAM. In that case, we assume the previous booting stage will have fixed up a proper memory