[PATCH v2 3/3] iommu/amd: Add support for IOMMU XT mode

2018-06-27 Thread Suravee Suthikulpanit
The AMD IOMMU XT mode enables interrupt remapping with 32-bit destination APIC ID, which is required for x2APIC. The feature is available when the XTSup bit is set in the IOMMU Extended Feature register and/or the IVHD Type 10h IOMMU Feature Reporting field. For more information, please see

[PATCH v2 2/3] iommu/amd: Add support for higher 64-bit IOMMU Control Register

2018-06-27 Thread Suravee Suthikulpanit
Currently, the driver only supports lower 32-bit of IOMMU Control register. However, newer AMD IOMMU specification has extended this register to 64-bit. Therefore, replace the accessing API with the 64-bit version. Cc: Joerg Roedel Signed-off-by: Suravee Suthikulpanit ---

[PATCH v2 0/3] iommu/amd: Enable x2APIC support

2018-06-27 Thread Suravee Suthikulpanit
This series enable x2APIC support for AMD platform by enabling AMD IOMMU XT mode to allow interrupt remapping with 32-bit destination APIC ID. For full x2APIC support, the following patches are also required (already available in v4.18-rc1) * 6c4f5abaf356 ("x86/CPU: Modify

[PATCH v2 1/3] x86: irq_remapping: Move irq remapping mode enum

2018-06-27 Thread Suravee Suthikulpanit
The enum is currently defined in Intel-specific DMAR header file, but it is also used by APIC common code. Therefore, move it to a more appropriate interrupt-remapping common header file. This will also be used by subsequent patches. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Joerg Roedel

Re: [PATCH v2 1/5] dt-bindings: virtio: Specify #iommu-cells value for a virtio-iommu

2018-06-27 Thread Rob Herring
On Tue, Jun 26, 2018 at 11:59 AM Jean-Philippe Brucker wrote: > > On 25/06/18 20:27, Rob Herring wrote: > > On Thu, Jun 21, 2018 at 08:06:51PM +0100, Jean-Philippe Brucker wrote: > >> A virtio-mmio node may represent a virtio-iommu device. This is discovered > >> by the virtio driver at probe

Re: [PATCH v2 0/5] Add virtio-iommu driver

2018-06-27 Thread Jean-Philippe Brucker
On 26/06/18 19:07, Michael S. Tsirkin wrote: > So as I pointed out new virtio 0 device isn't really welcome ;) Agreed, virtio-iommu is expected to be implemented on virtio 1 and later. I'll remove the two legacy-related paragraph from the spec and add a check in the driver as you suggested, to

Re: [PATCH v2 0/5] Add virtio-iommu driver

2018-06-27 Thread Michael S. Tsirkin
On Wed, Jun 27, 2018 at 07:04:46PM +0100, Jean-Philippe Brucker wrote: > On 26/06/18 19:07, Michael S. Tsirkin wrote: > > So as I pointed out new virtio 0 device isn't really welcome ;) > > Agreed, virtio-iommu is expected to be implemented on virtio 1 and > later. I'll remove the two

Re: usb HC busted?

2018-06-27 Thread Sudip Mukherjee
On Wed, Jun 27, 2018 at 12:59:48PM +0100, Sudip Mukherjee wrote: > Hi Mathias, > > On Mon, Jun 25, 2018 at 05:15:00PM +0100, Sudip Mukherjee wrote: > > Hi Mathias, > > > > On Thu, Jun 21, 2018 at 02:01:30PM +0300, Mathias Nyman wrote: > > > On 21.06.2018 03:53, Sudip Mukherjee wrote: > > > >

Re: [PATCH 0/3] iommu/amd: Enable x2APIC support

2018-06-27 Thread Joerg Roedel
Hey Suravee, On Fri, Jun 22, 2018 at 12:02:04PM -0500, Suravee Suthikulpanit wrote: > Suravee Suthikulpanit (3): > x86: irq_remapping: Move irq remapping mode enum > iommu/amd: Add support for higher 64-bit IOMMU Control Register > iommu/amd: Add support for IOMMU XT mode The patches look

Re: usb HC busted?

2018-06-27 Thread Sudip Mukherjee
Hi Mathias, On Mon, Jun 25, 2018 at 05:15:00PM +0100, Sudip Mukherjee wrote: > Hi Mathias, > > On Thu, Jun 21, 2018 at 02:01:30PM +0300, Mathias Nyman wrote: > > On 21.06.2018 03:53, Sudip Mukherjee wrote: > > > Hi Mathias, Andy, > > > > > > On Thu, Jun 07, 2018 at 10:40:03AM +0300, Mathias