[PATCH 34/38] MIPS: SGI-IP27: report a Bedrock machine as SGI IP35

From: Imre Kaloz

Date: Thu Oct 01 2026 - 12:27:14 EST


get_system_type() answers "SGI Origin" on either hub generation, but a
Fuel or Tezro is no Origin. Return "SGI IP35" on a Bedrock hub and in
the node banner.

Signed-off-by: Imre Kaloz <kaloz@xxxxxxxxxx>
---
arch/mips/sgi-ip27/ip27-init.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/mips/sgi-ip27/ip27-init.c b/arch/mips/sgi-ip27/ip27-init.c
index 15811fb3cdee..c92f1bef692e 100644
--- a/arch/mips/sgi-ip27/ip27-init.c
+++ b/arch/mips/sgi-ip27/ip27-init.c
@@ -111,7 +111,8 @@ void __init plat_mem_setup(void)
* hub_rtc init and cpu clock intr enabled for later calibrate_delay.
*/
nid = get_nasid();
- printk("IP27: Running on node %d.\n", nid);
+ pr_info("%s: Running on node %d.\n",
+ system_is_ip35 ? "IP35" : "IP27", nid);

p = LOCAL_HUB_L(PI_CPU_PRESENT_A) & 1;
e = LOCAL_HUB_L(PI_CPU_ENABLE_A) & 1;
@@ -150,7 +151,7 @@ void __init plat_mem_setup(void)

const char *get_system_type(void)
{
- return "SGI Origin";
+ return system_is_ip35 ? "SGI IP35" : "SGI Origin";
}

static inline bool hub_is_bedrock(void)
--
2.47.3