FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 06-18-2012, 05:29 AM
Thomas Schwinge
 
Default Linux kernel crash (3.2.0-2-amd64) when trying to play audio CD

Hi!

On Sat, 16 Jun 2012 14:40:34 +0100, Ben Hutchings <ben@decadent.org.uk> wrote:
> On Sat, 2012-06-16 at 12:14 +0200, Thomas Schwinge wrote:
> > After many others that played with no problems, I just tried playing
> > Guano Apes' audio CD »Proud Like a God« (1997) in Rhythmbox, on my mostly
> > up-to-date Debian GNU/Linux testing system.
> >
> > $ uname -a
> > Linux boole 3.2.0-2-amd64 #1 SMP Mon May 21 17:45:41 UTC 2012 x86_64 GNU/Linux
> >
> > ... which specifically is »linux-image-3.2.0-2-amd64 3.2.18-1«.
> >
> > While "loading" the CD in Rhythmbox, after a few seconds the kernel
> > crashed. I rebooted, tried again, and it crashed again. At
> > <http://schwinge.homeip.net/~thomas/tmp/linux-crash-audio-cd.jpeg> you
> > can find the panic message (low resolution, sorry), pointing to the
> > SCSI/ATA code.
> >
> > Are there any such known issues? Does the panic message give any clue
> > already, or would you want me to reproduce that with debugging symbols,
> > etc.?
>
> Your computer is broken; Machine Check Exception indicates a hardware
> fault.

Hmm, I see, thanks. Nothing the kernel could do to catch that, I
suppose? (Scary that simply putting a regular audio CD into the drive
can crash the kernel.)

> The other text at the top of the screen may help to identify
> which component is at fault.


Grüße,
Thomas
 
Old 06-18-2012, 02:29 PM
Borislav Petkov
 
Default Linux kernel crash (3.2.0-2-amd64) when trying to play audio CD

On Mon, Jun 18, 2012 at 07:28:07AM +0200, Thomas Schwinge wrote:
> > Let me guess: AMD K8?
>
> Correct.
>
> > Also, can I get /proc/cpuinfo please?
>
> $ cat < /proc/cpuinfo
> processor : 0

Ok, a single core.

> vendor_id : AuthenticAMD
> cpu family : 15
> model : 47
> model name : AMD Sempron(tm) Processor 3000+
> stepping : 2
> cpu MHz : 1000.000
> cache size : 128 KB
> fpu : yes
> fpu_exception : yes
> cpuid level : 1
> wp : yes
> flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt lm 3dnowext 3dnow up rep_good nopl pni lahf_lm
> bogomips : 2000.16
> TLB size : 1024 4K pages
> clflush size : 64
> cache_alignment : 64
> address sizes : 40 bits physical, 48 bits virtual
> power management: ts fid vid ttp tm stc

Ok, can you do the following:

$ setpci -s 18.0 0x68.l

and

$ rdmsr 0xc001001f

and send me the output of both commands. Btw, rdmsr should be in a
package called msr-tools, at least on Debian.

Thanks.

--
Regards/Gruss,
Boris.

Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach
GM: Alberto Bozzo
Reg: Dornach, Landkreis Muenchen
HRB Nr. 43632 WEEE Registernr: 129 19551


--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120618142900.GA9710@aftab.osrc.amd.com">http://lists.debian.org/20120618142900.GA9710@aftab.osrc.amd.com
 
Old 06-18-2012, 02:52 PM
Thomas Schwinge
 
Default Linux kernel crash (3.2.0-2-amd64) when trying to play audio CD

Hi Borislav!

First, thanks for helping!

On Mon, 18 Jun 2012 16:29:00 +0200, Borislav Petkov <bp@amd64.org> wrote:
> On Mon, Jun 18, 2012 at 07:28:07AM +0200, Thomas Schwinge wrote:
> > > Let me guess: AMD K8?
> >
> > Correct.
> >
> > > Also, can I get /proc/cpuinfo please?
> >
> > $ cat < /proc/cpuinfo
> > processor : 0
>
> Ok, a single core.
>
> > vendor_id : AuthenticAMD
> > cpu family : 15
> > model : 47
> > model name : AMD Sempron(tm) Processor 3000+
> > stepping : 2
> > cpu MHz : 1000.000
> > cache size : 128 KB
> > fpu : yes
> > fpu_exception : yes
> > cpuid level : 1
> > wp : yes
> > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt lm 3dnowext 3dnow up rep_good nopl pni lahf_lm
> > bogomips : 2000.16
> > TLB size : 1024 4K pages
> > clflush size : 64
> > cache_alignment : 64
> > address sizes : 40 bits physical, 48 bits virtual
> > power management: ts fid vid ttp tm stc
>
> Ok, can you do the following:
>
> $ setpci -s 18.0 0x68.l

$ sudo setpci -s 18.0 0x68.l
0f00cc0f

> $ rdmsr 0xc001001f

$ sudo modprobe msr
$ sudo rdmsr 0xc001001f
8


Grüße,
Thomas
 
Old 06-18-2012, 03:51 PM
Borislav Petkov
 
Default Linux kernel crash (3.2.0-2-amd64) when trying to play audio CD

On Mon, Jun 18, 2012 at 04:52:36PM +0200, Thomas Schwinge wrote:
> Hi Borislav!
>
> First, thanks for helping!

Sure, np! :-)

> > Ok, can you do the following:
> >
> > $ setpci -s 18.0 0x68.l
>
> $ sudo setpci -s 18.0 0x68.l
> 0f00cc0f
>
> > $ rdmsr 0xc001001f
>
> $ sudo modprobe msr
> $ sudo rdmsr 0xc001001f
> 8

Ok, this is a BIOS bug - we have a recommendation about what the BIOS
should do but yours doesn't do it. Are you sure you're using the latest
BIOS for your motherboard?

Can you check for updates and if you get a newer version, can you update
your BIOS and do the two commands above?

If there's no newer BIOS, we can try applying the workaround at boot in
an init script to fix your issue.

--
Regards/Gruss,
Boris.

Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach
GM: Alberto Bozzo
Reg: Dornach, Landkreis Muenchen
HRB Nr. 43632 WEEE Registernr: 129 19551


--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120618155141.GF8378@aftab.osrc.amd.com">http://lists.debian.org/20120618155141.GF8378@aftab.osrc.amd.com
 
Old 09-07-2012, 09:14 AM
Thomas Schwinge
 
Default Linux kernel crash (3.2.0-2-amd64) when trying to play audio CD

Hi Borislav!

I'm sorry for the late answer.


On Mon, 18 Jun 2012 17:51:41 +0200, Borislav Petkov <bp@amd64.org> wrote:
> On Mon, Jun 18, 2012 at 04:52:36PM +0200, Thomas Schwinge wrote:
> > > Ok, can you do the following:
> > >
> > > $ setpci -s 18.0 0x68.l
> >
> > $ sudo setpci -s 18.0 0x68.l
> > 0f00cc0f
> >
> > > $ rdmsr 0xc001001f
> >
> > $ sudo modprobe msr
> > $ sudo rdmsr 0xc001001f
> > 8
>
> Ok, this is a BIOS bug - we have a recommendation about what the BIOS
> should do but yours doesn't do it. Are you sure you're using the latest
> BIOS for your motherboard?
>
> Can you check for updates and if you get a newer version, can you update
> your BIOS and do the two commands above?

I have now finally been able to check this, and yes, I'm already using
the latest version of the BIOS, which is Phoenix cME FirstBIOS Desktop
Pro version 5.00 R1.07.2264.A1 (a.k.a. 5.00.1.07, 25.04.2006) for
Fujitsu Siemens Esprimo E5600, mainboard D2264-A1, CPU AMD Sempron 3000+.

> If there's no newer BIOS, we can try applying the workaround at boot in
> an init script to fix your issue.

How'd that be done?


Grüße,
Thomas
 
Old 09-13-2012, 12:58 PM
Borislav Petkov
 
Default Linux kernel crash (3.2.0-2-amd64) when trying to play audio CD

On Fri, Sep 07, 2012 at 11:14:33AM +0200, Thomas Schwinge wrote:
> I have now finally been able to check this, and yes, I'm already using
> the latest version of the BIOS, which is Phoenix cME FirstBIOS Desktop
> Pro version 5.00 R1.07.2264.A1 (a.k.a. 5.00.1.07, 25.04.2006) for
> Fujitsu Siemens Esprimo E5600, mainboard D2264-A1, CPU AMD Sempron 3000+.

Ok.

> > If there's no newer BIOS, we can try applying the workaround at boot in
> > an init script to fix your issue.
>
> How'd that be done?

Well, you need to run the following script when the machine boots. I.e.,
you'd probably have to add it to /etc/init.d/ and make it run at some
runlevel, sometime early-ish, before a user can login.

Here's the script, let me know how it goes:

--
#!/bin/bash
# assuming a single CPU system

nb_cfg=0xc001001f
ht_tr_ctl=0x68


val="0x"$(rdmsr $nb_cfg)
val=$(( $val | (1 << 32) ))
val=$(printf "0x%08x" $val)
wrmsr $nb_cfg $val


val="0x"$(setpci -s 18.0 $ht_tr_ctl.l)
val=$(( $val | (1 << 21) ))
val=$(printf "0x%08x" $val)
setpci -s 18.0 $ht_tr_ctl.l=$val

echo "Erratum 169 workaround applied."
---

HTH.

--
Regards/Gruss,
Boris.

Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach
GM: Alberto Bozzo
Reg: Dornach, Landkreis Muenchen
HRB Nr. 43632 WEEE Registernr: 129 19551


--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120913125825.GB19691@aftab.osrc.amd.com">http://lists.debian.org/20120913125825.GB19691@aftab.osrc.amd.com
 
Old 09-17-2012, 05:23 PM
Borislav Petkov
 
Default Linux kernel crash (3.2.0-2-amd64) when trying to play audio CD

On Thu, Sep 13, 2012 at 02:58:25PM +0200, Borislav Petkov wrote:
> Here's the script, let me know how it goes:

Here's a more correct version. I'm not saying yours won't work based
on the rdmsr and setpci output on your box, but here's a version which
should pay attention to one other workaround and work on all K8s.

HTH.

--
#!/bin/bash
# assuming a single CPU system

nb_cfg=0xc001001f
ht_tr_ctl=0x68


val="0x"$(rdmsr $nb_cfg)

# revert E131 workaround
val=$(( $val & ~(1 << 20) ))

val=$(( $val | (1 << 32) ))
val=$(printf "0x%08x" $val)
wrmsr $nb_cfg $val


val="0x"$(setpci -s 18.0 $ht_tr_ctl.l)

# clear bits [22:21]
val=$(( $val & ~( 0x3 << 21) ))

val=$(( $val | (1 << 21) ))
val=$(printf "0x%08x" $val)
setpci -s 18.0 $ht_tr_ctl.l=$val

echo "Erratum 169 workaround applied."
--

--
Regards/Gruss,
Boris.

Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach
GM: Alberto Bozzo
Reg: Dornach, Landkreis Muenchen
HRB Nr. 43632 WEEE Registernr: 129 19551


--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120917172345.GH13879@aftab.osrc.amd.com">http://lists.debian.org/20120917172345.GH13879@aftab.osrc.amd.com
 
Old 09-22-2012, 11:53 AM
Thomas Schwinge
 
Default Linux kernel crash (3.2.0-2-amd64) when trying to play audio CD

Hi Borislav!

On Mon, 17 Sep 2012 19:23:45 +0200, Borislav Petkov <bp@amd64.org> wrote:
> On Thu, Sep 13, 2012 at 02:58:25PM +0200, Borislav Petkov wrote:
> > Here's the script, let me know how it goes:
>
> Here's a more correct version. I'm not saying yours won't work based
> on the rdmsr and setpci output on your box, but here's a version which
> should pay attention to one other workaround and work on all K8s.

Thanks for that. I invoke it from /etc/rc.local, and then get:

$ sudo setpci -s 18.0 0x68.l
0f20cc0f
$ sudo rdmsr 0xc001001f
100000008

Previously that was:

$ sudo setpci -s 18.0 0x68.l
0f00cc0f
$ sudo rdmsr 0xc001001f
8

However, putting in that one audio CD still crashes the machine:
<http://schwinge.homeip.net/~thomas/tmp/linux-crash-audio-cd-2.jpeg>.
Original (identical, from a quick glance) MCE is at
<http://schwinge.homeip.net/~thomas/tmp/linux-crash-audio-cd.jpeg>.


Grüße,
Thomas
 

Thread Tools




All times are GMT. The time now is 04:25 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org