From patchwork Wed Jun 1 13:43:38 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Russell King - ARM Linux X-Patchwork-Id: 840212 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p51Dhl3H019107 for ; Wed, 1 Jun 2011 13:43:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756974Ab1FANnr (ORCPT ); Wed, 1 Jun 2011 09:43:47 -0400 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:45158 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756877Ab1FANnq (ORCPT ); Wed, 1 Jun 2011 09:43:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=arm.linux.org.uk; s=caramon; h=Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=1ajfPXauYnpHKddrhqYuh+oUefips4izM+BjgiT6WeY=; b=QTXXjJGYiO1G4yHNJUq6xdVw+bSXWQrU7p2aDNMMLFjGTcZod4/cOwLawlwr5pyB676l3X52dQLS5sXOIG5nXvD3xAmlFh9HfMJu/+6/VHDtMQp+KkkdVoiSwnPEgh/PtUhpyvk16PjMG0MEgL9m5n6uoRUCEEatwHXVDGP+T1o=; Received: from n2100.arm.linux.org.uk ([2002:4e20:1eda:1:214:fdff:fe10:4f86]) by caramon.arm.linux.org.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1QRlhz-0001Yb-Nn; Wed, 01 Jun 2011 14:43:40 +0100 Received: from linux by n2100.arm.linux.org.uk with local (Exim 4.72) (envelope-from ) id 1QRlhy-0005A4-GT; Wed, 01 Jun 2011 14:43:38 +0100 Date: Wed, 1 Jun 2011 14:43:38 +0100 From: Russell King - ARM Linux To: Laurent Pinchart Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v3 1/2] omap3: iovmm: Work around sg_alloc_table size limitation in IOMMU Message-ID: <20110601134338.GB6700@n2100.arm.linux.org.uk> References: <20110601131744.GH11352@atomide.com> <1306935012-12406-1-git-send-email-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1306935012-12406-1-git-send-email-laurent.pinchart@ideasonboard.com> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Wed, 01 Jun 2011 13:43:48 +0000 (UTC) On Wed, Jun 01, 2011 at 03:30:11PM +0200, Laurent Pinchart wrote: > sg_alloc_table can only allocate multi-page scatter-gather list tables > if the architecture supports scatter-gather lists chaining. ARM doesn't > fit in that category. Let's fix this properly, as I've said countless times and so far no one has bothered to sort this out: 8<---- From: Russell King Subject: ARM: Allow SoCs to enable scatterlist chaining Allow SoCs to enable the scatterlist chaining support, which allows scatterlist tables to be broken up into smaller allocations. As support for this feature depends on the implementation details of the users of the scatterlists, we can't enable this globally without auditing all the users, which is a very big task. Instead, let SoCs progressively switch over to using this. SoC drivers using scatterlists and SoC DMA implementations need auditing before this option can be enabled for the SoC. Signed-off-by: Russell King --- arch/arm/Kconfig | 3 +++ arch/arm/include/asm/scatterlist.h | 4 ++++ 2 files changed, 7 insertions(+), 0 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 9adc278..cc0dcbf 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -37,6 +37,9 @@ config ARM Europe. There is an ARM Linux project with a web page at . +config ARM_HAS_SG_CHAIN + bool + config HAVE_PWM bool diff --git a/arch/arm/include/asm/scatterlist.h b/arch/arm/include/asm/scatterlist.h index 2f87870..cefdb8f 100644 --- a/arch/arm/include/asm/scatterlist.h +++ b/arch/arm/include/asm/scatterlist.h @@ -1,6 +1,10 @@ #ifndef _ASMARM_SCATTERLIST_H #define _ASMARM_SCATTERLIST_H +#ifdef CONFIG_ARM_HAS_SG_CHAIN +#define ARCH_HAS_SG_CHAIN +#endif + #include #include #include