From owner-freebsd-current@freebsd.org Thu Dec 19 19:20:38 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 19A141E8F0A for ; Thu, 19 Dec 2019 19:20:38 +0000 (UTC) (envelope-from jroberson@jroberson.net) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 47f1tY5JQDz42bZ for ; Thu, 19 Dec 2019 19:20:37 +0000 (UTC) (envelope-from jroberson@jroberson.net) Received: by mailman.nyi.freebsd.org (Postfix) id B45241E8F09; Thu, 19 Dec 2019 19:20:37 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B415F1E8F08 for ; Thu, 19 Dec 2019 19:20:37 +0000 (UTC) (envelope-from jroberson@jroberson.net) Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47f1tX3HvKz42bX for ; Thu, 19 Dec 2019 19:20:36 +0000 (UTC) (envelope-from jroberson@jroberson.net) Received: by mail-pf1-x442.google.com with SMTP id y14so3805558pfm.13 for ; Thu, 19 Dec 2019 11:20:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jroberson-net.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=KeWohLOrJM+tTYxJ/xkvpaaTjm1pDTfnc2o7rMh1E6M=; b=l9uV9EAbJI0FgHw9eEDyiTEe5kaQaTm2+uxkz5XdDbopJFZ6VLqyfFUmapNl/Hoxie orIkxd32PBIKT+ljPNMnW7NFPdvoW2Pw0vVVUIa6mOU2C6NvZesyGashUu/RyPk4Jga3 bxy/m0tIDpNZI/CERjuz0vTlOLmN+TuaAQWxxO748JR2xoWcCAGv6LLUpr539ZeqWnyK WQxGMK/S3dTZLDeWQlOGYBp7MdUAR++IsDF68NG5ofXPolHuHw47fBxYEoUmVaKndmOf RGdnMePnQDqu6+5HHLp/CqmqdlE9RtCKDnVpgw1btZAlZRm9g1cy9dCKwjAUpMQIbT01 0M8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=KeWohLOrJM+tTYxJ/xkvpaaTjm1pDTfnc2o7rMh1E6M=; b=D/DQCcR5NZyTwMkUweRnXDZOXYqSlaKBVCRlG1BiF000Wn5hh3/MdN+2Iy+EJGLxGk pjoU6FT8QaGnmJMd7Es1in/pRsufj8ZtPZBlYy7vs3EjIvCpPQ9r1PzxALuFeUtK8ZnS NVMC/+2f/rt25lW0ROQXwGXMOLTO1JoJTx2Epkqbjeb3TM1Xm+K9tAzo3VkhQzHjv9/M csgWmdJ+nwOpJ7q68w4yEyDVXxu6Ql4iYoBFWrBcl/D0LFwUCzQ431iGjwoPzkSCW8n9 NtMPXgpB92QLVSJ2KPdNE0TczQVChe5QL7k9J2c2FdMBW7mOuh2PwIdqmW49DxwJwh0q 4Tpg== X-Gm-Message-State: APjAAAVtUvKWEoRvbfF+ADe43cs4iSOreuy10apPtaSsFacATu70tnoM I/NweCUPV8asTc19OaSWzdzlSx/H1jg= X-Google-Smtp-Source: APXvYqzr5aloJ5Y7583CvhRMO2G/4/OYq7/zz7uw0Ir/kMAJFiWjbnFfT4x37Y//FuAlicbLBDkUqQ== X-Received: by 2002:a63:1662:: with SMTP id 34mr10373801pgw.77.1576783234890; Thu, 19 Dec 2019 11:20:34 -0800 (PST) Received: from rrcs-76-81-105-82.west.biz.rr.com (rrcs-76-81-105-82.west.biz.rr.com. [76.81.105.82]) by smtp.gmail.com with ESMTPSA id h26sm10071619pfr.9.2019.12.19.11.20.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Dec 2019 11:20:34 -0800 (PST) Date: Thu, 19 Dec 2019 09:20:32 -1000 (HST) From: Jeff Roberson X-X-Sender: jroberson@desktop To: Hans Petter Selasky cc: Cy Schubert , current@freebsd.org Subject: Re: drm-current-kmod panics In-Reply-To: Message-ID: References: <201912191650.xBJGotp2003261@slippy.cwsent.com> <201912191840.xBJIeqQX071052@slippy.cwsent.com> User-Agent: Alpine 2.21.9999 (BSF 287 2018-06-16) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: 47f1tX3HvKz42bX X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=jroberson-net.20150623.gappssmtp.com header.s=20150623 header.b=l9uV9EAb; dmarc=none; spf=none (mx1.freebsd.org: domain of jroberson@jroberson.net has no SPF policy when checking 2607:f8b0:4864:20::442) smtp.mailfrom=jroberson@jroberson.net X-Spamd-Result: default: False [-2.75 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[jroberson-net.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[current@freebsd.org]; DMARC_NA(0.00)[jroberson.net]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[jroberson-net.20150623.gappssmtp.com:+]; RCVD_IN_DNSWL_NONE(0.00)[2.4.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_NOT_FQDN(0.50)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[]; IP_SCORE(-0.95)[ip: (-0.63), ipnet: 2607:f8b0::/32(-2.18), asn: 15169(-1.90), country: US(-0.05)] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Dec 2019 19:20:38 -0000 On Thu, 19 Dec 2019, Hans Petter Selasky wrote: > On 2019-12-19 19:40, Cy Schubert wrote: >> In message , Hans Petter >> Sela >> sky writes: >>> On 2019-12-19 17:50, Cy Schubert wrote: >>>> Has anyone else had these since Dec 9? >>>> >>>> <4>WARN_ON(!mutex_is_locked(&fbc->lock))WARN_ON(!mutex_is_locked(&fbc-> >>>> lock)) >>>> panic: page fault >>>> cpuid = 1 >>>> time = 1576772837 >>>> KDB: stack backtrace: >>>> db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame >>>> 0xfffffe007c98b930 >>>> vpanic() at vpanic+0x17e/frame 0xfffffe007c98b990 >>>> panic() at panic+0x43/frame 0xfffffe007c98b9f0 >>>> trap_fatal() at trap_fatal+0x386/frame 0xfffffe007c98ba50 >>>> trap_pfault() at trap_pfault+0x4f/frame 0xfffffe007c98bac0 >>>> trap() at trap+0x41b/frame 0xfffffe007c98bbf0 >>>> calltrap() at calltrap+0x8/frame 0xfffffe007c98bbf0 >>>> --- trap 0xc, rip = 0x242c52, rsp = 0x7fffffffbe70, rbp = 0x7fffffffbe90 >>>> -- >>> - >>>> Uptime: 59m7s >>>> >>>> It is triggered through random keystrokes or mouse movements. >>> >>> Looks like a double fault. >>> >>> Did you recompile drm-current-kmod with the latest kernel sources? >> >> Yes. >> >> > > Are you able to get a full backtrace? Since my recent scheduler commits the following functions now return without the thread lock held: sched_add()/sched_wakeup()/sched_switch()/mi_switch()/setrunnable()/sleepq_abort() I audited drm and linuxkpi for use of these functions. There was one in the linuxkpi sources that I corrected in the same commit as the change in api. I don't see any users of these in drm-current-kmod. It is possible that I have somehow missed it. I did just commit a fix to cpuset that may be called indirectly somehow. That fix is r355915. The first commit of this series was r35579. If this is at fault I may need some assistance in identifying what the offending call is. It should show up with INVARIANTS/WITNESS more quickly than a pagefault if so though. Thanks, Jeff > > --HPS > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >