iommu/amd: Adding new command line option "amd-iommu=verbose"
PATCH 1/2 iommu/amd: Adding new command line option "amd-iommu=verbose"
From: Suravee Suthikulpanit <[email protected]>
Adding new command line option "amd-iommu=verbose" to allow verbose print out in dmesg.
Signed-off-by Suravee Suthikulpanit <[email protected]>
--- drivers/iommu/amd_iommu_init.c | 4 ++++ drivers/iommu/amd_iommu_types.h | 2 ++ 2 files changed, 6 insertions(+)
drivers/iommu/amd_iommu_init.c +4 -0
@@ -157,6 +157,8 @@ bool amd_iommu_v2_present __read_mostly;bool amd_iommu_force_isolation__read_mostly ; +bool amd_iommu_verbose__read_mostly ; +/* * List of protection domains - used during resume */
@@ -2092,6 +2094,8 @@ static int __init parse_amd_iommu_options(char *str) amd_iommu_disabled = true;if (strncmp (str,"force_isolation" ,15 ) ==0 ) amd_iommu_force_isolation = true; +if (strncmp (str,"verbose" ,7 ) ==0 ) + amd_iommu_verbose = true; }return 1 ;
drivers/iommu/amd_iommu_types.h +2 -0
@@ -694,6 +694,8 @@ extern bool amd_iommu_v2_present;extern bool amd_iommu_force_isolation; +extern bool amd_iommu_verbose; +/* Max levels of glxval supported */ extern int amd_iommu_max_glx_val;
Signature · 1 line
1.7.10.4