Re: [PATCH 4/7] sparc64: add SPARC64 VII CPU, MMU and SMP support
From: Krzysztof Kozlowski
Date: Sun Oct 04 2026 - 10:59:43 EST
On 02/10/2026 18:14, Magnus Lindholm wrote:
> diff --git a/arch/sparc/kernel/prom_64.c b/arch/sparc/kernel/prom_64.c
> index aa4799cbb9c1..11437bbfc73b 100644
> --- a/arch/sparc/kernel/prom_64.c
> +++ b/arch/sparc/kernel/prom_64.c
> @@ -564,6 +564,12 @@ static void *fill_in_one_cpu(struct device_node *dp, int cpuid, int arg)
>
> cpu_data(cpuid).core_id = portid + 1;
> cpu_data(cpuid).proc_id = portid;
> + if (tlb_type == sparc64_vii &&
> + of_property_match_string(of_root, "model", "IKKAKU") >= 0) {
Are the values documented as ABI anywhere? Usually the compatible is the
ABI, not the model.
> + /* IKKAKU: two adjacent ITIDs per physical core. */
> + cpu_data(cpuid).core_id = (cpuid >> 1) + 1;
> + cpu_data(cpuid).proc_id = 0;
> + }
Best regards,
Krzysztof