From nobody Fri Jan 14 23:58:23 2022 X-Original-To: x11@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id CC542194E745 for ; Fri, 14 Jan 2022 23:58:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JbJCg3jryz3qhg for ; Fri, 14 Jan 2022 23:58:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 603AE1D0E0 for ; Fri, 14 Jan 2022 23:58:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 20ENwND2057436 for ; Fri, 14 Jan 2022 23:58:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 20ENwNH3057435 for x11@FreeBSD.org; Fri, 14 Jan 2022 23:58:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 261166] graphics/drm-devel-kmod graphics/drm-current-kmod kernel panics: mi_switch: switch in a critical section Date: Fri, 14 Jan 2022 23:58:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: grahamperrin@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: x11@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642204703; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=F7RTqYG4+PiMa70sNnWniCM+eHl39vouhjLxuTMB9hI=; b=lZvroeUHL4RQjm1WSAvcdLVtja19s85nl5regGYsXtq+V2tA9FB9fcBeJUHNAx/ACFfHSM A5S4nDf6xygS7d7hCsH+KjQN6KZlFvqYVNtgfUZz8r1SgPkZFqGKNTKBSraXeyCWXu5knv 5dpEMpahIeB4VUlzJdYpGNOVudBjCfuaYNwRsgIt9AjHO8l8eSldeWiljxJRphhvSTPqkn uQV/cWPSzDFZ7oHAVydFgoofj3XEFmH9JEvOL494qMPh43ANWNOS50FCGVrrAGDfsI/kUM 4H0YOtSqLhOr95tdxwtdsPZabu69wBeiYOlMuDOyAMH1hVZNIbSRaUSoetvabQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642204703; a=rsa-sha256; cv=none; b=Us2gaNWV7YNGTBAcqIVagExH7+QD1oKPx9726KBV25mXASFIUpz89LC/E3k6mp+NeYtesF rIhTXQs2wljhaPUCunikTF65qz+qqEJ7IGEafi7wtgwyyiM1L7DyLxO9dkH/lC1aSpmrsp TeHSzrQi5D69pBFEgirkAQDs7qEBnL2qctCrqs+YXgU9TB8d+JM+f7c46NQWO4D4MWJham oG/YanBO+spQpdBNGjGEkVFbysSf3iX5Ljyblc2ENChIf0jtjlDvDo+fzhIfV279Nyf61x XEUAVROrLqg0eQQzatzvcba65URPMLMQoUak9FVNNNihSk1VhyGYJy7kt3DMjQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261166 --- Comment #9 from Graham Perrin --- (In reply to Vladimir Kondratyev from comment #6) Testing. Thanks, everyone.=20 Up for four hours, panic-free, with:=20 * patched n252450-5efa7281a79 * drm-devel-kmod-5.5.19.g20211230 Prior to patching:=20 * the shortest bugged uptime was probably less than ten minutes (maybe panictastic when setting a particular combination of=20 compositor preferences in KDE Plasma) * the longest bugged uptime was around ten-and-a-half hours=20 (a panic not long after 19:22:25 GMT completion of buildkernel). ---- % grep "if (unlikely(curthread->td_critnest !=3D 0))" /usr/src/sys/compat/linuxkpi/common/include/linux/spinlock.h if (unlikely(curthread->td_critnest !=3D 0)) \ % grep "spin_lock_irqsave(&wqh->lock, flags);" /usr/src/sys/compat/linuxkpi/common/src/linux_schedule.c spin_lock_irqsave(&wqh->lock, flags); % date ; uptime Fri 14 Jan 2022 23:38:02 GMT 11:38p.m. up 3:43, 5 users, load averages: 0.67, 0.84, 0.88 % bectl list -c creation BE Active Mountpoint Space Created n250511-5f73b3338ee-d - - 8.11M 2021-11-13 15:43 n252381-75d20a5e386-a - - 6.29G 2022-01-12 07:44 n252381-75d20a5e386-b - - 20.1M 2022-01-12 23:23 n250511-5f73b3338ee-e - - 14.6G 2022-01-14 06:59 n252450-5efa7281a79-a NR / 95.3G 2022-01-14 19:27 % grep BOOT /var/log/messages % zgrep BOOT /var/log/messages.0.bz2 Jan 14 07:15:26 mowa219-gjp4-8570p-freebsd kernel: ---<>--- Jan 14 07:45:47 mowa219-gjp4-8570p-freebsd kernel: ---<>--- Jan 14 08:40:58 mowa219-gjp4-8570p-freebsd kernel: ---<>--- Jan 14 08:51:29 mowa219-gjp4-8570p-freebsd kernel: ---<>--- Jan 14 19:37:55 mowa219-gjp4-8570p-freebsd kernel: ---<>--- Jan 14 19:55:27 mowa219-gjp4-8570p-freebsd kernel: ---<>--- Jan 14 19:55:28 mowa219-gjp4-8570p-freebsd kernel: ---<>--- % uname -aKU FreeBSD mowa219-gjp4-8570p-freebsd 14.0-CURRENT FreeBSD 14.0-CURRENT #16 main-n252450-5efa7281a79-dirty: Fri Jan 14 18:59:09 GMT 2022=20=20=20=20 root@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC a= md64 1400047 1400047 % bectl destroy -o n250511-5f73b3338ee-e cannot promote 'august/ROOT/n250511-5f73b3338ee-d': permission denied cannot destroy mounted boot env unless forced % su - Password: root@mowa219-gjp4-8570p-freebsd:~ # bectl destroy -o n250511-5f73b3338ee-e snapshot has clones root@mowa219-gjp4-8570p-freebsd:~ # bectl list -s -c creation BE/Dataset/Snapshot Active Mountpoi= nt Space Created n250511-5f73b3338ee-d august/ROOT/n250511-5f73b3338ee-d - -=20=20= =20=20=20=20=20=20=20 9.21M 2021-11-13 15:43 august/ROOT/n252450-5efa7281a79-a@2021-11-14-00:24:29-0 - -=20=20= =20=20=20=20=20=20=20 4.93G 2021-11-14 00:24 n250511-5f73b3338ee-d@2022-01-14-06:59:29-0 - -=20=20= =20=20=20=20=20=20=20 3.28M 2022-01-14 06:59 n252381-75d20a5e386-a august/ROOT/n252381-75d20a5e386-a - -=20=20= =20=20=20=20=20=20=20 56.1M 2022-01-12 07:44 august/ROOT/n252450-5efa7281a79-a@2022-01-12-23:23:17-0 - -=20=20= =20=20=20=20=20=20=20 6.23G 2022-01-12 23:23 n252381-75d20a5e386-b august/ROOT/n252381-75d20a5e386-b - -=20=20= =20=20=20=20=20=20=20 1.05M 2022-01-12 23:23 august/ROOT/n252450-5efa7281a79-a@2022-01-14-19:27:21-0 - -=20=20= =20=20=20=20=20=20=20 19.0M 2022-01-14 19:27 n252450-5efa7281a79-a august/ROOT/n252450-5efa7281a79-a NR /=20=20= =20=20=20=20=20=20=20 95.3G 2022-01-14 19:27 n252450-5efa7281a79-a@2021-07-10-04:31:39-0 - -=20=20= =20=20=20=20=20=20=20 13.8G 2021-07-10 04:31 n252450-5efa7281a79-a@2021-11-13-15:43:33-0 - -=20=20= =20=20=20=20=20=20=20 4.94G 2021-11-13 15:43 n252450-5efa7281a79-a@2021-11-14-00:24:29-0 - -=20=20= =20=20=20=20=20=20=20 4.93G 2021-11-14 00:24 n252450-5efa7281a79-a@2022-01-12-23:23:17-0 - -=20=20= =20=20=20=20=20=20=20 6.23G 2022-01-12 23:23 n252450-5efa7281a79-a@2022-01-14-19:27:21-0 - -=20=20= =20=20=20=20=20=20=20 19.0M 2022-01-14 19:27 root@mowa219-gjp4-8570p-freebsd:~ # bectl destroy -o n252381-75d20a5e386-a root@mowa219-gjp4-8570p-freebsd:~ # bectl list -s -c creation BE/Dataset/Snapshot Active Mountpoi= nt Space Created n250511-5f73b3338ee-d august/ROOT/n250511-5f73b3338ee-d - -=20=20= =20=20=20=20=20=20=20 9.21M 2021-11-13 15:43 august/ROOT/n252450-5efa7281a79-a@2021-11-14-00:24:29-0 - -=20=20= =20=20=20=20=20=20=20 4.93G 2021-11-14 00:24 n250511-5f73b3338ee-d@2022-01-14-06:59:29-0 - -=20=20= =20=20=20=20=20=20=20 3.28M 2022-01-14 06:59 n252381-75d20a5e386-b august/ROOT/n252381-75d20a5e386-b - -=20=20= =20=20=20=20=20=20=20 1.05M 2022-01-12 23:23 august/ROOT/n252450-5efa7281a79-a@2022-01-14-19:27:21-0 - -=20=20= =20=20=20=20=20=20=20 1.01G 2022-01-14 19:27 n252450-5efa7281a79-a august/ROOT/n252450-5efa7281a79-a NR /=20=20= =20=20=20=20=20=20=20 89.1G 2022-01-14 19:27 n252450-5efa7281a79-a@2021-07-10-04:31:39-0 - -=20=20= =20=20=20=20=20=20=20 13.8G 2021-07-10 04:31 n252450-5efa7281a79-a@2021-11-13-15:43:33-0 - -=20=20= =20=20=20=20=20=20=20 4.94G 2021-11-13 15:43 n252450-5efa7281a79-a@2021-11-14-00:24:29-0 - -=20=20= =20=20=20=20=20=20=20 4.93G 2021-11-14 00:24 n252450-5efa7281a79-a@2022-01-14-19:27:21-0 - -=20=20= =20=20=20=20=20=20=20 1.01G 2022-01-14 19:27 root@mowa219-gjp4-8570p-freebsd:~ # bectl list -c creation BE Active Mountpoint Space Created n250511-5f73b3338ee-d - - 4.94G 2021-11-13 15:43 n252381-75d20a5e386-b - - 1.01G 2022-01-12 23:23 n252450-5efa7281a79-a NR / 89.1G 2022-01-14 19:27 root@mowa219-gjp4-8570p-freebsd:~ # pkg info -x drm-kmod drm-current-kmod drm-devel-kmod gpu-firmware-kmod pkg: No package(s) matching drm-kmod drm-devel-kmod-5.5.19.g20211230 gpu-firmware-kmod-g20210330 root@mowa219-gjp4-8570p-freebsd:~ # pkg info -x drm-current-kmod=20 pkg: No package(s) matching drm-current-kmod root@mowa219-gjp4-8570p-freebsd:~ # pkg info drm-devel-kmod drm-devel-kmod-5.5.19.g20211230 Name : drm-devel-kmod Version : 5.5.19.g20211230 Installed on : Fri Jan 14 19:42:00 2022 GMT Origin : graphics/drm-devel-kmod Architecture : FreeBSD:14:amd64 Prefix : /usr/local Categories : graphics kld Licenses : BSD2CLAUSE, MIT, GPLv2 Maintainer : x11@FreeBSD.org WWW : https://github.com/freebsd/drm-kmod Comment : DRM modules for the linuxkpi-based KMS components (develop= ment version) Options : DEBUG : on Annotations : FreeBSD_version: 1400047 Flat size : 11.4MiB Description : amdgpu, i915, and radeon DRM modules for the linuxkpi-based KMS components. Currently corresponding to Linux 5.5.19 DRM. This version is the development version and only works on FreeBSD CURRENT. WWW: https://github.com/freebsd/drm-kmod root@mowa219-gjp4-8570p-freebsd:~ # exit logout % uptime 11:46p.m. up 3:52, 5 users, load averages: 0.43, 0.77, 0.85 % --=20 You are receiving this mail because: You are the assignee for the bug.=