All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Wladimir J. van der Laan" <laanwj@gmail.com>
To: Lucas Stach <l.stach@pengutronix.de>
Cc: etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
	patchwork-lst@pengutronix.de, kernel@pengutronix.de,
	Russell King <linux+etnaviv@armlinux.org.uk>
Subject: Re: [PATCH 1/8] etnaviv: remove iommu fault handler
Date: Wed, 27 Sep 2017 13:24:06 +0200	[thread overview]
Message-ID: <20170927112406.GA7198@amethyst.visucore.com> (raw)
In-Reply-To: <20170915170439.9768-1-l.stach@pengutronix.de>

On Fri, Sep 15, 2017 at 07:04:32PM +0200, Lucas Stach wrote:
> The handler has never been used, so it's really just dead code.
> 
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>

Reviewed-by: Wladimir J. van der Laan <laanwj@gmail.com>

> ---
>  drivers/gpu/drm/etnaviv/etnaviv_mmu.c | 9 ---------
>  1 file changed, 9 deletions(-)
> 
> diff --git a/drivers/gpu/drm/etnaviv/etnaviv_mmu.c b/drivers/gpu/drm/etnaviv/etnaviv_mmu.c
> index f103e787de94..f3ed07db9b2d 100644
> --- a/drivers/gpu/drm/etnaviv/etnaviv_mmu.c
> +++ b/drivers/gpu/drm/etnaviv/etnaviv_mmu.c
> @@ -22,13 +22,6 @@
>  #include "etnaviv_iommu.h"
>  #include "etnaviv_mmu.h"
>  
> -static int etnaviv_fault_handler(struct iommu_domain *iommu, struct device *dev,
> -		unsigned long iova, int flags, void *arg)
> -{
> -	DBG("*** fault: iova=%08lx, flags=%d", iova, flags);
> -	return 0;
> -}
> -
>  int etnaviv_iommu_map(struct etnaviv_iommu *iommu, u32 iova,
>  		struct sg_table *sgt, unsigned len, int prot)
>  {
> @@ -307,8 +300,6 @@ struct etnaviv_iommu *etnaviv_iommu_new(struct etnaviv_gpu *gpu)
>  		    mmu->domain->geometry.aperture_end -
>  		    mmu->domain->geometry.aperture_start + 1);
>  
> -	iommu_set_fault_handler(mmu->domain, etnaviv_fault_handler, gpu->dev);
> -
>  	return mmu;
>  }
>  
> -- 
> 2.11.0
> 
> _______________________________________________
> etnaviv mailing list
> etnaviv@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/etnaviv
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

      parent reply	other threads:[~2017-09-27 11:24 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-15 17:04 [PATCH 1/8] etnaviv: remove iommu fault handler Lucas Stach
2017-09-15 17:04 ` [PATCH 2/8] etnaviv: remove iova_to_phys iommu ops Lucas Stach
2017-09-18 18:40   ` Philipp Zabel
2017-09-27 11:24   ` Wladimir J. van der Laan
2017-09-15 17:04 ` [PATCH 3/8] etnaviv: iommuv1: fold pagetable alloc and free into caller Lucas Stach
2017-09-18 18:41   ` Philipp Zabel
2017-09-27 11:26   ` Wladimir J. van der Laan
2017-09-15 17:04 ` [PATCH 4/8] etnaviv: iommuv1: remove map_lock Lucas Stach
2017-09-18 18:41   ` Philipp Zabel
2017-09-27 11:28   ` Wladimir J. van der Laan
2017-09-15 17:04 ` [PATCH 5/8] etnaviv: iommuv1: fold pgtable_write into callers Lucas Stach
2017-09-18 18:42   ` Philipp Zabel
2017-09-27 11:30   ` Wladimir J. van der Laan
2017-09-15 17:04 ` [PATCH 6/8] etnaviv: mmu: stop using iommu map/unmap functions Lucas Stach
2017-09-18 18:35   ` Philipp Zabel
2017-09-27 11:36   ` Wladimir J. van der Laan
2017-09-15 17:04 ` [PATCH 7/8] etnaviv: mmu: mark local functions static Lucas Stach
2017-09-18 18:42   ` Philipp Zabel
2017-09-27 11:37   ` Wladimir J. van der Laan
2017-09-15 17:04 ` [PATCH 8/8] etnaviv: remove IOMMU dependency Lucas Stach
2017-09-18 18:33   ` Philipp Zabel
2017-09-27 11:39   ` Wladimir J. van der Laan
2017-09-18 18:40 ` [PATCH 1/8] etnaviv: remove iommu fault handler Philipp Zabel
2017-09-27 11:24 ` Wladimir J. van der Laan [this message]

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=20170927112406.GA7198@amethyst.visucore.com \
    --to=laanwj@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=etnaviv@lists.freedesktop.org \
    --cc=kernel@pengutronix.de \
    --cc=l.stach@pengutronix.de \
    --cc=linux+etnaviv@armlinux.org.uk \
    --cc=patchwork-lst@pengutronix.de \
    /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.