[PATCH v7 07/10] EDAC/aspeed: Allow error addresses above 4 GiB
From: Ryan Chen
Date: Mon Nov 30 2026 - 02:25:26 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 85179e229543..f397e8bdbda5 100644
--- a/drivers/edac/aspeed_edac.c
+++ b/drivers/edac/aspeed_edac.c
@@ -75,11 +75,11 @@ static void mcr_update_bits(struct aspeed_edac *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