NetBSD Problem Report #55228

From bouyer@antioche.eu.org  Sat May  2 16:26:27 2020
Return-Path: <bouyer@antioche.eu.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-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 CDB3C1A9213
	for <gnats-bugs@gnats.NetBSD.org>; Sat,  2 May 2020 16:26:27 +0000 (UTC)
Message-Id: <20200502162624.F1D8C281A@rochebonne.antioche.eu.org>
Date: Sat,  2 May 2020 18:26:24 +0200 (CEST)
From: bouyer@antioche.eu.org
Reply-To: bouyer@antioche.eu.org
To: gnats-bugs@NetBSD.org
Subject: ihidev broken on HEAD
X-Send-Pr-Version: 3.95

>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

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.