xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] VT-d: Chop down the DMAR_OPERATION_TIMEOUT to a low number of milliseconds.
@ 2016-03-14  7:16 Quan Xu
  2016-03-15  4:37 ` Tian, Kevin
  2016-03-15  9:14 ` Jan Beulich
  0 siblings, 2 replies; 4+ messages in thread
From: Quan Xu @ 2016-03-14  7:16 UTC (permalink / raw)
  To: xen-devel; +Cc: Andrew Cooper, Kevin Tian, Feng Wu, Jan Beulich, Quan Xu

We confirmed with VT-d hardware team that 1ms is large enough for IOMMU
internal flush. So We can change the DMAR_OPERATION_TIMEOUT from 1000 ms
to 1 ms.

Signed-off-by: Quan Xu <quan.xu@intel.com>

CC: Jan Beulich <jbeulich@suse.com>
CC: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Feng Wu <feng.wu@intel.com>
CC: Kevin Tian <kevin.tian@intel.com>
---
 xen/drivers/passthrough/vtd/dmar.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/drivers/passthrough/vtd/dmar.h b/xen/drivers/passthrough/vtd/dmar.h
index 729b603..4b14368 100644
--- a/xen/drivers/passthrough/vtd/dmar.h
+++ b/xen/drivers/passthrough/vtd/dmar.h
@@ -106,7 +106,7 @@ struct acpi_atsr_unit *acpi_find_matched_atsr_unit(const struct pci_dev *);
 #define RMRR_TYPE 2
 #define ATSR_TYPE 3
 
-#define DMAR_OPERATION_TIMEOUT MILLISECS(1000)
+#define DMAR_OPERATION_TIMEOUT MILLISECS(1)
 
 #define IOMMU_WAIT_OP(iommu, offset, op, cond, sts) \
 do {                                                \
-- 
1.9.1


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] VT-d: Chop down the DMAR_OPERATION_TIMEOUT to a low number of milliseconds.
  2016-03-14  7:16 [PATCH] VT-d: Chop down the DMAR_OPERATION_TIMEOUT to a low number of milliseconds Quan Xu
@ 2016-03-15  4:37 ` Tian, Kevin
  2016-03-15  5:03   ` Xu, Quan
  2016-03-15  9:14 ` Jan Beulich
  1 sibling, 1 reply; 4+ messages in thread
From: Tian, Kevin @ 2016-03-15  4:37 UTC (permalink / raw)
  To: Xu, Quan, xen-devel; +Cc: Andrew Cooper, Wu, Feng, Jan Beulich

> From: Xu, Quan
> Sent: Monday, March 14, 2016 3:16 PM
> 
> We confirmed with VT-d hardware team that 1ms is large enough for IOMMU
> internal flush. So We can change the DMAR_OPERATION_TIMEOUT from 1000 ms
> to 1 ms.
> 
> Signed-off-by: Quan Xu <quan.xu@intel.com>
> 

Acked-by: Kevin Tian <kevin.tian@intel.com>

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] VT-d: Chop down the DMAR_OPERATION_TIMEOUT to a low number of milliseconds.
  2016-03-15  4:37 ` Tian, Kevin
@ 2016-03-15  5:03   ` Xu, Quan
  0 siblings, 0 replies; 4+ messages in thread
From: Xu, Quan @ 2016-03-15  5:03 UTC (permalink / raw)
  To: Tian, Kevin, xen-devel; +Cc: Andrew Cooper, Wu, Feng, Jan Beulich

On March 15, 2016 12:38pm, Tian, Kevin <kevin.tian@intel.com> wrote:
> > From: Xu, Quan
> > Sent: Monday, March 14, 2016 3:16 PM
> >
> > We confirmed with VT-d hardware team that 1ms is large enough for
> > IOMMU internal flush. So We can change the DMAR_OPERATION_TIMEOUT
> from
> > 1000 ms to 1 ms.
> >
> > Signed-off-by: Quan Xu <quan.xu@intel.com>
> >
> 
> Acked-by: Kevin Tian <kevin.tian@intel.com>

Kevin, thanks!!
Quan

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] VT-d: Chop down the DMAR_OPERATION_TIMEOUT to a low number of milliseconds.
  2016-03-14  7:16 [PATCH] VT-d: Chop down the DMAR_OPERATION_TIMEOUT to a low number of milliseconds Quan Xu
  2016-03-15  4:37 ` Tian, Kevin
@ 2016-03-15  9:14 ` Jan Beulich
  1 sibling, 0 replies; 4+ messages in thread
From: Jan Beulich @ 2016-03-15  9:14 UTC (permalink / raw)
  To: Quan Xu; +Cc: Andrew Cooper, Kevin Tian, Feng Wu, xen-devel

>>> On 14.03.16 at 08:16, <quan.xu@intel.com> wrote:
> We confirmed with VT-d hardware team that 1ms is large enough for IOMMU
> internal flush. So We can change the DMAR_OPERATION_TIMEOUT from 1000 ms
> to 1 ms.

First of all the description mentions just one of the two uses of
this constant. And then I'm hesitant to commit this as long as the
panic()-s are still there when that timeout expires - reducing the
timeout (the more this significantly) will raise the (theoretical)
chance of actually invoking one of them. Hence the proper order
in which I would like to see things happen is for this to be reduced
only after having
- eliminated the panic()-s
- decoupled the device IOTLB invalidation from this path (after
  all right now flush_iotlb_qi() uses invalidate_sync() for both,
  and hence the shortened timeout now pretty certainly is too
  short for the device IOTLB case)

Temporarily it may be sufficient to just eliminate the panic()-s,
provided the timeout value would then be made dependent on
ats_enabled.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-03-15  9:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-14  7:16 [PATCH] VT-d: Chop down the DMAR_OPERATION_TIMEOUT to a low number of milliseconds Quan Xu
2016-03-15  4:37 ` Tian, Kevin
2016-03-15  5:03   ` Xu, Quan
2016-03-15  9:14 ` Jan Beulich

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).