public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.4.20 amd speculative caching
@ 2003-02-19 16:28 Sowadski, Craig Harold (UMR-Student)
  0 siblings, 0 replies; 10+ messages in thread
From: Sowadski, Craig Harold (UMR-Student) @ 2003-02-19 16:28 UTC (permalink / raw)
  To: linux-kernel; +Cc: Sowadski, Craig Harold (UMR-Student)

I have recently upgraded to an AMD processor that is exhibiting the
problems with the AMD speculative caching bug. Kernel 2.4.19 seems to
fix the problem with the temporary work-around (adv-spec-cache patch). I
have noticed that the patch has been removed from 2.4.20 and I am
wondering if there is some other mechanism that is supposed to address
this issue. Currently I have a  2.4.20 kernel with same configuration as
my 2.4.19 and the problem seems to have reappeared.
			Thanks for any information.
				(please CC my address on reply) 
				Craig Sowadski (sowadski@umr.edu)
 

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

* Re: 2.4.20 amd speculative caching
       [not found] <A5D66E6B6F478B48A3CEF22AA4B9FCA3012E54@umr-mail1.umr.edu.suse.lists.linux.kernel>
@ 2003-02-19 17:53 ` Andi Kleen
  0 siblings, 0 replies; 10+ messages in thread
From: Andi Kleen @ 2003-02-19 17:53 UTC (permalink / raw)
  To: Sowadski, Craig Harold (UMR-Student); +Cc: linux-kernel

"Sowadski, Craig Harold (UMR-Student)" <sowadski@umr.edu> writes:

> I have recently upgraded to an AMD processor that is exhibiting the
> problems with the AMD speculative caching bug. Kernel 2.4.19 seems to

It's actually not an AMD bug, but an Linux bug that assumed undefined x86
behaviour to behave well. 

> fix the problem with the temporary work-around (adv-spec-cache patch). I
> have noticed that the patch has been removed from 2.4.20 and I am
> wondering if there is some other mechanism that is supposed to address
> this issue. Currently I have a  2.4.20 kernel with same configuration as

Yes, there is a new mechanism to address the problem the adv-spec-cache
patch solved. It enforces that there are not conflicting cache attributes
for memory mappings.

> my 2.4.19 and the problem seems to have reappeared.

What problem exactly? And does mem=nopentium help ?

-Andi

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

* RE: 2.4.20 amd speculative caching
@ 2003-02-19 19:13 Sowadski, Craig Harold (UMR-Student)
  2003-02-20 16:53 ` Dave Jones
  0 siblings, 1 reply; 10+ messages in thread
From: Sowadski, Craig Harold (UMR-Student) @ 2003-02-19 19:13 UTC (permalink / raw)
  To: Andi Kleen; +Cc: linux-kernel

Sorry, I didn't mean to state that the bug was in the processor. 

The systems consistently hard locks in any accelerated application. The
mem=nopentium does not seem to help at all.

Are there any dependencies that must be taken care of to implement the
new fix? Also, should I be seeing any dmesg output from this new
implementation?

Are there any debugging techniques I could use to track the cause? (I
have no log outputs due to hard lock)

If it helps, here is my hardware config:

	AMD Duron 1300MHZ
	MSI K7T Turbo-2
	ATI Radeon 7500 w/64mb
	Redhat 8.0
Thanks again for any information,
	
	Craig Sowadski (sowadski@umr.edu)
	

-----Original Message-----
From: Andi Kleen [mailto:ak@suse.de] 
Sent: Wednesday, February 19, 2003 11:54 AM
To: Sowadski, Craig Harold (UMR-Student)
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.4.20 amd speculative caching

"Sowadski, Craig Harold (UMR-Student)" <sowadski@umr.edu> writes:

> I have recently upgraded to an AMD processor that is exhibiting the
> problems with the AMD speculative caching bug. Kernel 2.4.19 seems to

It's actually not an AMD bug, but an Linux bug that assumed undefined
x86
behaviour to behave well. 

> fix the problem with the temporary work-around (adv-spec-cache patch).
I
> have noticed that the patch has been removed from 2.4.20 and I am
> wondering if there is some other mechanism that is supposed to address
> this issue. Currently I have a  2.4.20 kernel with same configuration
as

Yes, there is a new mechanism to address the problem the adv-spec-cache
patch solved. It enforces that there are not conflicting cache
attributes
for memory mappings.

> my 2.4.19 and the problem seems to have reappeared.

What problem exactly? And does mem=nopentium help ?

-Andi

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

* RE: 2.4.20 amd speculative caching
@ 2003-02-20 16:49 Randal, Phil
  0 siblings, 0 replies; 10+ messages in thread
From: Randal, Phil @ 2003-02-20 16:49 UTC (permalink / raw)
  To: Sowadski, Craig Harold (UMR-Student); +Cc: linux-kernel

According to Richard Brunner of AMD's email to the list dated June 11, 2002,
the cache attribute bug only affected Athlon XPs and MPs, so that can't be
the problem here, can it?

Cheers,

Phil

---------------------------------------------
Phil Randal
Network Engineer
Herefordshire Council
Hereford, UK 

> -----Original Message-----
> From: Dave Jones [mailto:davej@codemonkey.org.uk]
> Sent: 20 February 2003 16:53
> To: Sowadski, Craig Harold (UMR-Student)
> Cc: Andi Kleen; linux-kernel@vger.kernel.org
> Subject: Re: 2.4.20 amd speculative caching
> 
> 
> On Wed, Feb 19, 2003 at 01:13:28PM -0600, Sowadski, Craig 
> Harold (UMR-Student) wrote:
> 
>  > If it helps, here is my hardware config:
>  > 
>  > 	AMD Duron 1300MHZ
>  > 	MSI K7T Turbo-2
>  > 	ATI Radeon 7500 w/64mb
>  > 	Redhat 8.0
> 
> Are you using the ATi firegl drivers ? If so, thats likely the
> problem. (They ship an agpgart based upon 2.4.16 which lacks
> the fixes needed).
> 
> 		Dave
> 
> -- 
> | Dave Jones.        http://www.codemonkey.org.uk
> | SuSE Labs
> -
> To unsubscribe from this list: send the line "unsubscribe 
> linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 

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

* Re: 2.4.20 amd speculative caching
  2003-02-19 19:13 2.4.20 amd speculative caching Sowadski, Craig Harold (UMR-Student)
@ 2003-02-20 16:53 ` Dave Jones
  0 siblings, 0 replies; 10+ messages in thread
From: Dave Jones @ 2003-02-20 16:53 UTC (permalink / raw)
  To: Sowadski, Craig Harold (UMR-Student); +Cc: Andi Kleen, linux-kernel

On Wed, Feb 19, 2003 at 01:13:28PM -0600, Sowadski, Craig Harold (UMR-Student) wrote:

 > If it helps, here is my hardware config:
 > 
 > 	AMD Duron 1300MHZ
 > 	MSI K7T Turbo-2
 > 	ATI Radeon 7500 w/64mb
 > 	Redhat 8.0

Are you using the ATi firegl drivers ? If so, thats likely the
problem. (They ship an agpgart based upon 2.4.16 which lacks
the fixes needed).

		Dave

-- 
| Dave Jones.        http://www.codemonkey.org.uk
| SuSE Labs

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

* Re: 2.4.20 amd speculative caching
@ 2003-02-20 17:07 Alastair Stevens
  0 siblings, 0 replies; 10+ messages in thread
From: Alastair Stevens @ 2003-02-20 17:07 UTC (permalink / raw)
  To: linux-kernel

> According to Richard Brunner of AMD's email to the list dated June 11,
> 2002, the cache attribute bug only affected Athlon XPs and MPs, so
> that can't be the problem here, can it?

I think it can - I believe Durons > 1GHz use the "Palomino" core (just
with less cache), so they would have the same issues as the Athlon XP.
Earlier Durons used the "Thunderbird" core if I remember rightly.

Cheers
Alastair

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

* RE: 2.4.20 amd speculative caching
@ 2003-02-20 18:48 Sowadski, Craig Harold (UMR-Student)
  0 siblings, 0 replies; 10+ messages in thread
From: Sowadski, Craig Harold (UMR-Student) @ 2003-02-20 18:48 UTC (permalink / raw)
  To: Sowadski, Craig Harold (UMR-Student); +Cc: linux-kernel

AMD's website has some documentation that says the morgan core durons
are affected. 

http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/
26698.pdf

I am using only stock linus kernel driver for the agpgart and radeon.
Also, the system has now started locking up with 2.4.19 so I installed
WINDOWS (sorry) to see if it showed similar problems and it did (even
with the win2000 agp update). I have swaped the PS, RAM, and video card
with the same problems. I plan on swapping the MB with an identical
replacement to see if that helps. I will let you know if I conclude it
to be a hardware or software problem when I get some more parts to swap.
Sorry for bothering with what might be a hardware problem.

		Thanks for all the help!!
		Craig Sowadski (sowadski@umr.edu)
    

-----Original Message-----
From: Randal, Phil [mailto:prandal@herefordshire.gov.uk] 
Sent: Thursday, February 20, 2003 10:50 AM
To: Sowadski, Craig Harold (UMR-Student)
Cc: linux-kernel@vger.kernel.org
Subject: RE: 2.4.20 amd speculative caching

According to Richard Brunner of AMD's email to the list dated June 11,
2002,
the cache attribute bug only affected Athlon XPs and MPs, so that can't
be
the problem here, can it?

Cheers,

Phil

---------------------------------------------
Phil Randal
Network Engineer
Herefordshire Council
Hereford, UK 

> -----Original Message-----
> From: Dave Jones [mailto:davej@codemonkey.org.uk]
> Sent: 20 February 2003 16:53
> To: Sowadski, Craig Harold (UMR-Student)
> Cc: Andi Kleen; linux-kernel@vger.kernel.org
> Subject: Re: 2.4.20 amd speculative caching
> 
> 
> On Wed, Feb 19, 2003 at 01:13:28PM -0600, Sowadski, Craig 
> Harold (UMR-Student) wrote:
> 
>  > If it helps, here is my hardware config:
>  > 
>  > 	AMD Duron 1300MHZ
>  > 	MSI K7T Turbo-2
>  > 	ATI Radeon 7500 w/64mb
>  > 	Redhat 8.0
> 
> Are you using the ATi firegl drivers ? If so, thats likely the
> problem. (They ship an agpgart based upon 2.4.16 which lacks
> the fixes needed).
> 
> 		Dave
> 
> -- 
> | Dave Jones.        http://www.codemonkey.org.uk
> | SuSE Labs
> -
> To unsubscribe from this list: send the line "unsubscribe 
> linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 

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

* RE: 2.4.20 amd speculative caching
@ 2003-02-22  0:11 richard.brunner
  0 siblings, 0 replies; 10+ messages in thread
From: richard.brunner @ 2003-02-22  0:11 UTC (permalink / raw)
  To: prandal, sowadski; +Cc: linux-kernel

The best and reliable way to go is by the output of CPUID
(or cat /proc/cpuinfo)

if (((family == 6)  && (model >= 6)) || (family == 15)) {
    printk(KERN_INFO "Advanced speculative caching feature present\n");
    return 1;
}

If your AMD processor meets the above CPUID family and model, then
you need the patch. The decoder ring from any random
Product name to CPUID family and model number is not yet available ;-)

-Rich ...
[richard brunner amd.com -- AMD]
[Senior Member, Technical Staff] 

> -----Original Message-----
> From: Randal, Phil [mailto:prandal@herefordshire.gov.uk] 
> Sent: Thursday, February 20, 2003 8:50 AM
> To: Sowadski, Craig Harold (UMR-Student)
> Cc: linux-kernel@vger.kernel.org
> Subject: RE: 2.4.20 amd speculative caching
> 
> 
> According to Richard Brunner of AMD's email to the list dated 
> June 11, 2002,
> the cache attribute bug only affected Athlon XPs and MPs, so 
> that can't be
> the problem here, can it?
> 
> Cheers,
> 
> Phil
> 
> ---------------------------------------------
> Phil Randal
> Network Engineer
> Herefordshire Council
> Hereford, UK 
> 
> > -----Original Message-----
> > From: Dave Jones [mailto:davej@codemonkey.org.uk]
> > Sent: 20 February 2003 16:53
> > To: Sowadski, Craig Harold (UMR-Student)
> > Cc: Andi Kleen; linux-kernel@vger.kernel.org
> > Subject: Re: 2.4.20 amd speculative caching
> > 
> > 
> > On Wed, Feb 19, 2003 at 01:13:28PM -0600, Sowadski, Craig 
> > Harold (UMR-Student) wrote:
> > 
> >  > If it helps, here is my hardware config:
> >  > 
> >  > 	AMD Duron 1300MHZ
> >  > 	MSI K7T Turbo-2
> >  > 	ATI Radeon 7500 w/64mb
> >  > 	Redhat 8.0
> > 
> > Are you using the ATi firegl drivers ? If so, thats likely the
> > problem. (They ship an agpgart based upon 2.4.16 which lacks
> > the fixes needed).
> > 
> > 		Dave
> > 
> > -- 
> > | Dave Jones.        http://www.codemonkey.org.uk
> > | SuSE Labs
> > -
> > To unsubscribe from this list: send the line "unsubscribe 
> > linux-kernel" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at  http://www.tux.org/lkml/
> > 
> -
> To unsubscribe from this list: send the line "unsubscribe 
> linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 


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

* Re: 2.4.20 amd speculative caching
       [not found] <99F2150714F93F448942F9A9F112634C013857BF@txexmtae.amd.com.suse.lists.linux.kernel>
@ 2003-02-22  5:25 ` Andi Kleen
  0 siblings, 0 replies; 10+ messages in thread
From: Andi Kleen @ 2003-02-22  5:25 UTC (permalink / raw)
  To: richard.brunner; +Cc: prandal, sowadski, linux-kernel

richard.brunner@amd.com writes:

> The best and reliable way to go is by the output of CPUID
> (or cat /proc/cpuinfo)
> 
> if (((family == 6)  && (model >= 6)) || (family == 15)) {
>     printk(KERN_INFO "Advanced speculative caching feature present\n");
>     return 1;
> }
> 
> If your AMD processor meets the above CPUID family and model, then
> you need the patch. The decoder ring from any random
> Product name to CPUID family and model number is not yet available ;-)
> 
When you have such a CPU you either need the old patch or the new patch
for change_page_attr which is in since 2.4.20 and fixes the underlying
bug of linux using conflicting cache attributes. The change_page_attr
solution is much faster because it doesn't prevent the kernel from
using 4MB pages (= less tlb misses) and also of course because it won't
cripple your CPU by disabling hardware prefetch.

However when the change_page_attr() approach is used you need to make
sure that the the agpgart driver that comes with the kernel is used
(which actually calls change_page_attr). Unfortunately it looks like
some versions of the ATI binary 3d driver install their own agpgart driver
and they don't have the change_page_attr() fixes.

So when you use the ATI driver with 2.4.20+ you need to make sure you
don't use their agpgart driver. Better would be to get ATI to fix their
agpgart included or better not ship an own agpgart at all for these
kernels.

Really there isn't much the linux kernel can do about third
party vendors replacing working included drivers with buggy own drivers.

If someone has contacts at ATI it would be good to ask them
to release a new driver with this issue fixed.

-Andi

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

* RE: 2.4.20 amd speculative caching
@ 2003-02-24 19:32 Sowadski, Craig Harold (UMR-Student)
  0 siblings, 0 replies; 10+ messages in thread
From: Sowadski, Craig Harold (UMR-Student) @ 2003-02-24 19:32 UTC (permalink / raw)
  To: Sowadski, Craig Harold (UMR-Student); +Cc: linux-kernel

It's seems that I was experiencing hardware problems. I swapped
everything on to a new board and it worked fine. The weird thing is that
I swapped everything back and the old board now works fine now as well!
It is hard for me to imagine that reseating everything fixed it, because
I did that multiple times before.
		Thanks for all the help!
                     Craig (sowadski@umr.edu)
  

-----Original Message-----
From: Sowadski, Craig Harold (UMR-Student) 
Sent: Thursday, February 20, 2003 12:49 PM
To: Sowadski, Craig Harold (UMR-Student)
Cc: linux-kernel@vger.kernel.org
Subject: RE: 2.4.20 amd speculative caching

AMD's website has some documentation that says the morgan core durons
are affected. 

http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/
26698.pdf

I am using only stock linus kernel driver for the agpgart and radeon.
Also, the system has now started locking up with 2.4.19 so I installed
WINDOWS (sorry) to see if it showed similar problems and it did (even
with the win2000 agp update). I have swaped the PS, RAM, and video card
with the same problems. I plan on swapping the MB with an identical
replacement to see if that helps. I will let you know if I conclude it
to be a hardware or software problem when I get some more parts to swap.
Sorry for bothering with what might be a hardware problem.

		Thanks for all the help!!
		Craig Sowadski (sowadski@umr.edu)
    

-----Original Message-----
From: Randal, Phil [mailto:prandal@herefordshire.gov.uk] 
Sent: Thursday, February 20, 2003 10:50 AM
To: Sowadski, Craig Harold (UMR-Student)
Cc: linux-kernel@vger.kernel.org
Subject: RE: 2.4.20 amd speculative caching

According to Richard Brunner of AMD's email to the list dated June 11,
2002,
the cache attribute bug only affected Athlon XPs and MPs, so that can't
be
the problem here, can it?

Cheers,

Phil

---------------------------------------------
Phil Randal
Network Engineer
Herefordshire Council
Hereford, UK 

> -----Original Message-----
> From: Dave Jones [mailto:davej@codemonkey.org.uk]
> Sent: 20 February 2003 16:53
> To: Sowadski, Craig Harold (UMR-Student)
> Cc: Andi Kleen; linux-kernel@vger.kernel.org
> Subject: Re: 2.4.20 amd speculative caching
> 
> 
> On Wed, Feb 19, 2003 at 01:13:28PM -0600, Sowadski, Craig 
> Harold (UMR-Student) wrote:
> 
>  > If it helps, here is my hardware config:
>  > 
>  > 	AMD Duron 1300MHZ
>  > 	MSI K7T Turbo-2
>  > 	ATI Radeon 7500 w/64mb
>  > 	Redhat 8.0
> 
> Are you using the ATi firegl drivers ? If so, thats likely the
> problem. (They ship an agpgart based upon 2.4.16 which lacks
> the fixes needed).
> 
> 		Dave
> 
> -- 
> | Dave Jones.        http://www.codemonkey.org.uk
> | SuSE Labs
> -
> To unsubscribe from this list: send the line "unsubscribe 
> linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 

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

end of thread, other threads:[~2003-02-24 19:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-19 19:13 2.4.20 amd speculative caching Sowadski, Craig Harold (UMR-Student)
2003-02-20 16:53 ` Dave Jones
  -- strict thread matches above, loose matches on Subject: below --
2003-02-24 19:32 Sowadski, Craig Harold (UMR-Student)
     [not found] <99F2150714F93F448942F9A9F112634C013857BF@txexmtae.amd.com.suse.lists.linux.kernel>
2003-02-22  5:25 ` Andi Kleen
2003-02-22  0:11 richard.brunner
2003-02-20 18:48 Sowadski, Craig Harold (UMR-Student)
2003-02-20 17:07 Alastair Stevens
2003-02-20 16:49 Randal, Phil
     [not found] <A5D66E6B6F478B48A3CEF22AA4B9FCA3012E54@umr-mail1.umr.edu.suse.lists.linux.kernel>
2003-02-19 17:53 ` Andi Kleen
2003-02-19 16:28 Sowadski, Craig Harold (UMR-Student)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox