[PATCH v8 07/10] EDAC/aspeed: Allow error addresses above 4 GiB

From: Ryan Chen

Date: Fri Dec 04 2026 - 19:53:59 EST


Prepare for the AST2700, which can report failure addresses above
4 GiB. They don't fit in 32 bits.

Signed-off-by: Ryan Chen <ryan_chen@xxxxxxxxxxxxxx>
---
drivers/edac/aspeed_edac.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/edac/aspeed_edac.c b/drivers/edac/aspeed_edac.c
index 1324a001395e..5b741e4a9587 100644
--- a/drivers/edac/aspeed_edac.c
+++ b/drivers/edac/aspeed_edac.c
@@ -75,11 +75,11 @@ static void mcr_update_bits(struct driver_priv *priv, u32 reg, u32 mask,
spin_unlock_irqrestore(&priv->lock, flags);
}

-static void count_rec(struct mem_ctl_info *mci, u8 rec_cnt, u32 rec_addr,
- bool have_addr)
+static void count_rec(struct mem_ctl_info *mci, u8 rec_cnt,
+ phys_addr_t rec_addr, bool have_addr)
{
struct csrow_info *csrow = mci->csrows[0];
- u32 page, offset, syndrome;
+ unsigned long page, offset, syndrome;

if (!rec_cnt)
return;
@@ -112,10 +112,10 @@ static void count_rec(struct mem_ctl_info *mci, u8 rec_cnt, u32 rec_addr,
}

static void count_un_rec(struct mem_ctl_info *mci, u8 un_rec_cnt,
- u32 un_rec_addr, bool have_addr)
+ phys_addr_t un_rec_addr, bool have_addr)
{
struct csrow_info *csrow = mci->csrows[0];
- u32 page, offset, syndrome;
+ unsigned long page, offset, syndrome;

if (!un_rec_cnt)
return;

--
2.34.1