[PATCH v1 0/5] SoCFPGA: Update DDR Support for Gen5/Arria10 in U-Boot

Yuslaimi, Alif Zakuan alif.zakuan.yuslaimi at altera.com
Wed Apr 15 05:32:09 CEST 2026


Hello Brian,

On 12/4/2026 8:11 pm, Sune Brian wrote:
> [CAUTION: This email is from outside your organization. Unless you trust the sender, do not click on links or open attachments as it may be a fraudulent email attempting to steal your information and/or compromise your computer.]
> 
> Hi T.F. and Alif,
> 
> What are the issues here? Try to help push ECC back to main
> stream u-boot.
> 
> Latest U-Boot revision even removed cache codes.
> 
> So what are the solutions here?
> 
> Thanks,
> Brian
> 
The pipeline test was failing for SoCKit SoCrates and VINING boards due 
to exceeding their SPL size limit, further improvements will have to be 
made to exclude these Gen5 variants from enabling these features to 
conserve SPL size.

I will submit v2 once I have finalized and tested the workaround 
accordingly.

Thanks,
Alif
> On Sat, Feb 14, 2026 at 12:52 PM Chee, Tien Fong
> <tienfong.chee at altera.com> wrote:
>>
>> Hi Alif,
>>
>> On 16/12/2025 4:46 pm, alif.zakuan.yuslaimi at altera.com wrote:
>>
>> From: Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi at altera.com>
>>
>> This patch set updates the boot support for the Altera SoCFPGA Gen5/Arria10 platform in U-Boot. The changes include:
>> 1. Update MMU/dcache setup across Gen5/Arria10 using common driver
>> 2. Add ECC scrubbing support for Gen5/Arria10
>> 3. Add DRAM size checking for Gen5/Arria10
>> 4. Assign unit address to memory node in common SoCFPGA device tree file
>>
>> This patch set has been tested on CycloneV devkit with SDMMC boot and RAM boot (TFTP & ARM DS debugger).
>> Tested on Arria10 devkit with RAM boot as well
>>
>> Alif Zakuan Yuslaimi (5):
>>    arm: socfpga: Consolidate dram_bank_mmu_setup()
>>    ddr: socfpga: Add ECC DRAM scrubbing support for Gen5/Arria10
>>    ddr: altera: gen5: Add DRAM size checking
>>    ddr: altera: arria10: Add DRAM size checking
>>    arch: arm: socfpga: Assign unit address to memory node
>>
>>   arch/arm/dts/socfpga-common-u-boot.dtsi       |  2 +-
>>   arch/arm/dts/socfpga_arria5_secu1.dts         |  2 +-
>>   arch/arm/dts/socfpga_cyclone5_dbm_soc1.dts    |  2 +-
>>   arch/arm/dts/socfpga_cyclone5_de10_nano.dts   |  2 +-
>>   .../dts/socfpga_cyclone5_de10_standard.dts    |  2 +-
>>   arch/arm/dts/socfpga_cyclone5_de1_soc.dts     |  2 +-
>>   arch/arm/dts/socfpga_cyclone5_is1.dts         |  2 +-
>>   arch/arm/mach-socfpga/Kconfig                 |  1 +
>>   arch/arm/mach-socfpga/misc.c                  | 31 ++++++++
>>   arch/arm/mach-socfpga/misc_arria10.c          | 26 -------
>>   arch/arm/mach-socfpga/spl_gen5.c              |  4 +
>>   drivers/ddr/altera/Makefile                   |  4 +-
>>   drivers/ddr/altera/sdram_arria10.c            | 57 +++++++++-----
>>   drivers/ddr/altera/sdram_gen5.c               | 38 +++++++++-
>>   drivers/ddr/altera/sdram_soc32.c              | 74 +++++++++++++++++++
>>   drivers/ddr/altera/sdram_soc32.h              | 11 +++
>>   16 files changed, 205 insertions(+), 55 deletions(-)
>>   create mode 100644 drivers/ddr/altera/sdram_soc32.c
>>   create mode 100644 drivers/ddr/altera/sdram_soc32.h
>>
>> I will need to drop these patches (1/5, 2/5, 3/5) for now as it causes the U-Boot SPL file size to exceed the limit on several Cyclone V variant defconfigs (see CI failure: https://source.denx.de/u-boot/custodians/u-boot-socfpga/-/jobs/1379031).
>>
>> Please consider restructuring the changes so that Arria 10 and Cyclone V are handled separately. Arria 10 has a larger OCRAM footprint, while Cyclone V is much more constrained.
>>
>> The SPL size overflow on certain Cyclone V boards must be properly resolved before we can take this upstream.
>>
>> Also, please make sure to run the pipeline tests and confirm they pass before resubmitting the patches upstream.
>>
>> Thanks for your understanding, and please resend once the Cyclone V size issue has been properly addressed and the pipeline is clean.
>>
>> Best regards,
>>
>> Tien Fong



More information about the U-Boot mailing list