All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cho KyongHo <pullip.cho-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
To: 'Grant Grundler'
	<grundler-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>,
	'Linux IOMMU'
	<iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>
Cc: 'Kukjin Kim' <kgene.kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>,
	'Sachin Kamat'
	<sachin.kamat-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
	'Jiri Kosina' <jkosina-AlSwsSmVLrQ@public.gmane.org>,
	'LKML' <linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	'Wei Yongjun'
	<yongjun_wei-zrsr2BFq86L20UzCJQGyNP8+0UxHXcjY@public.gmane.org>
Subject: RE: [PATCH] iommu/exynos: remove dead code (set_prefbuf)
Date: Tue, 06 Aug 2013 18:47:43 +0900	[thread overview]
Message-ID: <001f01ce9289$ff4f1230$fded3690$@samsung.com> (raw)
In-Reply-To: <CANEJEGu2B9FUDLn5EOPm1hOau1Y+s6rFZy3WVFQCO=3T6acgmg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

> -----Original Message-----
> From: grundler-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org [mailto:grundler-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org] On Behalf Of Grant Grundler
> Sent: Tuesday, August 06, 2013 1:40 AM
> 
> Ping?
> 
> Adding linux-iommu ML.
> 
> thanks,
> grant
> 
> On Tue, Jul 2, 2013 at 9:08 AM, Grant Grundler <grundler-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> wrote:
> > exynos_sysmmu_set_prefbuf() is not called any where.
> >
> > Signed-off-by: Grant Grundler <grundler-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>

Reviewed-by: Cho KyongHo <pullip.cho-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>

Thank you.

KyongHo.
> > ---
> >  drivers/iommu/exynos-iommu.c | 44 --------------------------------------------
> >  1 file changed, 44 deletions(-)
> >
> > diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c
> > index 3f32d64..0740189 100644
> > --- a/drivers/iommu/exynos-iommu.c
> > +++ b/drivers/iommu/exynos-iommu.c
> > @@ -247,50 +247,6 @@ static void __sysmmu_set_prefbuf(void __iomem *sfrbase, unsigned long base,
> >         __raw_writel(size - 1 + base,  sfrbase + REG_PB0_EADDR + idx * 8);
> >  }
> >
> > -void exynos_sysmmu_set_prefbuf(struct device *dev,
> > -                               unsigned long base0, unsigned long size0,
> > -                               unsigned long base1, unsigned long size1)
> > -{
> > -       struct sysmmu_drvdata *data = dev_get_drvdata(dev->archdata.iommu);
> > -       unsigned long flags;
> > -       int i;
> > -
> > -       BUG_ON((base0 + size0) <= base0);
> > -       BUG_ON((size1 > 0) && ((base1 + size1) <= base1));
> > -
> > -       read_lock_irqsave(&data->lock, flags);
> > -       if (!is_sysmmu_active(data))
> > -               goto finish;
> > -
> > -       for (i = 0; i < data->nsfrs; i++) {
> > -               if ((readl(data->sfrbases[i] + REG_MMU_VERSION) >> 28) == 3) {
> > -                       if (!sysmmu_block(data->sfrbases[i]))
> > -                               continue;
> > -
> > -                       if (size1 == 0) {
> > -                               if (size0 <= SZ_128K) {
> > -                                       base1 = base0;
> > -                                       size1 = size0;
> > -                               } else {
> > -                                       size1 = size0 -
> > -                                               ALIGN(size0 / 2, SZ_64K);
> > -                                       size0 = size0 - size1;
> > -                                       base1 = base0 + size0;
> > -                               }
> > -                       }
> > -
> > -                       __sysmmu_set_prefbuf(
> > -                                       data->sfrbases[i], base0, size0, 0);
> > -                       __sysmmu_set_prefbuf(
> > -                                       data->sfrbases[i], base1, size1, 1);
> > -
> > -                       sysmmu_unblock(data->sfrbases[i]);
> > -               }
> > -       }
> > -finish:
> > -       read_unlock_irqrestore(&data->lock, flags);
> > -}
> > -
> >  static void __set_fault_handler(struct sysmmu_drvdata *data,
> >                                         sysmmu_fault_handler_t handler)
> >  {
> > --
> > 1.8.3
> >

WARNING: multiple messages have this Message-ID (diff)
From: Cho KyongHo <pullip.cho@samsung.com>
To: "'Grant Grundler'" <grundler@chromium.org>,
	"'Linux IOMMU'" <iommu@lists.linux-foundation.org>
Cc: "'Joerg Roedel'" <joro@8bytes.org>,
	"'Sachin Kamat'" <sachin.kamat@linaro.org>,
	"'Jiri Kosina'" <jkosina@suse.cz>,
	"'Wei Yongjun'" <yongjun_wei@trendmicro.com.cn>,
	"'Kukjin Kim'" <kgene.kim@samsung.com>,
	"'LKML'" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH] iommu/exynos: remove dead code (set_prefbuf)
Date: Tue, 06 Aug 2013 18:47:43 +0900	[thread overview]
Message-ID: <001f01ce9289$ff4f1230$fded3690$@samsung.com> (raw)
In-Reply-To: <CANEJEGu2B9FUDLn5EOPm1hOau1Y+s6rFZy3WVFQCO=3T6acgmg@mail.gmail.com>

> -----Original Message-----
> From: grundler@google.com [mailto:grundler@google.com] On Behalf Of Grant Grundler
> Sent: Tuesday, August 06, 2013 1:40 AM
> 
> Ping?
> 
> Adding linux-iommu ML.
> 
> thanks,
> grant
> 
> On Tue, Jul 2, 2013 at 9:08 AM, Grant Grundler <grundler@chromium.org> wrote:
> > exynos_sysmmu_set_prefbuf() is not called any where.
> >
> > Signed-off-by: Grant Grundler <grundler@chromium.org>

Reviewed-by: Cho KyongHo <pullip.cho@samsung.com>

Thank you.

KyongHo.
> > ---
> >  drivers/iommu/exynos-iommu.c | 44 --------------------------------------------
> >  1 file changed, 44 deletions(-)
> >
> > diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c
> > index 3f32d64..0740189 100644
> > --- a/drivers/iommu/exynos-iommu.c
> > +++ b/drivers/iommu/exynos-iommu.c
> > @@ -247,50 +247,6 @@ static void __sysmmu_set_prefbuf(void __iomem *sfrbase, unsigned long base,
> >         __raw_writel(size - 1 + base,  sfrbase + REG_PB0_EADDR + idx * 8);
> >  }
> >
> > -void exynos_sysmmu_set_prefbuf(struct device *dev,
> > -                               unsigned long base0, unsigned long size0,
> > -                               unsigned long base1, unsigned long size1)
> > -{
> > -       struct sysmmu_drvdata *data = dev_get_drvdata(dev->archdata.iommu);
> > -       unsigned long flags;
> > -       int i;
> > -
> > -       BUG_ON((base0 + size0) <= base0);
> > -       BUG_ON((size1 > 0) && ((base1 + size1) <= base1));
> > -
> > -       read_lock_irqsave(&data->lock, flags);
> > -       if (!is_sysmmu_active(data))
> > -               goto finish;
> > -
> > -       for (i = 0; i < data->nsfrs; i++) {
> > -               if ((readl(data->sfrbases[i] + REG_MMU_VERSION) >> 28) == 3) {
> > -                       if (!sysmmu_block(data->sfrbases[i]))
> > -                               continue;
> > -
> > -                       if (size1 == 0) {
> > -                               if (size0 <= SZ_128K) {
> > -                                       base1 = base0;
> > -                                       size1 = size0;
> > -                               } else {
> > -                                       size1 = size0 -
> > -                                               ALIGN(size0 / 2, SZ_64K);
> > -                                       size0 = size0 - size1;
> > -                                       base1 = base0 + size0;
> > -                               }
> > -                       }
> > -
> > -                       __sysmmu_set_prefbuf(
> > -                                       data->sfrbases[i], base0, size0, 0);
> > -                       __sysmmu_set_prefbuf(
> > -                                       data->sfrbases[i], base1, size1, 1);
> > -
> > -                       sysmmu_unblock(data->sfrbases[i]);
> > -               }
> > -       }
> > -finish:
> > -       read_unlock_irqrestore(&data->lock, flags);
> > -}
> > -
> >  static void __set_fault_handler(struct sysmmu_drvdata *data,
> >                                         sysmmu_fault_handler_t handler)
> >  {
> > --
> > 1.8.3
> >


  parent reply	other threads:[~2013-08-06  9:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-02 16:08 [PATCH] iommu/exynos: remove dead code (set_prefbuf) Grant Grundler
     [not found] ` <1372781307-7906-1-git-send-email-grundler-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2013-08-05 16:39   ` Grant Grundler
2013-08-05 16:39     ` Grant Grundler
     [not found]     ` <CANEJEGu2B9FUDLn5EOPm1hOau1Y+s6rFZy3WVFQCO=3T6acgmg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-08-06  9:47       ` Cho KyongHo [this message]
2013-08-06  9:47         ` Cho KyongHo
2013-08-14  9:30 ` Joerg Roedel

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='001f01ce9289$ff4f1230$fded3690$@samsung.com' \
    --to=pullip.cho-sze3o3uu22jbdgjk7y7tuq@public.gmane.org \
    --cc=grundler-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org \
    --cc=iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=jkosina-AlSwsSmVLrQ@public.gmane.org \
    --cc=kgene.kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=sachin.kamat-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=yongjun_wei-zrsr2BFq86L20UzCJQGyNP8+0UxHXcjY@public.gmane.org \
    /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.