Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756456AbYFWVyb (ORCPT ); Mon, 23 Jun 2008 17:54:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753456AbYFWVyW (ORCPT ); Mon, 23 Jun 2008 17:54:22 -0400 Received: from einhorn.in-berlin.de ([192.109.42.8]:33710 "EHLO einhorn.in-berlin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752954AbYFWVyV (ORCPT ); Mon, 23 Jun 2008 17:54:21 -0400 X-Envelope-From: stefanr@s5r6.in-berlin.de Message-ID: <48601B5A.40400@s5r6.in-berlin.de> Date: Mon, 23 Jun 2008 23:53:30 +0200 From: Stefan Richter User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.13) Gecko/20080614 SeaMonkey/1.1.9 MIME-Version: 1.0 To: Alan Stern CC: David Vrabel , Kernel development list , AntonioLin , linux-usb@vger.kernel.org, "Perez-Gonzalez, Inaky" Subject: Re: Scatter-gather list constraints References: In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 812 Lines: 21 Alan Stern wrote: > On Mon, 23 Jun 2008, David Vrabel wrote: >> Can the number of entries in a sg list be limited? e.g., if the >> hardware only had support for say, 64 entries? > > Yes, there are two fields in struct request_queue for this: > max_phys_segments (the driver's limit) and max_hw_segments (the > hardware's limit). David, also have a look at from the comment "Access functions for manipulating queue properties" downwards for accessors to request queue tunables. -- Stefan Richter -=====-==--- -==- =-=== http://arcgraph.de/sr/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/