From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw0-x232.google.com (mail-yw0-x232.google.com [IPv6:2607:f8b0:4002:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id E84461A002B for ; Sat, 6 Feb 2016 01:44:16 +1100 (AEDT) Received: by mail-yw0-x232.google.com with SMTP id q190so52527339ywd.3 for ; Fri, 05 Feb 2016 06:44:16 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <969BB53B-CB30-49DC-B6C5-4D2381ECE6EE@gmail.com> References: <969BB53B-CB30-49DC-B6C5-4D2381ECE6EE@gmail.com> Date: Fri, 5 Feb 2016 14:44:14 +0000 Message-ID: Subject: Re: PowerPC agpmode issues From: Mike To: "Herminio Hernandez Jr." Cc: Pranith Kumar , "open list:LINUX FOR POWERPC..." , "Aneesh Kumar K.V" Content-Type: multipart/alternative; boundary=94eb2c081bb6938d6f052b06e255 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --94eb2c081bb6938d6f052b06e255 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Herminio, Ok, take a look at this. https://github.com/threader/mesa-11.1.1-ppc-r300-debian or if on stable maybe this is more fitting https://github.com/threader/mesa-10.6.3-ppc-r300-debian - this only fixes the issue for r300 on powerpc though. On 5 February 2016 at 14:32, Herminio Hernandez Jr. < herminio.hernandezjr@gmail.com> wrote: > I have been experiencing the same thing with my iBook and PowerBook. > > Sent from my iPhone > > On Feb 4, 2016, at 8:47 PM, Mike wrote: > > Hi. > Managed to get the Radeon R300 running on mesa 11.1.1 with an old 2013 > patch from Michel D=C3=A0nzer, next problem is of course enabling agpmode= , > running with pci-mode with radeon.agpmode=3D-1 works, but is of course sl= ow, > and seems to load the cpu a lot. > > Upon initial investigation i could not initially believe agp could be thi= s > this broken for this long, until i found this. > "committed with Ben Skeggs on Feb 26, 2013" > > https://github.com/DespairFactor/bullhead/commit/650e1203c11354ba84d69ba4= 45abc0efcfe3890a > > http://lxr.free-electrons.com/source/drivers/gpu/drm/nouveau/nouveau_agp.= c?v=3D4.2 > #ifdef __powerpc__ > /* Disable AGP by default on all PowerPC machines for > * now -- At least some UniNorth-2 AGP bridges are > * known to be broken: DMA from the host to the card > * works just fine, but writeback from the card to the > * host goes straight to memory untranslated bypassing > * the GATT somehow, making them quite painful to deal > * with... > */ > if (nouveau_agpmode =3D=3D -1) > return false; > #endif > > and now later this: > > https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/nouveau/nvk= m/subdev/pci/agp.c > #ifdef __powerpc__ > /* Disable AGP by default on all PowerPC machines for now -- At > * least some UniNorth-2 AGP bridges are known to be broken: > * DMA from the host to the card works just fine, but writeback > * from the card to the host goes straight to memory > * untranslated bypassing that GATT somehow, making them quite > * painful to deal with... > */ > mode =3D 0; > #endif > > All seems to point to serious issues had around the time of change to ums > to kms and a serious regression hitting the linux kernel? No? > > Cheers > -Mike > > _______________________________________________ > Linuxppc-dev mailing list > Linuxppc-dev@lists.ozlabs.org > https://lists.ozlabs.org/listinfo/linuxppc-dev > > --94eb2c081bb6938d6f052b06e255 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Herminio,=C2=A0

Ok, take a look at this= .=C2=A0= https://github.com/threader/mesa-11.1.1-ppc-r300-debian or if on stable= maybe this is more fitting=C2=A0https://github.com/threader/mesa-10.6.3-ppc-r300-= debian - this only fixes the issue for r300 on powerpc though.=C2=A0

On 5 Feb= ruary 2016 at 14:32, Herminio Hernandez Jr. <herminio.herna= ndezjr@gmail.com> wrote:
I have been experiencing the same thing with my iBook = and PowerBook.=C2=A0

Sent from my iPhone

On Feb 4, 2016, at 8:47 PM, Mike <michael.heltne@gmail.com> wrote:
Hi.=C2=A0
Managed to get the Radeon R300 running on mesa 11.1.1 with an old 201= 3 patch from Michel D=C3=A0nzer, next problem is of course enabling agpmode= , running with pci-mode with radeon.agpmode=3D-1 works, but is of course sl= ow, and seems to load the cpu a lot.

Upon initial investigation i could not initi= ally believe agp could be this this broken for this long, until i found thi= s.
=C2=A0"c= ommitted with Ben Skeggs on Feb 26, 2013"
#ifdef __powerpc__
/* Disable AGP = by default on all PowerPC machines for
* now -- At least some UniNorth-= 2 AGP bridges are
* known to be broken: DMA from the host to the card
* works just fine, but writeback from the card to the
* host goes st= raight to memory untranslated bypassing
* the GATT somehow, making them= quite painful to deal
* with...
*/
if (nouveau_agpmode =3D=3D -= 1)
= return false;
#endif
=C2=A0
=C2=A0and now later= this:=C2=A0
#ifde= f __powerpc__
/* Disable AGP by default on all PowerPC machines for now -= - At
= * least some UniNorth-2 AGP bridges are known to be broken:
* DM= A from the host to the card works just fine, but writeback
* from the c= ard to the host goes straight to memory
* untranslated bypassing that GA= TT somehow, making them quite
* painful to deal with...
*/
mode = =3D 0;
#endif

All seems to point to serious issue= s had around the time of change to ums to kms and a serious regression hitt= ing the linux kernel? No?

Cheers
-Mike
_______= ________________________________________
Linuxppc-dev maili= ng list
Linuxppc-dev@lists.ozlabs.org
https= ://lists.ozlabs.org/listinfo/linuxppc-dev

--94eb2c081bb6938d6f052b06e255--