From mboxrd@z Thu Jan 1 00:00:00 1970 From: KyongHo Cho Subject: Re: [Linaro-mm-sig] [PATCH 7/8] common: dma-mapping: change alloc/free_coherent method to more generic alloc/free_attrs Date: Tue, 21 Jun 2011 00:14:14 +0900 Message-ID: References: <1308556213-24970-1-git-send-email-m.szyprowski@samsung.com> <1308556213-24970-8-git-send-email-m.szyprowski@samsung.com> <20110620150610.GG26089@n2100.arm.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail-yw0-f46.google.com ([209.85.213.46]:51987 "EHLO mail-yw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751276Ab1FTPOP convert rfc822-to-8bit (ORCPT ); Mon, 20 Jun 2011 11:14:15 -0400 Received: by ywe9 with SMTP id 9so2112158ywe.19 for ; Mon, 20 Jun 2011 08:14:14 -0700 (PDT) In-Reply-To: <20110620150610.GG26089@n2100.arm.linux.org.uk> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Russell King - ARM Linux Cc: linux-arch@vger.kernel.org, Arnd Bergmann , Joerg Roedel , linaro-mm-sig@lists.linaro.org, linux-mm@kvack.org, Kyungmin Park , linux-arm-kernel@lists.infradead.org On Tue, Jun 21, 2011 at 12:06 AM, Russell King - ARM Linux wrote: > Wrong - there is a difference. =A0For pre-ARMv6 CPUs, it returns memo= ry > with different attributes from DMA coherent memory. > > And we're not going to sweep away pre-ARMv6 CPUs any time soon. =A0So > you can't ignore dma_alloc_writecombine() which must remain to sanely > support framebuffers. > OK. Thanks. Then, I think we can implement dma_alloc_writecombine() away from dma_m= ap_ops. IMHO, those devices that use dma_alloc_writecombine() are enough with the default dma_map_ops. Removing a member from dma_map_ops is too heavy work. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail6.bemta7.messagelabs.com (mail6.bemta7.messagelabs.com [216.82.255.55]) by kanga.kvack.org (Postfix) with ESMTP id 587B49000BD for ; Mon, 20 Jun 2011 11:14:16 -0400 (EDT) Received: by ywb26 with SMTP id 26so1386430ywb.14 for ; Mon, 20 Jun 2011 08:14:14 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20110620150610.GG26089@n2100.arm.linux.org.uk> References: <1308556213-24970-1-git-send-email-m.szyprowski@samsung.com> <1308556213-24970-8-git-send-email-m.szyprowski@samsung.com> <20110620150610.GG26089@n2100.arm.linux.org.uk> Date: Tue, 21 Jun 2011 00:14:14 +0900 Message-ID: Subject: Re: [Linaro-mm-sig] [PATCH 7/8] common: dma-mapping: change alloc/free_coherent method to more generic alloc/free_attrs From: KyongHo Cho Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sender: owner-linux-mm@kvack.org List-ID: To: Russell King - ARM Linux Cc: linux-arch@vger.kernel.org, Arnd Bergmann , Joerg Roedel , linaro-mm-sig@lists.linaro.org, linux-mm@kvack.org, Kyungmin Park , linux-arm-kernel@lists.infradead.org On Tue, Jun 21, 2011 at 12:06 AM, Russell King - ARM Linux wrote: > Wrong - there is a difference. =A0For pre-ARMv6 CPUs, it returns memory > with different attributes from DMA coherent memory. > > And we're not going to sweep away pre-ARMv6 CPUs any time soon. =A0So > you can't ignore dma_alloc_writecombine() which must remain to sanely > support framebuffers. > OK. Thanks. Then, I think we can implement dma_alloc_writecombine() away from dma_map_o= ps. IMHO, those devices that use dma_alloc_writecombine() are enough with the default dma_map_ops. Removing a member from dma_map_ops is too heavy work. -- 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 From: pullip.cho@samsung.com (KyongHo Cho) Date: Tue, 21 Jun 2011 00:14:14 +0900 Subject: [Linaro-mm-sig] [PATCH 7/8] common: dma-mapping: change alloc/free_coherent method to more generic alloc/free_attrs In-Reply-To: <20110620150610.GG26089@n2100.arm.linux.org.uk> References: <1308556213-24970-1-git-send-email-m.szyprowski@samsung.com> <1308556213-24970-8-git-send-email-m.szyprowski@samsung.com> <20110620150610.GG26089@n2100.arm.linux.org.uk> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, Jun 21, 2011 at 12:06 AM, Russell King - ARM Linux wrote: > Wrong - there is a difference. ?For pre-ARMv6 CPUs, it returns memory > with different attributes from DMA coherent memory. > > And we're not going to sweep away pre-ARMv6 CPUs any time soon. ?So > you can't ignore dma_alloc_writecombine() which must remain to sanely > support framebuffers. > OK. Thanks. Then, I think we can implement dma_alloc_writecombine() away from dma_map_ops. IMHO, those devices that use dma_alloc_writecombine() are enough with the default dma_map_ops. Removing a member from dma_map_ops is too heavy work.