All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Chen, Tiejun" <tiejun.chen@intel.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: kevin.tian@intel.com, keir@xen.org, jinsong.liu@alibaba-inc.com,
	xen-devel@lists.xen.org, andrew.cooper3@citrix.com,
	yang.z.zhang@intel.com, boris.ostrovsky@oracle.com
Subject: Re: [PATCH 1/3] xen/vt-d: need barriers to workaround CLFLUSH
Date: Wed, 06 May 2015 14:47:02 +0800	[thread overview]
Message-ID: <5549B8E6.20802@intel.com> (raw)
In-Reply-To: <5548A86B02000078000768CD@mail.emea.novell.com>

On 2015/5/5 17:24, Jan Beulich wrote:
>>>> On 05.05.15 at 04:45, <tiejun.chen@intel.com> wrote:
>> Does this work for everyone?
>
> Please first of all explain why the interfaces in asm/flushtlb.h can't
> be used here (at least when flushing entire pages). Because - as

I also don't understand any reason we didn't use this previously on 
IOMMU side...

> said before - for a complete fix you'd need to deal with the CLFLUSH
> use(s) elsewhere in the system too.

Looks we need to do this in xen/arch/x86/flushtlb.c:flush_area_local().

>
> Btw, isn't the !iommus_incoherent check in that function inverted?
> I.e. why would we _not_ need to flush caches when IOMMUs
> are not coherent (and why would flushing be needed when they're
> coherent anyway)?
>

I guess you're misunderstanding this

     if ( !ecap_coherent(iommu->ecap) )
         iommus_incoherent = 1;

So here !iommus_incoherent means IOMMU is coherent and then we don't 
need to flush cache in this case.

Thanks
Tiejun

  reply	other threads:[~2015-05-06  6:47 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-04  2:16 [PATCH 1/3] xen/vt-d: need barriers to workaround CLFLUSH Tiejun Chen
2015-05-04  2:16 ` [PATCH 2/3] xen/vt-d: mask interrupt message generation Tiejun Chen
2015-05-04  4:07   ` Zhang, Yang Z
2015-05-04  5:08     ` Chen, Tiejun
2015-05-04  6:41       ` Zhang, Yang Z
2015-05-04  8:57       ` Jan Beulich
2015-05-04 11:21         ` Chen, Tiejun
2015-05-04  2:16 ` [PATCH 3/3] xen/iommu: disable IOMMU engine completely before enter S5 Tiejun Chen
2015-05-04  9:00   ` Jan Beulich
2015-05-04  4:07 ` [PATCH 1/3] xen/vt-d: need barriers to workaround CLFLUSH Zhang, Yang Z
2015-05-04  8:52 ` Jan Beulich
2015-05-04  9:14   ` Andrew Cooper
2015-05-04  9:24     ` Jan Beulich
2015-05-05  1:13       ` Zhang, Yang Z
2015-05-05 15:46     ` Boris Ostrovsky
2015-05-05 15:58       ` Jan Beulich
2015-05-05 16:11         ` Boris Ostrovsky
2015-05-06  7:12           ` Jan Beulich
2015-05-06  7:26             ` Chen, Tiejun
2015-05-06  7:33               ` Jan Beulich
2015-05-06 15:11             ` Boris Ostrovsky
2015-05-06  7:09       ` Chen, Tiejun
2015-05-04 10:39   ` Chen, Tiejun
2015-05-04 10:43     ` Jan Beulich
2015-05-04 10:52       ` Tian, Kevin
2015-05-04 11:26         ` Chen, Tiejun
2015-05-05  1:13           ` Tian, Kevin
2015-05-05  2:45       ` Chen, Tiejun
2015-05-05  9:24         ` Jan Beulich
2015-05-06  6:47           ` Chen, Tiejun [this message]
2015-05-06  7:14             ` Jan Beulich
2015-05-04 15:22     ` Konrad Rzeszutek Wilk
2015-05-04 15:33       ` Andrew Cooper

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=5549B8E6.20802@intel.com \
    --to=tiejun.chen@intel.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=jinsong.liu@alibaba-inc.com \
    --cc=keir@xen.org \
    --cc=kevin.tian@intel.com \
    --cc=xen-devel@lists.xen.org \
    --cc=yang.z.zhang@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 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.