Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Jan 2011 19:11:05 +0000
From:      Patrick Mackinlay <patrick@spacesurfer.com>
To:        Oliver Pinter <oliver.pntr@gmail.com>
Cc:        fbsdmail@dnswatch.com, freebsd-amd64@freebsd.org
Subject:   Re: amd64/153746: kernel crash with 2 X11 sessions on amd64 with radeon drm
Message-ID:  <4D276549.2050105@spacesurfer.com>
In-Reply-To: <AANLkTimoTwpz3o3FZXhjEQbDwALbpfKnBT9QneUyLfZf@mail.gmail.com>
References:  <201101062245.p06MjFSW019165@red.freebsd.org>	<fdc9b0a5083bda60c5dba72e18633dc5.dnswclient@www.dnswatch.com> <AANLkTimoTwpz3o3FZXhjEQbDwALbpfKnBT9QneUyLfZf@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigFC2221DD4DA520C44E6F67D1
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hello,

This issue is not about when drm is loaded. The bug happens 100%
reliably and it does not matter how drm is loaded. I can load the radeon
kernel module at boot, manually before starting X11 or on demand when
xorg starts (that is how it is currently loaded) and the results will be
the same. I only mentioned mplayer because this is the only app I use
that uses any of the DRM functionality and I dont even have to run
mplayer for this issue to occur. However, the problem is definitely with
DRM because if I do not load the radeon kernel module then the problem
goes away (and I cant use mplayer because its too slow!).

Regarding hald, I have this disabled it in rc.conf with an interesting
comment:

# hald causes the mouse to go haywire when x starts
hald_enable=3D"NO"

So I guess I had problems with this in the past. Either way hald is
unrelated to this problem.

Regarding the two links about deadlocks and unresponsive behaviour. This
also is not the case for me. The machine is 100% fine unless I close an
X session. I never experience deadlocks or unresponsive behaviour.

The crash always occurs when I have drm enabled, start two x sessions.
Close one (returning to a terminal) and exactly when I switch to the
other X session (CTRL-ALT-F9) the machine will automatically reboot. It
never locks or shows a kernel panic message, it just reboots.

Patrick

On 01/07/11 13:24, Oliver Pinter wrote:
> http://lists.freebsd.org/pipermail/freebsd-x11/2010-February/009370.htm=
l
> http://old.nabble.com/freebsd7,-radeon,-xorg-server-->-deadlock-or-so-t=
d27524122.html
>=20
> On 1/7/11, fbsdmail@dnswatch.com <fbsdmail@dnswatch.com> wrote:
>>
>> On Thu, January 6, 2011 2:45 pm, Patrick Mackinlay wrote:
>>>
>>
>>>> Number:         153746
>>>> Category:       amd64
>>>> Synopsis:       kernel crash with 2 X11 sessions on amd64 with radeo=
n
>>>> drm
>>>> Confidential:   no
>>>> Severity:       non-critical
>>>> Priority:       medium
>>>> Responsible:    freebsd-amd64
>>>> State:          open
>>>> Quarter:
>>>> Keywords:
>>>> Date-Required:
>>>> Class:          sw-bug
>>>> Submitter-Id:   current-users
>>>> Arrival-Date:   Thu Jan 06 22:50:07 UTC 2011
>>>> Closed-Date:
>>>> Last-Modified:
>>>> Originator:     Patrick Mackinlay
>>>> Release:        8.1-RELEASE-p2 (affects 8.0 as well)
>>>> Organization:
>>>> Environment:
>>>>
>>> FreeBSD patrick.uknet.spacesurfer.com 8.1-RELEASE-p2 FreeBSD
>>> 8.1-RELEASE-p2 #3: Thu Jan  6 21:40:18 GMT 2011
>>> root@patrick.uknet.spacesurfer.com:/usr/obj/usr/src/sys/PATRICK  amd6=
4
>>>
>>>> Description:
>>>>
>>> If I start 2 X11 sessions (startx and start -- :1). The close the
>>> sessions on display :1, when I switch to the session on display :0 th=
e
>>> system reboots. I have an amd64 with a ATI radeon card:
>>>
>>> drm0: <ATI Radeon HD 4650> on vgapci0
>>>
>>>
>>> Note that if I never close either X11 session there is no problem wit=
h
>>> stability (weeks uptime), however the only graphics intensive app I u=
se
>>> is mplayer. mplayer is the only reason I need drm, however the bug wi=
ll
>>> be triggered even if I havn't used mplayer in my X11 session.
>> Greetings,
>>  Fact is, Mplayer has nothing to do with when/how drm is loaded. 2
>> possibilities exist for loading; @boot via loader.conf(5), or when
>> starting X via xorg.conf(5).
>> If you're loading it via xorg.conf(5), and suspect drm to be the culpr=
it.
>> The easiest solution would be to comment the line that loads it in you=
r
>> xorg.conf(5) file. Then startx(1), and see if there's any difference i=
n
>> behavior. FWIW I haven't been able to use HALd on _any_ 64bit box. So
>> against the suggested entries in rc.conf(8):
>> dbus_enable=3D"YES"
>> hald_enable=3D"YES"
>>
>> I need to use
>>
>> hald_enable=3D"NO"
>> or I have big problems running X. I only mention it, in case this
>> might also apply to your situation.
>>
>> HTH
>>
>> --Chris
>>
>>>
>>> I will attach the output from dmesg with my full system setup and the=

>>> output from the two xorg log files.
>>>> How-To-Repeat:
>>>>
>>>
>>>> Fix:
>>>>
>>>
>>>
>>>> Release-Note:
>>>> Audit-Trail:
>>>> Unformatted:
>>>>
>>> _______________________________________________
>>> freebsd-amd64@freebsd.org mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
>>> To unsubscribe, send any mail to "freebsd-amd64-unsubscribe@freebsd.o=
rg"
>>>
>>>
>>
>>
>> --
>> kern:
>> FreeBSD 8.1-RELEASE amd64
>>
>>
>> _______________________________________________
>> freebsd-amd64@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
>> To unsubscribe, send any mail to "freebsd-amd64-unsubscribe@freebsd.or=
g"
>>

--=20
Patrick Mackinlay                              patrick@spacesurfer.com
http://patrick.spacesurfer.com/                    tel: +44.7050699851
Yahoo messenger: patrick00_uk                      fax: +44.7050699852
SpaceSurfer Limited                           http://www.spacereg.com/


--------------enigFC2221DD4DA520C44E6F67D1
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFNJ2VND97IpyzY3RIRAvfgAJ9MdaynNei+U8KnvFAi2O8WE+IivwCfaNU7
B6qduzAoSN8A39xFpwEO0zc=
=oBs0
-----END PGP SIGNATURE-----

--------------enigFC2221DD4DA520C44E6F67D1--



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