From owner-freebsd-current@freebsd.org Mon May 9 17:39:07 2016 Return-Path: Delivered-To: freebsd-current@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 2A15AB34E4C for ; Mon, 9 May 2016 17:39:07 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E502F1376 for ; Mon, 9 May 2016 17:39:05 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id A80A91FE022; Mon, 9 May 2016 19:39:02 +0200 (CEST) Subject: Re: i915kms broken at some commit between r296485 and r297692? To: Sergey Manucharian , freebsd-current@FreeBSD.org References: <20160509023416.GA2375@dendrobates.araler.com> <2368d5b7-3d3c-7057-0849-c3339ce90b25@selasky.org> From: Hans Petter Selasky Message-ID: <2839bf70-1300-86c6-4a0f-d23586e07015@selasky.org> Date: Mon, 9 May 2016 19:42:21 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <2368d5b7-3d3c-7057-0849-c3339ce90b25@selasky.org> Content-Type: multipart/mixed; boundary="------------CD42C7D23835F1C61C5F1DFE" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 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: Mon, 09 May 2016 17:39:07 -0000 This is a multi-part message in MIME format. --------------CD42C7D23835F1C61C5F1DFE Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 05/09/16 18:10, Hans Petter Selasky wrote: > On 05/09/16 04:34, Sergey Manucharian wrote: >> I'm running FreeBSD 11.0-CURRENT r292595 on ThinkPad T430 (i7-3520M, >> Intel video 4000). Today I tried to update to a fresher version. >> Something has been broken somewhere between r296485 and r297692, >> I suspect namely i915kms - it won't boot: at the boot screen I see that >> all modules are loaded, then after "Booting..." message at the bottom >> screen turns black in 1-2 seconds of booting process, it seems to be the >> point when it regularly switches to native resolution. >> >> Can somebody shed light on it? What can I check to get more info on >> this? >> >> Regularly I update to the revisions used to build snapshots at: >> >> ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/ISO-IMAGES/11.0/ >> >> assuming that those revisions have less issues. So tried a few, including >> the head. None worked for me after a certain revision (from the range I >> mentioned above). >> >> Thanks for advices! > > Hi, > > I'm seeing the same thing with a MacBookPro. When loading drm2 and i915 > after boot, it works. I think it is something simple causing this failure. > > --HPS > Hi, Can you try the attached patch. Works for me. --HPS --------------CD42C7D23835F1C61C5F1DFE Content-Type: text/x-patch; name="drmfix.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="drmfix.diff" diff --git a/sys/dev/drm2/i915/intel_drv.h b/sys/dev/drm2/i915/intel_drv.h index fd5817f..d9b01b8 100644 --- a/sys/dev/drm2/i915/intel_drv.h +++ b/sys/dev/drm2/i915/intel_drv.h @@ -50,6 +50,8 @@ pause((WMSG), 1); \ else \ DELAY(1000); \ + if (cold) \ + end -= howmany(hz, 1000); \ } \ \ ret; \ @@ -68,6 +70,8 @@ } else { \ DELAY(1000); \ } \ + if (cold) \ + timeout__ -= howmany(hz, 1000); \ } \ ret__; \ }) --------------CD42C7D23835F1C61C5F1DFE--