From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752858AbaINUCF (ORCPT ); Sun, 14 Sep 2014 16:02:05 -0400 Received: from gw-1.arm.linux.org.uk ([78.32.30.217]:56177 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752766AbaINUCD (ORCPT ); Sun, 14 Sep 2014 16:02:03 -0400 Date: Sun, 14 Sep 2014 21:01:52 +0100 From: Russell King - ARM Linux To: Ankit Jindal Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , patches@apm.com, Rob Herring , "Hans J. Koch" , Tushar Jagad , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 2/5] Documentation: Update documentation for UIO_MEM_PHYS_CACHE Message-ID: <20140914200152.GV12361@n2100.arm.linux.org.uk> References: <1410256619-3213-1-git-send-email-ankit.jindal@linaro.org> <1410256619-3213-3-git-send-email-ankit.jindal@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1410256619-3213-3-git-send-email-ankit.jindal@linaro.org> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 09, 2014 at 03:26:56PM +0530, Ankit Jindal wrote: > This patch update UIO documentation for new mem region > type UIO_MEM_PHYS_CACHE. > > Signed-off-by: Ankit Jindal > Signed-off-by: Tushar Jagad > --- > Documentation/DocBook/uio-howto.tmpl | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/Documentation/DocBook/uio-howto.tmpl b/Documentation/DocBook/uio-howto.tmpl > index bbe9c1f..49e47d4 100644 > --- a/Documentation/DocBook/uio-howto.tmpl > +++ b/Documentation/DocBook/uio-howto.tmpl > @@ -530,7 +530,8 @@ the memory region, it will show up in the corresponding sysfs node. > UIO_MEM_PHYS if you you have physical memory on your > card to be mapped. Use UIO_MEM_LOGICAL for logical > memory (e.g. allocated with kmalloc()). There's also > -UIO_MEM_VIRTUAL for virtual memory. > +UIO_MEM_VIRTUAL for virtual memory and > +UIO_MEM_PHYS_CACHE for physical cacheable memory. When I read this, I wondered what "physical cacheable memory" was. Then I found that what you're doing with this is mapping physical memory into userspace with cacheable attributes. So, to avoid confusion, this should be "for physical memory, which will be cacheably mapped" or similar. -- FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up according to speedtest.net.