git: 218457166f6b - stable/13 - mca: Remove excessively verbose debug messages.

From: Alexander Motin <mav_at_FreeBSD.org>
Date: Wed, 15 Dec 2021 04:00:22 UTC
The branch stable/13 has been updated by mav:

URL: https://cgit.FreeBSD.org/src/commit/?id=218457166f6bb2944fb85077b2bf983d63af67f6

commit 218457166f6bb2944fb85077b2bf983d63af67f6
Author:     Alexander Motin <mav@FreeBSD.org>
AuthorDate: 2021-12-08 03:27:09 +0000
Commit:     Alexander Motin <mav@FreeBSD.org>
CommitDate: 2021-12-15 04:00:17 +0000

    mca: Remove excessively verbose debug messages.
    
    Expecially in case of AMD there was more than dozen lines per CPU.
    
    MFC after:      1 week
    
    (cherry picked from commit 935dc0de88195e8ce62be085ddfb002eb19ca17f)
---
 sys/x86/x86/local_apic.c | 4 ----
 sys/x86/x86/mca.c        | 5 -----
 2 files changed, 9 deletions(-)

diff --git a/sys/x86/x86/local_apic.c b/sys/x86/x86/local_apic.c
index 715ae7734e29..ab26fc8841ab 100644
--- a/sys/x86/x86/local_apic.c
+++ b/sys/x86/x86/local_apic.c
@@ -1464,8 +1464,6 @@ native_lapic_enable_cmc(void)
 	    ("%s: missing APIC %u", __func__, apic_id));
 	lapics[apic_id].la_lvts[APIC_LVT_CMCI].lvt_masked = 0;
 	lapics[apic_id].la_lvts[APIC_LVT_CMCI].lvt_active = 1;
-	if (bootverbose)
-		printf("lapic%u: CMCI unmasked\n", apic_id);
 }
 
 static int
@@ -1495,8 +1493,6 @@ native_lapic_enable_mca_elvt(void)
 	}
 	lapics[apic_id].la_elvts[APIC_ELVT_MCA].lvt_masked = 0;
 	lapics[apic_id].la_elvts[APIC_ELVT_MCA].lvt_active = 1;
-	if (bootverbose)
-		printf("lapic%u: MCE Thresholding ELVT unmasked\n", apic_id);
 	return (APIC_ELVT_MCA);
 }
 
diff --git a/sys/x86/x86/mca.c b/sys/x86/x86/mca.c
index dcb3179bbb70..1b34fc398068 100644
--- a/sys/x86/x86/mca.c
+++ b/sys/x86/x86/mca.c
@@ -1223,11 +1223,6 @@ amd_thresholding_monitor(int i)
 		return;
 	}
 
-	/* Re-use Intel CMC support infrastructure. */
-	if (bootverbose)
-		printf("%s: Starting AMD thresholding on bank %d\n", __func__,
-		    i);
-
 	cc = &amd_et_state[PCPU_GET(cpuid)][i];
 	cc->cur_threshold = 1;
 	amd_thresholding_start(cc, i);