From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-x22b.google.com (mail-vk0-x22b.google.com [IPv6:2607:f8b0:400c:c05::22b]) (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 7D70E1A006D for ; Sat, 6 Feb 2016 04:51:35 +1100 (AEDT) Received: by mail-vk0-x22b.google.com with SMTP id c3so14734843vkb.3 for ; Fri, 05 Feb 2016 09:51:35 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <969BB53B-CB30-49DC-B6C5-4D2381ECE6EE@gmail.com> Date: Fri, 5 Feb 2016 11:51:32 -0600 Message-ID: Subject: Re: PowerPC agpmode issues From: "Herminio Hernandez, Jr." To: Mike Cc: Pranith Kumar , "open list:LINUX FOR POWERPC..." , "Aneesh Kumar K.V" Content-Type: multipart/alternative; boundary=001a1145504c608297052b09804b List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --001a1145504c608297052b09804b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I have already applied his patches on my PowerBook running Jessie to get accelerated graphics. However they are only a work around and not a real fix so they will be committed to mesa. On Fri, Feb 5, 2016 at 8:44 AM, Mike wrote: > 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 agpmod= e, >> running with pci-mode with radeon.agpmode=3D-1 works, but is of course s= low, >> and seems to load the cpu a lot. >> >> Upon initial investigation i could not initially believe agp could be >> this this broken for this long, until i found this. >> "committed with Ben Skeggs on Feb 26, 2013" >> >> https://github.com/DespairFactor/bullhead/commit/650e1203c11354ba84d69ba= 445abc0efcfe3890a >> >> 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/nv= km/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 um= s >> 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 >> >> > --001a1145504c608297052b09804b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I have already applied his patches on my PowerBook running= Jessie to get accelerated graphics. However they are only a work around an= d not a real fix so they will be committed to mesa.

On Fri, Feb 5, 2016 at 8:44 AM, Mik= e <michael.heltne@gmail.com> wrote:
Herminio,=C2=A0

Ok, t= ake a look at this.=C2=A0https://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 onl= y fixes the issue for r300 on powerpc though.=C2=A0

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.=C2=A0

Sent from my iPhone

On Feb 4, 2016, at 8:47 PM, Mike <michael.heltne@gmail.com> w= rote:

Hi.=C2=A0
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 co= urse slow, and seems to load the cpu a lot.

Upon initial investigation i could no= t initially believe agp could be this this broken for this long, until i fo= und this.
=C2=A0= "committed with Ben Skeggs on Feb 26, 2013"
#ifdef __powerpc__
/* Disab= le AGP by default on all PowerPC machines for
* now -- At least some Un= iNorth-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, maki= ng them quite painful to deal
* with...
*/
if (nouveau_agpmode= =3D=3D -1)
return false;
#endif
<= div class=3D"gmail_extra">=C2=A0
=C2=A0and = now later this:=C2=A0
#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
* fr= om 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 maili= ng list
Linuxppc-dev@lists.ozlabs.org
https= ://lists.ozlabs.org/listinfo/linuxppc-dev


--001a1145504c608297052b09804b--