Re: AMD AGP Bug

2002-02-04 Thread Terry Lambert
Narvi wrote: > I wasn't aware that I was contradicting Peter 8-) Sorry; looked like it to me... 8-). > It may even well be possible to get different results with aligned vs. > misaligned reads and writes, or a proper mix thereof. It may be possible > to build a model to track down the "what is r

Re: AMD AGP Bug

2002-02-04 Thread Narvi
On Mon, 4 Feb 2002, Terry Lambert wrote: > Narvi wrote: > > Speculative writes can only happen to pages in the TLB (so you don't get > > speculative TLB misses and replacements), not having a large amount of 4M > > pages around in the TLB means that addresses covered by these can't > > possibly

Re: AMD AGP Bug

2002-02-04 Thread Terry Lambert
Narvi wrote: > Speculative writes can only happen to pages in the TLB (so you don't get > speculative TLB misses and replacements), not having a large amount of 4M > pages around in the TLB means that addresses covered by these can't > possibly be involved in speculative writes. > > I personaly s

Re: AMD AGP Bug

2002-02-04 Thread Narvi
On Fri, 1 Feb 2002, Peter Wemm wrote: > - AMD write cache allocation due to speculative writes being cancelled and > then written back later vs no cache snooping on AGP regions. I'm somewhat > perplexed about this issue, there's lots of conflicting info going around, > a good deal of it which

Re: AMD AGP Bug

2002-02-01 Thread Terry Lambert
Erik Trulsson wrote: > > The Athlon rewriting same value to cacheable memory under the knees of > > programmers looks a severe issue to me if it is true. Not only AGP memory > > can be affected. What about SMP, MMIO (if some cacheable mapping exists), > > etc...? > > I am not familiar with the ac

Re: AMD AGP Bug

2002-02-01 Thread Gérard Roudier
On Fri, 1 Feb 2002, Erik Trulsson wrote: > On Thu, Jan 31, 2002 at 09:32:48PM +0100, Gérard Roudier wrote: > > > > > > On Thu, 31 Jan 2002, Jason Evans wrote: > > > > > On Wed, Jan 30, 2002 at 11:14:48PM +0100, Gérard Roudier wrote: > > > > > > > > Linux can be fixed, but the useless writes of

Re: AMD AGP Bug

2002-02-01 Thread Erik Trulsson
On Thu, Jan 31, 2002 at 09:32:48PM +0100, Gérard Roudier wrote: > > > On Thu, 31 Jan 2002, Jason Evans wrote: > > > On Wed, Jan 30, 2002 at 11:14:48PM +0100, Gérard Roudier wrote: > > > > > > Linux can be fixed, but the useless writes of the existing Athlons from > > > the very fast cache to th

Re: AMD AGP Bug

2002-02-01 Thread Gérard Roudier
On Thu, 31 Jan 2002, Terry Lambert wrote: > "Cameron, Frank" wrote: > > From what was posted on the linux-kernel list the problem is the OS > > doing the wrong thing not the hardware. I originally asked the > > question (albeit not worded as clearly as I should have) because if > > Microsoft a

Re: AMD AGP Bug

2002-02-01 Thread Gérard Roudier
On Thu, 31 Jan 2002, Jason Evans wrote: > On Wed, Jan 30, 2002 at 11:14:48PM +0100, Gérard Roudier wrote: > > > > Linux can be fixed, but the useless writes of the existing Athlons from > > the very fast cache to the relatively very slow memory cannot. And all > > Athlon users may well pay this

Re: AMD AGP Bug

2002-02-01 Thread Terry Lambert
Peter Wemm wrote: > I'm a little confused as to which bugs are which that we're talking > about now. Which is the one that you're trying to sell the info for? I'm not really trying to sell the fix; it's that I'm not willing to give it away when it's no benefit to do so; I'd need a bribe. Kind o

Re: AMD AGP Bug

2002-02-01 Thread Peter Wemm
Terry Lambert wrote: > Glendon Gross wrote: > > That's right, guys! This is FreeBSD after all... so Mr. Lambert is > > entitled to charge 10K for that bugfix code if he wants. In fact he is > > "Free" to do so. But it's a little pricy for me, although perhaps not for > > AMD if it means they ca

Re: AMD AGP Bug

2002-02-01 Thread Terry Lambert
Glendon Gross wrote: > That's right, guys! This is FreeBSD after all... so Mr. Lambert is > entitled to charge 10K for that bugfix code if he wants. In fact he is > "Free" to do so. But it's a little pricy for me, although perhaps not for > AMD if it means they can fix their cache-paging proble

Re: AMD AGP Bug

2002-01-31 Thread Terry Lambert
Steve Kargl wrote: > > This sounds cool. > > > > Do you have references to the page attribute stuff? The > > books I have here don't discuss it; the only thing I see > > are 3 bits (9,10,11) that are "available" in the PDE and > > PTE? > > > > Well, twice in this thread you've offered info for >

Re: AMD AGP Bug

2002-01-31 Thread Steve Kargl
On Thu, Jan 31, 2002 at 07:22:25PM -0800, Terry Lambert wrote: > Peter Wemm wrote: > > We need to use the PAT cpu_features feature. This gives us 8 page attribute > > modes instead of simple no-cache / writethrough flags. We can (and must) > > control more carefully the speculative hardware pref

Re: AMD AGP Bug

2002-01-31 Thread Terry Lambert
Peter Wemm wrote: > > No. FreeBSD does not make active use of 4M pages for anything > > other than the initial kernel text and data, which is obvious, > > if you look at /sys/i386/machdep.c. > > Actually, it is obvious if you actually do look at the pmap.c that we *do* > use 4MB pages for device

Re: AMD AGP Bug

2002-01-31 Thread Terry Lambert
Peter Wemm wrote: > We need to use the PAT cpu_features feature. This gives us 8 page attribute > modes instead of simple no-cache / writethrough flags. We can (and must) > control more carefully the speculative hardware prefetch, for example. > > I've been thinking about this with the pmap rev

Re: AMD AGP Bug

2002-01-31 Thread Peter Wemm
th Culver [mailto:[EMAIL PROTECTED]] > > > Sent: Thursday, January 31, 2002 10:42 AM > > > To: Terry Lambert > > > Cc: David Malone; Cameron, Frank; '[EMAIL PROTECTED]'; > > > '[EMAIL PROTECTED]' > > > Subject: Re: AMD AGP Bug >

Re: AMD AGP Bug

2002-01-31 Thread Peter Wemm
Terry Lambert wrote: > "Cameron, Frank" wrote: > > From what was posted on the linux-kernel list the problem is the OS > > doing the wrong thing not the hardware. I originally asked the > > question (albeit not worded as clearly as I should have) because if > > Microsoft and Linux programmers mad

Re: AMD AGP Bug

2002-01-31 Thread Kenneth Culver
I was under the impression that they were writing into the cache not out of it... I really need to read that article again :-D Ken On Thu, 31 Jan 2002, Jason Evans wrote: > On Wed, Jan 30, 2002 at 11:14:48PM +0100, Gérard Roudier wrote: > > > > Linux can be fixed, but the useless writes of the

Re: AMD AGP Bug

2002-01-31 Thread Jason Evans
On Wed, Jan 30, 2002 at 11:14:48PM +0100, Gérard Roudier wrote: > > Linux can be fixed, but the useless writes of the existing Athlons from > the very fast cache to the relatively very slow memory cannot. And all > Athlon users may well pay this penalty under any OS... unless we want to > disabl

RE: AMD AGP Bug

2002-01-31 Thread Kenneth Culver
; > -Original Message- > > > > From: Kenneth Culver [mailto:[EMAIL PROTECTED]] > > > > Sent: Thursday, January 31, 2002 10:42 AM > > > > To: Terry Lambert > > > > Cc: David Malone; Cameron, Frank; '[EMAIL PROTECTED]'; > > > > &#x

Re: AMD AGP Bug

2002-01-31 Thread Terry Lambert
"Cameron, Frank" wrote: > From what was posted on the linux-kernel list the problem is the OS > doing the wrong thing not the hardware. I originally asked the > question (albeit not worded as clearly as I should have) because if > Microsoft and Linux programmers made the same mistake, might > Fre

Re: AMD AGP Bug

2002-01-31 Thread Terry Lambert
Kenneth Culver wrote: > > There's actually a seperate TLB bug, but FreeBSD doesn't > > trigger that one, either (Linux can tickle it, when there > > are certain specific circumstances met). > > Well, I think I know what you're talking about, linux allocates agpgart > memory without setting a "non-

RE: AMD AGP Bug

2002-01-31 Thread Gérard Roudier
rom: Kenneth Culver [mailto:[EMAIL PROTECTED]] > > > Sent: Thursday, January 31, 2002 10:42 AM > > > To: Terry Lambert > > > Cc: David Malone; Cameron, Frank; '[EMAIL PROTECTED]'; > > > '[EMAIL PROTECTED]' > > > Subject: Re: AMD AGP Bu

RE: AMD AGP Bug

2002-01-31 Thread Kenneth Culver
; Cc: David Malone; Cameron, Frank; '[EMAIL PROTECTED]'; > > '[EMAIL PROTECTED]' > > Subject: Re: AMD AGP Bug > > > > > > > There's actually a seperate TLB bug, but FreeBSD doesn't > > > trigger that one, either (Linux can tickle

RE: AMD AGP Bug

2002-01-31 Thread Cameron, Frank
iginal Message- > From: Kenneth Culver [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 31, 2002 10:42 AM > To: Terry Lambert > Cc: David Malone; Cameron, Frank; '[EMAIL PROTECTED]'; > '[EMAIL PROTECTED]' > Subject: Re: AMD AGP Bug > > > >

Re: AMD AGP Bug

2002-01-31 Thread Kenneth Culver
> There's actually a seperate TLB bug, but FreeBSD doesn't > trigger that one, either (Linux can tickle it, when there > are certain specific circumstances met). > Well, I think I know what you're talking about, linux allocates agpgart memory without setting a "non-cacheable" bit, and then the agp

Re: AMD AGP Bug

2002-01-31 Thread Terry Lambert
Kenneth Culver wrote: > Actually FreeBSD does make use of them, but in a way that doesn't cause a > problem. There's actually a seperate TLB bug, but FreeBSD doesn't trigger that one, either (Linux can tickle it, when there are certain specific circumstances met). $10,000, and I'll tell you how

Re: AMD AGP Bug

2002-01-30 Thread Kenneth Culver
Actually FreeBSD does make use of them, but in a way that doesn't cause a problem. Ken On Wed, 30 Jan 2002, David Malone wrote: > On Wed, Jan 30, 2002 at 12:13:07PM -0500, Cameron, Frank wrote: > > Has this issue been addressed in FreeBSD: > > > > http://www.geocrawler.com/lists/3/Linux/35/175/

Re: AMD AGP Bug

2002-01-30 Thread Kenneth Culver
You should check the archives of the FreeBSD mailing lists before sending a message to 4 of the lists. This quiestion has been answered several times on the FreeBSD lists. The answer is that this isn't even really an AMD AGP bug, it's a bug in the way linux handles mapping it's AGP memory. FreeBSD

Re: AMD AGP Bug

2002-01-30 Thread David Malone
On Wed, Jan 30, 2002 at 12:13:07PM -0500, Cameron, Frank wrote: > Has this issue been addressed in FreeBSD: > > http://www.geocrawler.com/lists/3/Linux/35/175/7626960/ > http://slashdot.org/article.pl?sid=02/01/24/1910227&mode=thread This is believed not to have any impact on FreeBSD because Fre