All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
To: ohad@wizery.com
Cc: arnd@arndb.de, tony@atomide.com, Joerg.Roedel@amd.com,
	iommu@lists.linux-foundation.org,
	laurent.pinchart@ideasonboard.com, linux-omap@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 5/7] omap: iovmm: remove unused functionality
Date: Thu, 18 Aug 2011 13:19:28 +0300 (EEST)	[thread overview]
Message-ID: <20110818.131928.751866371806910622.Hiroshi.DOYU@nokia.com> (raw)
In-Reply-To: <1313622608-30397-6-git-send-email-ohad@wizery.com>

Hi Ohad,

From: ext Ohad Ben-Cohen <ohad@wizery.com>
Subject: [PATCH 5/7] omap: iovmm: remove unused functionality
Date: Thu, 18 Aug 2011 02:10:06 +0300

> Remove unused functionality from OMAP's iovmm module.
> 
> The intention is to eventually completely replace iovmm with the
> generic DMA-API, so new code that'd need this iovmm functionality
> will have to extend the DMA-API instead.

Maybe it's better to remove the comments explaining unnecessary
functions too. Now the function comparison table doesn't make sense....

>From c42c675f62241099a10e4610640e6a60fb111f1f Mon Sep 17 00:00:00 2001
From: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Date: Thu, 18 Aug 2011 13:13:53 +0300
Subject: [PATCH 1/1] omap: iommu: remove obsolete comments

Remove ones referring to non-existing functions.

Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
---
 drivers/iommu/omap-iovmm.c |   36 +-----------------------------------
 1 files changed, 1 insertions(+), 35 deletions(-)

diff --git a/drivers/iommu/omap-iovmm.c b/drivers/iommu/omap-iovmm.c
index 81b713a..2db655c 100644
--- a/drivers/iommu/omap-iovmm.c
+++ b/drivers/iommu/omap-iovmm.c
@@ -1,7 +1,7 @@
 /*
  * omap iommu: simple virtual address space management
  *
- * Copyright (C) 2008-2009 Nokia Corporation
+ * Copyright (C) 2008-2009, 2011 Nokia Corporation
  *
  * Written by Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
  *
@@ -25,40 +25,6 @@
 
 #include <plat/iopgtable.h>
 
-/*
- * A device driver needs to create address mappings between:
- *
- * - iommu/device address
- * - physical address
- * - mpu virtual address
- *
- * There are 4 possible patterns for them:
- *
- *    |iova/			  mapping		iommu_		page
- *    | da	pa	va	(d)-(p)-(v)		function	type
- *  ---------------------------------------------------------------------------
- *  1 | c	c	c	 1 - 1 - 1	  _kmap() / _kunmap()	s
- *  2 | c	c,a	c	 1 - 1 - 1	_kmalloc()/ _kfree()	s
- *  3 | c	d	c	 1 - n - 1	  _vmap() / _vunmap()	s
- *  4 | c	d,a	c	 1 - n - 1	_vmalloc()/ _vfree()	n*
- *
- *
- *	'iova':	device iommu virtual address
- *	'da':	alias of 'iova'
- *	'pa':	physical address
- *	'va':	mpu virtual address
- *
- *	'c':	contiguous memory area
- *	'd':	discontiguous memory area
- *	'a':	anonymous memory allocation
- *	'()':	optional feature
- *
- *	'n':	a normal page(4KB) size is used.
- *	's':	multiple iommu superpage(16MB, 1MB, 64KB, 4KB) size is used.
- *
- *	'*':	not yet, but feasible.
- */
-
 static struct kmem_cache *iovm_area_cachep;
 
 /* return total bytes of sg buffers */
-- 
1.7.1

WARNING: multiple messages have this Message-ID (diff)
From: Hiroshi.DOYU@nokia.com (Hiroshi DOYU)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 5/7] omap: iovmm: remove unused functionality
Date: Thu, 18 Aug 2011 13:19:28 +0300 (EEST)	[thread overview]
Message-ID: <20110818.131928.751866371806910622.Hiroshi.DOYU@nokia.com> (raw)
In-Reply-To: <1313622608-30397-6-git-send-email-ohad@wizery.com>

Hi Ohad,

From: ext Ohad Ben-Cohen <ohad@wizery.com>
Subject: [PATCH 5/7] omap: iovmm: remove unused functionality
Date: Thu, 18 Aug 2011 02:10:06 +0300

> Remove unused functionality from OMAP's iovmm module.
> 
> The intention is to eventually completely replace iovmm with the
> generic DMA-API, so new code that'd need this iovmm functionality
> will have to extend the DMA-API instead.

Maybe it's better to remove the comments explaining unnecessary
functions too. Now the function comparison table doesn't make sense....

  reply	other threads:[~2011-08-18 10:19 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-17 23:10 [PATCH 0/7] omap: iommu migration, relocation and cleanups Ohad Ben-Cohen
2011-08-17 23:10 ` Ohad Ben-Cohen
2011-08-17 23:10 ` [PATCH 1/7] omap: iommu: migrate to the generic IOMMU API Ohad Ben-Cohen
2011-08-17 23:10   ` Ohad Ben-Cohen
2011-08-18  9:01   ` Laurent Pinchart
2011-08-18  9:01     ` Laurent Pinchart
2011-08-18  9:05     ` Ohad Ben-Cohen
2011-08-18  9:05       ` Ohad Ben-Cohen
2011-08-18 13:35     ` Arnd Bergmann
2011-08-18 13:35       ` Arnd Bergmann
2011-08-23 14:07   ` Roedel, Joerg
2011-08-23 14:07     ` Roedel, Joerg
2011-08-23 14:59     ` Ohad Ben-Cohen
2011-08-23 14:59       ` Ohad Ben-Cohen
2011-08-24 12:46       ` Ohad Ben-Cohen
2011-08-24 12:46         ` Ohad Ben-Cohen
2011-08-24 13:15         ` Roedel, Joerg
2011-08-24 13:15           ` Roedel, Joerg
2011-08-24 14:46           ` Ohad Ben-Cohen
2011-08-24 14:46             ` Ohad Ben-Cohen
2011-08-17 23:10 ` [PATCH 2/7] omap: iommu/iovmm: move to dedicated iommu folder Ohad Ben-Cohen
2011-08-17 23:10   ` Ohad Ben-Cohen
2011-08-18 13:38   ` Arnd Bergmann
2011-08-18 13:38     ` Arnd Bergmann
2011-08-18 13:53     ` Ohad Ben-Cohen
2011-08-18 13:53       ` Ohad Ben-Cohen
2011-08-17 23:10 ` [PATCH 3/7] omap: iommu: stop exporting local functions Ohad Ben-Cohen
2011-08-17 23:10   ` Ohad Ben-Cohen
2011-08-17 23:10 ` [PATCH 4/7] omap: iommu: PREFETCH_IOTLB cleanup Ohad Ben-Cohen
2011-08-17 23:10   ` Ohad Ben-Cohen
2011-08-18  5:27   ` Hiroshi DOYU
2011-08-18  5:27     ` Hiroshi DOYU
2011-08-18  6:33     ` Ohad Ben-Cohen
2011-08-18  6:33       ` Ohad Ben-Cohen
2011-08-17 23:10 ` [PATCH 5/7] omap: iovmm: remove unused functionality Ohad Ben-Cohen
2011-08-17 23:10   ` Ohad Ben-Cohen
2011-08-18 10:19   ` Hiroshi DOYU [this message]
2011-08-18 10:19     ` Hiroshi DOYU
2011-08-18 10:23     ` Ohad Ben-Cohen
2011-08-18 10:23       ` Ohad Ben-Cohen
2011-08-18 12:45       ` Hiroshi DOYU
2011-08-18 12:45         ` Hiroshi DOYU
2011-08-17 23:10 ` [PATCH 6/7] omap: iommu: remove unused exported API Ohad Ben-Cohen
2011-08-17 23:10   ` Ohad Ben-Cohen
2011-08-18 10:49   ` Hiroshi DOYU
2011-08-18 10:49     ` Hiroshi DOYU
2011-08-18 11:01     ` Ohad Ben-Cohen
2011-08-18 11:01       ` Ohad Ben-Cohen
2011-08-18 13:40       ` David Cohen
2011-08-18 13:40         ` David Cohen
2011-08-18 13:45         ` Ohad Ben-Cohen
2011-08-18 13:45           ` Ohad Ben-Cohen
2011-08-17 23:10 ` [PATCH 7/7] omap: iommu: omapify 'struct iommu' and exposed API Ohad Ben-Cohen
2011-08-17 23:10   ` Ohad Ben-Cohen
2011-08-18  9:12 ` [PATCH 0/7] omap: iommu migration, relocation and cleanups Laurent Pinchart
2011-08-18  9:12   ` Laurent Pinchart
2011-08-18 10:50   ` Hiroshi DOYU
2011-08-18 10:50     ` Hiroshi DOYU
2011-08-23 14:26 ` Roedel, Joerg
2011-08-23 14:26   ` Roedel, Joerg
2011-08-23 15:15   ` Ohad Ben-Cohen
2011-08-23 15:15     ` Ohad Ben-Cohen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110818.131928.751866371806910622.Hiroshi.DOYU@nokia.com \
    --to=hiroshi.doyu@nokia.com \
    --cc=Joerg.Roedel@amd.com \
    --cc=arnd@arndb.de \
    --cc=iommu@lists.linux-foundation.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=ohad@wizery.com \
    --cc=tony@atomide.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.