NetBSD Problem Report #56973

From tsutsui@ceres.dti.ne.jp  Fri Aug 19 19:20:59 2022
Return-Path: <tsutsui@ceres.dti.ne.jp>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id BFA581A921F
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 19 Aug 2022 19:20:59 +0000 (UTC)
Message-Id: <202208191920.27JJKn5N008129@ceres.dti.ne.jp>
Date: Sat, 20 Aug 2022 04:20:49 +0900 (JST)
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Reply-To: tsutsui@ceres.dti.ne.jp
To: gnats-bugs@NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: obio wdc(4) doesn't respond on NetBSD/mac68k 9.3
X-Send-Pr-Version: 3.95

>Number:         56973
>Category:       port-mac68k
>Synopsis:       obio wdc(4) doesn't respond on NetBSD/mac68k 9.3
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-mac68k-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 19 19:25:00 +0000 2022
>Closed-Date:    Sat Aug 20 17:53:33 +0000 2022
>Last-Modified:  Sat Aug 20 17:53:33 +0000 2022
>Originator:     Izumi Tsutsui
>Release:        NetBSD 9.3
>Organization:
>Environment:
System:  NetBSD 9.3 (WSFB) #0: Thu Aug  4 15:30:37 UTC 2022 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/mac68k/compile/WSFB
Architecture: m68k
Machine: mac68k
>Description:
IDE disks attached on wdc0 at obio0 (at least) my LC630 doesn't
respond (looks no interrupt) on NetBSD/mac68k 9.3 INSTALL, GENERIC,
and WSFB kernels.

Note wd(4) works without problem on NetBSD/mac68k 8.2 INSTALL kernel.

>How-To-Repeat:
Just boot NetBSD/mac68k 9.3 kernels (INSTALL, GENERIC, or WSFB) on LC630.

---
[   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) #0: Thu Aug  4 15:30:37 UTC 2022
[   1.0000000]  mkrepro@mkrepro.NetBSD.org:/usr/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.1022333] adb0 (direct, Cuda): 2 targets
[   1.1551847] aed0 at adb0 addr 0: ADB Event device
[   1.2136929] akbd0 at adb0 addr 2: keyboard II (Japanese layout)
[   1.2836020] wskbd0 at akbd0 mux 1
[   1.3148750] ams0 at adb0 addr 3: 1-button, 100 dpi mouse
[   1.4147614] wsmouse0 at ams0 mux 0
[   3.1948114] sd0 at scsibus0 target 0 lun 0: <SEAGATE, ST51080N, 0958> disk fixed
[   3.2948459] sd0: 1030 MB, 4826 cyl, 4 head, 109 sec, 512 bytes/sect x 2109840 sectors
[   3.3856866] sd0: sync (248.00ns offset 15), 8-bit (4.032MB/s) transfers, tagged queueing
[   3.8612547] cd0 at scsibus0 target 3 lun 0: <MATSHITA, CD-ROM CR-8008, 8.0e> cdrom removable
[   3.9668154] cd0: sync (248.00ns offset 15), 8-bit (4.032MB/s) transfers
[   7.3451280] wd0 at atabus0 drive 0
[   7.4118151] wd0: <IBM-DALA-3360>
[   7.4498525] wd0: 348 MB, 929 cyl, 16 head, 48 sec, 512 bytes/sect x 713472 sectors
swwdog0: software watchdog initialized
[   7.5268120] boot device: sd0
[   7.5948740] root on sd0a dumps on sd0b
[   7.7282009] root file system type: ffs
[   7.7948855] 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.
# diskabel wd0

[looks no interrupt though there are keyboard echos]
---

>Fix:
Unknown.

There are major attachment changes for NCQ support between
netbsd-8 and netbsd-9, but changes in mac68k/obio/wdc_obio.c looks okay
for me.

>Release-Note:

>Audit-Trail:
From: Rin Okuyama <rokuyama.rk@gmail.com>
To: gnats-bugs@netbsd.org, port-mac68k-maintainer@netbsd.org,
 gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,
 Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Cc: 
Subject: Re: port-mac68k/56973: obio wdc(4) doesn't respond on NetBSD/mac68k
 9.3
Date: Sat, 20 Aug 2022 06:47:55 +0900

 Hi,

 This should be due to regression for driver with ATAC_CAP_NOIRQ.

 This has already been fixed for -current:

 http://www.nerv.org/netbsd/?q=id:20211005T080105Z.58ea48edc6512b481d4fa1baba2562a3bb604d51
 http://gnats.netbsd.org/56403

 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

 Thanks,
 rin

State-Changed-From-To: open->closed
State-Changed-By: tsutsui@NetBSD.org
State-Changed-When: Sat, 20 Aug 2022 17:53:33 +0000
State-Changed-Why:
Already fixed in -current.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.