Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Nov 2010 14:26:43 +0200
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Andriy Gapon <avg@freebsd.org>
Cc:        freebsd-x11@freebsd.org, freebsd-current@freebsd.org
Subject:   Re: radeon_cp_texture: page fault with non-sleepable locks held
Message-ID:  <20101108122643.GE2392@deviant.kiev.zoral.com.ua>
In-Reply-To: <4CD7E80F.4090100@freebsd.org>
References:  <4CD3B1D2.30003@icyb.net.ua> <4CD7E401.1010206@freebsd.org> <20101108120403.GC2392@deviant.kiev.zoral.com.ua> <4CD7E80F.4090100@freebsd.org>

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

--iTK5zgLp6gXhzOi1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Nov 08, 2010 at 02:07:43PM +0200, Andriy Gapon wrote:
> on 08/11/2010 14:04 Kostik Belousov said the following:
> > On Mon, Nov 08, 2010 at 01:50:25PM +0200, Andriy Gapon wrote:
> >> on 05/11/2010 09:27 Andriy Gapon said the following:
> >>>
> >>> I use FreeSBD head and KDE 4 with all the bells and whistles enabled.
> >>> Apparently recent KDE update has enabled even more of them, because I=
 started to
> >>> have panics with a kernel that has INVARIANTS and WITNESS enabled.
> >>
> >> I tried to solve the problem by changing drmdev from mutex to sx:
> >> http://people.freebsd.org/~avg/drm-sx.diff
> > I remember that drm lock can be acquired from the interrupt thread, if
> > the card supports interrupts. Changing it to sx cannot work then, becau=
se
> > interrupt threads cannot sleep. Most likely, you are getting around it
> > since r600 not yet used interrupts on FreeBSD.
> >=20
> > I think the solution is to drop drm lock around copyin.
>=20
> Kostik,
>=20
> thanks a lot for the help!
> Are familiar enough with the code to tell if drmdev is always held at that
> place?  Or should I first check if it's actually owned and drop/reacquire=
 it
> accordingly?
I think you can assume that the lock is always owned.

--iTK5zgLp6gXhzOi1
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)

iEYEARECAAYFAkzX7IIACgkQC3+MBN1Mb4jB1wCgyV//8jHNz1bQucRshL/u/oh+
c0YAoLWMqVoUJYj4O4p/Xwxirsbwbd7O
=MrAg
-----END PGP SIGNATURE-----

--iTK5zgLp6gXhzOi1--



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