mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alex Williamson <alex.williamson@hp.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: David Woodhouse <dwmw2@infradead.org>,
	"Miller, Mike (OS Dev)" <mike.miller@hp.com>,
	"Rafael J. Wysocki" <rjw@sisk.pl>,
	iommu@lists.linux-foundation.org,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] intel-iommu: Fix alloc_coherent for pass-through devices
Date: Tue, 3 Nov 2009 21:51:35 -0700	[thread overview]
Message-ID: <7162ab20911032051p497b8525k73d2e2a80462fcb3@mail.gmail.com> (raw)
In-Reply-To: <20091103155734.b5ee1fed.akpm@linux-foundation.org>

On Tue, Nov 3, 2009 at 4:57 PM, Andrew Morton <akpm@linux-foundation.org> wrote:
> On Fri, 23 Oct 2009 00:49:01 +0900
> David Woodhouse <dwmw2@infradead.org> wrote:
>> diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c
>> index b1e97e6..773a662 100644
>> --- a/drivers/pci/intel-iommu.c
>> +++ b/drivers/pci/intel-iommu.c
>> @@ -2765,6 +2765,10 @@ static void *intel_alloc_coherent(struct device *hwdev, size_t size,
>>       void *vaddr;
>>       int order;
>>
>> +     if (iommu_no_mapping(hwdev))
>> +             return dma_generic_alloc_coherent(hwdev, size, dma_handle,
>> +                                               flags);
>> +
>>       size = PAGE_ALIGN(size);
>>       order = get_order(size);
>>       flags &= ~(GFP_DMA | GFP_DMA32);
>>
>> (That won't build on IA64)
>>
>
> This is a box-killing post-2.6.31 regression, yes?
>
> Alex appears to have disappeared on us, making it rather hard to fix
> this up promptly.

Nope, I'm still here.  David and I chatted about some of the issues
and I sent out a series of patches last week to address them.  See
this thread:

https://lists.linux-foundation.org/pipermail/iommu/2009-October/001851.html

The first patch, attempting to implement the above was a non-starter
and dropped.  I believe the other patches in the series are valid and
I'd certainly like to see at least the alloc_coherent part fixed for
.32.  I'll be happy to send out a revised set if there's any confusion
of where things stand.  Thanks,

Alex

  reply	other threads:[~2009-11-04  4:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-22  3:41 Alex Williamson
2009-10-22  6:28 ` David Woodhouse
2009-10-22 12:24   ` Alex Williamson
2009-10-22 14:47     ` David Woodhouse
2009-10-22 15:00       ` FUJITA Tomonori
2009-10-22 15:01       ` Alex Williamson
2009-10-22 15:49         ` David Woodhouse
2009-11-03 23:57           ` Andrew Morton
2009-11-04  4:51             ` Alex Williamson [this message]
2009-10-22 15:49 ` David Woodhouse

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=7162ab20911032051p497b8525k73d2e2a80462fcb3@mail.gmail.com \
    --to=alex.williamson@hp.com \
    --cc=akpm@linux-foundation.org \
    --cc=dwmw2@infradead.org \
    --cc=iommu@lists.linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mike.miller@hp.com \
    --cc=rjw@sisk.pl \
    /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

all inboxes | Powered by JetHome®