Port-hppa archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

panic: "Unknown cpu_type for cpu_modelno 484" on HP 9000 D210 (board HPD210, 0x484) -- missing case in cpu_model_cpuid()



Hardware: HP 9000 D210 (PA-7100LC, 100 MHz, 1GB RAM), PDC firmware
revision 37.26, built-in LAN (BOOTP/TFTP netboot, no RMP), single SCSI
disk on the primary boot path.

NetBSD version: 11.1/hppa, booting installation/netinstall.lif from the
standard hppa release distribution, via "bo lan install" at the BCH
Main Menu.

What happens: the boot loader and kernel load successfully (BOOTP,
TFTP, and the LIF bootstrap all complete without error), but the kernel
panics almost immediately during early boot:

    [   1.0000000] WARNING: Unknown cpu_type for cpu_modelno 484
    [   1.0000000] panic: CPU detection failed. Please report the problem.
    [   1.0000000] cpu0: Begin traceback...
    [   1.0000000] (null)() at 7a9340
    [   1.0000000] (null)() at 7a9444
    [   1.0000000] (null)() at 230ae4
    [   1.0000000] (null)() at 231728
    [   1.0000000] (null)() at 2000dc
    [   1.0000000] -- trap #0 (0x11d8f80)
    [   1.0000000] cpu0: End traceback...

Diagnosis: the machine's own PDC "INformation ALL" output reports:

    PROCESSOR INFORMATION
                 HVERSION  SVERSION   CVERSION
        Speed     Model    Model/Op  (Revision)
      ---------  --------  --------  ----------
       100 MHz    0x4840    0x0481       12

so the HVERSION model matches sys/arch/hppa/dev/cpudevs's own board
table exactly:

    board   HPD210   0x484   811/D210/D310 (UltraLight L 100)

So the kernel's "cpu_modelno 484" in the panic is this same board ID
(0x484) printed without the leading "0x". NetBSD already knows the
D210 by name in cpudevs, but cpu_model_cpuid() in
sys/arch/hppa/hppa/machdep.c -- which is only consulted as a fallback
when PDC_MODEL_CPUID doesn't return a usable type directly, which
appears to be the case on this machine's firmware -- has no case for
HPPA_BOARD_HPD210 (or any other D-class board) in its switch
statement. It falls through to "return hpc_unknown;" and the kernel
panics rather than treating it as the PA-7100LC ("Hummingbird",
hpcxl) system it actually is.

This looks like the same class of bug reported and fixed in January
for the HP 745i/50 (cpu_modelno 401, HPPA_BOARD_HP745I_50 missing from
the same switch, fixed by adding a case grouped with the existing
PA-7100 entries -- thank you for that quick turnaround, it's what led
me to find this one). The D210 is PA-7100LC-based, the same CPU family
as the existing HP712/HP715 ("Hummingbird") entries that already map
to hpcxl, so the fix should be the same shape: add a case for
HPPA_BOARD_HPD210 to the hpcxl group.

For reference, the current switch (sys/arch/hppa/hppa/machdep.c,
cpu_model_cpuid()) has:

    case HPPA_BOARD_HPE23:
    case HPPA_BOARD_HPE25:
    case HPPA_BOARD_HPE35:
    case HPPA_BOARD_HPE45:
    case HPPA_BOARD_HP712_60:
    case HPPA_BOARD_HP712_80:
    case HPPA_BOARD_HP712_100:
    case HPPA_BOARD_HP715_80:
    case HPPA_BOARD_HP715_64:
    case HPPA_BOARD_HP715_100:
    case HPPA_BOARD_HP715_100XC:
    case HPPA_BOARD_HP715_100L:
    case HPPA_BOARD_HP715_120L:
    case HPPA_BOARD_HP715_80M:
        return hpcxl;

Suggested fix: add HPPA_BOARD_HPD210 (0x484) to this list. While
looking at cpudevs, I also noticed several other D/R-class boards with
no case anywhere in this switch, which would presumably hit the same
panic on that hardware if anyone tries to boot them:

    board   HPD200    0x485   801/D200/D300 (UltraLight L 75)
    board   HP803     0x512   803/D220 (UltraLight L2 132)
    board   HP813     0x513   813/D320 (UltraLight L2 160)
    board   HP841     0x587   841/D210/D410 (UltraLight Proc 1-way T'120)
    board   HP851     0x588   851/D210-2/D410-2 (UltraLight Proc 2-way T'120)
    board   HP821_1   0x589   821/D200/D400 (UltraLight Proc 1-way T'100)
    board   HP831     0x58a   831/D200-2/D400-2 (UltraLight Proc 2-way T'100)
    board   HP841_1   0x5a0   841/D260/D360 (UltraLight 1-way T120 1MB)
    board   HP851_1   0x5a1   851/D260/D360 (UltraLight 2-way T120 1MB)
    board   HP861     0x5a2   861/D270/D370 (UltraLight 1-way U160 512K)
    board   HP871     0x5a3   871/D270/D370 (UltraLight 2-way U160 512K)
    board   HP810D    0x5a9   810/D380/R380 (UltraLight 1-way U180 1M)
    board   HP820     0x5aa   820/D280 (UltraLight 2-way U180 1M)
    board   HP821     0x5b9   821/D350/R350 (UltraLight 1w U+/240)
    board   HP800D    0x5ba   800/D390/R390 (UltraLight 2w U+/240)

I only have the one D210 to test against, so I can't confirm the CPU
type grouping for the later ones (some of these are PA-7200/8x00-class
rather than PA-7100LC, so they may belong in a different group than
hpcxl -- 0x484/0x485 are the only two I'd confidently place, being the
same "UltraLight L" PA-7100LC generation as the existing 712/715
entries). Happy to test a patch against 0x484 specifically on real
hardware if one gets proposed -- this machine is otherwise fully
working (BOOTP/TFTP netboot via dnsmasq gets it to the installer
cleanly; the panic above is the only thing currently blocking
installation).

Thanks,
Charles


Home | Main Index | Thread Index | Old Index