Lines Matching full:amd

33 /* Support for the AMD K8 and later processors */
54 /* AMD K8 PMCs */
221 ("[amd,%d] illegal CPU value %d", __LINE__, cpu)); in amd_read_pmc()
223 ("[amd,%d] illegal row-index %d", __LINE__, ri)); in amd_read_pmc()
225 ("[amd,%d] null per-cpu, cpu %d", __LINE__, cpu)); in amd_read_pmc()
230 PMCDBG2(MDP, REA, 1, "amd-read id=%d class=%d", ri, in amd_read_pmc()
234 PMCDBG2(MDP, REA, 2, "amd-read (pre-munge) id=%d -> %jd", ri, tmp); in amd_read_pmc()
251 PMCDBG2(MDP, REA, 2, "amd-read (post-munge) id=%d -> %jd", ri, *v); in amd_read_pmc()
266 ("[amd,%d] illegal CPU value %d", __LINE__, cpu)); in amd_write_pmc()
268 ("[amd,%d] illegal row-index %d", __LINE__, ri)); in amd_write_pmc()
277 PMCDBG3(MDP, WRI, 1, "amd-write cpu=%d ri=%d v=%jx", cpu, ri, v); in amd_write_pmc()
295 ("[amd,%d] illegal CPU value %d", __LINE__, cpu)); in amd_config_pmc()
297 ("[amd,%d] illegal row-index %d", __LINE__, ri)); in amd_config_pmc()
302 ("[amd,%d] pm=%p phw->pm=%p hwpmc not unconfigured", in amd_config_pmc()
366 ("[amd,%d] illegal row index %d", __LINE__, ri)); in amd_allocate_pmc()
379 PMCDBG2(MDP, ALL, 1,"amd-allocate ri=%d caps=0x%x", ri, caps); in amd_allocate_pmc()
394 PMCDBG2(MDP, ALL, 2,"amd-allocate ri=%d -> config=0x%x", ri, in amd_allocate_pmc()
442 PMCDBG2(MDP, ALL, 2, "amd-allocate ri=%d -> config=0x%x", ri, config); in amd_allocate_pmc()
457 ("[amd,%d] illegal CPU value %d", __LINE__, cpu)); in amd_release_pmc()
459 ("[amd,%d] illegal row-index %d", __LINE__, ri)); in amd_release_pmc()
464 ("[amd,%d] PHW pmc %p non-NULL", __LINE__, phw->phw_pmc)); in amd_release_pmc()
479 ("[amd,%d] illegal CPU value %d", __LINE__, cpu)); in amd_start_pmc()
481 ("[amd,%d] illegal row-index %d", __LINE__, ri)); in amd_start_pmc()
485 PMCDBG2(MDP, STA, 1, "amd-start cpu=%d ri=%d", cpu, ri); in amd_start_pmc()
488 ("[amd,%d] pmc%d,cpu%d: Starting active PMC \"%s\"", __LINE__, in amd_start_pmc()
494 PMCDBG1(MDP, STA, 2, "amd-start config=0x%x", config); in amd_start_pmc()
511 ("[amd,%d] illegal CPU value %d", __LINE__, cpu)); in amd_stop_pmc()
513 ("[amd,%d] illegal row-index %d", __LINE__, ri)); in amd_stop_pmc()
518 ("[amd,%d] PMC%d, CPU%d \"%s\" already stopped", in amd_stop_pmc()
521 PMCDBG1(MDP, STO, 1, "amd-stop ri=%d", ri); in amd_stop_pmc()
528 * Due to NMI latency on newer AMD processors in amd_stop_pmc()
562 ("[amd,%d] out of range CPU %d", __LINE__, cpu)); in amd_intr()
606 ("[amd,%d] config mismatch reg=0x%jx pm=0x%jx", __LINE__, in amd_intr()
656 ("[amd,%d] illegal CPU %d", __LINE__, cpu)); in amd_describe()
658 ("[amd,%d] row-index %d out of range", __LINE__, ri)); in amd_describe()
684 ("[amd,%d] ri %d out of range", __LINE__, ri)); in amd_get_msr()
702 ("[amd,%d] insane cpu number %d", __LINE__, cpu)); in amd_pcpu_init()
704 PMCDBG1(MDP, INI, 1, "amd-init cpu=%d", cpu); in amd_pcpu_init()
716 KASSERT(pc != NULL, ("[amd,%d] NULL per-cpu pointer", __LINE__)); in amd_pcpu_init()
740 ("[amd,%d] insane cpu number (%d)", __LINE__, cpu)); in amd_pcpu_fini()
742 PMCDBG1(MDP, INI, 1, "amd-cleanup cpu=%d", cpu); in amd_pcpu_fini()
764 ("[amd,%d] CPU%d/PMC%d in use", __LINE__, cpu, i)); in amd_pcpu_fini()
766 ("[amd,%d] CPU%d/PMC%d not stopped", __LINE__, cpu, i)); in amd_pcpu_fini()
771 KASSERT(pc != NULL, ("[amd,%d] NULL per-cpu state", __LINE__)); in amd_pcpu_fini()
798 * The presence of hardware performance counters on the AMD in pmc_amd_initialize()
821 printf("pmc: Unknown AMD CPU %x %d-%d.\n", cpu_id, family, in pmc_amd_initialize()
846 /* Initialize AMD K8 PMC handling. */ in pmc_amd_initialize()
881 PMCDBG0(MDP, INI, 0, "amd-initialize"); in pmc_amd_initialize()
891 * Finalization code for AMD CPUs.
896 PMCDBG0(MDP, INI, 1, "amd-finalize"); in pmc_amd_finalize()
902 ("[amd,%d] non-null pcpu cpu %d", __LINE__, i)); in pmc_amd_finalize()