From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Hellstrom Subject: Re: KMS and TTM questions Date: Tue, 04 Oct 2011 18:54:46 +0200 Message-ID: <4E8B3A56.8020308@shipmail.org> References: <20111003201416.405754d9@lxorguk.ukuu.org.uk> <20111004000716.599b293a@lxorguk.ukuu.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from GOTHNET-SMTP2.gothnet.se (relay.gothnet.se [82.193.160.251]) by gabe.freedesktop.org (Postfix) with ESMTP id B0E999E8E1 for ; Tue, 4 Oct 2011 09:56:43 -0700 (PDT) In-Reply-To: <20111004000716.599b293a@lxorguk.ukuu.org.uk> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Alan Cox Cc: DRI development list List-Id: dri-devel@lists.freedesktop.org On 10/04/2011 01:07 AM, Alan Cox wrote: >> Thats fine as long as you don't want to do acceleration or object >> migration between GTT >> and VRAM type memory. Now I expect when you give out this advice you >> > Yes but the VIA doesn't if I recall correctly have any 'VRAM type memory'. > It's all effectively in the GART with the 'stolen' pages preloaded into > the translation tables by the BIOS at vga init time. > VRAM memory (at least on the older unichromes) is taken from on-board RAM and set up by the BIOS, and from a device programmer's point of view works like a discrete card VRAM, and is *not* part of the GART. On some devices (K8M800) , the VRAM pages could be accessed by the CPU directly at the top of VRAM, which was substantially faster. There is a fully functional unichrome DRM on top of TTM, that together with the 3D driver in mesa's openchrome branch worked like a charm (even outperformed Intel's i965 with identical CPU at the time). Problem was that it was not backwards compatible with via's old drm. It should serve as a good starting point though, if I can remember where I put it.... /Thomas