Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jul 2013 21:51:45 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Gustau P?rez i Querol <gperez@entel.upc.edu>
Cc:        FreeBSD current <freebsd-current@freebsd.org>
Subject:   Re: Panic when starting X with Intel KMS
Message-ID:  <20130721185145.GE5991@kib.kiev.ua>
In-Reply-To: <51EBAA76.8020100@entel.upc.edu>
References:  <51E6EB0A.2060407@entel.upc.edu> <51EA5166.4020508@entel.upc.edu> <CAPjTQNG7CBYNMQ4yitXv3Wy81YMk-osqcSH=BB1=HjsOqweszw@mail.gmail.com> <20130721071842.GZ5991@kib.kiev.ua> <51EBAA76.8020100@entel.upc.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130721185145.GE5991>