NetBSD-Bugs archive

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

kern/55228: ihidev broken on HEAD



>Number:         55228
>Category:       kern
>Synopsis:       ihidev broken on HEAD
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 02 16:30:03 +0000 2020
>Originator:     Manuel Bouyer
>Release:        9.99.59
>Organization:
>Environment:
[     1.000000] NetBSD 9.99.59 (GENERIC) #53: Sat May  2 17:54:27 CEST 2020
[     1.000000]         bouyer@bip:/dsk/l1/misc/bouyer/tmp/amd64/obj/dsk/l1/misc/bouyer/HEAD/pvh/src/sys/arch/amd64/compile/GENERIC
Architecture: amd64
Machine: amd64
>Description:
	Booting a current kernel on a laptop with a ims(4) device panic
	when starting X:
[    49.451468] panic: kernel diagnostic assertion "(l->l_pflag & LP_INTR) == 0 
|| panicstr != NULL" failed: file "/dsk/l1/misc/bouyer/HEAD/pvh/src/sys/kern/ker
n_condvar.c", line 126 
[    49.451468] cpu0: Begin traceback...
[    49.451468] vpanic() at netbsd:vpanic+0x178
[    49.451468] kern_assert() at netbsd:kern_assert+0x48
[    49.451468] cv_timedwait() at netbsd:cv_timedwait+0x1a9
[    49.451468] dwiic_i2c_exec() at netbsd:dwiic_i2c_exec+0x561
[    49.451468] iic_exec() at netbsd:iic_exec+0x19a
[    49.451468] ihidev_softintr() at netbsd:ihidev_softintr+0x54
[    49.451468] softint_dispatch() at netbsd:softint_dispatch+0x387

Looks like cv_timedwait can't be called from software interrupt.
Should ihidev be changed to use a kernel thread ?

>How-To-Repeat:
	boot -current on a laptop with ims(4)
>Fix:
	TBD



Home | Main Index | Thread Index | Old Index