From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.gna.ch (darkcity.gna.ch [195.226.6.51]) by ozlabs.org (Postfix) with ESMTP id 9FCD3B6F9A for ; Thu, 19 Apr 2012 02:06:55 +1000 (EST) Message-ID: <1334765196.5989.336.camel@thor.local> Subject: Re: PowerPC radeon KMS - is it possible? From: Michel =?ISO-8859-1?Q?D=E4nzer?= To: Gerhard Pircher Date: Wed, 18 Apr 2012 18:06:36 +0200 In-Reply-To: <20120418154916.128350@gmx.net> References: <1334730915.5989.265.camel__41553.0639271767$1334731329$gmane$org@thor.local> <1334736133.5989.278.camel@thor.local> <1334756287.5989.326.camel@thor.local> <1334759498.5989.328.camel@thor.local> <1334761280.5989.332.camel@thor.local> <20120418154916.128350@gmx.net> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Cc: schwab@linux-m68k.org, ojordan12345@hotmail.co.uk, linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mit, 2012-04-18 at 17:49 +0200, Gerhard Pircher wrote:=20 > > Von: "Michel D=C3=A4nzer" > > On Mit, 2012-04-18 at 16:55 +0200, Andreas Schwab wrote:=20 > > > Michel D=C3=A4nzer writes: > > >=20 > > > > On Mit, 2012-04-18 at 16:28 +0200, Andreas Schwab wrote:=20 > > > >> Michel D=C3=A4nzer writes: > > > >>=20 > > > >> > Have you tried smaller aperture sizes (uninorth_agp.aperture) > > > >> > and/or radeon.test=3D1? (See commit > > > >> > 52f072cb084bbb460d3a4ae09f0b6efc3e7e8a8c) > > > >>=20 > > > >> Neither changes anything. > > > > > > > > How small aperture sizes have you tried? > > >=20 > > > 32M. With the old UMS driver 3D once worked fine ... > >=20 > > That doesn't necessarily mean much per se, as with UMS memory is only > > statically mapped into the AGP GART once (so most of those 32M are > > wasted at least most of the time), whereas with KMS it's dynamically > > (un)mapped on demand. > That may be a stupid question, but is it allowed (for a DRM client or > whatever does the mapping) to change the content of a page mapped into > the AGP GART or is it necessary to explicitly unmap the page, change its > content and map it again? The former. > I would say it's necessary to unmap the page first (sounds more like > the pci_[un]map_page() approach) - at least when it should work with > non-coherent architectures, too. I'm afraid non-coherent platforms haven't really been a concern yet for KMS, and always doing the above dance would probably have a significant performance impact on coherent platforms. --=20 Earthling Michel D=C3=A4nzer | http://www.amd.c= om Libre software enthusiast | Debian, X and DRI developer