NetBSD Problem Report #12603
Received: (qmail 14044 invoked from network); 10 Apr 2001 23:42:27 -0000
Message-Id: <200104102342.f3ANg0P00378@nutcracker.dynarc.se>
Date: Wed, 11 Apr 2001 01:42:00 +0200 (CEST)
From: lha@stacken.kth.se
Reply-To: lha@stacken.kth.se
To: gnats-bugs@gnats.netbsd.org
Subject: clcs0 failes to write to AC97 register
X-Send-Pr-Version: 3.95
>Number: 12603
>Category: kern
>Synopsis: clcs0 failes to write to AC97 register
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: jmcneill
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Apr 10 23:43:01 +0000 2001
>Closed-Date: Sat Apr 15 21:24:26 +0000 2006
>Last-Modified: Sat Apr 15 21:24:26 +0000 2006
>Originator: Love
>Release: 1.5Q, 1.5S
>Organization:
Stacken computer club
>Environment:
System: NetBSD nutcracker.dynarc.se 1.5U NetBSD 1.5U (NUTCRACKER) #3: Mon Apr 9 16:12:48 CEST 2001 lha@nutcracker.dynarc.se:/usr/src/sys/arch/i386/compile/NUTCRACKER i386
Architecture: i386
Machine: i386
>Description:
After using the sound-device (clcs) on my ThinkPAD20m
it something failes to write to AC97 registers when
un-suspending it (when it wakes up after a `zzz').
It looks like it failes when it writes the shadow registers
back to the AC97-thingy.
wi0 detached
[where the computer suspends and then resumes a while later]
clcs0: AC97 write fail (DCV!=0) for add=0x00 data=0x0000
clcs0: AC97 write fail (DCV!=0) for add=0x00 data=0x0000
clcs0: AC97 write fail (DCV!=0) for add=0x00 data=0x0000
clcs0: AC97 write fail (DCV!=0) for add=0x02 data=0x0000
clcs0: AC97 write fail (DCV!=0) for add=0x06 data=0x8000
clcs0: AC97 write fail (DCV!=0) for add=0x20 data=0x0000
clcs0: AC97 write fail (DCV!=0) for add=0x04 data=0x8000
clcs0: AC97 write fail (DCV!=0) for add=0x08 data=0x0f0f
clcs0: AC97 write fail (DCV!=0) for add=0x0a data=0x0000
clcs0: AC97 write fail (DCV!=0) for add=0x0c data=0x8008
clcs0: AC97 write fail (DCV!=0) for add=0x0e data=0x8008
clcs0: AC97 write fail (DCV!=0) for add=0x0e data=0x8008
clcs0: AC97 write fail (DCV!=0) for add=0x20 data=0x0000
clcs0: AC97 write fail (DCV!=0) for add=0x10 data=0x8808
clcs0: AC97 write fail (DCV!=0) for add=0x12 data=0x0808
clcs0: AC97 write fail (DCV!=0) for add=0x14 data=0x8808
clcs0: AC97 write fail (DCV!=0) for add=0x16 data=0x8808
clcs0: AC97 write fail (DCV!=0) for add=0x18 data=0x0808
clcs0: AC97 write fail (DCV!=0) for add=0x1a data=0x0000
clcs0: AC97 write fail (DCV!=0) for add=0x1c data=0x0000
clcs0: AC97 write fail (DCV!=0) for add=0x1e data=0x8000
clcs0: AC97 write fail (DCV!=0) for add=0x20 data=0x0000
clcs0: AC97 write fail (DCV!=0) for add=0x20 data=0x0000
clcs0: AC97 write fail (DCV!=0) for add=0x22 data=0x0000
clcs0: AC97 write fail (DCV!=0) for add=0x22 data=0x0000
[boot completed and wavelan card is inserted]
wi0 at pcmcia1 function 0: Lucent Technologies, WaveLAN/IEEE, Version 01.01,
wi0: 802.11 address 00:02:2d:09:19:e9
dmesg
NetBSD 1.5Q (NUTCRACKER) #2: Fri Jan 12 20:14:05 CET 2001
root@nutcracker.dynarc.se:/usr/src/sys/arch/i386/compile/NUTCRACKER
cpu0: Intel Pentium III (Coppermine) (686-class), 547.99 MHz
cpu0: I-cache 16K 32b/line 4-way, D-cache 16K 32b/line 2/4-way
cpu0: L2 cache 256K 32b/line 8-way
cpu0: features 383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 383f9ff<PGE,MCA,CMOV,FGPAT,PSE36,MMX,FXSR,XMM>
total memory = 127 MB
avail memory = 112 MB
using 1658 buffers containing 6632 KB of memory
BIOS32 rev. 0 found at 0xfd820
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82443BX Host Bridge/Controller (rev. 0x03)
ppb0 at pci0 dev 1 function 0: Intel 82443BX AGP Interface (rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: ATI Technologies Mach64 LM (rev. 0x64)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
cbb0 at pci0 dev 2 function 0: Texas Instruments PCI1450 PCI-CardBus Bridge (rev. 0x03)
cbb1 at pci0 dev 2 function 1: Texas Instruments PCI1450 PCI-CardBus Bridge (rev. 0x03)
ex0 at pci0 dev 3 function 0: 3Com 3c556B MiniPCI 10/100 Ethernet (rev. 0x20)
ex0: interrupting at irq 9
ex0: MAC address 00:00:86:4c:30:0c
ukphy0 at ex0 phy 0: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000895, model 0x0021, rev. 11
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
3Com product 0x1007 (miscellaneous communications, revision 0x20) at pci0 dev 3 function 1 not configured
clcs0 at pci0 dev 5 function 0: Cirrus Logic CS4280 CrystalClear Audio Interface (rev. 0x01)
clcs0: interrupting at irq 7
clcs0: CRY20 codec; headphone, 20 bit DAC, 18 bit ADC, Spatializer 3D
audio0 at clcs0: full duplex, independent
midi0 at clcs0: CS4280 MIDI UART
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x02)
pciide0 at pci0 dev 7 function 1: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <IBM-DJSA-210>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 9590 MB, 16383 cyl, 15 head, 63 sec, 512 bytes/sect x 19640880 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
atapibus0 at pciide0 channel 1
cd0 at atapibus0 drive 0: <HITACHI DVD-ROM GD-S200, , 0034> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
uhci0 at pci0 dev 7 function 2: Intel 82371AB USB Host Controller (PIIX4) (rev. 0x01)
uhci0: interrupting at irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous bridge, revision 0x03) at pci0 dev 7 function 3 not configured
cbb0: interrupting at irq 7
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0 cacheline 0x8, lattimer 0xb0
pcmcia0 at cardslot0
cbb1: interrupting at irq 10
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 5 device 0 cacheline 0x8, lattimer 0xb0
pcmcia1 at cardslot1
isa0 at pcib0
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi1 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
apm0 at mainbus0: Power Management spec V1.2
biomask edfd netmask effd ttymask ffff
IPsec: Initialized Security Association Processing.
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
>How-To-Repeat:
Use your Thinkpad 20m to play swedish radio with realaudio or
play mp3's with mpg123. Then after som time computer locks up
when unsuspending it (not really but they busy loop takes too
long time)
>Fix:
Beat the clcs chip harder when suspending/unsuspending ?
>Release-Note:
>Audit-Trail:
From: itojun@iijlab.net
To: lha@stacken.kth.es
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/12603: clcs0 failes to write to AC97 register
Date: Wed, 11 Apr 2001 09:09:14 +0900
>>Synopsis: clcs0 failes to write to AC97 register
I have the same issue with my ThinkPad T20. some said that
turning off "PCI power management" from BIOS menu helps,
but my case it does not change the situation.
itojun
Responsible-Changed-From-To: kern-bug-people->tacha
Responsible-Changed-By: tacha
Responsible-Changed-When: Mon Apr 16 11:54:57 JST 2001
Responsible-Changed-Why:
I will be taking a look.
From: itojun@itojun.org (Jun-ichiro itojun Hagino)
To: gnats-bugs@gnats.netbsd.org
Cc:
Subject: Re: kern/12603
Date: Wed, 18 Apr 2001 11:06:57 +0900 (JST)
for me, the problem with suspend/resume went away with the recent
kernels (1.5U). i'm on ThinkPad T20.
itojun
From: itojun@itojun.org (Jun-ichiro itojun Hagino)
To: gnats-bugs@gnats.netbsd.org
Cc:
Subject: Re: kern/12603
Date: Sun, 22 Apr 2001 10:13:01 +0900 (JST)
it seems that the problem is still there. i have no concrete way to
repeat the symptom, however, we definitely need to do something about
the hangup. are there any way to make the AC97 register access logic
more robust (i.e. reset the chip and start over if it has failed, or
disable the device itself, or whatever)?
itojun
From: Love <lha@stacken.kth.se>
To: gnats-bugs@gnats.netbsd.org
Cc: Tatoku Ogaito <tacha@NetBSD.ORG>
Subject: Re: kern/12603: clcs0 failes to write to AC97 register
Date: Mon, 21 May 2001 01:42:47 +0200
I got the patch from Tatoku Ogaito <tacha@NetBSD.ORG> but I
never got the chance to try it. When I later saw that it was
added to to trunk I updated to a new:er kernel/userland.
I've not had time lately to use the sound, but before the
weekend I did, and on the train home to my parents the computer
spit this out into msgbuf when I unsupended.
cs428x_src_wait: 0x0000000f
clcs0: AC97 write fail (DCV!=0) for add=0x00 data=0x0000
cs428x_src_wait: 0x0000000f
clcs0: AC97 write fail (DCV!=0) for add=0x00 data=0x0000
cs428x_src_wait: 0x0000000f
clcs0: AC97 write fail (DCV!=0) for add=0x00 data=0x0000
cs428x_src_wait: 0x0000000f
clcs0: AC97 write fail (DCV!=0) for add=0x02 data=0x0000
cs428x_src_wait: 0x0000000f
clcs0: AC97 write fail (DCV!=0) for add=0x06 data=0x8000
cs428x_src_wait: 0x0000000f
clcs0: AC97 write fail (DCV!=0) for add=0x20 data=0x0000
cs428x_src_wait: 0x0000000f
clcs0: AC97 write fail (DCV!=0) for add=0x04 data=0x8000
cs428x_src_wait: 0x0000000f
clcs0: AC97 write fail (DCV!=0) for add=0x08 data=0x0f0f
cs428x_src_wait: 0x0000000f
clcs0: AC97 write fail (DCV!=0) for add=0x0a data=0x0000
cs428x_src_wait: 0x0000000f
clcs0: AC97 write fail (DCV!=0) for add=0x0c data=0x8008
cs428x_src_wait: 0x0000000f
clcs0: AC97 write fail (DCV!=0) for add=0x0e data=0x8008
cs428x_src_wait: 0x0000000f
clcs0: AC97 write fail (DCV!=0) for add=0x0e data=0x8008
cs428x_src_wait: 0x0000000f
clcs0: AC97 write fail (DCV!=0) for add=0x20 data=0x0000
cs428x_src_wait: 0x0000000f
clcs0: AC97 write fail (DCV!=0) for add=0x10 data=0x8808
cs428x_src_wait: 0x0000000f
clcs0: AC97 write fail (DCV!=0) for add=0x12 data=0x0808
cs428x_src_wait: 0x0000000f
clcs0: AC97 write fail (DCV!=0) for add=0x14 data=0x8808
cs428x_src_wait: 0x0000000f
clcs0: AC97 write fail (DCV!=0) for add=0x16 data=0x8808
cs428x_src_wait: 0x0000000f
clcs0: AC97 write fail (DCV!=0) for add=0x18 data=0x0808
cs428x_src_wait: 0x0000000f
clcs0: AC97 write fail (DCV!=0) for add=0x1a data=0x0000
cs428x_src_wait: 0x0000000f
clcs0: AC97 write fail (DCV!=0) for add=0x1c data=0x0000
cs428x_src_wait: 0x0000000f
clcs0: AC97 write fail (DCV!=0) for add=0x1e data=0x8000
cs428x_src_wait: 0x0000000f
clcs0: AC97 write fail (DCV!=0) for add=0x20 data=0x0000
cs428x_src_wait: 0x0000000f
clcs0: AC97 write fail (DCV!=0) for add=0x20 data=0x0000
cs428x_src_wait: 0x0000000f
clcs0: AC97 write fail (DCV!=0) for add=0x22 data=0x0000
cs428x_src_wait: 0x0000000f
clcs0: AC97 write fail (DCV!=0) for add=0x22 data=0x0000
This is all output. After a while I suspended with zzz, then
the computer started to emulate a brick. It never managed to
suspend.
Hope this helps any.
Love
Responsible-Changed-From-To: tacha->jmcneill
Responsible-Changed-By: jmcneill@netbsd.org
Responsible-Changed-When: Sat, 15 Apr 2006 21:24:26 +0000
Responsible-Changed-Why:
I'll take this.
State-Changed-From-To: open->closed
State-Changed-By: jmcneill@netbsd.org
State-Changed-When: Sat, 15 Apr 2006 21:24:26 +0000
State-Changed-Why:
Fixed in -current.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.