NetBSD-Bugs archive

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

kern/54658: zaudio(4) attach failure (after MI i2c(4) changes?)



>Number:         54658
>Category:       kern
>Synopsis:       zaudio(4) attach failure (after MI i2c(4) changes?)
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 29 16:30:00 +0000 2019
>Originator:     Izumi Tsutsui
>Release:        NetBSD 9.0_BETA
>Organization:
>Environment:
System: NetBSD 9.0_BETA (GENERIC_SMALL) #0: Fri Oct 25 00:10:42 JST 2019
	tsutsui@mirage:/s/netbsd-9/src/sys/arch/zaurus/compile/GENERIC_SMALL
Architecture: earm
Machine: zaurus
>Description:
On (patched) NetBSD/zaurus 9.0_BETA, zaudio(4) on both SL-C1000
and SL-C700 fails to attach:

SL-C700:
---
[   1.0000000] NetBSD 9.0_BETA (C700) #0: Fri Oct 25 00:06:47 JST 2019
[   1.0000000] 	tsutsui@mirage:/s/netbsd-9/src/sys/arch/zaurus/compile/C700
[   1.0000000] total memory = 32768 KB
[   1.0000000] avail memory = 24192 KB
[   1.0000000] timecounter: Timecounters tick every 10.000 msec
[   1.0000000] mainbus0 (root)
[   1.0000000] cpu0 at mainbus0 core 0: PXA250 step B-2 (XScale V5TE core)
 :
[   1.0000000] ziic0 at pxaip0 addr 0x40300000-0x403016a3: I2C controller
[   1.0000000] iic0 at ziic0: I2C bus
[   1.0000000] zaudio0 at iic0 addr 0x1b: I2S, WM8731 Audio
[   1.0000000] zaudio0: autoconfiguration error: codec failed to respond
---

SL-C1000
---
[   1.0000000] NetBSD 9.0_BETA (GENERIC_SMALL) #0: Fri Oct 25 00:10:42 JST 2019
[   1.0000000] 	tsutsui@mirage:/s/netbsd-9/src/sys/arch/zaurus/compile/GENERIC_SMALL
[   1.0000000] total memory = 65536 KB
[   1.0000000] avail memory = 58448 KB
[   1.0000000] timecounter: Timecounters tick every 10.000 msec
[   1.0000000] mainbus0 (root)
[   1.0000000] cpu0 at mainbus0 core 0: PXA27x rev 7 (XScale V5TE core)
 :
[   1.0000000] ziic0 at pxaip0 addr 0x40300000-0x403016a3: I2C controller
[   1.0000000] iic0 at ziic0: I2C bus
[   1.0000000] ioexp0 at iic0 addr 0x18: GPIO controller
[   1.0000000] zaudio0 at iic0 addr 0x1b: I2S, WM8750 Audio
[   1.0000000] zaudio0: autoconfiguration error: codec failed to respond
---

>How-To-Repeat:
Boot NetBSD/zaurus 9.0_BETA (with the following boot failure fixes):
 https://mail-index.netbsd.org/source-changes/2019/10/26/msg110277.html
 https://mail-index.netbsd.org/source-changes/2019/10/26/msg110278.html
 https://mail-index.netbsd.org/source-changes/2019/10/28/msg110352.html

>Fix:
Reverting MI i2c(4) changes between netbsd-8 and netbsd-9
seems to work around:
 https://gist.github.com/tsutsui/8455b390c32d18f80d0a73c588d73bce
 (but too many revisions to analyze)

SL-C700
---
[   1.0000000] ziic0 at pxaip0 addr 0x40300000-0x403016a3: I2C controller
[   1.0000000] iic0 at ziic0: I2C bus
[   1.0000000] zaudio0 at iic0 addr 0x1b: I2S, WM8731 Audio
[   1.0000000] audio0 at zaudio0: playback, capture, half duplex
[   1.0000000] audio0: slinear_le:16 2ch 48000Hz, blk 40ms for playback
[   1.0000000] audio0: slinear_le:16 2ch 48000Hz, blk 40ms for recording
[   1.0000000] spkr0 at audio0: PC Speaker (synthesized)
[   1.0000000] wsbell at spkr0 not configured
---

SL-C1000
---
[   1.0000000] ziic0 at pxaip0 addr 0x40300000-0x403016a3: I2C controller
[   1.0000000] iic0 at ziic0: I2C bus
[   1.0000000] ioexp0 at iic0 addr 0x18: GPIO controller
[   1.0000000] zaudio0 at iic0 addr 0x1b: I2S, WM8750 Audio
[   1.0000000] audio0 at zaudio0: playback, capture, half duplex
[   1.0000000] audio0: slinear_le:16 2ch 48000Hz, blk 40ms for playback
[   1.0000000] audio0: slinear_le:16 2ch 48000Hz, blk 40ms for recording
[   1.0000000] spkr0 at audio0: PC Speaker (synthesized)
[   1.0000000] wsbell at spkr0 not configured
---



Home | Main Index | Thread Index | Old Index