Page 1 of 1

[BUG] Solaris x86 boot failure with AHA-1542 SCSI controller

Posted: Mon 09 Apr, 2018 10:45 pm
by win2kgamer
Solaris x86 2.4 crashes while booting the kernel when using the AHA-1542 SCSI controller

my PCem configuration is as follows:
Machine: AMI 486 clone (also tested using the Award 430VX PCI machine type with a Pentium 75)
CPU: Intel i486DX2/66
Dynamic recompiler enabled (I also tested with the dynamic recompiler disabled and it crashes in the same way)
Memory: 16MB
Video: Trident TVGA8900D (1MB)
Sound: None
HDD: Adaptec AHA-1542C (I/O address 330h, IRQ 10, DMA 6, HBA SCSI ID 7)
FDD1: 3.5" 1.44M
FDD2: 5.25" 1.2M
HDD is on SCSI ID 0
CDROM is on SCSI ID 6
Mouse: Microsoft 2-button (serial)
Network: None

on a verbose boot (b kadb -v), the kernel crashes after "ISA-device: aha0" appears with the following text:

Code: Select all

BAD TRAP
Page Fault
Kernel fault at addr=0x20, pte=0x0
pid=0, pc=0xe000332e, sp=0x0, eflags=0x246

eip(e000332e), eflags(246), ebp(e00a3f80), uesp(0), esp(e00a3f58)
eax(e00affc0), ebx(e007b55c), ecx(0), edx(57fe01), esi(e00952c0), edi(0)
cr0(8005003b), cr2(20), cr3(296000)
cs(158) ds(160) ss(5) es(160) fs(1a8) gs(1b0)
panic: Page Fault
stopped at	dropping_into_kadb:	ret
the stack trace shows:

Code: Select all

dropping_into_kadb(0x0) + 0
complete_panic() + 86
do_panic(0xe007b55c,0xe00a3eb4) + 1a
vcmn_err(0x3,0xe007b55c,0xe00a3eb4) + 107
cmn_err(0x3,0xe007b55c) + 12
die(0xe,0xe00a3f28,0x20) + 63
trap(0xe00a3f28,0x20) + 568
TRAP TYPE e = PGFLT; hardware error code 2 address of regs e00a3f28
setup_panic(0xe007b55c,0x0) + 86
die(0xe,0xe00a4004,0x9a) + 32
trap(0xe00a4004,0x9a) + 568
TRAP TYPE e = PGFLT; hardware error code 2 address of regs e00a4004
aha_saveccb(0xf5610a34,0xf5910128) + 2a
aha_outmbx(0xf5610a34,0xf5910128) + 47
aha_transport(0xf58e6a14,0xf58e6a10) + 24
scsi_transport(0xf58e6a10) + 11
scsi_test(0xf58e6a10) + 45
scsi_hba_probe(0xf5844888,0x0) + f3
aha_tran_tgt_probe(0xf5844888,0x0) + e
scsi_probe(0xf5844888,0x0) + 16
scdk_probe(0xf57ff478,0x1) + 24
cmdkprobe(0xf5611cd8) + 8d
devi_probe(0xf5611cd8) + 57
impl_probe_attach_devi(0xf5611cd8) + 22
impl_initdev(0xf5611cd8) + 25
impl_proto_to_cf2(0xf5611cd8) + 126
make_children(0xf5611f18,0xf567efc0,0xe00a4220) + a4
impl_make_devinfos(0x66) + 91
ddi_hold_installed_driver(0x66) + f4
ddi_pathname_to_dev_t(0xe007ae14) + cf
getrootdev(0x200,0xe009c1f8,0xe007ae04,0xe009c1f8,0xe007ae04,0xe00a4420,0xf54a26
56,0xe00a4420,0xf54a2675,0xe0093df0) + 11
stubs_common_code(0xe0093df0,0x0) + 3c
rootconf(0xe007d250,0xe0081a3c,0x0,0x20736676,0x7473696c,0x35202420,0x3131,0xe00
85d00,0xe00a448c,0xe002f769) + cd
stubs_common_code() + 3c
main(0x0,0x0,0x0) + 89
The OS will load and install correctly if an IDE controller with an ATAPI CD-ROM is used but these errors appear occasionally:

Code: Select all

WARNING: /isa/ata@170,0/cmdk@0,0 (Disk7):
	Error for command 'Unknown'	Error Level: Fatal
	Sense Key: illegal request
	Vendor: 'PCem    ' error code: 0x12
On a related note, Solaris x86 2.5.1 hangs while initializing the kernel if the AHA-1542 is used (after the "ISA-device: aha0" message when verbose booting.)

Re: [BUG] Solaris x86 boot failure with AHA-1542 SCSI controller

Posted: Sun 15 Apr, 2018 7:40 pm
by SarahWalker
2.4 with AHA-1542C fixed in rev 1162. I think that rev may have also fixed the IDE issue.

Re: [BUG] Solaris x86 boot failure with AHA-1542 SCSI controller

Posted: Sun 15 Apr, 2018 8:58 pm
by SarahWalker
2.5.1 also seems to be fixed now.