From owner-freebsd-bugs@FreeBSD.ORG Fri Feb 24 00:30:11 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B79D616A420 for ; Fri, 24 Feb 2006 00:30:11 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AF1843D45 for ; Fri, 24 Feb 2006 00:30:11 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k1O0UBIT044741 for ; Fri, 24 Feb 2006 00:30:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1O0UBvA044740; Fri, 24 Feb 2006 00:30:11 GMT (envelope-from gnats) Resent-Date: Fri, 24 Feb 2006 00:30:11 GMT Resent-Message-Id: <200602240030.k1O0UBvA044740@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Larry Rosenman Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C052816A423 for ; Fri, 24 Feb 2006 00:23:06 +0000 (GMT) (envelope-from ler@lerctr.org) Received: from thebighonker.lerctr.org (thebighonker.lerctr.org [192.147.25.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2C5843D58 for ; Fri, 24 Feb 2006 00:23:03 +0000 (GMT) (envelope-from ler@lerctr.org) Received: from ler by thebighonker.lerctr.org with local (Exim 4.60 (FreeBSD)) (envelope-from ) id 1FCQjf-0000Qg-9P for FreeBSD-gnats-submit@freebsd.org; Thu, 23 Feb 2006 18:23:03 -0600 Message-Id: Date: Thu, 23 Feb 2006 18:23:03 -0600 From: Larry Rosenman To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/93773: kldloaded hwpmc doesn't see all 4 cpu's... X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Larry Rosenman List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Feb 2006 00:30:11 -0000 >Number: 93773 >Category: kern >Synopsis: kldloaded hwpmc doesn't see all 4 cpu's... >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Feb 24 00:30:10 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Larry Rosenman >Release: FreeBSD 6.1-PRERELEASE amd64 >Organization: LERCTR Consulting >Environment: System: FreeBSD thebighonker.lerctr.org 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #14: Thu Feb 23 16:01:40 CST 2006 root@thebighonker.lerctr.org:/usr/obj/usr/src/sys/THEBIGHONKER amd64 >Description: Being the curious type, I tried to play with the hwpmc stuff. When I issue a pmccontrol -l, it complains about cpu 1 device not configured. I had kldloaded hwpmc. $ sysctl hw hw.machine: amd64 hw.model: Intel(R) Xeon(TM) CPU 3.00GHz hw.ncpu: 4 hw.byteorder: 1234 hw.physmem: 4286386176 hw.usermem: 4071378944 hw.pagesize: 4096 hw.floatingpoint: 1 hw.machine_arch: amd64 hw.realmem: 5368709120 hw.ata.wc: 1 hw.ata.atapi_dma: 1 hw.ata.ata_dma: 1 hw.pci.do_power_resume: 1 hw.pci.do_power_nodriver: 0 hw.pci.enable_io_modes: 1 hw.pci.host_mem_start: 2147483648 hw.intr_storm_threshold: 500 hw.availpages: 1046481 hw.bus.devctl_disable: 0 hw.busdma.total_bpages: 34 hw.busdma.zone0.total_bpages: 1 hw.busdma.zone0.free_bpages: 1 hw.busdma.zone0.reserved_bpages: 0 hw.busdma.zone0.active_bpages: 0 hw.busdma.zone0.total_bounced: 0 hw.busdma.zone0.total_deferred: 0 hw.busdma.zone0.lowaddr: 0xfffffffffffffff hw.busdma.zone0.alignment: 128 hw.busdma.zone0.boundary: 0 hw.busdma.zone1.total_bpages: 1 hw.busdma.zone1.free_bpages: 1 hw.busdma.zone1.reserved_bpages: 0 hw.busdma.zone1.active_bpages: 0 hw.busdma.zone1.total_bounced: 0 hw.busdma.zone1.total_deferred: 0 hw.busdma.zone1.lowaddr: 0xffffffff hw.busdma.zone1.alignment: 4096 hw.busdma.zone1.boundary: 0 hw.busdma.zone2.total_bpages: 32 hw.busdma.zone2.free_bpages: 32 hw.busdma.zone2.reserved_bpages: 0 hw.busdma.zone2.active_bpages: 0 hw.busdma.zone2.total_bounced: 0 hw.busdma.zone2.total_deferred: 0 hw.busdma.zone2.lowaddr: 0xffffffff hw.busdma.zone2.alignment: 2 hw.busdma.zone2.boundary: 65536 hw.clockrate: 2992 hw.instruction_sse: 1 hw.psm.tap_timeout: 125000 hw.psm.tap_threshold: 25 hw.kbd.keymap_restrict_change: 0 hw.syscons.kbd_debug: 1 hw.syscons.kbd_reboot: 1 hw.syscons.bell: 1 hw.syscons.saver.keybonly: 1 hw.syscons.sc_no_suspend_vtswitch: 0 hw.acpi.supported_sleep_state: S1 S4 S5 hw.acpi.power_button_state: S5 hw.acpi.sleep_button_state: S1 hw.acpi.lid_switch_state: NONE hw.acpi.standby_state: S1 hw.acpi.suspend_state: S3 hw.acpi.sleep_delay: 1 hw.acpi.s4bios: 0 hw.acpi.verbose: 0 hw.acpi.cpu.cx_supported: C1/0 hw.acpi.cpu.cx_lowest: C1 hw.acpi.cpu.cx_usage: 100.00% hw.dri.0.name: mach64 0x26 hw.dri.0.vm: slot offset size type flags address mtrr hw.dri.0.clients: a dev pid uid magic ioctls hw.dri.0.debug: 0 $ kldstat Id Refs Address Size Name 1 3 0xffffffff80100000 619198 kernel 2 1 0xffffffff8071a000 1c310 geom_mirror.ko 3 1 0xffffffffb5f97000 9329 hwpmc.ko $ >How-To-Repeat: $ pmccontrol -l #CPU 0: #N NAME CLASS STATE ROW-DISP 0 TSC TSC ENABLED FREE 1 BPU_COUNTER0 P4 ENABLED FREE 2 BPU_COUNTER1 P4 ENABLED FREE 3 BPU_COUNTER2 P4 ENABLED FREE 4 BPU_COUNTER3 P4 ENABLED FREE 5 MS_COUNTER0 P4 ENABLED FREE 6 MS_COUNTER1 P4 ENABLED FREE 7 MS_COUNTER2 P4 ENABLED FREE 8 MS_COUNTER3 P4 ENABLED FREE 9 FLAME_COUNTER0 P4 ENABLED FREE 10 FLAME_COUNTER1 P4 ENABLED FREE 11 FLAME_COUNTER2 P4 ENABLED FREE 12 FLAME_COUNTER3 P4 ENABLED FREE 13 IQ_COUNTER0 P4 ENABLED FREE 14 IQ_COUNTER1 P4 ENABLED FREE 15 IQ_COUNTER2 P4 ENABLED FREE 16 IQ_COUNTER3 P4 ENABLED FREE 17 IQ_COUNTER4 P4 ENABLED FREE 18 IQ_COUNTER5 P4 ENABLED FREE pmccontrol: Unable to get PMC status for CPU 1: Device not configured $ I can provide shell and priv'd access if y'all want..... >Fix: >Release-Note: >Audit-Trail: >Unformatted: