From: James Simmons Subject: Re: KMS and TTM questions Date: Mon, 3 Oct 2011 20:37:18 +0100 (BST) Message-ID: References: Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="1985284609-245585867-1317670638=:14498" Return-path: Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by gabe.freedesktop.org (Postfix) with ESMTP id DA6349EEBA for ; Mon, 3 Oct 2011 12:37:19 -0700 (PDT) In-Reply-To: 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: Jerome Glisse Cc: DRI development list List-Id: dri-devel@lists.freedesktop.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1985284609-245585867-1317670638=:14498 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable > > Hi! > > > > =A0 =A0 =A0 =A0I been working on updating the VIA kernel driver to us= ing KMS > > and TTM. So this weekend I started to implement a couple of buffer > > allocations internally to the driver from the video ram. So the first > > buffer I allocated was not the front buffer from the video vram but a > > virtual queue buffer of about 256K in size. The second allocation was > > the front buffer. The problem was the buffer offset for the second > > allocation was the same as the VQ buffer. I'm stump to what I'm doing > > wrong, so does anyone have a idea? >=20 > Without code to look at we all can start guessing :) my guess is either > you are not using the proper offset field or you are allocating from > different memory pool. http://cgit.freedesktop.org/~jsimmons/drm-openchrome > > =A0 =A0 =A0 =A0Second question I have is how are monochrome cursor im= ages > > handled with KMS. Yes we need to support CLE266 which is used in a lo= t > > of POS devices. That chipset only supports monochrome cursors. >=20 > You can hide the cursor limitation from userspace and pretend supportin= g > rgb cursor. So just return -ENXIO in that case. --1985284609-245585867-1317670638=:14498 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --1985284609-245585867-1317670638=:14498--