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

Sune Brian briansune at gmail.com
Fri Apr 24 03:46:17 CEST 2026


On Fri, Apr 24, 2026 at 9:22 AM Yuslaimi, Alif Zakuan
<alif.zakuan.yuslaimi at altera.com> wrote:
>
> Hi Brian,
>
> On 23/4/2026 8:18 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.]
> >
> > On Thu, Apr 23, 2026 at 4:06 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
> >>
> >> 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
> >>
> >> v1->v2:
> >> --------
> >> - ECC scrubbing, Gen5 DRAM size checking, and shared dram_bank_mmu_setup() is set as optional via Kconfig and
> >>    defaulted on only for the reference Arria10/CycloneV boards to avoid SPL overflows on size-limited Gen5
> >>    defconfigs.
> >>
> >> History:
> >> --------
> >> [v1]: https://patchwork.ozlabs.org/project/uboot/cover/20251216084623.19589-1-alif.zakuan.yuslaimi@altera.com/
> >>
> >> Alif Zakuan Yuslaimi (3):
> >>    arm: socfpga: Consolidate dram_bank_mmu_setup()
> >>    ddr: altera: gen5: Add DRAM size checking
> >>    ddr: socfpga: Add ECC DRAM scrubbing support for Gen5/Arria10
> >>
> >>   arch/arm/mach-socfpga/Kconfig        | 21 +++++++
> >>   arch/arm/mach-socfpga/misc.c         | 31 ++++++++++
> >>   arch/arm/mach-socfpga/misc_arria10.c | 26 ---------
> >>   arch/arm/mach-socfpga/spl_a10.c      |  4 ++
> >>   arch/arm/mach-socfpga/spl_gen5.c     | 17 ++++++
> >>   drivers/ddr/altera/Makefile          |  4 +-
> >>   drivers/ddr/altera/sdram_arria10.c   | 34 +++++------
> >>   drivers/ddr/altera/sdram_gen5.c      | 64 ++++++++++++++++++++-
> >>   drivers/ddr/altera/sdram_soc32.c     | 85 ++++++++++++++++++++++++++++
> >>   drivers/ddr/altera/sdram_soc32.h     | 15 +++++
> >>   10 files changed, 252 insertions(+), 49 deletions(-)
> >>   create mode 100644 drivers/ddr/altera/sdram_soc32.c
> >>   create mode 100644 drivers/ddr/altera/sdram_soc32.h
> >>
> >> --
> >> 2.43.7
> >>
> >
> > Hi Alif,
> >
> > Just a small question.
> > The size issue for the failed board in the last pipeline test is unsolvable?
> >
> > Thanks,
> > Brian
>
> Our approach to this SPL size limit to these Gen5 variants is to disable

So simply speaking this is unsolvable in the first place.
Those boards that failed from first place have used most of the ram size.

> the new features on these boards via Kconfig. From my experiment,

So I think the new features mean this patch only if not wrongly understood.

> enabling any one of these features on these boards will result in SPL
> size limit error during compilation. With the Kconfig guard set in
> place, only the standard reference CycloneV will enable all these
> features by default, these Gen5 variants are excluded.

Well at least the working ones are able to use ECC now.
HW stability improves a lot with ECC.

Thanks again,
Brian

>
> As a result, these patches can now pass the pipeline test. Refer -
> https://github.com/u-boot/u-boot/pull/932

Hi Alif,


>
> Best regards,
> Alif


More information about the U-Boot mailing list