All of lore.kernel.org
 help / color / mirror / Atom feed
* Faulty MTRR setups in Toshiba laptops crash video drivers
@ 2009-11-02 16:28 Mehmet Giritli
  2009-11-03  0:06 ` Robert Hancock
  0 siblings, 1 reply; 5+ messages in thread
From: Mehmet Giritli @ 2009-11-02 16:28 UTC (permalink / raw)
  To: linux-kernel

Hello all,

On some laptops using ATI 3650HD radeon chipsets and 4GB ram (and may be
others as well), it is impossible to start any xserver due to (faulty?)
mtrr setups on the machine. The computer locks up or just gives an
unresponsive black screen. There are various drivers for radeon cards
and the crash occurs in all of these drivers in the very same way!

This bug seems to occur mostly on Toshiba laptops with ATI graphic
cards. For some people, CONFIG_MTRR_SANITIZER seemed to cure the issue
but made no difference for many others like me.

RadeonHD people seem to have problems in understanding the nature of
this bug. Please have a look at the threads:

http://lists.opensuse.org/radeonhd/2009-05/msg00040.html

and, 

http://bugs.freedesktop.org/show_bug.cgi?id=20645

for problem reports and dev responses. RadeonHD devs suggest that some
laptops have weird mtrr setups and this must be fixed in the kernel code
and not the driver code.

Currently, the only way that could make the driver work is to reduce the
4GB ram to 2GB.

dmesg from my affected machine when it has 4GB ram installed can be
found here:

http://bugzilla.kernel.org/attachment.cgi?id=22856

Also, look at the report here:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/341681

in order to see how many people are being affected by this bug!

Kind Regards,
M. Giritli



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Faulty MTRR setups in Toshiba laptops crash video drivers
  2009-11-02 16:28 Faulty MTRR setups in Toshiba laptops crash video drivers Mehmet Giritli
@ 2009-11-03  0:06 ` Robert Hancock
  2009-11-03 13:08   ` Mehmet Giritli
  0 siblings, 1 reply; 5+ messages in thread
From: Robert Hancock @ 2009-11-03  0:06 UTC (permalink / raw)
  To: mehmet; +Cc: linux-kernel

On 11/02/2009 10:28 AM, Mehmet Giritli wrote:
> Hello all,
>
> On some laptops using ATI 3650HD radeon chipsets and 4GB ram (and may be
> others as well), it is impossible to start any xserver due to (faulty?)
> mtrr setups on the machine. The computer locks up or just gives an
> unresponsive black screen. There are various drivers for radeon cards
> and the crash occurs in all of these drivers in the very same way!
>
> This bug seems to occur mostly on Toshiba laptops with ATI graphic
> cards. For some people, CONFIG_MTRR_SANITIZER seemed to cure the issue
> but made no difference for many others like me.
>
> RadeonHD people seem to have problems in understanding the nature of
> this bug. Please have a look at the threads:
>
> http://lists.opensuse.org/radeonhd/2009-05/msg00040.html
>
> and,
>
> http://bugs.freedesktop.org/show_bug.cgi?id=20645
>
> for problem reports and dev responses. RadeonHD devs suggest that some
> laptops have weird mtrr setups and this must be fixed in the kernel code
> and not the driver code.

Unfortunately I don't see enough details to be able to tell what lead 
them to this conclusion. Can you post the output of:

lspci -vv
cat /proc/mtrr

>
> Currently, the only way that could make the driver work is to reduce the
> 4GB ram to 2GB.
>
> dmesg from my affected machine when it has 4GB ram installed can be
> found here:
>
> http://bugzilla.kernel.org/attachment.cgi?id=22856
>
> Also, look at the report here:
>
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/341681
>
> in order to see how many people are being affected by this bug!
>
> Kind Regards,
> M. Giritli
>
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Faulty MTRR setups in Toshiba laptops crash video drivers
  2009-11-03  0:06 ` Robert Hancock
@ 2009-11-03 13:08   ` Mehmet Giritli
  2009-11-04 23:48     ` Robert Hancock
  0 siblings, 1 reply; 5+ messages in thread
From: Mehmet Giritli @ 2009-11-03 13:08 UTC (permalink / raw)
  To: Robert Hancock; +Cc: linux-kernel

On Mon, 2009-11-02 at 18:06 -0600, Robert Hancock wrote:
> On 11/02/2009 10:28 AM, Mehmet Giritli wrote:
> > Hello all,
> >
> > On some laptops using ATI 3650HD radeon chipsets and 4GB ram (and may be
> > others as well), it is impossible to start any xserver due to (faulty?)
> > mtrr setups on the machine. The computer locks up or just gives an
> > unresponsive black screen. There are various drivers for radeon cards
> > and the crash occurs in all of these drivers in the very same way!
> >
> > This bug seems to occur mostly on Toshiba laptops with ATI graphic
> > cards. For some people, CONFIG_MTRR_SANITIZER seemed to cure the issue
> > but made no difference for many others like me.
> >
> > RadeonHD people seem to have problems in understanding the nature of
> > this bug. Please have a look at the threads:
> >
> > http://lists.opensuse.org/radeonhd/2009-05/msg00040.html
> >
> > and,
> >
> > http://bugs.freedesktop.org/show_bug.cgi?id=20645
> >
> > for problem reports and dev responses. RadeonHD devs suggest that some
> > laptops have weird mtrr setups and this must be fixed in the kernel code
> > and not the driver code.
> 
> Unfortunately I don't see enough details to be able to tell what lead 
> them to this conclusion. Can you post the output of:
> 
> lspci -vv
> cat /proc/mtrr

lspci -vv
http://bugzilla.kernel.org/attachment.cgi?id=23634

/proc/mtrr when 4GB installed
http://bugzilla.kernel.org/attachment.cgi?id=23632

/proc/mtrr when 2GB installed
http://bugzilla.kernel.org/attachment.cgi?id=23633

There is also a bug report that I opened a while back here:
http://bugzilla.kernel.org/show_bug.cgi?id=14054



> 
> >
> > Currently, the only way that could make the driver work is to reduce the
> > 4GB ram to 2GB.
> >
> > dmesg from my affected machine when it has 4GB ram installed can be
> > found here:
> >
> > http://bugzilla.kernel.org/attachment.cgi?id=22856
> >
> > Also, look at the report here:
> >
> > https://bugs.launchpad.net/ubuntu/+source/linux/+bug/341681
> >
> > in order to see how many people are being affected by this bug!
> >
> > Kind Regards,
> > M. Giritli
> >
> >
> 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Faulty MTRR setups in Toshiba laptops crash video drivers
  2009-11-03 13:08   ` Mehmet Giritli
@ 2009-11-04 23:48     ` Robert Hancock
  2009-11-05 11:02       ` Mehmet Giritli
  0 siblings, 1 reply; 5+ messages in thread
From: Robert Hancock @ 2009-11-04 23:48 UTC (permalink / raw)
  To: mehmet; +Cc: linux-kernel

On Tue, Nov 3, 2009 at 7:08 AM, Mehmet Giritli <mehmet@giritli.eu> wrote:
> On Mon, 2009-11-02 at 18:06 -0600, Robert Hancock wrote:
>> On 11/02/2009 10:28 AM, Mehmet Giritli wrote:
>> > Hello all,
>> >
>> > On some laptops using ATI 3650HD radeon chipsets and 4GB ram (and may be
>> > others as well), it is impossible to start any xserver due to (faulty?)
>> > mtrr setups on the machine. The computer locks up or just gives an
>> > unresponsive black screen. There are various drivers for radeon cards
>> > and the crash occurs in all of these drivers in the very same way!
>> >
>> > This bug seems to occur mostly on Toshiba laptops with ATI graphic
>> > cards. For some people, CONFIG_MTRR_SANITIZER seemed to cure the issue
>> > but made no difference for many others like me.
>> >
>> > RadeonHD people seem to have problems in understanding the nature of
>> > this bug. Please have a look at the threads:
>> >
>> > http://lists.opensuse.org/radeonhd/2009-05/msg00040.html
>> >
>> > and,
>> >
>> > http://bugs.freedesktop.org/show_bug.cgi?id=20645
>> >
>> > for problem reports and dev responses. RadeonHD devs suggest that some
>> > laptops have weird mtrr setups and this must be fixed in the kernel code
>> > and not the driver code.
>>
>> Unfortunately I don't see enough details to be able to tell what lead
>> them to this conclusion. Can you post the output of:
>>
>> lspci -vv
>> cat /proc/mtrr
>
> lspci -vv
> http://bugzilla.kernel.org/attachment.cgi?id=23634
>
> /proc/mtrr when 4GB installed
> http://bugzilla.kernel.org/attachment.cgi?id=23632
>
> /proc/mtrr when 2GB installed
> http://bugzilla.kernel.org/attachment.cgi?id=23633
>
> There is also a bug report that I opened a while back here:
> http://bugzilla.kernel.org/show_bug.cgi?id=14054

So it appears that your machine has an MTRR entry which marks the
first 16MB of the video card's video RAM BAR area as "write-through",
which seems quite clearly wrong. However, all that I would expect to
see this do would be to cause X to be unable to map the BAR as
write-combining (which you can see from dmesg is indeed occurring)
causing a loss of performance. And the same MTRR is there in the 2GB
case as in the 4GB case. So I don't think the question of why it works
with 2GB and not with 4GB is anything to do with MTRRs..

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Faulty MTRR setups in Toshiba laptops crash video drivers
  2009-11-04 23:48     ` Robert Hancock
@ 2009-11-05 11:02       ` Mehmet Giritli
  0 siblings, 0 replies; 5+ messages in thread
From: Mehmet Giritli @ 2009-11-05 11:02 UTC (permalink / raw)
  To: Robert Hancock; +Cc: linux-kernel

On Wed, 2009-11-04 at 17:48 -0600, Robert Hancock wrote:
> On Tue, Nov 3, 2009 at 7:08 AM, Mehmet Giritli <mehmet@giritli.eu> wrote:
> > On Mon, 2009-11-02 at 18:06 -0600, Robert Hancock wrote:
> >> On 11/02/2009 10:28 AM, Mehmet Giritli wrote:
> >> > Hello all,
> >> >
> >> > On some laptops using ATI 3650HD radeon chipsets and 4GB ram (and may be
> >> > others as well), it is impossible to start any xserver due to (faulty?)
> >> > mtrr setups on the machine. The computer locks up or just gives an
> >> > unresponsive black screen. There are various drivers for radeon cards
> >> > and the crash occurs in all of these drivers in the very same way!
> >> >
> >> > This bug seems to occur mostly on Toshiba laptops with ATI graphic
> >> > cards. For some people, CONFIG_MTRR_SANITIZER seemed to cure the issue
> >> > but made no difference for many others like me.
> >> >
> >> > RadeonHD people seem to have problems in understanding the nature of
> >> > this bug. Please have a look at the threads:
> >> >
> >> > http://lists.opensuse.org/radeonhd/2009-05/msg00040.html
> >> >
> >> > and,
> >> >
> >> > http://bugs.freedesktop.org/show_bug.cgi?id=20645
> >> >
> >> > for problem reports and dev responses. RadeonHD devs suggest that some
> >> > laptops have weird mtrr setups and this must be fixed in the kernel code
> >> > and not the driver code.
> >>
> >> Unfortunately I don't see enough details to be able to tell what lead
> >> them to this conclusion. Can you post the output of:
> >>
> >> lspci -vv
> >> cat /proc/mtrr
> >
> > lspci -vv
> > http://bugzilla.kernel.org/attachment.cgi?id=23634
> >
> > /proc/mtrr when 4GB installed
> > http://bugzilla.kernel.org/attachment.cgi?id=23632
> >
> > /proc/mtrr when 2GB installed
> > http://bugzilla.kernel.org/attachment.cgi?id=23633
> >
> > There is also a bug report that I opened a while back here:
> > http://bugzilla.kernel.org/show_bug.cgi?id=14054
> 
> So it appears that your machine has an MTRR entry which marks the
> first 16MB of the video card's video RAM BAR area as "write-through",
> which seems quite clearly wrong. However, all that I would expect to
> see this do would be to cause X to be unable to map the BAR as
> write-combining (which you can see from dmesg is indeed occurring)
> causing a loss of performance. And the same MTRR is there in the 2GB
> case as in the 4GB case. So I don't think the question of why it works
> with 2GB and not with 4GB is anything to do with MTRRs..

I was using vesafb driver for framebuffer splashscreen and after
removing it from the kernel command line, that 16MB mtrr entry is now
gone. And yes, X was very slow at startup before, now that seems to be
rectified. I don't know if thats another bug or not regarding kernel or
the radeonhd driver.

I should thank you and perhaps especially Yinghai Lu for suggesting it
in the above mentioned bug report.

However, removing vesafb did not make any improvements.

Now I'm wondering if radeonhd developers have anything specific to say
about this...

I will ask on the radeonhd list...



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-11-05 11:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-02 16:28 Faulty MTRR setups in Toshiba laptops crash video drivers Mehmet Giritli
2009-11-03  0:06 ` Robert Hancock
2009-11-03 13:08   ` Mehmet Giritli
2009-11-04 23:48     ` Robert Hancock
2009-11-05 11:02       ` Mehmet Giritli

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.