iommu.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
From: Lu Baolu <baolu.lu@linux.intel.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: baolu.lu@linux.intel.com, Joerg Roedel <joro@8bytes.org>,
	David Woodhouse <dwmw2@infradead.org>,
	ashok.raj@intel.com, iommu@lists.linux-foundation.org,
	linux-kernel@vger.kernel.org,
	Jacob Pan <jacob.jun.pan@linux.intel.com>,
	Sohil Mehta <sohil.mehta@intel.com>
Subject: Re: [PATCH 1/1] iommu/vtd: Cleanup dma_remapping.h header
Date: Mon, 12 Nov 2018 09:17:44 +0800	[thread overview]
Message-ID: <518f02b4-8c4f-9451-68f1-cb014c4cc6eb@linux.intel.com> (raw)
In-Reply-To: <20181110083506.GB28614@infradead.org>

Hi,

On 11/10/18 4:35 PM, Christoph Hellwig wrote:
> On Sat, Nov 10, 2018 at 03:08:44PM +0800, Lu Baolu wrote:
>> Commit e61d98d8dad00 ("x64, x2apic/intr-remap: Intel vt-d, IOMMU
>> code reorganization") moved dma_remapping.h from drivers/pci/ to
>> current place. It is entirely VT-d specific, but uses a generic
>> name. This merges dma_remapping.h with include/linux/intel-iommu.h
>> and removes dma_remapping.h as the result.
> 
> This looks fine to me, thanks for doing the work.
> 
> Reviewed-by: Christoph Hellwig <hch@lst.de>

Thank you.

> 
>> --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
>> +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
>> @@ -34,7 +34,7 @@
>>   #include <drm/ttm/ttm_placement.h>
>>   #include <drm/ttm/ttm_bo_driver.h>
>>   #include <drm/ttm/ttm_module.h>
>> -#include <linux/dma_remapping.h>
>> +#include <linux/intel-iommu.h>
> 
> Btw, I don't think this driver has any business looking at Intel
> IOMMU driver internals, and the code doing so is more than gross.
> 
> Not really your job, but vmw_dma_select_mode really needs a rewrite with
> someone that has at least half a clue, and some taste.
> 
> Eventually we should also drop the intel_iommu_enabled export.
> 

Yes. Fair enough.

Best regards,
Lu Baolu

      reply	other threads:[~2018-11-12  1:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-10  7:08 [PATCH 1/1] iommu/vtd: Cleanup dma_remapping.h header Lu Baolu
     [not found] ` <20181110070844.28353-1-baolu.lu-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2018-11-10  8:35   ` Christoph Hellwig
2018-11-12  1:17     ` Lu Baolu [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=518f02b4-8c4f-9451-68f1-cb014c4cc6eb@linux.intel.com \
    --to=baolu.lu@linux.intel.com \
    --cc=ashok.raj@intel.com \
    --cc=dwmw2@infradead.org \
    --cc=hch@infradead.org \
    --cc=iommu@lists.linux-foundation.org \
    --cc=jacob.jun.pan@linux.intel.com \
    --cc=joro@8bytes.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sohil.mehta@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).