From nobody Thu Apr 2 17:18:51 2026 Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 680EB37C90A; Fri, 27 Mar 2026 11:44:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.133.224.34 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774611890; cv=none; b=Bp8KVH7MkYeQEGTrMYXahIRkUnBoR1blb4rwkleImRDUnn8d96ICm2cewtecCpLusH3H3c0iJkwHPVCFdMB/XadEa47WzHsE51DtP2IH4AK0F7ldAJaWBh3QT6YzJ/YAFTWvyXvHSiyAu0zR7rdwca1KJ7FxBGwyhTp1YY7EpAc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774611890; c=relaxed/simple; bh=/d+IhIz3PGQzHBnH3ai96GGqg3RiLvX+lpIdYcwvhZ8=; h=Date:From:To:cc:Subject:Message-ID:MIME-Version:Content-Type; b=Ppmq7IV7WfWZJVxOBVlocBYXzh1ykMPSlLutc00syv+/XewNQG7bEdShEW6Ft0z3vt4F042htDkBgd26Bya0kp0zRM9EQeUH69207/qNpyIuNtRk6tqmX+TB3mNvQFQJbf+MemnDPvjWoRxfjhF4Gq3WjgrHR506h5Af1AoeCQU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=orcam.me.uk; spf=none smtp.mailfrom=orcam.me.uk; arc=none smtp.client-ip=78.133.224.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=orcam.me.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=orcam.me.uk Received: by angie.orcam.me.uk (Postfix, from userid 500) id BAABC92009C; Fri, 27 Mar 2026 12:38:06 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id B464792009B; Fri, 27 Mar 2026 11:38:06 +0000 (GMT) Date: Fri, 27 Mar 2026 11:38:06 +0000 (GMT) From: "Maciej W. Rozycki" To: Thomas Bogendoerfer , David Hildenbrand , Andrew Morton , Arnd Bergmann cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] MIPS: SiByte: Bring back cache initialisation Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Bring back cache initialisation for Broadcom SiByte SB1 cores, which has=20 been removed causing the kernel to hang at bootstrap right after: Dentry cache hash table entries: 524288 (order: 8, 4194304 bytes, linear) Inode-cache hash table entries: 262144 (order: 7, 2097152 bytes, linear) The cause of the problem is R4k cache handlers are also used by Broadcom=20 SiByte SB1 cores, however with a different cache error exception handler=20 and therefore not using CPU_R4K_CACHE_TLB: obj-$(CONFIG_CPU_R4K_CACHE_TLB) +=3D c-r4k.o cex-gen.o tlb-r4k.o obj-$(CONFIG_CPU_SB1) +=3D c-r4k.o cerr-sb1.o cex-sb1.o tlb-r4k.o (from arch/mips/mm/Makefile). Fixes: bbe4f634f48c ("mips: fix r3k_cache_init build regression") Signed-off-by: Maciej W. Rozycki Cc: stable@vger.kernel.org # v6.8+ --- arch/mips/mm/cache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) linux-mips-sibyte-r4k-cache-init.diff Index: linux-swarm64/arch/mips/mm/cache.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- linux-swarm64.orig/arch/mips/mm/cache.c +++ linux-swarm64/arch/mips/mm/cache.c @@ -207,7 +207,8 @@ void cpu_cache_init(void) { if (IS_ENABLED(CONFIG_CPU_R3000) && cpu_has_3k_cache) r3k_cache_init(); - if (IS_ENABLED(CONFIG_CPU_R4K_CACHE_TLB) && cpu_has_4k_cache) + if ((IS_ENABLED(CONFIG_CPU_R4K_CACHE_TLB) || + IS_ENABLED(CONFIG_CPU_SB1)) && cpu_has_4k_cache) r4k_cache_init(); =20 if (IS_ENABLED(CONFIG_CPU_CAVIUM_OCTEON) && cpu_has_octeon_cache)