Skip to contentSkip to conversation

CPU detection wrong

parisc-linux Matthew Wilcox 4 participants 8 messages Jan 25, 2001 – Jan 26, 2001

lore
Share & tools
lore
#0 lore raw

we have the following entry in hardware.c:

        { 0x05c0, 0x0fc0, pcxw   },  /* 0x05c0 - 0x05ff */

however, 5d5 is a pcxw+ (pa8600). I don't know enough to change this because i don't have a list of which ids are assigned. I know this information is available within linuxcare because i remember going over this with dave kennedy at one point. i don't have that information any more though, so i can't fix this myself.

Signature · 1 line
Revolutions do not require corporate support.
#1 lore raw
Quoted 10 lines · Matthew Wilcox

we have the following entry in hardware.c:

        { 0x05c0, 0x0fc0, pcxw   },  /* 0x05c0 - 0x05ff */

however, 5d5 is a pcxw+ (pa8600). I don't know enough to change this because i don't have a list of which ids are assigned. I know this information is available within linuxcare because i remember going over this with dave kennedy at one point. i don't have that information any more though, so i can't fix this myself.

I will modify hardware.c and the hardware database to accomodate this change. I will be doing that next week sometime.

Thank you.

If anyone else has any other changes to the CPU detection code please let me know.

Signature · 4 lines
David Kennedy, Technical Account Manager, Linuxcare, Inc.
613.562.9594 tel, 613.562.9304 fax
[email protected], http://www.linuxcare.com/
Linuxcare.  Support for the revolution.
#2 lore raw
In reply to Matthew Wilcox
Quoted 3 lines · Matthew Wilcox

we have the following entry in hardware.c:

        { 0x05c0, 0x0fc0, pcxw   },  /* 0x05c0 - 0x05ff */

however, 5d5 is a pcxw+ (pa8600).

I remember when we were writing this that it was very difficult to figure some of these things out, because of missing or conflicting information. I don't actually think that there's any information in here that isn't available publically, like ver_nums.pdf.

I know I've never seen a concise and complete list of CPUs and IDs.

I seem to recall some of the lists not covering some of the newer CPUs...

- Alex

Signature · 4 lines
Alex deVries, Principal Solutions Architect, The Puffins at Linuxcare
613.562.2759 tel
[email protected], http://www.linuxcare.com/
Linuxcare, Support for the revolution.
#3 lore raw
In reply to Matthew Wilcox
Quoted 7 lines · Matthew Wilcox

we have the following entry in hardware.c:

        { 0x05c0, 0x0fc0, pcxw   },  /* 0x05c0 - 0x05ff */

however, 5d5 is a pcxw+ (pa8600). I don't know enough to change this because i don't have a list of which ids are assigned.

Linuxcare doesn't have this info either (afaik). I'm helping to sort this out. Should have an answer by the end of today.

grant

Grant Grundler
Unix Systems Enablement Lab
+1.408.447.7253

#4 lore raw
In reply to Matthew Wilcox
Quoted 3 lines · Matthew Wilcox

we have the following entry in hardware.c:

        { 0x05c0, 0x0fc0, pcxw   },  /* 0x05c0 - 0x05ff */

David (Kennedy),
You have time to fix the table based on the "Appendix B" data below?

(Willy is keeping me busy - help him test the merge mess. :^)

In the long run, I don't want to be involved in maintaining this table. An easier way to determine processor type is based on CPU and FP-Coproc MODEL information. Our kernel queries for both now and it's just a matter of putting it to use.

On a related note: is anyone interested in figuring out how to get the "model string" from NVRAM?
It should just be a PDC call but I don't know which one.

Taken from the I/O ACD, Appendix B. Version and Identification Numbers, here's an ASCII update for the NPROC types in 5c0-5ff range:

                                         |        |   SVERSION    | HVERSION
Module                                   | TYPE   |  Model    Opt |  Model
_________________________________________|________|_______________|_________
   M2250                                 | NPROC  |  00004    91  |   5C0
   M2500                                 | NPROC  |  00004    91  |   5C1
   Sonata 440                            | NPROC  |  00004    91  |   5C2
   Sonata 360                            | NPROC  |  00004    91  |   5C3
   Rhapsody 440                          | NPROC  |  00004    91  |   5C4
   Rhapsody 360                          | NPROC  |  00004    91  |   5C5
   Raven W 360 (9000/780/????)           | NPROC  |  00004    91  |   5C6
   Halfdome W+ 552                       | NPROC  |  00004    91  |   5C7
   Lego 360 processor                    | NPROC  |  00004    81  |   5C8
   Rhapsody DC- 440                      | NPROC  |  00004    91  |   5C9
   Rhapsody DC- 360                      | NPROC  |  00004    91  |   5CA
   Crescendo 440                         | NPROC  |  00004    91  |   5CB
   Prelude W 440                         | NPROC  |  00004    91  |   5CC
   SPP2600                               | NPROC  |  00004    91  |   5CD
   M2600                                 | NPROC  |  00004    91  |   5CE
   Allegro W+                            | NPROC  |  00004    81  |   5CF
   Kazoo W+                              | NPROC  |  00004    81  |   5D0
   Forte W+ 2w                           | NPROC  |  00004    91  |   5D1
   Forte W+ 4w                           | NPROC  |  00004    91  |   5D2
   Prelude W+ 540                        | NPROC  |  00004    91  |   5D3
   Duet W+                               | NPROC  |  00004    91  |   5D4
   Crescendo 550                         | NPROC  |  00004    91  |   5D5
   Crescendo DC- 440                     | NPROC  |  00004    81  |   5D6
   Keystone W+                           | NPROC  |  00004    91  |   5D7
   Rhapsody wave 2 W+ DC-                | NPROC  |  00004    91  |   5D8
   Rhapsody wave 2 W+                    | NPROC  |  00004    91  |   5D9
   Marcato W+ DC-                        | NPROC  |  00004    91  |   5DA
   Marcato W+                            | NPROC  |  00004    91  |   5DB
[ reserved      5DC-5DD ]
   Piccolo W+                            | NPROC  |  00004    81  |   5DE
[ reserved      5DF-5FE ]
   Hitachi W                             | NPROC  |  00004    ??  |   5FF

Some heuristics in case its not clear from the Description:

	M2500 is PCX-W
	M2600 is PCX-W+
	*360 is PCX-W
	*440 is PCX-W
	*5[45]0 is PCX-W+

Other news:
devresources.hp.com website should see some of the PDC docs updated soon. (Which was already happening before I asked about HVERS/SVERS stuff)

thanks,
grant

Grant Grundler
Unix Systems Enablement Lab
+1.408.447.7253

#5 lore raw
Quoted 7 lines · Grant Grundler
Quoted 3 lines · Matthew Wilcox

we have the following entry in hardware.c:

        { 0x05c0, 0x0fc0, pcxw   },  /* 0x05c0 - 0x05ff */

David (Kennedy),
You have time to fix the table based on the "Appendix B" data below?

Done. I have committed it. I don't have a PA box near me. Can someone check my change to:
- ensure it compiles
- it correctly detects all the machines old and new.

Quoted 4 lines

In the long run, I don't want to be involved in maintaining this table. An easier way to determine processor type is based on CPU and FP-Coproc MODEL information. Our kernel queries for both now and it's just a matter of putting it to use.

I don't mind maintaining this table. It would be goot to keep this table and the hardware database in sync.

I will make sure that the hardware database is updated accordingly.

Signature · 4 lines
David Kennedy, Technical Account Manager, Linuxcare, Inc.
613.562.9594 tel, 613.562.9304 fax
[email protected], http://www.linuxcare.com/
Linuxcare.  Support for the revolution.
#6 lore raw
Quoted 4 lines · dkennedy

Done. I have committed it. I don't have a PA box near me. Can someone check my change to:
- ensure it compiles
- it correctly detects all the machines old and new.

Thanks!

It compiles and boots fine on my c3k:

| model   00005bb0 00000481 00000000 00000002 780cd400 100000f0 00000008 000000b2 000000b2
| CPUID   vers 17 rev 4
| model   9000/785/C3000
| led_init: CPU_HVERSION 5bb

...
| 6. AllegroHigh W (0) at 0xfffa0000, versions 0x5bb, 0x0, 0x4, 0x0, 0x81
...

(I hadn't noticed we were already printing model string...cool. I guess it time to start cleaning up boot output.)

Quoted 2 lines

I don't mind maintaining this table. It would be goot to keep this table and the hardware database in sync.

I see. You are right.

The only way to do that is get regular updates from the maintainer of "Appendix B". hmmm...but there are some issues with this. Updates *aren't* regular and only "private" versions of the appendix B is maintained. The appendix is hand filtered for public consumption to exclude products which haven't released yet. So we'll just have to keep grinding along like we do now...complain if something shows up as "unknown" and it's got a IODC data.

thanks,
grant

Grant Grundler
parisc-linux {PCI|IOMMU|SMP} hacker
+1.408.447.7253

#7 lore raw
Quoted 7 lines · Grant Grundler

The only way to do that is get regular updates from the maintainer of "Appendix B". hmmm...but there are some issues with this. Updates *aren't* regular and only "private" versions of the appendix B is maintained. The appendix is hand filtered for public consumption to exclude products which haven't released yet. So we'll just have to keep grinding along like we do now...complain if something shows up as "unknown" and it's got a IODC data.

Ya... Also, it's apparently maintained in a human readable format and not in an easily extractable format. As such, it's even harder to have regular updates.

It is alright though because the list does not change very often and the only real changes are new machines. Once we have critical mass (which I believe we do) and minor adjustments aren't that much of a problem.

Signature · 4 lines
David Kennedy, Technical Account Manager, Linuxcare, Inc.
613.562.9594 tel, 613.562.9304 fax
[email protected], http://www.linuxcare.com/
Linuxcare.  Support for the revolution.