Re: [PATCH v2 2/2] Allow VMD to disable MSIX remapping with interrupt remapping enabled.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/16/2022 8:51 AM, Nirmal Patel wrote:
> This patch removes a placeholder patch 2565e5b69c44 ("PCI: vmd: Do
> not disable MSI-X remapping if interrupt remapping is enabled by IOMMU.")
> This patch was added as a workaround to disable MSI remapping if iommu
> enables interrupt remapping. VMD does not assign proper IRQ domain to
> child devices when MSIX is disabled. There is no dependency between MSI
> remapping by VMD and interrupt remapping by iommu. MSI remapping can be
> enabled or disabled with and without interrupt remap.
>
> Signed-off-by: Nirmal Patel <nirmal.patel@xxxxxxxxx>
> ---
>  drivers/pci/controller/vmd.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/pci/controller/vmd.c b/drivers/pci/controller/vmd.c
> index 3a6570e5b765..91bc1b40d40c 100644
> --- a/drivers/pci/controller/vmd.c
> +++ b/drivers/pci/controller/vmd.c
> @@ -6,7 +6,6 @@
>  
>  #include <linux/device.h>
>  #include <linux/interrupt.h>
> -#include <linux/iommu.h>
>  #include <linux/irq.h>
>  #include <linux/kernel.h>
>  #include <linux/module.h>
> @@ -813,8 +812,7 @@ static int vmd_enable_domain(struct vmd_dev *vmd, unsigned long features)
>  	 * acceptable because the guest is usually CPU-limited and MSI
>  	 * remapping doesn't become a performance bottleneck.
>  	 */
> -	if (iommu_capable(vmd->dev->dev.bus, IOMMU_CAP_INTR_REMAP) ||
> -	    !(features & VMD_FEAT_CAN_BYPASS_MSI_REMAP) ||
> +	if (!(features & VMD_FEAT_CAN_BYPASS_MSI_REMAP) ||
>  	    offset[0] || offset[1]) {
>  		ret = vmd_alloc_irqs(vmd);
>  		if (ret)

Gentle ping!

Thanks
nirmal




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux