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: nick.hudson%gmx.co.uk@localhost, tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: port-hppa/52162 (712/60 hangs during sti(4) probe)
Date: Tue, 23 Mar 2021 03:27:42 +0900

 > > Can you instrument the rom part
 > > 
 > > https://nxr.netbsd.org/xref/src/sys/arch/hppa/dev/sti_sgc.c#112
 > 
 > DPRINTF said
 > > sti_sgc_probe: hpa=f8000000, rom=f8000000
 > so sti_sgc_getrom() returned "rom = ca->ca_hpa".
 
 Finally I've found there is a dumb problem, i.e. the rom address
 taken from PAGE0->pd_resv2[1] (0xf0080000) just works:
 
 ---
 Index: dev/sti_sgc.c
 ===================================================================
 RCS file: /cvsroot/src/sys/arch/hppa/dev/sti_sgc.c,v
 retrieving revision 1.2
 diff -u -p -d -r1.2 sti_sgc.c
 --- dev/sti_sgc.c	15 Apr 2019 20:40:37 -0000	1.2
 +++ dev/sti_sgc.c	22 Mar 2021 18:04:12 -0000
 @@ -77,7 +77,7 @@ extern int stidebug;
  #define	STI_GOPT1_REV	0x17
  #define	STI_GOPT2_REV	0x70
  #define	STI_GOPT3_REV	0xd0
 -#define	STI_GOPT4_REV	0x00
 +#define	STI_GOPT4_REV	0x60
  #define	STI_GOPT5_REV	0x20
  #define	STI_GOPT6_REV	0x40
  #define	STI_GOPT7_REV	0x30
 @@ -116,6 +116,8 @@ sti_sgc_getrom(struct confargs *ca)
  
  	pagezero_cookie = hppa_pagezero_map();
  	rom = PAGE0->pd_resv2[1];
 +	printf("%s: iodc_revision = %02x\n", __func__,
 +	    ca->ca_type.iodc_revision);
  	hppa_pagezero_unmap(pagezero_cookie);
  
  	if (ca->ca_type.iodc_sv_model == HPPA_FIO_GSGC) {
 
 ---
 
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
     2018, 2019, 2020 The NetBSD Foundation, Inc.  All rights reserved.
 Copyright (c) 1982, 1986, 1989, 1991, 1993
     The Regents of the University of California.  All rights reserved.
 
 NetBSD 9.1 (GENERIC) #20: Tue Mar 23 02:38:39 JST 2021
 	tsutsui@mirage:/s/netbsd-9/src/sys/arch/hppa/compile/GENERIC
 HP9000/712/60 (Gecko)
 real mem = 128 MB (73728 reserved for PROM, 114 MB used by NetBSD)
 avail mem = 112 MB
 timecounter: Timecounters tick every 10.000 msec
 Kernelized RAIDframe activated
 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
 sti_sgc_getrom: iodc_revision = 60
 sti0 at mainbus0 hpa 0xf8000000 path 1: rev 8.04;7, ID 0x2B4DED6D40A00499
 sti0: HPA208LC1024, 2048x1024 frame buffer, 1024x768x8 display
 sti0: 8x16 font type 1, 16 bpc, charset 0-255
 lasi0 at mainbus0 hpa 0xf0000000 path 2 irq 27: rev 3.0
 gsc0 at lasi0
 osiop0 at gsc0 hpa 0xf0106000 path 2/0/1 irq 9: NCR53C710 rev 2, 40MHz, SCSI ID 7
 scsibus0 at osiop0: 8 targets, 8 luns per target
 iee0 at gsc0 hpa 0xf0107000 path 2/0/2 irq 8: Intel 82596CA address 08:00:09:d1:2b:5a
 com2 at gsc0 hpa 0xf0105000 path 2/0/4 irq 5: ns16550a, working fifo
 lpt1 at gsc0 hpa 0xf0102000 path 2/0/6 irq 7
 harmony0 at gsc0 hpa 0xf0104000 path 2/0/8 irq 13: rev 18
 audio0 at harmony0: playback, capture, full duplex
 audio0: slinear_be:16 2ch 48000Hz, blk 4096 bytes (21.3ms) for playback
 audio0: slinear_be:16 2ch 48000Hz, blk 4096 bytes (21.3ms) for recording
 spkr0 at audio0: PC Speaker (synthesized)
 wsbell at spkr0 not configured
 "floppy controller" at gsc0 (type 0xa, sv 0x83) hpa 0xf010a000 path 2/0/10 not configured
 gsckbc0 at gsc0 hpa 0xf0108000 path 2/0/11 irq 26: keyboard
 pckbd0 at gsckbc0 (kbd slot)
 wskbd0 at pckbd0: console keyboard
 gsckbc1 at gsc0 hpa 0xf0108100 path 2/0/12: mouse
 timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
 timecounter: Timecounter "itimer" frequency 60000000 Hz quality 100
 scsibus0: waiting 2 seconds for devices to settle...
 wsdisplay0 at sti0 kbdmux 1: console (std, vt100 emulation), using wskbd0
 wsmux1: connecting to wsdisplay0
 sd0 at scsibus0 target 6 lun 0: <IBM, DORS-32160, HP02> disk fixed
 sd0: 2048 MB, 6703 cyl, 5 head, 125 sec, 512 bytes/sect x 4194685 sectors
 sd0: sync (100.00ns offset 8), 8-bit (10.000MB/s) transfers
 boot device: sd0
 root on sd0a dumps on sd0b
 root file system type: ffs
 kern.module.path=/stand/hppa/9.1/modules
 
 ---
 
 - OpenBSD/hppa doesn't check sti_sgc_opt[] values against
   ca->ca_type.iodc_revision for on-board (primary) sti(4)
 - sti_sgc_opt[] is different from OpenBSD (not sure why)
 - no info where STI_GOPT[1234567]_REV macros came from
 
 ---
 Izumi Tsutsui
 


Home | Main Index | Thread Index | Old Index