|
@@ -115,6 +115,8 @@ struct ivmd_header {
|
|
|
u64 range_length;
|
|
|
} __attribute__((packed));
|
|
|
|
|
|
+bool amd_iommu_dump;
|
|
|
+
|
|
|
static int __initdata amd_iommu_detected;
|
|
|
|
|
|
u16 amd_iommu_last_bdf; /* largest PCI device id we have
|
|
@@ -1211,6 +1213,13 @@ void __init amd_iommu_detect(void)
|
|
|
*
|
|
|
****************************************************************************/
|
|
|
|
|
|
+static int __init parse_amd_iommu_dump(char *str)
|
|
|
+{
|
|
|
+ amd_iommu_dump = true;
|
|
|
+
|
|
|
+ return 1;
|
|
|
+}
|
|
|
+
|
|
|
static int __init parse_amd_iommu_options(char *str)
|
|
|
{
|
|
|
for (; *str; ++str) {
|
|
@@ -1235,5 +1244,6 @@ static int __init parse_amd_iommu_size_options(char *str)
|
|
|
return 1;
|
|
|
}
|
|
|
|
|
|
+__setup("amd_iommu_dump", parse_amd_iommu_dump);
|
|
|
__setup("amd_iommu=", parse_amd_iommu_options);
|
|
|
__setup("amd_iommu_size=", parse_amd_iommu_size_options);
|