From nobody Tue Sep 14 14:42:35 2021 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 E91AD17B36A5 for ; Tue, 14 Sep 2021 14:42:48 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mail.nomadlogic.org (mail.nomadlogic.org [66.165.241.226]) (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 (2048 bits) client-digest SHA256) (Client CN "mail.nomadlogic.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4H85fw02YPz3kjt; Tue, 14 Sep 2021 14:42:47 +0000 (UTC) (envelope-from pete@nomadlogic.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nomadlogic.org; s=04242021; t=1631630557; 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=8Q09EggllOSef9qycpK4wGBI7enLywweMN8hCIO3lSQ=; b=G6UDe5JMCjB2gjorM12uuO2k/tDrKT1TYOrxXSogX/kYFiyzsjG7XfLns2GlxCdOsbrMi4 Es8oD92OTDLofWQmw8RjUhNp2srjBacB/uY+TqzD8sptZvsqJ+5WYZDyubIjbdp8nBBBcf yA5BjTM1aODeGrSVHKdwoXHQbmbLTdk= Received: from [192.168.1.223] (cpe-24-24-163-126.socal.res.rr.com [24.24.163.126]) by mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id 75f8ae87 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 14 Sep 2021 14:42:36 +0000 (UTC) Subject: Re: Panic on drm-devel v5.5.19.g20210909 To: Vladimir Kondratyev , x11@freebsd.org References: <2fcbea3c-ce7b-17ae-7018-ebda212ef186@nomadlogic.org> <6daeefee-abdf-2443-3842-461112065a3f@FreeBSD.org> <15f64418-8498-1668-7f91-c9dac430bfd2@nomadlogic.org> Message-ID: Date: Tue, 14 Sep 2021 07:42:35 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 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 In-Reply-To: <15f64418-8498-1668-7f91-c9dac430bfd2@nomadlogic.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4H85fw02YPz3kjt X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=nomadlogic.org header.s=04242021 header.b=G6UDe5JM; dmarc=pass (policy=quarantine) header.from=nomadlogic.org; spf=pass (mx1.freebsd.org: domain of pete@nomadlogic.org designates 66.165.241.226 as permitted sender) smtp.mailfrom=pete@nomadlogic.org X-Spamd-Result: default: False [-4.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[nomadlogic.org:s=04242021]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DKIM_TRACE(0.00)[nomadlogic.org:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[nomadlogic.org,quarantine]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:29802, ipnet:66.165.240.0/22, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Reply-To: pete@nomadlogic.org From: Pete Wright via x11 X-Original-From: Pete Wright X-ThisMailContainsUnwantedMimeParts: N On 9/13/21 6:23 PM, Pete Wright via x11 wrote: > > > On 9/12/21 1:10 PM, Vladimir Kondratyev wrote: >> >> Could you obtain a crashdump from drm-kmod compiled with -O0 option >> added to CFLAGS? Following command will apply -O0 to build: >> >> $ make clean >> $ CFLAGS='-g -O0' make >> > > hopefully this backtrace has the missing info: > (kgdb) bt > #0  __curthread () at > /usr/home/pete/git/freebsd/sys/amd64/include/pcpu_aux.h:55 > #1  doadump (textdump=textdump@entry=0) at > /usr/home/pete/git/freebsd/sys/kern/kern_shutdown.c:399 > #2  0xffffffff804cf8fa in db_dump (dummy=, > dummy2=, dummy3=, dummy4=) >     at /usr/home/pete/git/freebsd/sys/ddb/db_command.c:575 > #3  0xffffffff804cf7b2 in db_command (last_cmdp=, > cmd_table=, dopager=dopager@entry=1) at > /usr/home/pete/git/freebsd/sys/ddb/db_command.c:482 > #4  0xffffffff804cf42d in db_command_loop () at > /usr/home/pete/git/freebsd/sys/ddb/db_command.c:535 > #5  0xffffffff804d2ba6 in db_trap (type=, > code=) at /usr/home/pete/git/freebsd/sys/ddb/db_main.c:270 > #6  0xffffffff80c73547 in kdb_trap (type=type@entry=3, > code=code@entry=0, tf=tf@entry=0xfffffe011ced0d00) at > /usr/home/pete/git/freebsd/sys/kern/subr_kdb.c:733 > #7  0xffffffff810ebe83 in trap (frame=0xfffffe011ced0d00) at > /usr/home/pete/git/freebsd/sys/amd64/amd64/trap.c:609 > #8  > #9  kdb_enter (why=0xffffffff812e8d97 "panic", msg=) at > /usr/home/pete/git/freebsd/sys/kern/subr_kdb.c:506 > #10 0xffffffff80c259e8 in vpanic (fmt=0xffffffff8121692d "acquiring > blockable sleep lock with spinlock or critical section held (%s) %s @ > %s:%d", ap=, >     ap@entry=0xfffffe011ced0e70) at > /usr/home/pete/git/freebsd/sys/kern/kern_shutdown.c:907 > #11 0xffffffff80c25773 in panic (fmt=0xffffffff81e9d9c0 > "KN*\201\377\377\377\377") at > /usr/home/pete/git/freebsd/sys/kern/kern_shutdown.c:843 > #12 0xffffffff80c963b8 in witness_checkorder (lock=0xfffff80004818f88, > flags=9, file=, >     file@entry=0xffffffff812479c6 > "/usr/home/pete/git/freebsd/sys/compat/linuxkpi/common/src/linux_work.c", > line=line@entry=105, interlock=interlock@entry=0x0) >     at /usr/home/pete/git/freebsd/sys/kern/subr_witness.c:1135 > #13 0xffffffff80c01c44 in __mtx_lock_flags (c=0xfffff80004818fa0, > opts=0, file=0xffffffff812479c6 > "/usr/home/pete/git/freebsd/sys/compat/linuxkpi/common/src/linux_work.c", >     line=105) at /usr/home/pete/git/freebsd/sys/kern/kern_mutex.c:278 > #14 0xffffffff80e9adea in linux_work_exec_unblock > (work=0xfffff801be7f1998) at > /usr/home/pete/git/freebsd/sys/compat/linuxkpi/common/src/linux_work.c:105 > #15 linux_queue_work_on (cpu=, wq=0xfffff80004818f80, > work=0xfffff801be7f1998) at > /usr/home/pete/git/freebsd/sys/compat/linuxkpi/common/src/linux_work.c:150 > #16 0xffffffff84200e5c in active_retire () from /boot/modules/i915kms.ko > #17 0xffffffff842019de in node_retire () from /boot/modules/i915kms.ko > #18 0xffffffff84148965 in dma_fence_signal_locked () from > /boot/modules/linuxkpi_gplv2.ko > #19 0xffffffff84148ca3 in dma_fence_signal () from > /boot/modules/linuxkpi_gplv2.ko > #20 0xffffffff8414a9de in dma_fence_is_signaled () from > /boot/modules/linuxkpi_gplv2.ko > #21 0xffffffff8414aadc in dma_resv_add_shared_fence () from > /boot/modules/linuxkpi_gplv2.ko > #22 0xffffffff84246a02 in i915_vma_move_to_active () from > /boot/modules/i915kms.ko > #23 0xffffffff843cfbe1 in eb_move_to_gpu () from /boot/modules/i915kms.ko > #24 0xffffffff843c93c5 in eb_submit () from /boot/modules/i915kms.ko > #25 0xffffffff843c7f5a in i915_gem_do_execbuffer () from > /boot/modules/i915kms.ko > #26 0xffffffff843c83ab in i915_gem_execbuffer2_ioctl () from > /boot/modules/i915kms.ko > #27 0xffffffff8448c6d4 in drm_ioctl_kernel () from /boot/modules/drm.ko > #28 0xffffffff8448ce92 in drm_ioctl () from /boot/modules/drm.ko > #29 0xffffffff80e8ab07 in linux_file_ioctl_sub (fp=, > filp=0xfffff8019ecb9300, fop=, cmd=, > data=, >     td=) at > /usr/home/pete/git/freebsd/sys/compat/linuxkpi/common/src/linux_compat.c:985 > #30 linux_file_ioctl (fp=, cmd=, > data=, cred=, td=0xfffffe011d7d0740) >     at > /usr/home/pete/git/freebsd/sys/compat/linuxkpi/common/src/linux_compat.c:1601 > #31 0xffffffff80c9bd82 in fo_ioctl (fp=, > com=2151703657, data=0x1c200001, active_cred=0x1, td=0xfffffe011d7d0740) >     at /usr/home/pete/git/freebsd/sys/sys/file.h:360 > #32 kern_ioctl (td=, td@entry=0xfffffe011d7d0740, > fd=, com=, com@entry=2151703657, >     data=0x1c200001 0x1c200001>, data@entry=0xfffffe011ced1910 "") at > /usr/home/pete/git/freebsd/sys/kern/sys_generic.c:803 > #33 0xffffffff80c9bad4 in sys_ioctl (td=0xfffffe011d7d0740, > uap=0xfffffe011d7d0b30) at > /usr/home/pete/git/freebsd/sys/kern/sys_generic.c:711 > #34 0xffffffff810ecc5e in syscallenter (td=) at > /usr/home/pete/git/freebsd/sys/amd64/amd64/../../kern/subr_syscall.c:189 > --Type for more, q to quit, c to continue without paging-- > #35 amd64_syscall (td=0xfffffe011d7d0740, traced=0) at > /usr/home/pete/git/freebsd/sys/amd64/amd64/trap.c:1191 > #36 > #37 0x000000080f1ae3ca in ?? () > i think i've figured out how to reproduce this issue.  it seems to be triggered by chrome, using firefox and other apps and i am not seeing any issues.  but once i launch chrome it seems to trigger the panic above pretty reliably.  i've even moved my ~/.config/chrome/ directory out of the way to ensure i don't have any bad settings and it still triggers the panic. -pete -- Pete Wright pete@nomadlogic.org @nomadlogicLA