xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
To: Jan Beulich <JBeulich@suse.com>,
	Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Yang Z Zhang <yang.z.zhang@intel.com>,
	Kevin Tian <kevin.tian@intel.com>,
	Aravind Gopalakrishnan <aravind.gopalakrishnan@amd.com>,
	Xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH] x86/ats: Disable Address Translation Services by default
Date: Thu, 28 Aug 2014 02:08:11 -0500	[thread overview]
Message-ID: <53FED55B.5030109@amd.com> (raw)
In-Reply-To: <53F7563C020000780002CB46@mail.emea.novell.com>

Andrew/Jan,

I have verified that PCI device pass-through works with ATS disabled. 
Although, could you please help described how "asynchronous queued 
invalidation support" supposed to work?

Thanks,

Suravee

On 08/22/2014 07:39 AM, Jan Beulich wrote:
>>>> On 20.08.14 at 18:01, <andrew.cooper3@citrix.com> wrote:
>> Xen cannot safely use any ATS functionality until it gains asynchronous
>> queued
>> invalidation support, because of the current synchronous wait for
>> completion.
>>
>> Do not turn ATS on by default.
>>
>> While editing the default in the command line documentation, correct the
>> statement regarding PCI Passthrough.  ATS is purely a performance
>> optimisation, and is certainly not required for PCI Passthrough to function.
>>
>> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
>> CC: Jan Beulich <JBeulich@suse.com>
>
> Even if not mandated by ./MAINTAINERS I think this definitely
> should have been Cc-ed to the VT-d and AMD IOMMU maintainers
> (now done).
>
> Jan
>
>> ---
>>   docs/misc/xen-command-line.markdown |    9 ++++++---
>>   xen/drivers/passthrough/x86/ats.c   |    2 +-
>>   2 files changed, 7 insertions(+), 4 deletions(-)
>>
>> diff --git a/docs/misc/xen-command-line.markdown
>> b/docs/misc/xen-command-line.markdown
>> index a8cab59..5f4680f 100644
>> --- a/docs/misc/xen-command-line.markdown
>> +++ b/docs/misc/xen-command-line.markdown
>> @@ -176,10 +176,13 @@ developers wishing Xen to fall back to older timing
>> methods on newer hardware.
>>   ### ats
>>   > `= <boolean>`
>>
>> -> Default: `true`
>> +> Default: `false`
>> +
>> +Permits Xen to set up and use PCI Address Translation Services.  This is a
>> +performance optimisation for PCI Passthrough.
>>
>> -Permits Xen to set up and use PCI Address Translation Services, which
>> -is required for PCI Passthrough.
>> +**WARNING: Xen cannot currently safely use ATS because of its synchronous
>> wait
>> +loops for Queued Invalidation completions.**
>>
>>   ### availmem
>>   > `= <size>`
>> diff --git a/xen/drivers/passthrough/x86/ats.c
>> b/xen/drivers/passthrough/x86/ats.c
>> index 1e3e03a..436eada 100644
>> --- a/xen/drivers/passthrough/x86/ats.c
>> +++ b/xen/drivers/passthrough/x86/ats.c
>> @@ -20,7 +20,7 @@
>>
>>   LIST_HEAD(ats_devices);
>>
>> -bool_t __read_mostly ats_enabled = 1;
>> +bool_t __read_mostly ats_enabled = 0;
>>   boolean_param("ats", ats_enabled);
>>
>>   int enable_ats_device(int seg, int bus, int devfn, const void *iommu)
>> --
>> 1.7.10.4
>
>
>

  parent reply	other threads:[~2014-08-28  7:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-20 16:01 [PATCH] x86/ats: Disable Address Translation Services by default Andrew Cooper
2014-08-22 12:39 ` Jan Beulich
2014-08-27  0:37   ` Zhang, Yang Z
2014-08-27  6:21     ` Jan Beulich
2014-08-28  7:08   ` Suravee Suthikulpanit [this message]
2014-08-28  7:32     ` Jan Beulich
2014-08-28  8:18       ` Suravee Suthikulpanit
2014-08-28  8:30         ` Jan Beulich
2014-08-28 10:07           ` Suravee Suthikulpanit

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=53FED55B.5030109@amd.com \
    --to=suravee.suthikulpanit@amd.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=aravind.gopalakrishnan@amd.com \
    --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 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).