Skip to contentSkip to conversation

xilinx: disable Unicode capitalization

PATCH New Heinrich Schuchardt 3 participants 10 messages May 16, 2021 – May 18, 2021 Arm/Zynq architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xilinx: disable Unicode capitalization

Save some KiB when building xilinx_versal_virt_defconfig by disabling Unicode capitalization support. This avoids build failures when adding new features for the UEFI sub-system.

---
It would be preferable to have a size check for the u-boot binary. This would avoid seeing problems only during execution.

---
 configs/xilinx_versal_virt_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/xilinx_versal_virt_defconfig +1 -0
index 707693713a..8bc2ff4a4c 100644
@@ -111,3 +111,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_USB_FUNCTION_THOR=y
 CONFIG_OF_LIBFDT_OVERLAY=y
+# CONFIG_EFI_UNICODE_CAPITALIZATION is not set

--
2.30.2

#1 lore raw

PATCH 1/1 xilinx: disable Unicode capitalization

Quoted 22 lines · Heinrich Schuchardt

Save some KiB when building xilinx_versal_virt_defconfig by disabling Unicode capitalization support. This avoids build failures when adding new features for the UEFI sub-system.

---
It would be preferable to have a size check for the u-boot binary. This would avoid seeing problems only during execution.

---
 configs/xilinx_versal_virt_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/xilinx_versal_virt_defconfig +1 -1
index 707693713a..8bc2ff4a4c 100644
@@ -111,3 +111,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_USB_FUNCTION_THOR=y
 CONFIG_OF_LIBFDT_OVERLAY=y
+# CONFIG_EFI_UNICODE_CAPITALIZATION is not set
--
Quoted 2 lines

2.30.2

What's the build issue? Any log? U-Boot is getting bigger and bigger and we are enabling more and more features for our generic targets that's why fixing that problem is better than disabling some options.

Thanks,
Michal

#2 lore raw

PATCH 1/1 xilinx: disable Unicode capitalization

Quoted 15 lines · Michal Simek
Quoted 12 lines · Heinrich Schuchardt

Save some KiB when building xilinx_versal_virt_defconfig by disabling Unicode capitalization support. This avoids build failures when adding new features for the UEFI sub-system.

---
It would be preferable to have a size check for the u-boot binary. This would avoid seeing problems only during execution.

---
 configs/xilinx_versal_virt_defconfig | 1 +
 1 file changed, 1 insertion(+)
Quoted 14 lines
Quoted 10 lines
configs/xilinx_versal_virt_defconfig +1 -1
index 707693713a..8bc2ff4a4c 100644
@@ -111,3 +111,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_USB_FUNCTION_THOR=y
 CONFIG_OF_LIBFDT_OVERLAY=y
+# CONFIG_EFI_UNICODE_CAPITALIZATION is not set
--
Quoted 2 lines

2.30.2

What's the build issue? Any log? U-Boot is getting bigger and bigger and

Hello Michal,

this job failed:
https://source.denx.de/u-boot/custodians/u-boot-efi/-/jobs/269614

After deactivating CONFIG_EFI_UNICODE_CAPITALIZATION I get success:
https://source.denx.de/u-boot/custodians/u-boot-efi/-/jobs/269620

Quoted 2 lines

we are enabling more and more features for our generic targets that's why fixing that problem is better than disabling some options.

I do not understand what you mean here.

CONFIG_EFI_UNICODE_CAPITALIZATION is enabled since years.

Best regards

Heinrich

#3 lore raw

PATCH 1/1 xilinx: disable Unicode capitalization

Added Tom to Cc.

Quoted 31 lines · Heinrich Schuchardt
Quoted 15 lines · Michal Simek
Quoted 12 lines · Heinrich Schuchardt

Save some KiB when building xilinx_versal_virt_defconfig by disabling Unicode capitalization support. This avoids build failures when adding new features for the UEFI sub-system.

---
It would be preferable to have a size check for the u-boot binary. This would avoid seeing problems only during execution.

---
  configs/xilinx_versal_virt_defconfig | 1 +
  1 file changed, 1 insertion(+)
Quoted 14 lines
Quoted 10 lines
configs/xilinx_versal_virt_defconfig +1 -1
index 707693713a..8bc2ff4a4c 100644
@@ -111,3 +111,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
  CONFIG_USB_GADGET_DOWNLOAD=y
  CONFIG_USB_FUNCTION_THOR=y
  CONFIG_OF_LIBFDT_OVERLAY=y
+# CONFIG_EFI_UNICODE_CAPITALIZATION is not set
--
Quoted 2 lines

2.30.2

What's the build issue? Any log? U-Boot is getting bigger and bigger and

Quoted 7 lines

Hello Michal,

this job failed:
https://source.denx.de/u-boot/custodians/u-boot-efi/-/jobs/269614

After deactivating CONFIG_EFI_UNICODE_CAPITALIZATION I get success:
https://source.denx.de/u-boot/custodians/u-boot-efi/-/jobs/269620

I had a similar, most likely related issue a few days ago:

https://dev.azure.com/sr0718/u-boot/_build/results?buildId=87&view=results

Tom git bi-sected this to this commit, which only adds a bit tiny bit of image size I assume:

"I bisected this down to:
commit 368b3f6db4540f913c436e5287be8356bc9a2891

Author: Stefan Chulski <[email protected]>
Date:   Mon May 3 08:08:44 2021 +0200

phy: introduce 1000BaseX and 2500BaseX modes

And while I'm not sure off-hand how it does it, it's causing the breakage. Maybe something is overflowing now?"

Thanks,
Stefan

#4 lore raw

PATCH 1/1 xilinx: disable Unicode capitalization

Hi,

Quoted 56 lines · Stefan Roese

Added Tom to Cc.

Quoted 33 lines · Heinrich Schuchardt
Quoted 16 lines · Michal Simek
Quoted 13 lines · Heinrich Schuchardt

Save some KiB when building? xilinx_versal_virt_defconfig by disabling Unicode capitalization support. This avoids build failures when adding new
features for the UEFI sub-system.

---
It would be preferable to have a size check for the u-boot binary. This would avoid seeing problems only during execution.
---
? configs/xilinx_versal_virt_defconfig | 1 +
? 1 file changed, 1 insertion(+)

Quoted 15 lines
Quoted 6 lines
configs/xilinx_versal_virt_defconfig +0 -0
index 707693713a..8bc2ff4a4c 100644
@@ -111,3 +111,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
Quoted 7 lines

? CONFIG_USB_GADGET_DOWNLOAD=y
? CONFIG_USB_FUNCTION_THOR=y
? CONFIG_OF_LIBFDT_OVERLAY=y
+# CONFIG_EFI_UNICODE_CAPITALIZATION is not set

Signature · 1 line
2.30.2

What's the build issue? Any log? U-Boot is getting bigger and bigger and

Quoted 7 lines

Hello Michal,

this job failed:
https://source.denx.de/u-boot/custodians/u-boot-efi/-/jobs/269614

After deactivating CONFIG_EFI_UNICODE_CAPITALIZATION I get success:
https://source.denx.de/u-boot/custodians/u-boot-efi/-/jobs/269620

I had a similar, most likely related issue a few days ago:

https://dev.azure.com/sr0718/u-boot/_build/results?buildId=87&view=results

Tom git bi-sected this to this commit, which only adds a bit tiny bit of image size I assume:

"I bisected this down to:
commit 368b3f6db4540f913c436e5287be8356bc9a2891
Author: Stefan Chulski <[email protected]>
Date:?? Mon May 3 08:08:44 2021 +0200

Quoted 7 lines

??? phy: introduce 1000BaseX and 2500BaseX modes

??? Signed-off-by: Stefan Chulski <[email protected]> ??? Signed-off-by: Stefan Roese <[email protected]>

And while I'm not sure off-hand how it does it, it's causing the breakage.? Maybe something is overflowing now?"

I have rebase Heinrich patches on the top of HEAD + my queue and I can't see any issue
https://source.denx.de/u-boot/custodians/u-boot-microblaze/-/tree/for-heinrich

It means likely what Stefan mentioned is likely correct.

Thanks,
Michal

#5 lore raw

PATCH 1/1 xilinx: disable Unicode capitalization

Hi Michal,

Quoted 64 lines · Michal Simek

Hi,

Quoted 61 lines · Stefan Roese

Added Tom to Cc.

Quoted 33 lines · Heinrich Schuchardt
Quoted 16 lines · Michal Simek
Quoted 13 lines · Heinrich Schuchardt

Save some KiB when building? xilinx_versal_virt_defconfig by disabling Unicode capitalization support. This avoids build failures when adding new
features for the UEFI sub-system.

---
It would be preferable to have a size check for the u-boot binary. This would avoid seeing problems only during execution.

---
 ? configs/xilinx_versal_virt_defconfig | 1 +

? 1 file changed, 1 insertion(+)

Quoted 15 lines
Quoted 13 lines
configs/xilinx_versal_virt_defconfig +1 -0
index 707693713a..8bc2ff4a4c 100644
@@ -111,3 +111,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
 ? CONFIG_USB_GADGET_DOWNLOAD=y
 ? CONFIG_USB_FUNCTION_THOR=y
 ? CONFIG_OF_LIBFDT_OVERLAY=y
+# CONFIG_EFI_UNICODE_CAPITALIZATION is not set
Signature · 1 line
2.30.2

What's the build issue? Any log? U-Boot is getting bigger and bigger and

Quoted 7 lines

Hello Michal,

this job failed:
https://source.denx.de/u-boot/custodians/u-boot-efi/-/jobs/269614

After deactivating CONFIG_EFI_UNICODE_CAPITALIZATION I get success:
https://source.denx.de/u-boot/custodians/u-boot-efi/-/jobs/269620

I had a similar, most likely related issue a few days ago:

https://dev.azure.com/sr0718/u-boot/_build/results?buildId=87&view=results

Tom git bi-sected this to this commit, which only adds a bit tiny bit of image size I assume:

"I bisected this down to:
commit 368b3f6db4540f913c436e5287be8356bc9a2891
Author: Stefan Chulski <[email protected]>
Date:?? Mon May 3 08:08:44 2021 +0200

??? phy: introduce 1000BaseX and 2500BaseX modes

??? Signed-off-by: Stefan Chulski <[email protected]> ??? Signed-off-by: Stefan Roese <[email protected]>

Quoted 8 lines
Quoted 2 lines

And while I'm not sure off-hand how it does it, it's causing the breakage.? Maybe something is overflowing now?"

I have rebase Heinrich patches on the top of HEAD + my queue and I can't see any issue
https://source.denx.de/u-boot/custodians/u-boot-microblaze/-/tree/for-heinrich

It means likely what Stefan mentioned is likely correct.

The mentioned PHY patch was not pushed to mainline (yet). Please add it:

http://patchwork.ozlabs.org/project/uboot/patch/20210503060853.3743626-2-sr at denx.de/

and run the test again.

Thanks,
Stefan

#6 lore raw

PATCH 1/1 xilinx: disable Unicode capitalization

Hi Stefan,

Quoted 78 lines · Stefan Roese

Hi Michal,

Quoted 75 lines · Michal Simek

Hi,

Quoted 59 lines · Stefan Roese

Added Tom to Cc.

Quoted 35 lines · Heinrich Schuchardt
Quoted 17 lines · Michal Simek
Quoted 14 lines · Heinrich Schuchardt

Save some KiB when building? xilinx_versal_virt_defconfig by disabling
Unicode capitalization support. This avoids build failures when adding new
features for the UEFI sub-system.

---
It would be preferable to have a size check for the u-boot binary. This would avoid seeing problems only during execution.
---
?? configs/xilinx_versal_virt_defconfig | 1 +
?? 1 file changed, 1 insertion(+)

Quoted 16 lines
Quoted 6 lines
configs/xilinx_versal_virt_defconfig +0 -0
index 707693713a..8bc2ff4a4c 100644
@@ -111,3 +111,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
Quoted 7 lines

?? CONFIG_USB_GADGET_DOWNLOAD=y
?? CONFIG_USB_FUNCTION_THOR=y
?? CONFIG_OF_LIBFDT_OVERLAY=y
+# CONFIG_EFI_UNICODE_CAPITALIZATION is not set
--?
2.30.2

What's the build issue? Any log? U-Boot is getting bigger and bigger and

Quoted 7 lines

Hello Michal,

this job failed:
https://source.denx.de/u-boot/custodians/u-boot-efi/-/jobs/269614

After deactivating CONFIG_EFI_UNICODE_CAPITALIZATION I get success:
https://source.denx.de/u-boot/custodians/u-boot-efi/-/jobs/269620

I had a similar, most likely related issue a few days ago:

https://dev.azure.com/sr0718/u-boot/_build/results?buildId=87&view=results

Tom git bi-sected this to this commit, which only adds a bit tiny bit of image size I assume:

"I bisected this down to:
commit 368b3f6db4540f913c436e5287be8356bc9a2891
Author: Stefan Chulski <[email protected]>
Date:?? Mon May 3 08:08:44 2021 +0200

Quoted 7 lines

???? phy: introduce 1000BaseX and 2500BaseX modes

???? Signed-off-by: Stefan Chulski <[email protected]> ???? Signed-off-by: Stefan Roese <[email protected]>

And while I'm not sure off-hand how it does it, it's causing the breakage.? Maybe something is overflowing now?"

I have rebase Heinrich patches on the top of HEAD + my queue and I can't see any issue
https://source.denx.de/u-boot/custodians/u-boot-microblaze/-/tree/for-heinrich

Quoted 8 lines
Quoted 1 line

It means likely what Stefan mentioned is likely correct.

The mentioned PHY patch was not pushed to mainline (yet). Please add it:

http://patchwork.ozlabs.org/project/uboot/patch/20210503060853.3743626-2-sr at denx.de/

and run the test again.

https://pastebin.com/pd9i8LEi
I have applied this patch and I can't see any issue. Also pipeline passed without any issue.
https://source.denx.de/u-boot/custodians/u-boot-microblaze/-/pipelines/7558

Can you apply this one and try on your end?
http://patchwork.ozlabs.org/project/uboot/patch/7a7c5d657a968190e0676251dbd85a947433d592.1620822936.git.michal.simek at xilinx.com/

it is in my queue and when u-boot is bigger then certain limit it can cause issue with early stack allocation.

Thanks,
Michal

#7 lore raw

PATCH 1/1 xilinx: disable Unicode capitalization

Quoted 95 lines · Michal Simek

Hi Stefan,

Quoted 78 lines · Stefan Roese

Hi Michal,

Quoted 75 lines · Michal Simek

Hi,

Quoted 59 lines · Stefan Roese

Added Tom to Cc.

Quoted 35 lines · Heinrich Schuchardt
Quoted 17 lines · Michal Simek
Quoted 14 lines · Heinrich Schuchardt

Save some KiB when building? xilinx_versal_virt_defconfig by disabling
Unicode capitalization support. This avoids build failures when adding new
features for the UEFI sub-system.

---
It would be preferable to have a size check for the u-boot binary. This would avoid seeing problems only during execution.

---
 ?? configs/xilinx_versal_virt_defconfig | 1 +

?? 1 file changed, 1 insertion(+)

Quoted 16 lines
Quoted 11 lines
configs/xilinx_versal_virt_defconfig +1 -1
index 707693713a..8bc2ff4a4c 100644
@@ -111,3 +111,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
 ?? CONFIG_USB_GADGET_DOWNLOAD=y
 ?? CONFIG_USB_FUNCTION_THOR=y
 ?? CONFIG_OF_LIBFDT_OVERLAY=y
+# CONFIG_EFI_UNICODE_CAPITALIZATION is not set
--
Quoted 2 lines

2.30.2

What's the build issue? Any log? U-Boot is getting bigger and bigger and

Quoted 7 lines

Hello Michal,

this job failed:
https://source.denx.de/u-boot/custodians/u-boot-efi/-/jobs/269614

After deactivating CONFIG_EFI_UNICODE_CAPITALIZATION I get success:
https://source.denx.de/u-boot/custodians/u-boot-efi/-/jobs/269620

I had a similar, most likely related issue a few days ago:

https://dev.azure.com/sr0718/u-boot/_build/results?buildId=87&view=results

Tom git bi-sected this to this commit, which only adds a bit tiny bit of image size I assume:

"I bisected this down to:
commit 368b3f6db4540f913c436e5287be8356bc9a2891
Author: Stefan Chulski <[email protected]>
Date:?? Mon May 3 08:08:44 2021 +0200

Quoted 7 lines

???? phy: introduce 1000BaseX and 2500BaseX modes

???? Signed-off-by: Stefan Chulski <[email protected]> ???? Signed-off-by: Stefan Roese <[email protected]>

And while I'm not sure off-hand how it does it, it's causing the breakage.? Maybe something is overflowing now?"

I have rebase Heinrich patches on the top of HEAD + my queue and I can't see any issue
https://source.denx.de/u-boot/custodians/u-boot-microblaze/-/tree/for-heinrich

Quoted 8 lines
Quoted 1 line

It means likely what Stefan mentioned is likely correct.

The mentioned PHY patch was not pushed to mainline (yet). Please add it:

http://patchwork.ozlabs.org/project/uboot/patch/20210503060853.3743626-2-sr at denx.de/

and run the test again.

https://pastebin.com/pd9i8LEi
I have applied this patch and I can't see any issue. Also pipeline passed without any issue.
https://source.denx.de/u-boot/custodians/u-boot-microblaze/-/pipelines/7558

Quoted 11 lines

Can you apply this one and try on your end?
http://patchwork.ozlabs.org/project/uboot/patch/7a7c5d657a968190e0676251dbd85a947433d592.1620822936.git.michal.simek at xilinx.com/

it is in my queue and when u-boot is bigger then certain limit it can cause issue with early stack allocation.

Thanks,
Michal

The patch "xilinx: versal: Enable CONFIG_POSITION_INDEPENDENT" with CONFIG_SYS_INIT_SP_BSS_OFFSET=1572864
solves the problem:
https://source.denx.de/u-boot/custodians/u-boot-efi/-/jobs/269920

Please, consider adding it to a pull request for v2021.07-rc3.

Best regards

Heinrich

#8 lore raw

PATCH 1/1 xilinx: disable Unicode capitalization

Hi,

Quoted 114 lines · Heinrich Schuchardt
Quoted 104 lines · Michal Simek

Hi Stefan,

Quoted 83 lines · Stefan Roese

Hi Michal,

Quoted 71 lines · Michal Simek

Hi,

Quoted 60 lines · Stefan Roese

Added Tom to Cc.

Quoted 35 lines · Heinrich Schuchardt
Quoted 17 lines · Michal Simek
Quoted 14 lines · Heinrich Schuchardt

Save some KiB when building? xilinx_versal_virt_defconfig by disabling
Unicode capitalization support. This avoids build failures when adding new
features for the UEFI sub-system.

---
It would be preferable to have a size check for the u-boot binary. This would avoid seeing problems only during execution.
---
??? configs/xilinx_versal_virt_defconfig | 1 +
??? 1 file changed, 1 insertion(+)

Quoted 16 lines
Quoted 6 lines
configs/xilinx_versal_virt_defconfig +0 -0
index 707693713a..8bc2ff4a4c 100644
@@ -111,3 +111,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
Quoted 7 lines

??? CONFIG_USB_GADGET_DOWNLOAD=y
??? CONFIG_USB_FUNCTION_THOR=y
??? CONFIG_OF_LIBFDT_OVERLAY=y
+# CONFIG_EFI_UNICODE_CAPITALIZATION is not set

Signature · 1 line
2.30.2

What's the build issue? Any log? U-Boot is getting bigger and bigger and

Quoted 7 lines

Hello Michal,

this job failed:
https://source.denx.de/u-boot/custodians/u-boot-efi/-/jobs/269614

After deactivating CONFIG_EFI_UNICODE_CAPITALIZATION I get success:
https://source.denx.de/u-boot/custodians/u-boot-efi/-/jobs/269620

I had a similar, most likely related issue a few days ago:

https://dev.azure.com/sr0718/u-boot/_build/results?buildId=87&view=results

Tom git bi-sected this to this commit, which only adds a bit tiny bit of image size I assume:

"I bisected this down to:
commit 368b3f6db4540f913c436e5287be8356bc9a2891
Author: Stefan Chulski <[email protected]>
Date:?? Mon May 3 08:08:44 2021 +0200

Quoted 7 lines

????? phy: introduce 1000BaseX and 2500BaseX modes

????? Signed-off-by: Stefan Chulski <[email protected]> ????? Signed-off-by: Stefan Roese <[email protected]>

And while I'm not sure off-hand how it does it, it's causing the breakage.? Maybe something is overflowing now?"

Quoted 8 lines

I have rebase Heinrich patches on the top of HEAD + my queue and I can't
see any issue
https://source.denx.de/u-boot/custodians/u-boot-microblaze/-/tree/for-heinrich

It means likely what Stefan mentioned is likely correct.

Quoted 7 lines

The mentioned PHY patch was not pushed to mainline (yet). Please add it:

http://patchwork.ozlabs.org/project/uboot/patch/20210503060853.3743626-2-sr at denx.de/

and run the test again.

https://pastebin.com/pd9i8LEi
I have applied this patch and I can't see any issue. Also pipeline passed without any issue.
https://source.denx.de/u-boot/custodians/u-boot-microblaze/-/pipelines/7558

Can you apply this one and try on your end?
http://patchwork.ozlabs.org/project/uboot/patch/7a7c5d657a968190e0676251dbd85a947433d592.1620822936.git.michal.simek at xilinx.com/

Quoted 8 lines

it is in my queue and when u-boot is bigger then certain limit it can cause issue with early stack allocation.

Thanks,
Michal

Quoted 6 lines

The patch "xilinx: versal: Enable CONFIG_POSITION_INDEPENDENT" with CONFIG_SYS_INIT_SP_BSS_OFFSET=1572864
solves the problem:
https://source.denx.de/u-boot/custodians/u-boot-efi/-/jobs/269920

Please, consider adding it to a pull request for v2021.07-rc3.

That's the plan.

Thanks,
Michal

#9 lore raw

PATCH 1/1 xilinx: disable Unicode capitalization

In reply to Michal Simek

Hi Michael,

On 17.05.21 11:47, Michal Simek wrote:

<snip>

Quoted 19 lines
Quoted 5 lines
Quoted 5 lines

I have rebase Heinrich patches on the top of HEAD + my queue and I can't see any issue
https://source.denx.de/u-boot/custodians/u-boot-microblaze/-/tree/for-heinrich

Quoted 8 lines
Quoted 1 line

It means likely what Stefan mentioned is likely correct.

The mentioned PHY patch was not pushed to mainline (yet). Please add it:

http://patchwork.ozlabs.org/project/uboot/patch/20210503060853.3743626-2-sr at denx.de/

and run the test again.

https://pastebin.com/pd9i8LEi
I have applied this patch and I can't see any issue. Also pipeline passed without any issue.
https://source.denx.de/u-boot/custodians/u-boot-microblaze/-/pipelines/7558

Quoted 5 lines

Can you apply this one and try on your end?
http://patchwork.ozlabs.org/project/uboot/patch/7a7c5d657a968190e0676251dbd85a947433d592.1620822936.git.michal.simek at xilinx.com/

it is in my queue and when u-boot is bigger then certain limit it can cause issue with early stack allocation.

Yes, I can confirm that this patch fixes the build issue.

Thanks,
Stefan