hdeller / seabios-hppa

Port of SEABIOS to the parisc/hppa architecture
GNU Lesser General Public License v3.0
6 stars 5 forks source link

HP-UX 11i v1 MTOE: "Unidentified cpu type returned from PDC_MODEL" for "-machine C3700" #5

Open luchezarg opened 1 month ago

luchezarg commented 1 month ago

Starting QEMU 9.0.2 as follows:

qemu-system-hppa -machine C3700 -boot d -cdrom cd.iso -drive file=hdd.img -nographic -serial mon:stdio -net nic,model=tulip -net user,hostfwd=tcp::2222-:22

with "cd.iso" = HP-UX 11i v1 Minimal Technical OE (MTOE) CD 1 (CRC32 of the image file = f621eb89) results in the following error:

SeaBIOS PA-RISC 64-bit Firmware Version 16 (QEMU 9.0.2)

Duplex Console IO Dependent Code (IODC) revision 16

------------------------------------------------------------------------------
  (c) Copyright 2017-2024 Helge Deller <deller@gmx.de> and SeaBIOS developers.
------------------------------------------------------------------------------

  Processor   Speed            State           Coprocessor State  Cache Size
  ---------  --------   ---------------------  -----------------  ----------
      0      250 MHz    Active                 Functional            0 KB

  Emulated machine:     HP C3700 (64-bit PA2.0), 64-bit PDC, OS32, OS64
  Available memory:     1024 MB
  Good memory required: 16 MB

  Primary boot path:    FWSCSI.0.0
  Alternate boot path:  FWSCSI.2.0
  Console path:         SERIAL_2.9600.8.none
  Keyboard path:        SERIAL_2.9600.8.none

  Available boot devices:
  FWSCSI.0.0 : lsi 00:00.0 0:0 Drive QEMU QEMU HARDDISK 2.5+
  FWSCSI.2.0 : DVD/CD [lsi 00:00.0 2:0 Drive QEMU QEMU CD-ROM 2.5+]

Booting from FWSCSI.2.0 ...

Booting...
Boot IO Dependent Code (IODC) revision 153

HARD Booted.

ISL Revision A.00.43  Apr 12, 2000 

ISL booting  hpux (;0):INSTALL

Boot
: disk(10/0/0/0.2.0.0.0.0.0;0):INSTALL
10078404 + 1134592 + 754944 start 0x15dce8

Stored message buffer up to panic:

System Panic:

linkstamp:          Thu Sep 28 14:49:59 MDT 2006
_release_version:   @(#)      $Revision: vmunix:    vw: -proj    selectors: CUPI80_BL2000_1108 -c 'Vw for CUPI80_BL2000_1108 build' -- cupi80_bl2000_1108 'CUPI80_BL2000_1108'  Wed Nov  8 19:05:38 PST 2000 $
panic: set_machine_parameters_32: Unidentified cpu type returned from PDC_MODEL

PC-Offset Stack Trace (read across, top of stack is 1st):
  0x0016a8c4  0x001b683c  0x001b6d70  0x003f1198  0x001623f8  0x0015df60
End Of Stack

Because the PDC_MODEL code is in the SeaBIOS, not in QEMU, I decided to report this here. Do I do anything wrong or there really is a problem with the CPU data PDC_MODEL returns?

luchezarg commented 1 month ago

Later I found out that this doesn't occur with the "devel" branch. Instead, an exception occurs at address 0xfffffffffffb0500. This patch to QEMU removes the exception. Now it hangs in a silent endless loop. Same with the "master" QEMU branch:

qemu-system-hppa -machine C3700 -boot d -cdrom cd.iso -drive file=hd.img -net nic -net user,hostfwd=tcp::2222-:22 -nographic

SeaBIOS PA-RISC 64-bit Firmware Version 17 (QEMU 9.0.50)

Duplex Console IO Dependent Code (IODC) revision 17

------------------------------------------------------------------------------
  (c) Copyright 2017-2024 Helge Deller <deller@gmx.de> and SeaBIOS developers.
------------------------------------------------------------------------------

  Processor   Speed            State           Coprocessor State  Cache Size
  ---------  --------   ---------------------  -----------------  ----------
      0      250 MHz    Active                 Functional            0 KB

  Emulated machine:     HP C3700 (64-bit PA2.0), 64-bit PDC, OS32, OS64
  Available memory:     1024 MB
  Good memory required: 16 MB

  Primary boot path:    FWSCSI.0.0
  Alternate boot path:  FWSCSI.2.0
  Console path:         SERIAL_2.9600.8.none
  Keyboard path:        SERIAL_2.9600.8.none

  Available boot devices:
  FWSCSI.0.0 : lsi 00:00.0 0:0 Drive QEMU QEMU HARDDISK 2.5+
  FWSCSI.2.0 : DVD/CD [lsi 00:00.0 2:0 Drive QEMU QEMU CD-ROM 2.5+]

Booting from FWSCSI.2.0 ...

Booting...
Boot IO Dependent Code (IODC) revision 153

HARD Booted.

ISL Revision A.00.43  Apr 12, 2000 

ISL booting  hpux (;0):INSTALL

Boot
: disk(10/0/0/0.2.0.0.0.0.0;0):WINSTALL
12283904 + 2244720 + 2718888 start 0x20c568