From owner-freebsd-hackers@freebsd.org Tue Feb 21 00:50:34 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EE188CE6F40; Tue, 21 Feb 2017 00:50:34 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-wr0-x243.google.com (mail-wr0-x243.google.com [IPv6:2a00:1450:400c:c0c::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8140B164B; Tue, 21 Feb 2017 00:50:34 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by mail-wr0-x243.google.com with SMTP id 89so6996163wrr.1; Mon, 20 Feb 2017 16:50:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=l0PBSH/mHnJNHslH6dy9XWgM3kv3xwxxrOobqWkAOpk=; b=gFzUPzFjLf7bQ7EpZhHh9Den8QmmxmV/yH7NNbg9oEmOkQYXoFKcmNGWqn2s39Yy66 gQhLu77lXEspbKMTbuj3edzKFNduvNjs7XVjBXe2LE26YXv8iPJeW9OPMqp+Y0eoQ4u/ diUtjmWtsHnjdV1o0nbh6mawBubctVdNbQeSnyy0KU0pJyKqczs9wrrO3GwrMj3yg0Zv drh7bXSAQwms0i4h3Uz7AUdUY1PWfQWjaU9U+kFTR5STP0QFVRwqteWBPPgaEyxy4FKE q5Fu7bTgoIZpL8KmWnD26pN1zV6q5K7OaBqJym7tDFRzzjxD58c7/W8R1r5DLk8Ku8i3 gi9w== 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:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=l0PBSH/mHnJNHslH6dy9XWgM3kv3xwxxrOobqWkAOpk=; b=HzgVqJ5X0KZ7/HMnfT+lkWsiQBueeIL11dpFBiA8XdGE3qikNHDCT+TQlSt11suedu 5h8cfsCou2nbagnHq71c8PPKW0InIqww5jhggqoH7YQ1EUHQuzSkNslR7rACGR56hQJJ SRMflDsnDZ39QGesHLvZdc9BXmEMw782V3+58jEm4DRY0avSXPEZmGHgBAm6euW5I4oC 3SQwsuzJKzuPV3CGLeEIvy0ykuVBoNO1zzZGL+vvuoK3pBAnnxaKbDYrPDRWmQ4O0z6v KCe/yOw/CFI0w9plLqOC1tNMP3qEenxT0PRD2erz9Z75AQQ+XphKDP4b3OyTQ1i4HG3Y vZJg== X-Gm-Message-State: AMke39lsphKPdQdDZ+4StvFZJRZ33eXSgdbtkPJuBecopxDKGH5F2o7T9ftZeCwyocbZNQ== X-Received: by 10.223.165.70 with SMTP id j6mr4377384wrb.173.1487638232848; Mon, 20 Feb 2017 16:50:32 -0800 (PST) Received: from dft-labs.eu (n1x0n-1-pt.tunnel.tserv5.lon1.ipv6.he.net. [2001:470:1f08:1f7::2]) by smtp.gmail.com with ESMTPSA id y97sm15466677wmh.24.2017.02.20.16.50.32 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 20 Feb 2017 16:50:32 -0800 (PST) Date: Tue, 21 Feb 2017 01:50:30 +0100 From: Mateusz Guzik To: Steve Kargl Cc: freebsd-current@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: drm2, i915kms cause instant lock-up Message-ID: <20170221005030.GD26759@dft-labs.eu> Mail-Followup-To: Mateusz Guzik , Steve Kargl , freebsd-current@freebsd.org, freebsd-hackers@freebsd.org References: <20170220235224.GA91194@troutmask.apl.washington.edu> <20170220235807.GC26759@dft-labs.eu> <20170221004340.GA91587@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20170221004340.GA91587@troutmask.apl.washington.edu> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2017 00:50:35 -0000 On Mon, Feb 20, 2017 at 04:43:40PM -0800, Steve Kargl wrote: > On Tue, Feb 21, 2017 at 12:58:07AM +0100, Mateusz Guzik wrote: > > On Mon, Feb 20, 2017 at 03:52:24PM -0800, Steve Kargl wrote: > > > With a kernel and world from r313943 sources (circa > > > Feb 19, 2017), kldload of either drm2.ko or i915kms.ko > > > will lock up the system. There is no keyboard response, > > > screen output, or panic. Just a locked up system. > > > > > > A kernel from r313027 and its modules boots fine. > > > 'kldload drm2.ko' yields the following in /var/log/messages: > > > > > > > There were quite a few invasive changes in this timeframe. Can you > > please: > > > > 1. switch to 313254 and ensure it works > > 2. apply https://people.freebsd.org/~mjg/patches/complete-locks.diff and > > check if it breaks > > > > If it does not break, revert the patch and bisect the kernel please. > > Otherwise I'll devise smaller diffs to narrow this down. > > > > With 1. and 2. the system boots and I can kldload both drm2 > and i915kms. I revert the patch and start bisecting the kernel. > Thanks for the quick response. > Thanks for testing. Note you may encounter some turbulences along the road as there were fixups and fixups to fixups to the combined above patch. Good luck. -- Mateusz Guzik