Subject: sysctl hw.model considered useless
To: None <,>
From: matthew green <>
List: port-sparc
Date: 12/13/2002 16:01:44
hi folks.

the sparc & sparc64 "hw.model" sysctl returns info about the (first?)
cpu the machine has, not what the model of the machine is.  eg, in
my SS20/712, i get:

	hw.model = TMS390Z50 v0 or TMS390Z55 @ 75 MHz, on-chip FPU

on the ultra1/140 i get:

	hw.model = SUNW,UltraSPARC @ 143.002 MHz, version 0 FPU

this is pretty useless.  it doesn't tell me what machine it is.. well
in the ultra1 case it does, but the ss20 could be an ss10, or maybe
an 6x0MP (i dunno.)  i propose changing these to report the system
name, as reported at boottime:

	mainbus0 (root): SUNW,SPARCstation-20

	mainbus0 (root): SUNW,Ultra-1

ie, just "SUNW,SPARCstation-20" or "SUNW,Ultra-1".  that is actually
a useful value...

anyone object?  i'll make this change in the coming weeks unless
there are serious objections.