Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1590970 > unrolled thread
| Started by | Mian Yousaf Kaukab <yousaf.kaukab@suse.com> |
|---|---|
| First post | 2017-03-02 11:40 +0100 |
| Last post | 2017-03-02 11:40 +0100 |
| Articles | 2 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH 1/2] irqdomain: add empty irq_domain_check_msi_remap Mian Yousaf Kaukab <yousaf.kaukab@suse.com> - 2017-03-02 11:40 +0100
[PATCH 2/2] vfio: type1: conditionally check MSI remapping at irq domain level Mian Yousaf Kaukab <yousaf.kaukab@suse.com> - 2017-03-02 11:40 +0100
| From | Mian Yousaf Kaukab <yousaf.kaukab@suse.com> |
|---|---|
| Date | 2017-03-02 11:40 +0100 |
| Subject | [PATCH 1/2] irqdomain: add empty irq_domain_check_msi_remap |
| Message-ID | <tgw02-OJ-9@gated-at.bofh.it> |
Fix following build error for s390:
drivers/vfio/vfio_iommu_type1.c: In function 'vfio_iommu_type1_attach_group':
drivers/vfio/vfio_iommu_type1.c:1290:25: error: implicit declaration of function 'irq_domain_check_msi_remap'
Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@suse.com>
---
include/linux/irqdomain.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h
index 188eced6813e..137817b08cdc 100644
--- a/include/linux/irqdomain.h
+++ b/include/linux/irqdomain.h
@@ -524,6 +524,10 @@ static inline struct irq_domain *irq_find_matching_fwnode(
{
return NULL;
}
+static inline bool irq_domain_check_msi_remap(void)
+{
+ return true;
+}
#endif /* !CONFIG_IRQ_DOMAIN */
#endif /* _LINUX_IRQDOMAIN_H */
--
2.11.0
[toc] | [next] | [standalone]
| From | Mian Yousaf Kaukab <yousaf.kaukab@suse.com> |
|---|---|
| Date | 2017-03-02 11:40 +0100 |
| Subject | [PATCH 2/2] vfio: type1: conditionally check MSI remapping at irq domain level |
| Message-ID | <tgw9H-Sh-5@gated-at.bofh.it> |
| In reply to | #1590970 |
Check only if irq domains are available.
Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@suse.com>
---
drivers/vfio/vfio_iommu_type1.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/vfio/vfio_iommu_type1.c b/drivers/vfio/vfio_iommu_type1.c
index bd6f293c4ebd..e3ed50e40ead 100644
--- a/drivers/vfio/vfio_iommu_type1.c
+++ b/drivers/vfio/vfio_iommu_type1.c
@@ -1287,8 +1287,9 @@ static int vfio_iommu_type1_attach_group(void *iommu_data,
INIT_LIST_HEAD(&domain->group_list);
list_add(&group->next, &domain->group_list);
- msi_remap = resv_msi ? irq_domain_check_msi_remap() :
- iommu_capable(bus, IOMMU_CAP_INTR_REMAP);
+ msi_remap = resv_msi && IS_ENABLED(CONFIG_IRQ_DOMAIN) ?
+ irq_domain_check_msi_remap() :
+ iommu_capable(bus, IOMMU_CAP_INTR_REMAP);
if (!allow_unsafe_interrupts && !msi_remap) {
pr_warn("%s: No interrupt remapping support. Use the module param \"allow_unsafe_interrupts\" to enable VFIO IOMMU support on this platform\n",
--
2.11.0
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web