NetBSD-Bugs archive

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

Re: port-mac68k/56973: obio wdc(4) doesn't respond on NetBSD/mac68k9.3



> This has already been fixed for -current:
> 
> http://www.nerv.org/netbsd/?q=id:20211005T080105Z.58ea48edc6512b481d4fa1baba2562a3bb604d51
> http://gnats.netbsd.org/56403

Umm, I didn't think NOIRQ was valid on mac68k because wdc_obio.c
has an interrupt handler, but it looks never called. Oh well.

> I should have pulled this fix up to netbsd-9, but I couldn't test
> netbsd-9 branch at that time.
> 
> The above-mentioned commit can be almost mechanically applied to
> netbsd-9. Can you please test this patch? (only compile-tested)
> 
> https://gist.github.com/rokuyama/5570ca0866b3b4d44330cc4d417a9148

Just works. Thanks.

---
[   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, 2021, 2022
[   1.0000000]     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.3 (WSFB) #5: Sun Aug 21 01:53:59 JST 2022
[   1.0000000]  tsutsui@mirage:/s/netbsd-9/src/sys/arch/mac68k/compile/WSFB
[   1.0000000] Apple Macintosh Quadra 630  (68040)
[   1.0000000] cpu: delay factor 1059
[   1.0000000] fpu: emulator
[   1.0000000] total memory = 36864 KB
[   1.0000000] avail memory = 31632 KB
[   1.0000000] mrg: 'Quadra630 ROMs' ROM glue, tracing off, debug off, silent traps
[   1.0000000] mainbus0 (root)
[   1.0000000] obio0 at mainbus0
[   1.0000000] esp0 at obio0 addr 0 (quick): address 0x43a000: NCR53C96, 16MHz, SCSI ID 7
[   1.0000000] scsibus0 at esp0: 8 targets, 8 luns per target
[   1.0000000] wdc0 at obio0 (Quadra/Performa series IDE interface)
[   1.0000000] atabus0 at wdc0 channel 0
[   1.0000000] adb0 at obio0
[   1.0000000] asc0 at obio0: Apple Sound Chip
[   1.0000000] intvid0 at obio0 @ f9001000: Valkyrie video subsystem
[   1.0000000] intvid0: 832 x 624, 256 color
[   1.0000000] genfb0 at intvid0: colormap callback provided
[   1.0000000] wsdisplay0 at genfb0 kbdmux 1
[   1.0000000] sn0 at obio0: integrated SONIC Ethernet adapter
[   1.0000000] sn0: Ethernet address 08:00:07:9f:07:c6
[   1.0000000] iwm0 at obio0: Apple GCR floppy disk controller
[   1.0000000] iwm: Chip revision not supported (-77)
[   1.0000000] zsc0 at obio0 chip type 0
[   1.0000000] zsc0 channel 0: d_speed   9600 DCD clk 0 CTS clk 0
[   1.0000000] zstty0 at zsc0 channel 0 (console i/o)
[   1.0000000] zsc0 channel 1: d_speed   9600 DCD clk 0 CTS clk 0
[   1.0000000] zstty1 at zsc0 channel 1
[   1.0000000] nubus0 at mainbus0
[   1.0166737] scsibus0: waiting 2 seconds for devices to settle...
[   1.1024222] adb0 (direct, Cuda): 2 targets
[   1.1556698] aed0 at adb0 addr 0: ADB Event device
[   1.2140708] akbd0 at adb0 addr 2: keyboard II (Japanese layout)
[   1.2840884] wskbd0 at akbd0 mux 1
[   1.3153575] ams0 at adb0 addr 3: 1-button, 100 dpi mouse
[   1.4151405] wsmouse0 at ams0 mux 0
[   3.1951957] sd0 at scsibus0 target 0 lun 0: <SEAGATE, ST51080N, 0958> disk fixed
[   3.2952327] sd0: 1030 MB, 4826 cyl, 4 head, 109 sec, 512 bytes/sect x 2109840 sectors
[   3.3859598] sd0: sync (248.00ns offset 15), 8-bit (4.032MB/s) transfers, tagged queueing
[   3.8616389] cd0 at scsibus0 target 3 lun 0: <MATSHITA, CD-ROM CR-8008, 8.0e> cdrom removable
[   3.9672353] cd0: sync (248.00ns offset 15), 8-bit (4.032MB/s) transfers
[   7.4288609] wd0 at atabus0 drive 0
[   7.4788737] wd0: <IBM-DALA-3360>
[   7.5165907] wd0: 348 MB, 929 cyl, 16 head, 48 sec, 512 bytes/sect x 713472 sectors
[   7.5452301] swwdog0: software watchdog initialized
[   7.6095939] boot device: sd0
[   7.6785979] root on sd0a dumps on sd0b
[   7.8119300] root file system type: ffs
[   7.8786809] kern.module.path=/stand/mac68k/9.3/modules
Enter pathname of shell or RETURN for /bin/sh:
We recommend creating a non-root account and using su(1) for root access.
# disklabel wd0
# /dev/rwd0:
type: ESDI
disk: wd0
label: fictitious
flags:
bytes/sector: 512
sectors/track: 48
tracks/cylinder: 16
sectors/cylinder: 768
cylinders: 929
total sectors: 713472
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

4 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:       512       192    unknown                     # (Cyl.      0*-      0*)
 b:    712758       704        HFS                     # (Cyl.      0*-    928*)
 c:    713472         0     unused      0     0        # (Cyl.      0 -    928)
 d:        10    713462    unknown                     # (Cyl.    928*-    928)
disklabel: boot block size 0
disklabel: super block size 0
# dd if=/dev/rwd0c of=/dev/null bs=64k
5574+0 records in
5574+0 records out
365297664 bytes transferred in 228.693 secs (1597327 bytes/sec)
# 
---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index