public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Luming Yu <luming.yu@gmail.com>
To: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: dwmw2@infradead.org, fenghua.yu@intel.com, tony.luck@intel.com,
	linux-kernel@vger.kernel.org, akpm@linux-foundation.org
Subject: Re: [RFC patch] clean up swiotlb check in intel_iommu_init
Date: Thu, 13 Aug 2009 14:02:11 +0800	[thread overview]
Message-ID: <3877989d0908122302x3bfc767agbca663ddbc7b40b5@mail.gmail.com> (raw)
In-Reply-To: <20090813122456P.fujita.tomonori@lab.ntt.co.jp>

>>
>> Since swiotlb is an fall back option that might have
>> initialized. We don't need to stop intel_iommu_init
>> because of swiotlb..
>
> I think that this doesn't work on X86; breaks "soft" boot option.

Assumption is that swiotlb is default dma_ops.
I got this patch when working on ia64, will check x86 later.
But it is only needed when most of us agree that swiotlb should be
the default.

>
>
>> Please review. If make sense, please apply.
>>
>> **The patch is enclosed in text attachment*
>> **Using web client to send the patch* *
>> **below is for review, please apply attached  patch*/
>>
>> Thanks,
>> Luming
>>
>> Signed-off-by: Yu Luming <luming.yu@intel.com>
>>
>>  intel-iommu.c |    2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>>
>> diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c
>> index 2314ad7..246acb9 100644
>> --- a/drivers/pci/intel-iommu.c
>> +++ b/drivers/pci/intel-iommu.c
>> @@ -3194,7 +3194,7 @@ int __init intel_iommu_init(void)
>>        * Check the need for DMA-remapping initialization now.
>>        * Above initialization will also be used by Interrupt-remapping.
>>        */
>> -     if (no_iommu || (swiotlb && !iommu_pass_through) || dmar_disabled)
>> +     if (no_iommu || dmar_disabled)
>>               return -ENODEV;
>>
>>       iommu_init_mempool();
>

  reply	other threads:[~2009-08-13  6:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-13  3:11 [RFC patch] clean up swiotlb check in intel_iommu_init Luming Yu
2009-08-13  3:25 ` FUJITA Tomonori
2009-08-13  6:02   ` Luming Yu [this message]
2009-08-13  8:23 ` David Woodhouse
2009-08-13  8:51   ` Luming Yu

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=3877989d0908122302x3bfc767agbca663ddbc7b40b5@mail.gmail.com \
    --to=luming.yu@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=dwmw2@infradead.org \
    --cc=fenghua.yu@intel.com \
    --cc=fujita.tomonori@lab.ntt.co.jp \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tony.luck@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