RE: [RFC PATCH] iommu/vt-d: Exclude known RMRRs from reserved ranges

2018-06-07 Thread Tian, Kevin
> From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Thursday, June 7, 2018 11:02 PM > > On Wed, 6 Jun 2018 05:29:58 + > "Tian, Kevin" wrote: > > > > From: Alex Williamson > > > Sent: Wednesday, June 6, 2018 3:07 AM > > > > > > device_is_rmrr_locked() allows graphics and USB d

[PATCH v2 2/2] iommu/vt-d: fix dev iotlb pfsid use

2018-06-07 Thread Jacob Pan
PFSID should be used in the invalidation descriptor for flushing device IOTLBs on SRIOV VFs. Signed-off-by: Jacob Pan Cc: sta...@vger.kernel.org Cc: "Ashok Raj" Cc: "Lu Baolu" --- drivers/iommu/dmar.c| 6 +++--- drivers/iommu/intel-iommu.c | 17 - include/linux/intel-i

[PATCH v2 1/2] iommu/vt-d: add definitions for PFSID

2018-06-07 Thread Jacob Pan
When SRIOV VF device IOTLB is invalidated, we need to provide the PF source ID such that IOMMU hardware can gauge the depth of invalidation queue which is shared among VFs. This is needed when device invalidation throttle (DIT) capability is supported. This patch adds bit definitions for checking

[PATCH v2 0/2] iommu/vt-d: pfsid fix

2018-06-07 Thread Jacob Pan
When device invalidation throttling(DIT) is supported by an IOMMU, device TLB invalidation should include physical function source ID(PFSID). Changes since v1: - Fixed compile error when CONFIG_PCI_ATS is not set - Simplified how PF source ID is retrieved Jacob Pan (2): iommu/vt-d: add definiti

Re: [PATCH v6 0/7] vfio/type1: Add support for valid iova list management

2018-06-07 Thread Alex Williamson
On Wed, 6 Jun 2018 06:52:08 + Shameerali Kolothum Thodi wrote: > > -Original Message- > > From: Alex Williamson [mailto:alex.william...@redhat.com] > > Sent: 05 June 2018 18:03 > > To: Shameerali Kolothum Thodi > > Cc: eric.au...@redhat.com; pmo...@linux.vnet.ibm.com; > > k...@vger.k

Re: [RFC PATCH] iommu/vt-d: Exclude known RMRRs from reserved ranges

2018-06-07 Thread Alex Williamson
On Wed, 6 Jun 2018 05:29:58 + "Tian, Kevin" wrote: > > From: Alex Williamson > > Sent: Wednesday, June 6, 2018 3:07 AM > > > > device_is_rmrr_locked() allows graphics and USB devices to participate > > in the IOMMU API despite, and ignoring their RMRR association, however > > intel_iommu_get

Re: [PATCH v4 04/22] iommu/vt-d: add bind_pasid_table function

2018-06-07 Thread Jean-Philippe Brucker
On 06/06/18 22:22, Jacob Pan wrote: > On Wed, 6 Jun 2018 12:20:51 +0100 > Jean-Philippe Brucker wrote: > >> On 05/06/18 18:32, Jacob Pan wrote: "bytes" could be passed by VFIO as argument to bind_pasid_table, since it can deduce it from argsz >>> Are you suggesting we wrap this s

Re: [PATCH 2/2] iommu/vt-d: fix dev iotlb pfsid use

2018-06-07 Thread kbuild test robot
-Pan/iommu-vt-d-pfsid-fix/20180607-134305 base: https://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git next config: ia64-defconfig (attached as .config) compiler: ia64-linux-gcc (GCC) 8.1.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O

Re: usb HC busted?

2018-06-07 Thread Mathias Nyman
On 06.06.2018 19:45, Sudip Mukherjee wrote: Hi Andy, And we meet again. :) On Wed, Jun 06, 2018 at 06:36:35PM +0300, Andy Shevchenko wrote: On Wed, 2018-06-06 at 17:12 +0300, Mathias Nyman wrote: On 04.06.2018 18:28, Sudip Mukherjee wrote: On Thu, May 24, 2018 at 04:35:34PM +0300, Mathias Ny