Skip to contentSkip to conversation

arch/sparc64/kernel/cpu.c

DISCUSSION Peter Martini 2 participants 2 messages Jun 10, 2005

lore
Share & tools
lore
#0 lore raw

The cpu.c file has a struct cpu_iu_info linux_sparc_chips[] with all of the ID values for the various processors (and another cpu_fu_info linux_sparc_fpu[]), but the values for the UltraSPARC IV are missing. I used a kernel routine and the assembly instructions from that file to check the values, and got 0x3e and 0x18.

I haven't delved into too much code yet, but it looks to me like that routine only runs on one cpu, is that correct? I know from testing that depending on which processor is running the code different values will be produced, and the cpus can be mixed within one system...

FYI, the code I'm looking at is 2.6.11.9.

Regards,
Peter Martini

#1 lore raw

From: Peter Martini <[email protected]>
Subject: arch/sparc64/kernel/cpu.c
Date: Fri, 10 Jun 2005 00:04:59 -0400

Quoted 5 lines

The cpu.c file has a struct cpu_iu_info linux_sparc_chips[] with all of the ID values for the various processors (and another cpu_fu_info linux_sparc_fpu[]), but the values for the UltraSPARC IV are missing. I used a kernel routine and the assembly instructions from that file to check the values, and got 0x3e and 0x18.

Current 2.6.x sources have entries for the UltraSPARC-IV in arch/sparc64/kernel/cpu.c:

{ 0x3e, 0x18, 0, "UltraSparc IV integrated FPU"},
...
{ 0x3e, 0x18, "TI UltraSparc IV (Jaguar)"},
...

Quoted 4 lines

I haven't delved into too much code yet, but it looks to me like that routine only runs on one cpu, is that correct? I know from testing that depending on which processor is running the code different values will be produced, and the cpus can be mixed within one system...

It runs on the boot processor.

Mixing UltraSPARC cpu types isn't actually supported. Even Solaris does not support this. Initially this is what was intended, but it simply is not very feasible.