diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index a8bb458845bc..32c3c6338a3d 100644
--- a/drivers/iommu/intel-iommu.c
+++ b/drivers/iommu/intel-iommu.c
@@ -4315,13 +4315,25 @@ static void __init init_iommu_pm_ops(void)
 static inline void init_iommu_pm_ops(void) {}
 #endif /* CONFIG_PM */
+static int rmrr_validity_check(struct acpi_dmar_reserved_memory *rmrr)
+{
+ÂÂÂ if ((rmrr->base_address & PAGE_MASK) ||
+ÂÂÂÂÂÂÂ (rmrr->end_address <= rmrr->base_address) ||
+ÂÂÂÂÂÂÂ ((rmrr->end_address - rmrr->base_address + 1) & PAGE_MASK)) {
+ÂÂÂÂÂÂÂ pr_err(FW_BUG "Broken RMRR base: %#018Lx end: %#018Lx\n",
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ rmrr->base_address, rmrr->end_address);
Since you will WARN_TAINT below, do you still want an error message
here?