Skip to content

Commit b8246a2

Browse files
hegdevasantjoergroedel
authored andcommitted
iommu/amd: Change log message severity
Use consistent log severity (pr_warn) to log all messages in SNP enable path. Suggested-by: Tom Lendacky <[email protected]> Signed-off-by: Vasant Hegde <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 89436f4 commit b8246a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/iommu/amd/init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3235,7 +3235,7 @@ static void iommu_snp_enable(void)
32353235
* configured with V1 page table (DTE[Mode] = 0 is not supported).
32363236
*/
32373237
if (no_iommu || iommu_default_passthrough()) {
3238-
pr_err("SNP: IOMMU disabled or configured in passthrough mode, SNP cannot be supported.\n");
3238+
pr_warn("SNP: IOMMU disabled or configured in passthrough mode, SNP cannot be supported.\n");
32393239
goto disable_snp;
32403240
}
32413241

@@ -3246,7 +3246,7 @@ static void iommu_snp_enable(void)
32463246

32473247
amd_iommu_snp_en = check_feature(FEATURE_SNP);
32483248
if (!amd_iommu_snp_en) {
3249-
pr_err("SNP: IOMMU SNP feature not enabled, SNP cannot be supported.\n");
3249+
pr_warn("SNP: IOMMU SNP feature not enabled, SNP cannot be supported.\n");
32503250
goto disable_snp;
32513251
}
32523252

0 commit comments

Comments
 (0)