From: Maarten Maathuis Subject: A seemingly plausible userspace command submission model. Date: Sat, 21 Mar 2009 02:55:55 +0100 Message-ID: <6d4bc9fc0903201855q2452a5dcx687fa27b915c6ffd@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org To: "nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org" List-Id: nouveau.vger.kernel.org Please tell me what can't work about this idea. - Introduce concept of "batches", through some kind of marker (tied to fences). - Request buffers up front, userspace does all relocation (avoid teaching the kernel about tiling, etc). - Driver stores state for each batch. - FIRE_RING becomes an ioctl that can fail (imagine backgrounded app holding pinned memory for too long). ==> This means no direct access to put and get. - Memory is pinned for the duration of the batch. It's a rough outline, but i'd like to know what exactly is forcing is to use kernel submission. Maarten.