NetBSD-Bugs archive

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

Re: port-hppa/52162 (712/60 hangs during sti(4) probe)



The following reply was made to PR port-hppa/52162; it has been noted by GNATS.

From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: port-hppa/52162 (712/60 hangs during sti(4) probe)
Date: Sun, 21 Mar 2021 03:26:33 +0900

 More info:
 
 - stops at the first bus_space_read_1() in sti_sgc_probe():
  https://nxr.netbsd.org/xref/src/sys/arch/hppa/dev/sti_sgc.c?r=1.2#179
 
 ---
     166 	/* if it does not map, probably part of the lasi space */
     167 	if ((rv = bus_space_map(ca->ca_iot, rom, STI_ROMSIZE, 0, &romh))) {
     168 		DPRINTF(("%s: can't map rom space (%d)\n", __func__, rv));
     169 
     170 		if ((rom & HPPA_IOBEGIN) == HPPA_IOBEGIN) {
     171 			romh = rom;
     172 			romunmapped++;
     173 		} else {
     174 			/* in this case nobody has no freaking idea */
     175 			return 0;
     176 		}
     177 	}
     178 
 =>  179 	devtype = bus_space_read_1(ca->ca_iot, romh, 3);
     180 
     181 	DPRINTF(("%s: devtype=%d\n", __func__, devtype));
 ---
 
 - happens even with "temporary local console" by pressign the "Esc" key:
  https://www.netbsd.org/ports/hppa/serialconsole-712.html#set_console_location
 
 - OpenBSD/hppa 6.8 just recognizes sti(4) on the same machine:
 
 ---
 BOOT_ADMIN> boot lan
 
 Booting
 
 
 >> OpenBSD/hppa BOOT 1.10
 boot>
 cannot open lf0a:/etc/random.seed: No such file or directory
 booting lf0a:/bsd: 2650112+5006336+564224=0xff817c
 SPID bits: 0x0, error = -2
 pdc_coproc: 0xc0, 0xc0; model d rev 1
 Copyright (c) 1982, 1986, 1989, 1991, 1993
         The Regents of the University of California.  All rights reserved.
 Copyright (c) 1995-2020 OpenBSD. All rights reserved.  https://www.OpenBSD.org
 
 OpenBSD 6.8 (RAMDISK) #291: Sun Oct  4 18:46:24 MDT 2020
     deraadt%hppa.openbsd.org@localhost:/usr/src/sys/arch/hppa/compile/RAMDISK
 HP 9000/712/60 (Gecko) PA-RISC 1.1c
 real mem = 134217728 (128MB)
 rsvd mem = 524288 (512KB)
 avail mem = 119099392 (113MB)
 random: boothowto does not indicate good seed
 mainbus0 at root [flex fff80000]
 pdc0 at mainbus0
 power0 at mainbus0: DR25
 cpu0 at mainbus0 offset ffbe000 irq 31: PCXL L1-A 60MHz, FPU PCXL (CMOS-26B) rev 1
 cpu0: 32K(32b/l) Icache, 32K(32b/l) wr-back Dcache, 64 coherent TLB, 8 BTLB
 mem0 at mainbus0 offset ffbf000: viper rev 0, size 128MB
 lasi0 at mainbus0 offset 100000: rev 3.0
 gsc0 at lasi0 irq 2
 gsckbc0 at gsc0 offset 8100 irq 26
 gsckbc1 at gsc0 offset 8000 irq 26
 pckbd0 at gsckbc1
 wskbd0 at pckbd0 mux 1
 "floppy controller" at gsc0 (type a sv 83 mod 1 hv 60) offset a000 not configured
 "Advanced audio (ext.)" at gsc0 (type a sv 7b mod 1 hv 60) offset 4000 not configured
 "Core Centronics" at gsc0 (type a sv 74 mod 1 hv 60) offset 2000 not configured
 com0 at gsc0 offset 5000 irq 5: ns16550a, 16 byte fifo
 com0: console
 ie0 at gsc0 offset 7000 irq 8: LASI/i82596CA v1.0, address 08:00:09:d1:2b:5a
 osiop0 at gsc0 offset 6000 irq 9: NCR53C710 rev 2, 40MHz
 scsibus0 at osiop0: 8 targets, initiator 7
 osiop0: target 6 now using 8 bit 10 MHz 8 REQ/ACK offset xfers
 sd0 at scsibus0 targ 6 lun 0: <IBM, DORS-32160, HP02> serial.IBM_DORS-32160_5U6S0282_
 sd0: 2048MB, 512 bytes/sector, 4194685 sectors
 sti0 at mainbus0 offset 8000000: rev 8.04;7, ID 0x2B4DED6D40A00499
 sti0: HPA208LC1024, 2048x1024 frame buffer, 1024x768x8 display
 sti0: 8x16 font type 1, 16 bpc, charset 0-255
 wsdisplay0 at sti0 mux 1
 wskbd0: connecting to wsdisplay0
 wsdisplay0: screen 0 added (std, vt100 emulation)
 softraid0 at root
 scsibus1 at softraid0: 256 targets
 bootpath: 2/0/2.10000.ed140025.22d20fbe.32d3403.c0a81401.c0a81419 class=4098 flags=0 hpa=0xf0107000 spa=0x0 io=0x8f98
 root on rd0a swap on rd0b dump on rd0b
 WARNING: CHECK AND RESET THE DATE!
 ---
 
 BTW, a comment in sti_sgc_probe() says:
 > /* if it does not map, probably part of the lasi space */
 but current NetBSD/hppa seems to attach sti(4) before lasi0:
 ---
  :
 mainbus0 (root) [flex fff80000]
 pdc0 at mainbus0
 power0 at mainbus0: DR25
 cpu0 at mainbus0 hpa 0xfffbe000 path 8 irq 31: PA7100LC (Hummingbird) rev 6
 cpu0: PCXL, PA-RISC 1.1c, lev 1, cat A, 60 MHz clk
 cpu0: shadows, 32K/32K D/I caches, 64 shared TLB, 8 shared BTLB
 cpu0: PCXL (CMOS-26B) floating point, rev 1
 mem0 at mainbus0 hpa 0xfffbf000 path 9: viper rev 0, ctrl 0x0 size 128MB
 "GIO Graphics" at mainbus0 (type 0xa, sv 0x85) hpa 0xf8000000 path 1 not configured
 lasi0 at mainbus0 hpa 0xf0000000 path 2 irq 27: rev 3.0
 gsc0 at lasi0
  :
 ---
 
 Probably we have some order list to attach mainbus devices?
 (Currently we rely on config_found() so MI devices seem attached first)
 
 ---
 Izumi Tsutsui
 


Home | Main Index | Thread Index | Old Index