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: nick.hudson%gmx.co.uk@localhost
Cc: gnats-bugs%netbsd.org@localhost, tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: port-hppa/52162 (712/60 hangs during sti(4) probe)
Date: Sun, 21 Mar 2021 18:38:40 +0900

 > >   Probably we have some order list to attach mainbus devices?
 > >   (Currently we rely on config_found() so MI devices seem attached first)
 > >
 > 
 > Please provide boot -v -x output. This should tells us more about how
 > the devices are reported by the PDC.
 
 Attached.
 
 > You might need to do this without sti @ in your config.
 
 Disabled by userconf(4).
 
 ---
 
 
 ----------------------------------------------------------------------------
 BootRom Version    2.3  
 Memory Size:  128 MB
 ----------------------------------------------------------------------------
 
 
 
 
 (c) Copyright 1990-1993, Hewlett-Packard Company.
 All rights reserved
 
 Press <ESCAPE> to stop boot sequence.
 Selecting a system to boot.
 
 Booting
 
 
 NetBSD/hppa FFS/LFS Primary Bootstrap
 
 32bit firmware
 
 booting from partition a
 filesystem: FFS
 looking up boot.hp700
 looking up boot
 loading boot at 0x22800...done
 
 
 
 >> NetBSD/hppa LIF/FFS/LFS Boot, Revision 1.4 (Sun Oct 18 19:24:30 UTC 2020)
 >> Enter "reset" to reset system.
 Boot: [[[dk6a:]netbsd][-a][-c][-d][-s][-v][-q]] :- -cvxs
 9661520+769560+344552 [381760+364826]=0xbc6b08
 Start @ 0x200000 [1=0xd10000-0xdc6b08]...
 [   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
 [   1.0000000]     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
 [   1.0000000]     2018, 2019, 2020 The NetBSD Foundation, Inc.  All rights reserved.
 [   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
 [   1.0000000]     The Regents of the University of California.  All rights reserved.
 
 [   1.0000000] NetBSD 9.1 (GENERIC) #0: Sun Oct 18 19:24:30 UTC 2020
 [   1.0000000] 	mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/hppa/compile/GENERIC
 [   1.0000000] HP9000/712/60 (Gecko)
 [   1.0000000] real mem = 128 MB (73728 reserved for PROM, 115 MB used by NetBSD)
 [   1.0000000] avail mem = 113 MB
 [   1.0000000] timecounter: Timecounters tick every 10.000 msec
 [   1.0000000] Kernelized RAIDframe activated
 [   1.0000000] userconf: configure system autoconfiguration:
 [   1.0000000] uc> disable sti
 [   1.0000000] [ 93] sti* disabled
 [   1.0000000] [ 94] sti* disabled
 [   1.0000000] [ 95] sti* disabled
 [   1.0000000] [ 96] sti* disabled
 [   1.0000000] uc> quit
 [   1.0000000] Continuing...
 [   1.0000000] mainbus0 (root) [flex fff80000]
 [   1.0000000] pdc0 at mainbus0
 [   1.0000000] pdc0: WARNING: power management not supported
 [   1.0000000] power0 at mainbus0: DR25
 [   1.0000000] power0: WARNING: power management not supported
 [   1.0000000] >> PDC (memmap) device at path 1 addrs 0
 [   1.0000000] >> PDC (memmap) device at path 2 addrs 0
 [   1.0000000] >> PDC (memmap) device at path 2/0/1 addrs 0
 [   1.0000000] >> PDC (memmap) device at path 2/0/2 addrs 0
 [   1.0000000] >> PDC (memmap) device at path 2/0/4 addrs 0
 [   1.0000000] >> PDC (memmap) device at path 2/0/6 addrs 0
 [   1.0000000] >> PDC (memmap) device at path 2/0/8 addrs 0
 [   1.0000000] >> PDC (memmap) device at path 2/0/10 addrs 0
 [   1.0000000] >> PDC (memmap) device at path 2/0/11 addrs 0
 [   1.0000000] >> PDC (memmap) device at path 2/0/12 addrs 0
 [   1.0000000] >> PDC (memmap) device at path 8 addrs 0
 [   1.0000000] >> PDC (memmap) device at path 9 addrs 0
 [   1.0000000] >> Walking bus at HPA 0xfff80000
 [   1.0000000] >> HPA 0xfffbe000[0x0] found by firmware
 [   1.0000000] >> HPA 0xfffbf000[0x0] found by firmware
 [   1.0000000] >> HPA 0xf8000000[0x0]
 [   1.0000000] >> probing: flags 0x0  path 1 type a sv 85
 [   1.0000000] >> HPA 0xf0100000[0x1]
 [   1.0000000] >> probing: flags 0x0  path 2 type b sv 81
 [   1.0000000] >> HPA 0xfffbe000[0x1]
 [   1.0000000] >> probing: flags 0x0  path 8 type 0 sv 4
 [   1.0000000] cpu0 at mainbus0 hpa 0xfffbe000 path 8 irq 31: PA7100LC (Hummingbird) rev 6
 [   1.0000000] cpu0: PCXL, PA-RISC 1.1c, lev 1, cat A, 60 MHz clk
 [   1.0000000] cpu0: shadows, 32K/32K D/I caches, 64 shared TLB, 8 shared BTLB
 [   1.0000000] cpu0: PCXL (CMOS-26B) floating point, rev 1
 [   1.0000000] cpu0: WARNING: power management not supported
 [   1.0000000] >> HPA 0xfffbf000[0x1]
 [   1.0000000] >> probing: flags 0x0  path 9 type 1 sv 9
 [   1.0000000] mem0 at mainbus0 hpa 0xfffbf000 path 9: viper rev 0, ctrl 0x0 size 128MB
 [   1.0000000] mem0: WARNING: power management not supported
 [   1.0000000] >> HPA 0xf8000000[0x0]
 [   1.0000000] >> probing: flags 0x0  path 1 type a sv 85
 [   1.0000000] "GIO Graphics" at mainbus0 (type 0xa, sv 0x85) hpa 0xf8000000 path 1 not configured
 [   1.0000000] >> HPA 0xf0100000[0x1]
 [   1.0000000] >> probing: flags 0x0  path 2 type b sv 81
 [   1.0000000] lasi0 at mainbus0 hpa 0xf0000000 path 2 irq 27: rev 3.0
 [   1.0000000] gsc0 at lasi0
 [   1.0000000] >> HPA 0xf0106000[0x1]
 [   1.0000000] >> probing: flags 0x0  path 2/0/1 type a sv 82
 [   1.0000000] osiop0 at gsc0 hpa 0xf0106000 path 2/0/1 irq 9: NCR53C710 rev 2, 40MHz, SCSI ID 7
 [   1.0000000] scsibus0 at osiop0: 8 targets, 8 luns per target
 [   1.0000000] osiop0: WARNING: power management not supported
 [   1.0000000] >> HPA 0xf0107000[0x1]
 [   1.0000000] >> probing: flags 0x0  path 2/0/2 type a sv 8a
 [   1.0000000] iee0 at gsc0 hpa 0xf0107000 path 2/0/2 irq 8: Intel 82596CA address 08:00:09:d1:2b:5a
 [   1.0000000] iee0: WARNING: power management not supported
 [   1.0000000] >> HPA 0xf0105000[0x1]
 [   1.0000000] >> probing: flags 0x0  path 2/0/4 type a sv 8c
 [   1.0000000] com2 at gsc0 hpa 0xf0105000 path 2/0/4 irq 5: ns16550a, working fifo
 [   1.0000000] com2: console
 [   1.0000000] com2: WARNING: power management not supported
 [   1.0000000] >> HPA 0xf0102000[0x1]
 [   1.0000000] >> probing: flags 0x0  path 2/0/6 type a sv 74
 [   1.0000000] lpt1 at gsc0 hpa 0xf0102000 path 2/0/6 irq 7
 [   1.0000000] lpt1: WARNING: power management not supported
 [   1.0000000] >> HPA 0xf0104000[0x1]
 [   1.0000000] >> probing: flags 0x0  path 2/0/8 type a sv 7b
 [   1.0000000] harmony0 at gsc0 hpa 0xf0104000 path 2/0/8 irq 13: rev 4
 [   1.0000000] audio0 at harmony0: playback, capture, full duplex
 [   1.0000000] audio0: slinear_be:16 2ch 48000Hz, blk 4096 bytes (21.3ms) for playback
 [   1.0000000] audio0: slinear_be:16 2ch 48000Hz, blk 4096 bytes (21.3ms) for recording
 [   1.0000000] spkr0 at audio0: PC Speaker (synthesized)
 [   1.0000000] wsbell at spkr0 not configured
 [   1.0000000] harmony0: WARNING: power management not supported
 [   1.0000000] >> HPA 0xf010a000[0x1]
 [   1.0000000] >> probing: flags 0x0  path 2/0/10 type a sv 83
 [   1.0000000] "floppy controller" at gsc0 (type 0xa, sv 0x83) hpa 0xf010a000 path 2/0/10 not configured
 [   1.0000000] >> HPA 0xf0108000[0x1]
 [   1.0000000] >> probing: flags 0x0  path 2/0/11 type a sv 84
 [   1.0000000] gsckbc0 at gsc0 hpa 0xf0108000 path 2/0/11 irq 26 (master): keyboard
 [   1.0000000] pckbd0 at gsckbc0 (kbd slot)
 [   1.0000000] wskbd0 at pckbd0 mux 1
 [   1.0000000] gsckbc0: WARNING: power management not supported
 [   1.0000000] >> HPA 0xf0108100[0x1]
 [   1.0000000] >> probing: flags 0x0  path 2/0/12 type a sv 84
 [   1.0000000] gsckbc1 at gsc0 hpa 0xf0108100 path 2/0/12 (slave): mouse
 [   1.0000000] pmsprobe: reset error 5
 [   1.0000000] gsckbc1: WARNING: power management not supported
 [   1.0000000] gsc0: WARNING: power management not supported
 [   1.0000000] lasi0: WARNING: power management not supported
 [   1.0000000] mainbus0: WARNING: power management not supported
 [   1.0000000] timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
 [   1.0000130] timecounter: Timecounter "itimer" frequency 60000000 Hz quality 100
 [   1.0000130] scsibus0: waiting 2 seconds for devices to settle...
 [   5.0373387] sd0 at scsibus0 target 6 lun 0: <IBM, DORS-32160, HP02> disk fixed
 [   5.3037986] sd0: 2048 MB, 6703 cyl, 5 head, 125 sec, 512 bytes/sect x 4194685 sectors
 [   5.4161198] sd0: sync (100.00ns offset 8), 8-bit (10.000MB/s) transfers
 [   5.5248987] crypto: assign driver 0, flags 2
 [   5.5800571] crypto: driver 0 registers alg 1 flags 0 maxoplen 0
 [   5.6518470] crypto: driver 0 registers alg 2 flags 0 maxoplen 0
 [   5.7236662] crypto: driver 0 registers alg 3 flags 0 maxoplen 0
 [   5.7954581] crypto: driver 0 registers alg 4 flags 0 maxoplen 0
 [   5.8672664] crypto: driver 0 registers alg 5 flags 0 maxoplen 0
 [   5.9390747] crypto: driver 0 registers alg 26 flags 0 maxoplen 0
 [   6.0119452] crypto: driver 0 registers alg 27 flags 0 maxoplen 0
 [   6.0848075] crypto: driver 0 registers alg 29 flags 0 maxoplen 0
 [   6.1576833] crypto: driver 0 registers alg 33 flags 0 maxoplen 0
 [   6.2305317] crypto: driver 0 registers alg 17 flags 0 maxoplen 0
 [   6.3033929] crypto: driver 0 registers alg 6 flags 0 maxoplen 0
 [   6.3752024] crypto: driver 0 registers alg 19 flags 0 maxoplen 0
 [   6.4480683] crypto: driver 0 registers alg 7 flags 0 maxoplen 0
 [   6.5198756] crypto: driver 0 registers alg 20 flags 0 maxoplen 0
 [   6.5927511] crypto: driver 0 registers alg 15 flags 0 maxoplen 0
 [   6.6656024] crypto: driver 0 registers alg 24 flags 0 maxoplen 0
 [   6.7384720] crypto: driver 0 registers alg 25 flags 0 maxoplen 0
 [   6.8113299] crypto: driver 0 registers alg 8 flags 0 maxoplen 0
 [   6.8831373] crypto: driver 0 registers alg 21 flags 0 maxoplen 0
 [   6.9560019] crypto: driver 0 registers alg 16 flags 0 maxoplen 0
 [   7.0288828] crypto: driver 0 registers alg 9 flags 0 maxoplen 0
 [   7.1006787] crypto: driver 0 registers alg 10 flags 0 maxoplen 0
 [   7.1735360] crypto: driver 0 registers alg 13 flags 0 maxoplen 0
 [   7.2464007] crypto: driver 0 registers alg 14 flags 0 maxoplen 0
 [   7.3192651] crypto: driver 0 registers alg 28 flags 0 maxoplen 0
 [   7.3921305] crypto: driver 0 registers alg 30 flags 0 maxoplen 0
 [   7.4650121] crypto: driver 0 registers alg 31 flags 0 maxoplen 0
 [   7.5378613] crypto: driver 0 registers alg 32 flags 0 maxoplen 0
 [   7.6107209] crypto: driver 0 registers alg 11 flags 0 maxoplen 0
 [   7.6835882] crypto: driver 0 registers alg 18 flags 0 maxoplen 0
 [   7.7564517] crypto: driver 0 registers alg 23 flags 0 maxoplen 0
 [   7.8293135] crypto: driver 0 registers alg 22 flags 0 maxoplen 0
 [   7.9021961] Searching for RAID components...
 [   8.2462492] boot device: sd0
 [   8.3406904] root on sd0a dumps on sd0b
 [   8.6034908] root file system type: ffs
 [   8.6584082] kern.module.path=/stand/hppa/9.1/modules
 Enter pathname of shell or RETURN for /bin/sh: 
 
 ---
 
 Note OpenBSD/hppa seems probe I/O devices at mainbus in reversed order:
  http://bxr.su/OpenBSD/sys/arch/hppa/hppa/autoconf.c?r=1.62#211
 ---
 
 205 void
 206 pdc_scanbus(struct device *self, struct confargs *ca, int maxmod,
 207     hppa_hpa_t hpa, int cpu_scan)
 208 {
 209     int start, end, incr, i;
 210 
 211     /* Scan forwards for CPUs, backwards for everything else. */
 212     if (cpu_scan) {
 213         start = 0;
 214         incr = 1;
 215         end = maxmod;
 216     } else {
 217         start = maxmod - 1;
 218         incr = -1;
 219         end = -1;
 220     }
 221 
 222     for (i = start; i != end; i += incr) {
 223         struct confargs nca;
 224         int error;
 
 ---
 
 But the following kludge to reverse the probe order didn't help so much..
 
 ---
 Index: hppa/autoconf.c
 ===================================================================
 RCS file: /cvsroot/src/sys/arch/hppa/hppa/autoconf.c,v
 retrieving revision 1.4
 diff -u -p -d -r1.4 autoconf.c
 --- hppa/autoconf.c	15 Apr 2019 20:46:10 -0000	1.4
 +++ hppa/autoconf.c	21 Mar 2021 09:32:15 -0000
 @@ -157,6 +157,9 @@ void hppa_walkbus(struct confargs *ca);
  static void hppa_pdc_snake_scan(void);
  static void hppa_pdc_system_map_scan(void);
  
 +static void pdc_config(device_t, struct confargs *,
 +    device_t (*)(device_t, struct confargs *), struct hppa_pdcmodule *);
 +
  /*
   * cpu_configure:
   * called at boot time, configure all devices on system
 @@ -542,96 +545,111 @@ pdc_scanbus(device_t self, struct confar
      device_t (*callback)(device_t, struct confargs *))
  {
  	struct hppa_pdcmodule *hm;
 -	struct confargs nca;
 -	device_t dev;
 -	int ia;
  
  	hppa_walkbus(ca);
  
 -	TAILQ_FOREACH(hm, &hppa_pdcmodule_list, hm_link) {
 -		char buf[128];
 -		int error;
 +	if (ca->ca_hpabase == HPPA_FPA) {
 +		TAILQ_FOREACH(hm, &hppa_pdcmodule_list, hm_link) {
 +			pdc_config(self, ca, callback, hm);
 +		}
 +	} else {
 +		TAILQ_FOREACH_REVERSE(hm, &hppa_pdcmodule_list,
 +		    hppa_pdcmodule_head, hm_link) {
 +			pdc_config(self, ca, callback, hm);
 +		}
 +	}
 +}
  
 -		if (hm->hm_registered)
 -			continue;
 +static void
 +pdc_config(device_t self, struct confargs *ca,
 +    device_t (*callback)(device_t, struct confargs *),
 +    struct hppa_pdcmodule *hm)
 +{
 +	struct confargs nca;
 +	device_t dev;
 +	int ia;
 +	char buf[128];
 +	int error;
  
 -		if (!(hm->hm_dp.dp_bc[0] == ca->ca_dp.dp_bc[1] &&
 -		    hm->hm_dp.dp_bc[1] == ca->ca_dp.dp_bc[2] &&
 -		    hm->hm_dp.dp_bc[2] == ca->ca_dp.dp_bc[3] &&
 -		    hm->hm_dp.dp_bc[3] == ca->ca_dp.dp_bc[4] &&
 -		    hm->hm_dp.dp_bc[4] == ca->ca_dp.dp_bc[5] &&
 -		    hm->hm_dp.dp_bc[5] == ca->ca_dp.dp_mod))
 -			continue;
 +	if (hm->hm_registered)
 +		return;
  
 -		memset(&nca, 0, sizeof(nca));
 -		nca.ca_iot = ca->ca_iot;
 -		nca.ca_dmatag = ca->ca_dmatag;
 -		nca.ca_pir = hm->hm_pir;
 -		nca.ca_type = hm->hm_type;
 -		nca.ca_hpa = hm->hm_hpa;
 -		nca.ca_dp = hm->hm_dp;
 -		nca.ca_hpa = hm->hm_hpa;
 -		nca.ca_hpasz = hm->hm_hpasz;
 +	if (!(hm->hm_dp.dp_bc[0] == ca->ca_dp.dp_bc[1] &&
 +	    hm->hm_dp.dp_bc[1] == ca->ca_dp.dp_bc[2] &&
 +	    hm->hm_dp.dp_bc[2] == ca->ca_dp.dp_bc[3] &&
 +	    hm->hm_dp.dp_bc[3] == ca->ca_dp.dp_bc[4] &&
 +	    hm->hm_dp.dp_bc[4] == ca->ca_dp.dp_bc[5] &&
 +	    hm->hm_dp.dp_bc[5] == ca->ca_dp.dp_mod))
 +		return;
  
 -		if (hm->hm_naddrs) {
 -			if (hm->hm_naddrs > HPPA_MAXIOADDRS) {
 -				nca.ca_naddrs = HPPA_MAXIOADDRS;
 -				aprint_error("WARNING: too many (%d) addrs\n",
 -				    hm->hm_naddrs);
 -			} else
 -				nca.ca_naddrs = hm->hm_naddrs;
 +	memset(&nca, 0, sizeof(nca));
 +	nca.ca_iot = ca->ca_iot;
 +	nca.ca_dmatag = ca->ca_dmatag;
 +	nca.ca_pir = hm->hm_pir;
 +	nca.ca_type = hm->hm_type;
 +	nca.ca_hpa = hm->hm_hpa;
 +	nca.ca_dp = hm->hm_dp;
 +	nca.ca_hpa = hm->hm_hpa;
 +	nca.ca_hpasz = hm->hm_hpasz;
  
 -			aprint_debug(">> ADDRS[%d/%d]: ", nca.ca_naddrs,
 -			    hm->hm_modindex);
 +	if (hm->hm_naddrs) {
 +		if (hm->hm_naddrs > HPPA_MAXIOADDRS) {
 +			nca.ca_naddrs = HPPA_MAXIOADDRS;
 +			aprint_error("WARNING: too many (%d) addrs\n",
 +			    hm->hm_naddrs);
 +		} else
 +			nca.ca_naddrs = hm->hm_naddrs;
  
 -			KASSERT(hm->hm_modindex != -1);
 -			for (ia = 0; ia < nca.ca_naddrs; ia++) {
 -				struct pdc_system_map_find_addr pdc_find_addr;
 +		aprint_debug(">> ADDRS[%d/%d]: ", nca.ca_naddrs,
 +		    hm->hm_modindex);
  
 -				error = pdcproc_system_map_find_addr(
 -				    &pdc_find_addr, hm->hm_modindex, ia + 1);
 -				if (error < 0)
 -					break;
 -				nca.ca_addrs[ia].addr = pdc_find_addr.hpa;
 -				nca.ca_addrs[ia].size =
 -				    pdc_find_addr.size << PGSHIFT;
 +		KASSERT(hm->hm_modindex != -1);
 +		for (ia = 0; ia < nca.ca_naddrs; ia++) {
 +			struct pdc_system_map_find_addr pdc_find_addr;
  
 -				aprint_debug(" 0x%lx[0x%x]",
 -				    nca.ca_addrs[ia].addr,
 -				    nca.ca_addrs[ia].size);
 -			}
 -			aprint_debug("\n");
 +			error = pdcproc_system_map_find_addr(
 +			    &pdc_find_addr, hm->hm_modindex, ia + 1);
 +			if (error < 0)
 +				break;
 +			nca.ca_addrs[ia].addr = pdc_find_addr.hpa;
 +			nca.ca_addrs[ia].size =
 +			    pdc_find_addr.size << PGSHIFT;
 +
 +			aprint_debug(" 0x%lx[0x%x]",
 +			    nca.ca_addrs[ia].addr,
 +			    nca.ca_addrs[ia].size);
  		}
 +		aprint_debug("\n");
 +	}
  
 -		aprint_debug(">> HPA 0x%lx[0x%x]\n", nca.ca_hpa,
 -		    nca.ca_hpasz);
 +	aprint_debug(">> HPA 0x%lx[0x%x]\n", nca.ca_hpa,
 +	    nca.ca_hpasz);
  
 -		snprintb(buf, sizeof(buf), PZF_BITS, nca.ca_dp.dp_flags);
 -		aprint_debug(">> probing: flags %s ", buf);
 -		if (nca.ca_dp.dp_mod >=0) {
 -			int n;
 +	snprintb(buf, sizeof(buf), PZF_BITS, nca.ca_dp.dp_flags);
 +	aprint_debug(">> probing: flags %s ", buf);
 +	if (nca.ca_dp.dp_mod >=0) {
 +		int n;
  
 -			aprint_debug(" path ");
 -			for (n = 0; n < 6; n++) {
 -				if (nca.ca_dp.dp_bc[n] >= 0)
 -					aprint_debug("%d/",
 -					    nca.ca_dp.dp_bc[n]);
 -			}
 -			aprint_debug("%d", nca.ca_dp.dp_mod);
 +		aprint_debug(" path ");
 +		for (n = 0; n < 6; n++) {
 +			if (nca.ca_dp.dp_bc[n] >= 0)
 +				aprint_debug("%d/",
 +				    nca.ca_dp.dp_bc[n]);
  		}
 +		aprint_debug("%d", nca.ca_dp.dp_mod);
 +	}
  
 -		aprint_debug(" type %x sv %x\n",
 -		    nca.ca_type.iodc_type, nca.ca_type.iodc_sv_model);
 +	aprint_debug(" type %x sv %x\n",
 +	    nca.ca_type.iodc_type, nca.ca_type.iodc_sv_model);
  
 -		nca.ca_irq = HPPACF_IRQ_UNDEF;
 -		nca.ca_name = hppa_mod_info(nca.ca_type.iodc_type,
 -		    nca.ca_type.iodc_sv_model);
 +	nca.ca_irq = HPPACF_IRQ_UNDEF;
 +	nca.ca_name = hppa_mod_info(nca.ca_type.iodc_type,
 +	    nca.ca_type.iodc_sv_model);
  
 -		dev = callback(self, &nca);
 +	dev = callback(self, &nca);
  
 -		if (dev)
 -			hm->hm_registered = true;
 -	}
 +	if (dev)
 +		hm->hm_registered = true;
  }
  
  static const struct hppa_mod_info hppa_knownmods[] = {
 
 --- 
 
 >> NetBSD/hppa LIF/FFS/LFS Boot, Revision 1.4 (Sun Oct 18 19:24:30 UTC 2020)
 >> Enter "reset" to reset system.
 Boot: [[[dk6a:]netbsd][-a][-c][-d][-s][-v][-q]] :- netbsd.sti -vxs
 9666240+769624+344488 [381936+365014]=0xbc6c74
 Start @ 0x200000 [1=0xd10000-0xdc6c74]...
 [   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
 [   1.0000000]     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
 [   1.0000000]     2018, 2019, 2020 The NetBSD Foundation, Inc.  All rights reserved.
 [   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
 [   1.0000000]     The Regents of the University of California.  All rights reserved.
 
 [   1.0000000] NetBSD 9.1 (GENERIC) #9: Sun Mar 21 18:31:10 JST 2021
 [   1.0000000]  tsutsui@mirage:/s/netbsd-9/src/sys/arch/hppa/compile/GENERIC
 [   1.0000000] HP9000/712/60 (Gecko)
 [   1.0000000] real mem = 128 MB (73728 reserved for PROM, 115 MB used by NetBSD)
 [   1.0000000] avail mem = 113 MB
 [   1.0000000] timecounter: Timecounters tick every 10.000 msec
 [   1.0000000] Kernelized RAIDframe activated
 [   1.0000000] mainbus0 (root) [flex fff80000]
 [   1.0000000] pdc0 at mainbus0
 [   1.0000000] pdc0: WARNING: power management not supported
 [   1.0000000] power0 at mainbus0: DR25
 [   1.0000000] power0: WARNING: power management not supported
 [   1.0000000] >> PDC (memmap) device at path 1 addrs 0
 [   1.0000000] >> PDC (memmap) device at path 2 addrs 0
 [   1.0000000] >> PDC (memmap) device at path 2/0/1 addrs 0
 [   1.0000000] >> PDC (memmap) device at path 2/0/2 addrs 0
 [   1.0000000] >> PDC (memmap) device at path 2/0/4 addrs 0
 [   1.0000000] >> PDC (memmap) device at path 2/0/6 addrs 0
 [   1.0000000] >> PDC (memmap) device at path 2/0/8 addrs 0
 [   1.0000000] >> PDC (memmap) device at path 2/0/10 addrs 0
 [   1.0000000] >> PDC (memmap) device at path 2/0/11 addrs 0
 [   1.0000000] >> PDC (memmap) device at path 2/0/12 addrs 0
 [   1.0000000] >> PDC (memmap) device at path 8 addrs 0
 [   1.0000000] >> PDC (memmap) device at path 9 addrs 0
 [   1.0000000] >> Walking bus at HPA 0xfff80000
 [   1.0000000] >> HPA 0xfffbe000[0x0] found by firmware
 [   1.0000000] >> HPA 0xfffbf000[0x0] found by firmware
 [   1.0000000] >> HPA 0xf8000000[0x0]
 [   1.0000000] >> probing: flags 0x0  path 1 type a sv 85
 [   1.0000000] >> HPA 0xf0100000[0x1]
 [   1.0000000] >> probing: flags 0x0  path 2 type b sv 81
 [   1.0000000] >> HPA 0xfffbe000[0x1]
 [   1.0000000] >> probing: flags 0x0  path 8 type 0 sv 4
 [   1.0000000] cpu0 at mainbus0 hpa 0xfffbe000 path 8 irq 31: PA7100LC (Hummingbird) rev 6
 [   1.0000000] cpu0: PCXL, PA-RISC 1.1c, lev 1, cat A, 60 MHz clk
 [   1.0000000] cpu0: shadows, 32K/32K D/I caches, 64 shared TLB, 8 shared BTLB
 [   1.0000000] cpu0: PCXL (CMOS-26B) floating point, rev 1
 [   1.0000000] cpu0: WARNING: power management not supported
 [   1.0000000] >> HPA 0xfffbf000[0x1]
 [   1.0000000] >> probing: flags 0x0  path 9 type 1 sv 9
 [   1.0000000] mem0 at mainbus0 hpa 0xfffbf000 path 9: viper rev 0, ctrl 0x0 size 128MB
 [   1.0000000] mem0: WARNING: power management not supported
 [   1.0000000] >> HPA 0xf0100000[0x1]
 [   1.0000000] >> probing: flags 0x0  path 2 type b sv 81
 [   1.0000000] lasi0 at mainbus0 hpa 0xf0000000 path 2 irq 27: rev 3.0
 [   1.0000000] gsc0 at lasi0
 [   1.0000000] >> HPA 0xf0108100[0x1]
 [   1.0000000] >> probing: flags 0x0  path 2/0/12 type a sv 84
 [   1.0000000] gsckbc0 at gsc0 hpa 0xf0108100 path 2/0/12: can't find master device
 [   1.0000000] gsckbc0: WARNING: power management not supported
 [   1.0000000] >> HPA 0xf0108000[0x1]
 [   1.0000000] >> probing: flags 0x0  path 2/0/11 type a sv 84
 [   1.0000000] gsckbc1 at gsc0 hpa 0xf0108000 path 2/0/11 irq 26 (master): keyboard
 [   1.0000000] pckbd0 at gsckbc1 (kbd slot)
 [   1.0000000] wskbd0 at pckbd0 mux 1
 [   1.0000000] gsckbc1: WARNING: power management not supported[   1.0000000] >> HPA 0xf010a000[0x1]
 [   1.0000000] >> probing: flags 0x0  path 2/0/10 type a sv 83
 [   1.0000000] "floppy controller" at gsc0 (type 0xa, sv 0x83) hpa 0xf010a000 path 2/0/10 not configured
 [   1.0000000] >> HPA 0xf0104000[0x1]
 [   1.0000000] >> probing: flags 0x0  path 2/0/8 type a sv 7b
 [   1.0000000] harmony0 at gsc0 hpa 0xf0104000 path 2/0/8 irq 13: rev 18
 [   1.0000000] audio0 at harmony0: playback, capture, full duplex
 [   1.0000000] audio0: slinear_be:16 2ch 48000Hz, blk 4096 bytes (21.3ms) for playback
 [   1.0000000] audio0: slinear_be:16 2ch 48000Hz, blk 4096 bytes (21.3ms) for recording
 [   1.0000000] spkr0 at audio0: PC Speaker (synthesized)
 [   1.0000000] wsbell at spkr0 not configured
 [   1.0000000] harmony0: WARNING: power management not supported
 [   1.0000000] >> HPA 0xf0102000[0x1]
 [   1.0000000] >> probing: flags 0x0  path 2/0/6 type a sv 74
 [   1.0000000] lpt1 at gsc0 hpa 0xf0102000 path 2/0/6 irq 7
 [   1.0000000] lpt1: WARNING: power management not supported
 [   1.0000000] >> HPA 0xf0105000[0x1]
 [   1.0000000] >> probing: flags 0x0  path 2/0/4 type a sv 8c
 [   1.0000000] com2 at gsc0 hpa 0xf0105000 path 2/0/4 irq 5: ns16550a, working fifo
 [   1.0000000] com2: console
 [   1.0000000] com2: WARNING: power management not supported
 [   1.0000000] >> HPA 0xf0107000[0x1]
 [   1.0000000] >> probing: flags 0x0  path 2/0/2 type a sv 8a
 [   1.0000000] iee0 at gsc0 hpa 0xf0107000 path 2/0/2 irq 8: Intel 82596CA address 08:00:09:d1:2b:5a
 [   1.0000000] iee0: WARNING: power management not supported
 [   1.0000000] >> HPA 0xf0106000[0x1]
 [   1.0000000] >> probing: flags 0x0  path 2/0/1 type a sv 82
 [   1.0000000] osiop0 at gsc0 hpa 0xf0106000 path 2/0/1 irq 9: NCR53C710 rev 2, 40MHz, SCSI ID 7
 [   1.0000000] scsibus0 at osiop0: 8 targets, 8 luns per target
 [   1.0000000] osiop0: WARNING: power management not supported
 [   1.0000000] gsc0: WARNING: power management not supported
 [   1.0000000] lasi0: WARNING: power management not supported
 [   1.0000000] >> HPA 0xf8000000[0x0]
 [   1.0000000] >> probing: flags 0x0  path 1 type a sv 85
 Stopped in pid 0.0 () at        netbsd:hppa_machine_check+0x4:  stw     %r2, R'-
 14(%r30)
 db> bt
 hppa_machine_check() at netbsd:hppa_machine_check+0x4
 pdcproc_pim() at netbsd:pdcproc_pim+0x78
 os_hpmc_cont() at netbsd:os_hpmc_cont+0xf4
 db>
 
 ---
 
 ---
 Izumi Tsutsui
 


Home | Main Index | Thread Index | Old Index