Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-14 Thread Christian Zigotzky
Hi All, AGP mode/support is deactivated on PowerPC and it doesn't work reliable And what does these lines mean: PowerMac G5 Dual: OpenGL vendor string: DRI R300 Project OpenGL renderer string: Mesa DRI R300 (RV350 4152) 20090101 AGP 8x PowerPC 64/Altivec TCL OpenGL version string: 1.5 Me

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-14 Thread Rui Salvaterra
On Wed, 13 May 2020 at 14:44, Christian Zigotzky wrote: > > OpenGL version string: 1.5 Mesa 7.6 > OpenGL version string: 1.3 Mesa 7.2 > > Screenshots: > > - http://www.supertuxkart.de/stk07ubuntu910ppc.png > - http://www.supertuxkart.de/opensuse111-stk073.jpg Those are *extremely old* (and I mean

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-14 Thread Rui Salvaterra
On Wed, 13 May 2020 at 11:58, Michel Dänzer wrote: > > How do you know you're hitting that particular issue? Sorry, somehow I misread that. I was still thinking of the AGP hangs. ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.f

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-14 Thread Rui Salvaterra
On Wed, 13 May 2020 at 08:19, Daniel Vetter wrote: > > i915 is even worse, we manually mess around with clflush. In > userspace. So really there's 2 axis for dma memory: coherent vs. > non-coherent (which is something the dma-api somewhat exposed), i.e. > do you need to clflush or not, and cached

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-14 Thread Rui Salvaterra
On Wed, 13 May 2020 at 11:27, Michel Dänzer wrote: > > The only theoretical problem there was that the kernel still had a > cacheable mapping of the same memory, and any access via that (e.g. > prefetch due to access to a neighbouring page) could trigger a machine > check. But I don't remember eve

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-13 Thread John Paul Adrian Glaubitz
Hello Christian! On 5/13/20 3:44 PM, Christian Zigotzky wrote: > AGP mode/support is deactivated on PowerPC and it doesn't work reliable > > And what does these lines mean: AGP mode is actually disabled in the Radeon driver for PowerPC as Alex has pointed out earlier in this thread [1]. You

Re: [Nouveau] [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-13 Thread Thomas Zimmermann
Hi Am 13.05.20 um 11:27 schrieb Emil Velikov: > On Tue, 12 May 2020 at 20:48, Alex Deucher wrote: > > > There's some AGP support code in the DRM core. Can some of that declared > as legacy? > > Specifically, what about these AGP-related ioctl calls? Can they be > declared

Re: [Nouveau] [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-13 Thread Thomas Zimmermann
Hi Am 11.05.20 um 19:17 schrieb Christian König: > Hi guys, > > Well let's face it AGP is a total headache to maintain and dead for at least > 10+ years. > > We have a lot of x86 specific stuff in the architecture independent graphics > memory management to get the caching right, abusing the D

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-13 Thread Michel Dänzer
On 2020-05-13 12:39 p.m., Rui Salvaterra wrote: > On Wed, 13 May 2020 at 11:27, Michel Dänzer wrote: >> >> The only theoretical problem there was that the kernel still had a >> cacheable mapping of the same memory, and any access via that (e.g. >> prefetch due to access to a neighbouring page) cou

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-13 Thread Michel Dänzer
On 2020-05-13 12:29 p.m., Daniel Vetter wrote: > On Wed, May 13, 2020 at 12:26 PM Michel Dänzer wrote: >> >> On 2020-05-13 11:28 a.m., Rui Salvaterra wrote: >>> On Wed, 13 May 2020 at 08:19, Daniel Vetter wrote: i915 is even worse, we manually mess around with clflush. In userspace

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-13 Thread Daniel Vetter
On Wed, May 13, 2020 at 12:26 PM Michel Dänzer wrote: > > On 2020-05-13 11:28 a.m., Rui Salvaterra wrote: > > On Wed, 13 May 2020 at 08:19, Daniel Vetter wrote: > >> > >> i915 is even worse, we manually mess around with clflush. In > >> userspace. So really there's 2 axis for dma memory: coherent

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-13 Thread Michel Dänzer
On 2020-05-13 11:28 a.m., Rui Salvaterra wrote: > On Wed, 13 May 2020 at 08:19, Daniel Vetter wrote: >> >> i915 is even worse, we manually mess around with clflush. In >> userspace. So really there's 2 axis for dma memory: coherent vs. >> non-coherent (which is something the dma-api somewhat expos

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-13 Thread Daniel Vetter
On Wed, May 13, 2020 at 9:55 AM Christian König wrote: > > Am 13.05.20 um 09:19 schrieb Daniel Vetter: > > On Tue, May 12, 2020 at 8:22 PM Alex Deucher wrote: > >> On Tue, May 12, 2020 at 12:38 PM Daniel Vetter wrote: > >>> On Tue, May 12, 2020 at 3:22 PM Alex Deucher > >>> wrote: > On Tu

Re: [Nouveau] [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-13 Thread Emil Velikov
On Tue, 12 May 2020 at 20:48, Alex Deucher wrote: > > >> > > >> There's some AGP support code in the DRM core. Can some of that declared > > >> as legacy? > > >> > > >> Specifically, what about these AGP-related ioctl calls? Can they be > > >> declared as legacy? It would appear to me that KMS-ba

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-13 Thread Karoly Balogh (Charlie/SGR)
Hi, On Tue, 12 May 2020, Rui Salvaterra wrote: > > FWIW, on my last-generation PowerBook with RV350 (IIRC), there was a > > big performance difference between AGP and PCI GART. The latter was > > sort of usable for normal desktop operation, but not so much for > > OpenGL apps (which were usable w

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-13 Thread Rui Salvaterra
On Tue, 12 May 2020 at 08:58, Michel Dänzer wrote: > > FWIW, on my last-generation PowerBook with RV350 (IIRC), there was a big > performance difference between AGP and PCI GART. The latter was sort of > usable for normal desktop operation, but not so much for OpenGL apps > (which were usable with

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-13 Thread Rui Salvaterra
On Tue, 12 May 2020 at 17:38, Daniel Vetter wrote: > > Otherwise all agree, agp is a mighty mess and essentially just > crapshot outside of x86. It kinda worked for the much more static > allocations for dri1, but with in-kernel memory managers all the cache > flushing issues showed up big time an

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-13 Thread Christian König
Am 13.05.20 um 09:19 schrieb Daniel Vetter: On Tue, May 12, 2020 at 8:22 PM Alex Deucher wrote: On Tue, May 12, 2020 at 12:38 PM Daniel Vetter wrote: On Tue, May 12, 2020 at 3:22 PM Alex Deucher wrote: On Tue, May 12, 2020 at 5:40 AM Karoly Balogh (Charlie/SGR) wrote: Hi, On Tue, 12 May

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-13 Thread Christian König
Am 12.05.20 um 22:12 schrieb Dave Airlie: On Wed, 13 May 2020 at 04:21, Alex Deucher wrote: On Tue, May 12, 2020 at 1:02 PM Rui Salvaterra wrote: On Tue, 12 May 2020 at 17:38, Daniel Vetter wrote: Otherwise all agree, agp is a mighty mess and essentially just crapshot outside of x86. It kin

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-13 Thread Daniel Vetter
On Tue, May 12, 2020 at 8:22 PM Alex Deucher wrote: > > On Tue, May 12, 2020 at 12:38 PM Daniel Vetter wrote: > > > > On Tue, May 12, 2020 at 3:22 PM Alex Deucher wrote: > > > > > > On Tue, May 12, 2020 at 5:40 AM Karoly Balogh (Charlie/SGR) > > > wrote: > > > > > > > > Hi, > > > > > > > > On T

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-12 Thread Dave Airlie
On Wed, 13 May 2020 at 04:21, Alex Deucher wrote: > > On Tue, May 12, 2020 at 1:02 PM Rui Salvaterra wrote: > > > > On Tue, 12 May 2020 at 17:38, Daniel Vetter wrote: > > > > > > Otherwise all agree, agp is a mighty mess and essentially just > > > crapshot outside of x86. It kinda worked for the

Re: [Nouveau] [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-12 Thread Alex Deucher
On Tue, May 12, 2020 at 3:10 PM Thomas Zimmermann wrote: > > Hi Alex > > Am 12.05.20 um 20:32 schrieb Alex Deucher: > > On Tue, May 12, 2020 at 2:29 PM Thomas Zimmermann > > wrote: > >> > >> Hi > >> > >> Am 11.05.20 um 19:17 schrieb Christian König: > >>> Hi guys, > >>> > >>> Well let's face it

Re: [Nouveau] [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-12 Thread Thomas Zimmermann
Hi Alex Am 12.05.20 um 20:32 schrieb Alex Deucher: > On Tue, May 12, 2020 at 2:29 PM Thomas Zimmermann wrote: >> >> Hi >> >> Am 11.05.20 um 19:17 schrieb Christian König: >>> Hi guys, >>> >>> Well let's face it AGP is a total headache to maintain and dead for at >>> least 10+ years. >>> >>> We h

Re: [Nouveau] [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-12 Thread Alex Deucher
On Tue, May 12, 2020 at 2:29 PM Thomas Zimmermann wrote: > > Hi > > Am 11.05.20 um 19:17 schrieb Christian König: > > Hi guys, > > > > Well let's face it AGP is a total headache to maintain and dead for at > > least 10+ years. > > > > We have a lot of x86 specific stuff in the architecture indepe

Re: [Nouveau] [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-12 Thread Thomas Zimmermann
Hi Am 11.05.20 um 19:17 schrieb Christian König: > Hi guys, > > Well let's face it AGP is a total headache to maintain and dead for at least > 10+ years. > > We have a lot of x86 specific stuff in the architecture independent graphics > memory management to get the caching right, abusing the D

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-12 Thread Alex Deucher
On Tue, May 12, 2020 at 12:38 PM Daniel Vetter wrote: > > On Tue, May 12, 2020 at 3:22 PM Alex Deucher wrote: > > > > On Tue, May 12, 2020 at 5:40 AM Karoly Balogh (Charlie/SGR) > > wrote: > > > > > > Hi, > > > > > > On Tue, 12 May 2020, Rui Salvaterra wrote: > > > > > > > > FWIW, on my last-gen

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-12 Thread Alex Deucher
On Tue, May 12, 2020 at 1:02 PM Rui Salvaterra wrote: > > On Tue, 12 May 2020 at 17:38, Daniel Vetter wrote: > > > > Otherwise all agree, agp is a mighty mess and essentially just > > crapshot outside of x86. It kinda worked for the much more static > > allocations for dri1, but with in-kernel me

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-12 Thread Daniel Vetter
On Tue, May 12, 2020 at 3:22 PM Alex Deucher wrote: > > On Tue, May 12, 2020 at 5:40 AM Karoly Balogh (Charlie/SGR) > wrote: > > > > Hi, > > > > On Tue, 12 May 2020, Rui Salvaterra wrote: > > > > > > FWIW, on my last-generation PowerBook with RV350 (IIRC), there was a > > > > big performance diff

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-12 Thread Alex Deucher
On Tue, May 12, 2020 at 5:40 AM Karoly Balogh (Charlie/SGR) wrote: > > Hi, > > On Tue, 12 May 2020, Rui Salvaterra wrote: > > > > FWIW, on my last-generation PowerBook with RV350 (IIRC), there was a > > > big performance difference between AGP and PCI GART. The latter was > > > sort of usable for

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-12 Thread John Paul Adrian Glaubitz
Hi David! On 5/12/20 7:04 AM, David VANTYGHEM wrote: > Im happy now that after your work, Debian and GRUB install fine on my > iMac G3. But Xserver doesn't start, I've got an AMD Rage 128 Pro AGP 4x > (see joined screenshot). This is an unrelated problem as the reason why you don't have a working

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-12 Thread Christian König
Am 11.05.20 um 22:56 schrieb Al Dunsmuir: Hello Dave, On Monday, May 11, 2020, 4:43:01 PM, Dave Airlie wrote: On Tue, 12 May 2020 at 06:28, Alex Deucher wrote: [SNIP] Maybe we can find some way to compartmentalise AGP further? Dave. Significantly reduced caching on memory accesses defin

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-12 Thread Michel Dänzer
On 2020-05-11 10:51 p.m., Alex Deucher wrote: > On Mon, May 11, 2020 at 4:25 PM Rui Salvaterra wrote: >> A segunda, 11/05/2020, 21:21, Alex Deucher escreveu: >>> >>> Note there is no loss of functionality here, at least on radeon >>> hardware. It just comes down to which MMU gets used for access

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-12 Thread Christian König
Am 11.05.20 um 22:46 schrieb Alex Deucher: On Mon, May 11, 2020 at 4:41 PM John Paul Adrian Glaubitz wrote: On 5/11/20 10:05 PM, Alex Deucher wrote: For Nouveau I'm not 100% sure, but from the code it of hand looks like we can do it similar to Radeon. Please comment what you think about this

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-11 Thread Gerhard Pircher
Am 11.05.20 um 22:24 schrieb John Paul Adrian Glaubitz: > On 5/11/20 10:12 PM, Christian König wrote: >> I unfortunately only have an x86 Mac to test this on, but as far as I know >> the Radeon >> AGP support for PowerPC is disabled for years already because it didn't >> worked reliable. > > I ha

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-11 Thread Rui Salvaterra
A segunda, 11/05/2020, 21:21, Alex Deucher escreveu: > > > Note there is no loss of functionality here, at least on radeon > hardware. It just comes down to which MMU gets used for access to > system memory, the AGP MMU on the chipset or the MMU built into the > GPU. On powerpc hardware, AGP ha

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-11 Thread John Paul Adrian Glaubitz
Hi Alex! On 5/11/20 10:46 PM, Alex Deucher wrote: >>> Note there is no loss of functionality here, at least on radeon >>> hardware. It just comes down to which MMU gets used for access to >>> system memory, the AGP MMU on the chipset or the MMU built into the >>> GPU. On powerpc hardware, AGP ha

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-11 Thread Emil Velikov
On Mon, 11 May 2020 at 21:43, Dave Airlie wrote: > > On Tue, 12 May 2020 at 06:28, Alex Deucher wrote: > > > > On Mon, May 11, 2020 at 4:22 PM Al Dunsmuir > > wrote: > > > > > > On Monday, May 11, 2020, 1:17:19 PM, "Christian König" wrote: > > > > Hi guys, > > > > > > > Well let's face it AGP i

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-11 Thread Al Dunsmuir
Hello Dave, On Monday, May 11, 2020, 4:43:01 PM, Dave Airlie wrote: > On Tue, 12 May 2020 at 06:28, Alex Deucher wrote: >> >> On Mon, May 11, 2020 at 4:22 PM Al Dunsmuir wrote: >> Note there is no loss of functionality here, at least on radeon >> hardware. It just comes down to which MMU gets u

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-11 Thread Alex Deucher
On Mon, May 11, 2020 at 4:25 PM Rui Salvaterra wrote: > > > > A segunda, 11/05/2020, 21:21, Alex Deucher escreveu: >> >> >> >> Note there is no loss of functionality here, at least on radeon >> hardware. It just comes down to which MMU gets used for access to >> system memory, the AGP MMU on the

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-11 Thread Al Dunsmuir
On Monday, May 11, 2020, 4:27:55 PM, Alex Deucher wrote: > On Mon, May 11, 2020 at 4:22 PM Al Dunsmuir wrote: >> >> On Monday, May 11, 2020, 1:17:19 PM, "Christian König" wrote: >> > Hi guys, >> >> > Well let's face it AGP is a total headache to maintain and dead for at >> > least 10+ years. >> >

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-11 Thread Alex Deucher
On Mon, May 11, 2020 at 4:41 PM John Paul Adrian Glaubitz wrote: > > On 5/11/20 10:05 PM, Alex Deucher wrote: > >>> For Nouveau I'm not 100% sure, but from the code it of hand looks like we > >>> can do it similar to Radeon. > >>> > >>> Please comment what you think about this. > >> > >> I would

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-11 Thread Dave Airlie
On Tue, 12 May 2020 at 06:28, Alex Deucher wrote: > > On Mon, May 11, 2020 at 4:22 PM Al Dunsmuir wrote: > > > > On Monday, May 11, 2020, 1:17:19 PM, "Christian König" wrote: > > > Hi guys, > > > > > Well let's face it AGP is a total headache to maintain and dead for at > > > least 10+ years. >

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-11 Thread John Paul Adrian Glaubitz
On 5/11/20 10:05 PM, Alex Deucher wrote: >>> For Nouveau I'm not 100% sure, but from the code it of hand looks like we >>> can do it similar to Radeon. >>> >>> Please comment what you think about this. >> >> I would be against such a move as AGP graphics is still used by people >> running the pow

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-11 Thread Alex Deucher
On Mon, May 11, 2020 at 4:22 PM Al Dunsmuir wrote: > > On Monday, May 11, 2020, 1:17:19 PM, "Christian König" wrote: > > Hi guys, > > > Well let's face it AGP is a total headache to maintain and dead for at > > least 10+ years. > > > We have a lot of x86 specific stuff in the architecture indepen

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-11 Thread John Paul Adrian Glaubitz
On 5/11/20 10:12 PM, Christian König wrote: > I unfortunately only have an x86 Mac to test this on, but as far as I know > the Radeon > AGP support for PowerPC is disabled for years already because it didn't > worked reliable. I have a current Debian unstable running on an iBook G4 with Radeon g

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-11 Thread Al Dunsmuir
On Monday, May 11, 2020, 1:17:19 PM, "Christian König" wrote: > Hi guys, > Well let's face it AGP is a total headache to maintain and dead for at least > 10+ years. > We have a lot of x86 specific stuff in the architecture independent > graphics memory management to get the caching right, abusin

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-11 Thread Christian König
Am 11.05.20 um 21:55 schrieb John Paul Adrian Glaubitz: Hi Christian! Well let's face it AGP is a total headache to maintain and dead for at least 10+ years. We have a lot of x86 specific stuff in the architecture independent graphics memory management to get the caching right, abusing the D

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-11 Thread Alex Deucher
On Mon, May 11, 2020 at 4:02 PM John Paul Adrian Glaubitz wrote: > > Hi Christian! > > > Well let's face it AGP is a total headache to maintain and dead for at > > least 10+ years. > > > > We have a lot of x86 specific stuff in the architecture independent > > graphics memory management > > to g

Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-11 Thread John Paul Adrian Glaubitz
Hi Christian! > Well let's face it AGP is a total headache to maintain and dead for at least > 10+ years. > > We have a lot of x86 specific stuff in the architecture independent graphics > memory management > to get the caching right, abusing the DMA API on multiple occasions, need to > distinc

[RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-11 Thread Christian König
Hi guys, Well let's face it AGP is a total headache to maintain and dead for at least 10+ years. We have a lot of x86 specific stuff in the architecture independent graphics memory management to get the caching right, abusing the DMA API on multiple occasions, need to distinct between AGP and