[Bug 261166] graphics/drm-devel-kmod graphics/drm-current-kmod kernel panics: mi_switch: switch in a critical section

[email protected]
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261166

--- Comment #9 from Graham Perrin <[email protected]> ---
(In reply to Vladimir Kondratyev from comment #6)

Testing. Thanks, everyone. 

Up for four hours, panic-free, with: 

* patched n252450-5efa7281a79

* drm-devel-kmod-5.5.19.g20211230


Prior to patching: 

* the shortest bugged uptime was probably less than ten minutes
  (maybe panictastic when setting a particular combination of 
  compositor preferences in KDE Plasma)

* the longest bugged uptime was around ten-and-a-half hours 
  (a panic not long after 19:22:25 GMT completion of buildkernel).


----

% grep "if (unlikely(curthread->td_critnest != 0))"
/usr/src/sys/compat/linuxkpi/common/include/linux/spinlock.h
        if (unlikely(curthread->td_critnest != 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: ---<<BOOT>>---
Jan 14 07:45:47 mowa219-gjp4-8570p-freebsd kernel: ---<<BOOT>>---
Jan 14 08:40:58 mowa219-gjp4-8570p-freebsd kernel: ---<<BOOT>>---
Jan 14 08:51:29 mowa219-gjp4-8570p-freebsd kernel: ---<<BOOT>>---
Jan 14 19:37:55 mowa219-gjp4-8570p-freebsd kernel: ---<<BOOT>>---
Jan 14 19:55:27 mowa219-gjp4-8570p-freebsd kernel: ---<<BOOT>>---
Jan 14 19:55:28 mowa219-gjp4-8570p-freebsd kernel: ---<<BOOT>>---
% 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    
root@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64
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 Mountpoint
Space Created

n250511-5f73b3338ee-d
  august/ROOT/n250511-5f73b3338ee-d                         -      -         
9.21M 2021-11-13 15:43
    august/ROOT/n252450-5efa7281a79-a@2021-11-14-00:24:29-0 -      -         
4.93G 2021-11-14 00:24
  n250511-5f73b3338ee-d@2022-01-14-06:59:29-0               -      -         
3.28M 2022-01-14 06:59

n252381-75d20a5e386-a
  august/ROOT/n252381-75d20a5e386-a                         -      -         
56.1M 2022-01-12 07:44
    august/ROOT/n252450-5efa7281a79-a@2022-01-12-23:23:17-0 -      -         
6.23G 2022-01-12 23:23

n252381-75d20a5e386-b
  august/ROOT/n252381-75d20a5e386-b                         -      -         
1.05M 2022-01-12 23:23
    august/ROOT/n252450-5efa7281a79-a@2022-01-14-19:27:21-0 -      -         
19.0M 2022-01-14 19:27

n252450-5efa7281a79-a
  august/ROOT/n252450-5efa7281a79-a                         NR     /         
95.3G 2022-01-14 19:27
  n252450-5efa7281a79-a@2021-07-10-04:31:39-0               -      -         
13.8G 2021-07-10 04:31
  n252450-5efa7281a79-a@2021-11-13-15:43:33-0               -      -         
4.94G 2021-11-13 15:43
  n252450-5efa7281a79-a@2021-11-14-00:24:29-0               -      -         
4.93G 2021-11-14 00:24
  n252450-5efa7281a79-a@2022-01-12-23:23:17-0               -      -         
6.23G 2022-01-12 23:23
  n252450-5efa7281a79-a@2022-01-14-19:27:21-0               -      -         
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 Mountpoint
Space Created

n250511-5f73b3338ee-d
  august/ROOT/n250511-5f73b3338ee-d                         -      -         
9.21M 2021-11-13 15:43
    august/ROOT/n252450-5efa7281a79-a@2021-11-14-00:24:29-0 -      -         
4.93G 2021-11-14 00:24
  n250511-5f73b3338ee-d@2022-01-14-06:59:29-0               -      -         
3.28M 2022-01-14 06:59

n252381-75d20a5e386-b
  august/ROOT/n252381-75d20a5e386-b                         -      -         
1.05M 2022-01-12 23:23
    august/ROOT/n252450-5efa7281a79-a@2022-01-14-19:27:21-0 -      -         
1.01G 2022-01-14 19:27

n252450-5efa7281a79-a
  august/ROOT/n252450-5efa7281a79-a                         NR     /         
89.1G 2022-01-14 19:27
  n252450-5efa7281a79-a@2021-07-10-04:31:39-0               -      -         
13.8G 2021-07-10 04:31
  n252450-5efa7281a79-a@2021-11-13-15:43:33-0               -      -         
4.94G 2021-11-13 15:43
  n252450-5efa7281a79-a@2021-11-14-00:24:29-0               -      -         
4.93G 2021-11-14 00:24
  n252450-5efa7281a79-a@2022-01-14-19:27:21-0               -      -         
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 
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     : [email protected]
WWW            : https://github.com/freebsd/drm-kmod
Comment        : DRM modules for the linuxkpi-based KMS components (development
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
%

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.