[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20140912192837.GC5196@gmail.com>
Date: Fri, 12 Sep 2014 15:28:37 -0400
From: Jerome Glisse <j.glisse@...il.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Joerg Roedel <jroedel@...e.de>,
Andrea Arcangeli <aarcange@...hat.com>,
Rik van Riel <riel@...hat.com>, Jay.Cornwall@....com,
Peter Zijlstra <a.p.zijlstra@...llo.nl>, John.Bridgman@....com,
Hugh Dickins <hughd@...gle.com>, linux-kernel@...r.kernel.org,
ben.sander@....com, linux-mm@...ck.org,
Jerome Glisse <jglisse@...hat.com>,
iommu@...ts.linux-foundation.org,
Jesse Barnes <jbarnes@...tuousgeek.org>,
Mel Gorman <mgorman@...e.de>,
David Woodhouse <dwmw2@...radead.org>,
Johannes Weiner <jweiner@...hat.com>
Subject: Re: [PATCH 0/3 v3] mmu_notifier: Allow to manage CPU external TLBs
On Fri, Sep 12, 2014 at 12:19:37PM -0700, Andrew Morton wrote:
> On Fri, 12 Sep 2014 20:47:39 +0200 Joerg Roedel <jroedel@...e.de> wrote:
>
> > thanks for your review, I tried to answer your questions below.
>
> You'd be amazed how helpful that was ;)
>
> > Fair enough, I hope I clarified a few things with my explanations
> > above. I will also update the description of the patch-set when I
> > re-send.
>
> Sounds good, thanks.
>
>
> How does HMM play into all of this? Would HMM make this patchset
> obsolete, or could HMM be evolved to do so?
HMM should be consider as distinc from this. The hardware TLB we are talking
with this patchset can be flush by the CPU from inside an atomic context (ie
while holding cpu page table spinlock for instance).
HMM on the other hand deals with hardware that have there own page table
ie they do not necessarily walk the cpu page table. Flushing the TLB for this
kind of hardware means scheduling some job on the hardware and this can not
be done from kernel atomic context as this job might take a long time to
complete (imagine preempting thousand of threads on a gpu).
Still HMM can be use in a mixed environement where the IOMMUv2 is use for
memory that reside into system ram while HMM only handle memory that have
been migrated to the device memory.
So while HMM intend to provide more features than IOMMUv2 hardware allow,
it does not intend to replace it. On contrary hope is that both can work at
same time.
Cheers,
Jérôme
> _______________________________________________
> iommu mailing list
> iommu@...ts.linux-foundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/iommu
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists