Re: WARN_ON(irqs_disabled()) in dma_free_attrs?

2018-06-22 Thread Fredrik Noring
Hi Robin, Christoph, On Thu, Mar 15, 2018 at 01:11:03PM +, Robin Murphy wrote: > On 15/03/18 07:58, Christoph Hellwig wrote: > > On Wed, Mar 14, 2018 at 05:43:46PM +, Robin Murphy wrote: > > > > So maybe for now the quick fix is to move the sleep check as suggested > > > > earlier in this

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

2018-06-22 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 detect_extended_topolo

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

2018-06-22 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 Signed-o

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

2018-06-22 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 --- drivers/iommu/amd_iomm

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

2018-06-22 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 sectio

[RFC PATCH] iommu/amd: amd_iommu_xt_mode can be static

2018-06-22 Thread kbuild test robot
Fixes: fec2da987eac ("iommu/amd: Add support for IOMMU XT mode") Signed-off-by: kbuild test robot --- amd_iommu_init.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c index 1c6f813..f6dd63f 100644 --- a/drive

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

2018-06-22 Thread kbuild test robot
Hi Suravee, I love your patch! Perhaps something to improve: [auto build test WARNING on iommu/next] [also build test WARNING on v4.18-rc1 next-20180622] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux