Re: [PATCH] iommu: fix compilation without CONFIG_IOMMU_INTEL
From: Baolu Lu
Date: Thu Mar 07 2024 - 20:46:53 EST
On 3/8/24 3:44 AM, Bert Karwatzki wrote:
When the kernel is comiled with CONFIG_IRQ_REMAP=y but without
CONFIG_IOMMU_INTEL compilation fails since commit def054b01a8678 with an
undefined reference to device_rbtree_find(). This patch makes sure that
intel specific code is only compiled with CONFIG_IOMMU_INTEL=y.
Fixes: def054b01a8678 ("iommu/vt-d: Use device rbtree in iopf reporting path")
I think it should fix below commit:
Fixes: 80a9b50c0b9e ("iommu/vt-d: Improve ITE fault handling if target
device isn't present")
Signed-off-by: Bert Karwatzki<spasswolf@xxxxxx>
For users who want a configuration with interrupt remapping and without
DMA remapping, they can achieve this by selecting
IOMMU_DEFAULT_PASSTHROUGH or using kernel command "iommu.passthrough=1".
Reviewed-by: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx>
Best regards,
baolu