From owner-freebsd-current@FreeBSD.ORG Sun Jul 21 18:51:56 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 8CE5D2FE for ; Sun, 21 Jul 2013 18:51:56 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 2BA5BD32 for ; Sun, 21 Jul 2013 18:51:55 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.7/8.14.7) with ESMTP id r6LIpjmp054045; Sun, 21 Jul 2013 21:51:45 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.8.3 kib.kiev.ua r6LIpjmp054045 Received: (from kostik@localhost) by tom.home (8.14.7/8.14.7/Submit) id r6LIpjFk054044; Sun, 21 Jul 2013 21:51:45 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 21 Jul 2013 21:51:45 +0300 From: Konstantin Belousov To: Gustau P?rez i Querol Subject: Re: Panic when starting X with Intel KMS Message-ID: <20130721185145.GE5991@kib.kiev.ua> References: <51E6EB0A.2060407@entel.upc.edu> <51EA5166.4020508@entel.upc.edu> <20130721071842.GZ5991@kib.kiev.ua> <51EBAA76.8020100@entel.upc.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mB/CYmFGQzL2EujR" Content-Disposition: inline In-Reply-To: <51EBAA76.8020100@entel.upc.edu> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: FreeBSD current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 21 Jul 2013 18:51:56 -0000 --mB/CYmFGQzL2EujR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jul 21, 2013 at 11:31:34AM +0200, Gustau P?rez i Querol wrote: >=20 > > The issue happened somewhere before the process exit. Try the patch > > below, the idea is that your overflow count is really big, so the > > wrong-doer could cause underflow when acting. > > > > diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c > > index 19be4e0..fcdc6af 100644 > > --- a/sys/amd64/amd64/pmap.c > > +++ b/sys/amd64/amd64/pmap.c > > @@ -465,6 +465,9 @@ pmap_resident_count_dec(pmap_t pmap, int count) > > { > > =20 > > PMAP_LOCK_ASSERT(pmap, MA_OWNED); > > + KASSERT(pmap->pm_stats.resident_count >=3D count, > > + ("pmap %p resident count underflow %ld %d", pmap, > > + pmap->pm_stats.resident_count, count)); > > pmap->pm_stats.resident_count -=3D count; > > } > > =20 > Hi, >=20 > the assert doesn't happen (that's resident_count is not bigger than= =20 > count). You can find the complete core at: >=20 > https://dl.dropboxusercontent.com/u/2094962/core.txt.5 I do not understand what do you mean, it seems that core.txt.5 has exactly the assertion fired which I added. Show me the verbose dmesg, including the i915 driver attach. Did the issue started at some moment, or it is a new install which exhibit the problem from the beginning ? As a blind shot, try to revert r252653. I am sure that the serial console would be useful, but I did not decided yet on where to start looking. --mB/CYmFGQzL2EujR Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (FreeBSD) iQIcBAEBAgAGBQJR7C3AAAoJEJDCuSvBvK1BgxgQAKAxBX0NCHdq6+cxEM0lEuy9 y495wag8tzwkues91FnBU0NeverKjOOjaOEEXod4Zez5MkZwPo7TJMM1OTC5P7Zc sRNI7gHZe32ov0ZhZl1W3nEL/v/E2B24aqd3CaG2WqTJpKRXAwWJ89zvmTwjzGyb etJKWKcTaaf7Pd6epKjWOb/idSiqaNfUQ/fPNoaPuMb4QF39kRnNj/LYu8oZVTDD EdxPDfbnukMUoZfTl2uEKt22CI37SzBURy6NwIqem6VNyyN/Yh4Nf38K5auTvXlb QmdWAirapSs3p4dz4zGihW4H0Tu4iCd4cqPojzHFqk+Fs5UaS01Xi3RXpmdB3yyw wcZDaI3bOG68bQxYjb6JPRUFM3xcnsEM/8BHgn0iAkKDivgf/ZBGOz82PKY0Xn6d RAg242RrKCiahPZyIzoIeapKB8JHEtLELO7HKW/pZhdJ5kQRtbs4xKe0AoUEW/nz q39YQcX4WPfLGO+S3olwn6fUXL05dX3M5d+WKyWeGyu+7oRmwjY/f4Op8IsfnZ3T L2o5I2LL+mSQMxf3sDyv7U6IVBMwN/TUn++JoSZa0MDMiY/GUCylzChMMmd5M05Q Q4/6rRRV/TQXwjkLUa59dx6u6ntBBT0I3pdC3OuO1NqkCiLFffvfyWypLkunv+1U fnCI+Ndautk5mvKJkLBF =qgnA -----END PGP SIGNATURE----- --mB/CYmFGQzL2EujR--