Skip to content

Commit 2535790

Browse files
LuBaolujoergroedel
authored andcommitted
iommu/vt-d: Make DMAR_UNITS_SUPPORTED default 1024
If the available hardware exceeds DMAR_UNITS_SUPPORTED (previously set to MAX_IO_APICS, or 128), it causes these messages: "DMAR: Failed to allocate seq_id", "DMAR: Parse DMAR table failure.", and "x2apic: IRQ remapping doesn't support X2APIC mode x2apic disabled"; and the system fails to boot properly. To support up to 64 sockets with 10 DMAR units each (640), make the value of DMAR_UNITS_SUPPORTED default 1024. Signed-off-by: Steve Wahl<[email protected]> Signed-off-by: Lu Baolu <[email protected]> Reviewed-by: Kevin Tian <[email protected]> Reviewed-by: Steve Wahl <[email protected]> Link: https://lore.kernel.org/linux-iommu/[email protected]/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent bdb46d1 commit 2535790

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

include/linux/dmar.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@
1818

1919
struct acpi_dmar_header;
2020

21-
#ifdef CONFIG_X86
22-
# define DMAR_UNITS_SUPPORTED MAX_IO_APICS
23-
#else
24-
# define DMAR_UNITS_SUPPORTED 64
25-
#endif
21+
#define DMAR_UNITS_SUPPORTED 1024
2622

2723
/* DMAR Flags */
2824
#define DMAR_INTR_REMAP 0x1

0 commit comments

Comments
 (0)