From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Shtylyov Subject: Re: [PATCHv2 01/14] common: dma-mapping: introduce alloc_attrs and free_attrs methods Date: Wed, 28 Mar 2012 15:29:07 +0400 Message-ID: <4F72F603.2000803@mvista.com> References: <1332855768-32583-1-git-send-email-m.szyprowski@samsung.com> <1332855768-32583-2-git-send-email-m.szyprowski@samsung.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1332855768-32583-2-git-send-email-m.szyprowski@samsung.com> Sender: owner-linux-mm@kvack.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Marek Szyprowski Cc: linux-kernel@vger.kernel.org, Benjamin Herrenschmidt , Thomas Gleixner , Andrew Morton , Arnd Bergmann , Stephen Rothwell , FUJITA Tomonori , microblaze-uclinux@itee.uq.edu.au, linux-arch@vger.kernel.org, x86@kernel.org, linux-sh@vger.kernel.org, linux-alpha@vger.kernel.org, sparclinux@vger.kernel.org, linux-ia64@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mips@linux-mips.org, discuss@x86-64.org, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linaro-mm-sig@lists.linaro.org, Jonathan Corbet , Kyungmin Park , Andrzej Pietrasiewicz , Kevin Cernekee , Dezhong Diao , Richard Kuo Hello. On 27-03-2012 17:42, Marek Szyprowski wrote: > Introduce new generic alloc and free methods with attributes argument. The method names don't match the ones in the subject. > Existing alloc_coherent and free_coherent can be implemented on top of the > new calls with NULL attributes argument. Later also dma_alloc_non_coherent > can be implemented using DMA_ATTR_NONCOHERENT attribute as well as > dma_alloc_writecombine with separate DMA_ATTR_WRITECOMBINE attribute. > This way the drivers will get more generic, platform independent way of > allocating dma buffers with specific parameters. > Signed-off-by: Marek Szyprowski > Acked-by: Kyungmin Park > Reviewed-by: David Gibson > Reviewed-by: Arnd Bergmann WBR, Sergei -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 28 Mar 2012 13:30:49 +0200 (CEST) Received: from mail-bk0-f49.google.com ([209.85.214.49]:40342 "EHLO mail-bk0-f49.google.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S1903566Ab2C1Lao (ORCPT ); Wed, 28 Mar 2012 13:30:44 +0200 Received: by bkcjk13 with SMTP id jk13so1011826bkc.36 for ; Wed, 28 Mar 2012 04:30:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=85LdmA9jkDNuGTeXX+jqsOLfin+/HXAyUD0Pne9loVc=; b=XK1MhoGoM9B01C4lwrp8gtTxnJBSs/J0weorlptWTQWZJN79pR3SLo7wHR7gIY7pm3 sr1q3aFIKdvdLe4XB/d3VvOg2kvhNaKVIpY8N1Z+KgWadPO1m/gR2hglarq9LYTR8VcB sDovk0Tsqv5xJitQKfFv7AKnsKzcbd7a2X3I/Vojym4I9Mp5A6BE3IKQ0hUBJAEJfDlU rSeMMhmD4WZUBDduHgqOKhU9nXbs2e0nP3BTT0kmLNqFplJp/cTzhhINkdUG9alXhQ7I KGqtp4L7tRS3PWQ3JbLdnnNgZfqhKdy4ZN+gCtrEOE0zWGDLZf6g5AfDh6Nm5uu8rddw GWGw== Received: by 10.204.143.151 with SMTP id v23mr12009163bku.63.1332934236860; Wed, 28 Mar 2012 04:30:36 -0700 (PDT) Received: from [192.168.2.2] (ppp91-79-105-46.pppoe.mtu-net.ru. [91.79.105.46]) by mx.google.com with ESMTPS id c4sm5927046bkh.0.2012.03.28.04.30.31 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 28 Mar 2012 04:30:34 -0700 (PDT) Message-ID: <4F72F603.2000803@mvista.com> Date: Wed, 28 Mar 2012 15:29:07 +0400 From: Sergei Shtylyov User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120312 Thunderbird/11.0 MIME-Version: 1.0 To: Marek Szyprowski CC: linux-kernel@vger.kernel.org, Benjamin Herrenschmidt , Thomas Gleixner , Andrew Morton , Arnd Bergmann , Stephen Rothwell , FUJITA Tomonori , microblaze-uclinux@itee.uq.edu.au, linux-arch@vger.kernel.org, x86@kernel.org, linux-sh@vger.kernel.org, linux-alpha@vger.kernel.org, sparclinux@vger.kernel.org, linux-ia64@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mips@linux-mips.org, discuss@x86-64.org, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linaro-mm-sig@lists.linaro.org, Jonathan Corbet , Kyungmin Park , Andrzej Pietrasiewicz , Kevin Cernekee , Dezhong Diao , Richard Kuo , "David S. Miller" , Michal Simek , Guan Xuetao , Paul Mundt , Richard Henderson , Ivan Kokshaysky , Matt Turner , Tony Luck , Fenghua Yu Subject: Re: [PATCHv2 01/14] common: dma-mapping: introduce alloc_attrs and free_attrs methods References: <1332855768-32583-1-git-send-email-m.szyprowski@samsung.com> <1332855768-32583-2-git-send-email-m.szyprowski@samsung.com> In-Reply-To: <1332855768-32583-2-git-send-email-m.szyprowski@samsung.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmF4QSFC/uVMqzcbBytffj9Y2DYGq2N8NRYNwfLDeIacTA+CpxZsoIPhRdxzQ9IxpEJpBpx X-archive-position: 32802 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: sshtylyov@mvista.com Precedence: bulk X-list: linux-mips Return-Path: Hello. On 27-03-2012 17:42, Marek Szyprowski wrote: > Introduce new generic alloc and free methods with attributes argument. The method names don't match the ones in the subject. > Existing alloc_coherent and free_coherent can be implemented on top of the > new calls with NULL attributes argument. Later also dma_alloc_non_coherent > can be implemented using DMA_ATTR_NONCOHERENT attribute as well as > dma_alloc_writecombine with separate DMA_ATTR_WRITECOMBINE attribute. > This way the drivers will get more generic, platform independent way of > allocating dma buffers with specific parameters. > Signed-off-by: Marek Szyprowski > Acked-by: Kyungmin Park > Reviewed-by: David Gibson > Reviewed-by: Arnd Bergmann WBR, Sergei From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-bk0-f51.google.com (mail-bk0-f51.google.com [209.85.214.51]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id DECF7B6EEC for ; Wed, 28 Mar 2012 22:30:44 +1100 (EST) Received: by bkwj10 with SMTP id j10so810657bkw.38 for ; Wed, 28 Mar 2012 04:30:39 -0700 (PDT) Message-ID: <4F72F603.2000803@mvista.com> Date: Wed, 28 Mar 2012 15:29:07 +0400 From: Sergei Shtylyov MIME-Version: 1.0 To: Marek Szyprowski Subject: Re: [PATCHv2 01/14] common: dma-mapping: introduce alloc_attrs and free_attrs methods References: <1332855768-32583-1-git-send-email-m.szyprowski@samsung.com> <1332855768-32583-2-git-send-email-m.szyprowski@samsung.com> In-Reply-To: <1332855768-32583-2-git-send-email-m.szyprowski@samsung.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: linux-mips@linux-mips.org, Kevin Cernekee , linux-ia64@vger.kernel.org, linux-sh@vger.kernel.org, linux-mm@kvack.org, sparclinux@vger.kernel.org, Guan Xuetao , linux-arch@vger.kernel.org, Stephen Rothwell , Jonathan Corbet , x86@kernel.org, Matt Turner , Dezhong Diao , Fenghua Yu , Arnd Bergmann , microblaze-uclinux@itee.uq.edu.au, linaro-mm-sig@lists.linaro.org, Ivan Kokshaysky , Andrzej Pietrasiewicz , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, Richard Henderson , discuss@x86-64.org, Michal Simek , Tony Luck , linux-kernel@vger.kernel.org, Richard Kuo , FUJITA Tomonori , Kyungmin Park , Paul Mundt , linux-alpha@vger.kernel.org, Andrew Morton , linuxppc-dev@lists.ozlabs.org, "David S. Miller" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hello. On 27-03-2012 17:42, Marek Szyprowski wrote: > Introduce new generic alloc and free methods with attributes argument. The method names don't match the ones in the subject. > Existing alloc_coherent and free_coherent can be implemented on top of the > new calls with NULL attributes argument. Later also dma_alloc_non_coherent > can be implemented using DMA_ATTR_NONCOHERENT attribute as well as > dma_alloc_writecombine with separate DMA_ATTR_WRITECOMBINE attribute. > This way the drivers will get more generic, platform independent way of > allocating dma buffers with specific parameters. > Signed-off-by: Marek Szyprowski > Acked-by: Kyungmin Park > Reviewed-by: David Gibson > Reviewed-by: Arnd Bergmann WBR, Sergei From mboxrd@z Thu Jan 1 00:00:00 1970 From: sshtylyov@mvista.com (Sergei Shtylyov) Date: Wed, 28 Mar 2012 15:29:07 +0400 Subject: [PATCHv2 01/14] common: dma-mapping: introduce alloc_attrs and free_attrs methods In-Reply-To: <1332855768-32583-2-git-send-email-m.szyprowski@samsung.com> References: <1332855768-32583-1-git-send-email-m.szyprowski@samsung.com> <1332855768-32583-2-git-send-email-m.szyprowski@samsung.com> Message-ID: <4F72F603.2000803@mvista.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hello. On 27-03-2012 17:42, Marek Szyprowski wrote: > Introduce new generic alloc and free methods with attributes argument. The method names don't match the ones in the subject. > Existing alloc_coherent and free_coherent can be implemented on top of the > new calls with NULL attributes argument. Later also dma_alloc_non_coherent > can be implemented using DMA_ATTR_NONCOHERENT attribute as well as > dma_alloc_writecombine with separate DMA_ATTR_WRITECOMBINE attribute. > This way the drivers will get more generic, platform independent way of > allocating dma buffers with specific parameters. > Signed-off-by: Marek Szyprowski > Acked-by: Kyungmin Park > Reviewed-by: David Gibson > Reviewed-by: Arnd Bergmann WBR, Sergei From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx193.postini.com [74.125.245.193]) by kanga.kvack.org (Postfix) with SMTP id 62D5B6B00E7 for ; Wed, 28 Mar 2012 07:30:42 -0400 (EDT) Received: by bkwq16 with SMTP id q16so1060411bkw.14 for ; Wed, 28 Mar 2012 04:30:40 -0700 (PDT) Message-ID: <4F72F603.2000803@mvista.com> Date: Wed, 28 Mar 2012 15:29:07 +0400 From: Sergei Shtylyov MIME-Version: 1.0 Subject: Re: [PATCHv2 01/14] common: dma-mapping: introduce alloc_attrs and free_attrs methods References: <1332855768-32583-1-git-send-email-m.szyprowski@samsung.com> <1332855768-32583-2-git-send-email-m.szyprowski@samsung.com> In-Reply-To: <1332855768-32583-2-git-send-email-m.szyprowski@samsung.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Marek Szyprowski Cc: linux-kernel@vger.kernel.org, Benjamin Herrenschmidt , Thomas Gleixner , Andrew Morton , Arnd Bergmann , Stephen Rothwell , FUJITA Tomonori , microblaze-uclinux@itee.uq.edu.au, linux-arch@vger.kernel.org, x86@kernel.org, linux-sh@vger.kernel.org, linux-alpha@vger.kernel.org, sparclinux@vger.kernel.org, linux-ia64@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mips@linux-mips.org, discuss@x86-64.org, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linaro-mm-sig@lists.linaro.org, Jonathan Corbet , Kyungmin Park , Andrzej Pietrasiewicz , Kevin Cernekee , Dezhong Diao , Richard Kuo , "David S. Miller" , Michal Simek , Guan Xuetao , Paul Mundt , Richard Henderson , Ivan Kokshaysky , Matt Turner , Tony Luck , Fenghua Yu Hello. On 27-03-2012 17:42, Marek Szyprowski wrote: > Introduce new generic alloc and free methods with attributes argument. The method names don't match the ones in the subject. > Existing alloc_coherent and free_coherent can be implemented on top of the > new calls with NULL attributes argument. Later also dma_alloc_non_coherent > can be implemented using DMA_ATTR_NONCOHERENT attribute as well as > dma_alloc_writecombine with separate DMA_ATTR_WRITECOMBINE attribute. > This way the drivers will get more generic, platform independent way of > allocating dma buffers with specific parameters. > Signed-off-by: Marek Szyprowski > Acked-by: Kyungmin Park > Reviewed-by: David Gibson > Reviewed-by: Arnd Bergmann WBR, Sergei -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org