From owner-freebsd-bugs@FreeBSD.ORG Mon Feb 2 16:10:08 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2DE3E1065675 for ; Mon, 2 Feb 2009 16:10:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id EA31A8FC19 for ; Mon, 2 Feb 2009 16:10:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n12GA6XH025827 for ; Mon, 2 Feb 2009 16:10:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n12GA6YC025826; Mon, 2 Feb 2009 16:10:06 GMT (envelope-from gnats) Resent-Date: Mon, 2 Feb 2009 16:10:06 GMT Resent-Message-Id: <200902021610.n12GA6YC025826@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, Alexey Ivanov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 861E81065725 for ; Mon, 2 Feb 2009 16:03:33 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 727758FC24 for ; Mon, 2 Feb 2009 16:03:33 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n12G3WkO086282 for ; Mon, 2 Feb 2009 16:03:32 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n12G3WDe086280; Mon, 2 Feb 2009 16:03:32 GMT (envelope-from nobody) Message-Id: <200902021603.n12G3WDe086280@www.freebsd.org> Date: Mon, 2 Feb 2009 16:03:32 GMT From: Alexey Ivanov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/131302: powernow0: set freq failed, err 6 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Feb 2009 16:10:08 -0000 >Number: 131302 >Category: kern >Synopsis: powernow0: set freq failed, err 6 >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: Mon Feb 02 16:10:06 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Alexey Ivanov >Release: FreeBSD-CURRENT >Organization: Opticom LLC >Environment: FreeBSD PH34R 8.0-CURRENT FreeBSD 8.0-CURRENT #22: Mon Feb 2 17:56:09 MSK 2009 savetherbtz@PH34R:/usr/obj/usr/src/sys/PH34R.8 i386 >Description: I have repeating errors in /var/log/messages [PH34R] ~> tail -f /var/log/messages Feb 1 23:34:34 PH34R kernel: powernow0: set freq failed, err 6 Feb 1 23:34:34 PH34R kernel: powernow1: set freq failed, err 6 Feb 1 23:34:34 PH34R kernel: powernow0: set freq failed, err 6 Feb 1 23:34:34 PH34R kernel: powernow1: set freq failed, err 6 Feb 1 23:34:34 PH34R kernel: powernow0: set freq failed, err 6 Feb 1 23:34:41 PH34R last message repeated 17 times same problem on same hardware here and there http://lists.freebsd.org/pipermail/freebsd-current/2008-December/001401.html http://lists.freebsd.org/pipermail/freebsd-current/2009-January/002658.html Now deeper: Problem root is here: CF_DEBUG("setting abs freq %d on %s (cpu %d)\n", set->freq, device_get_nameunit(set->dev), PCPU_GET(cpuid)); error = CPUFREQ_DRV_SET(set->dev, set); CPUFREQ_DRV_SET returns != 0 Even deeper: first occur of problem after boot is here(powernow.c): (function pn8_setfidvid, line ~407) (i've added some debug information) rv = pn8_write_fidvid(val, cvid, sc->pll * (uint64_t) sc->fsb, &status); if (rv) { sc->errata |= PENDING_STUCK; printf("powernow: Phase 2.1: pn8_write_fidvid error\n"); return (rv); } then it's get stuck and always occurs here(powernow.c): pn8_setfidvid, line 348: rv = pn8_read_pending_wait(&status); if (rv) { printf("powernow: Phase 0: pn8_read_pending_wait error\n"); return (rv); } I've found comment in powernow.c for that pending error: #define PENDING_STUCK 0x2 /* With some buggy chipset and some newer AMD64 * processor (Rev. G?): * the pending bit from the msr FIDVID_STATUS * is set forever. No workaround :( */ Yeah, maybe it's buggy, but powernow works fine in Linux and Windows and worked for a long time on same hardware since FreeBSD 6.1, so maybe there IS workaround? PS, If I'm not mistaken problem first occurred when i've installed Linux 2.6.28 and rebooted from it. And it still some times disappears when i reboot from Windows. Sincerely, SaveTheRbtz. >How-To-Repeat: Same hardware(dmesg boot): Copyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.0-CURRENT #22: Mon Feb 2 17:56:09 MSK 2009 savetherbtz@PH34R:/usr/obj/usr/src/sys/PH34R.8 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Turion(tm) 64 X2 Mobile Technology TL-60 (1994.92-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x40f82 Stepping = 2 Features=0x178bfbff Features2=0x2001 AMD Features=0xea500800 AMD Features2=0x1f Cores per package: 2 real memory = 1476067328 (1407 MB) avail memory = 1423880192 (1357 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ACPI Error (tbfadt-0516): 32/64X address mismatch in "Pm2ControlBlock": [ 8800] [ 0 8100], using 64X [20070320] ioapic0: Changing APIC ID to 2 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 cryptosoft0: on motherboard acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) unknown: I/O range not supported acpi0: reservation of 0, 8000000 (3) failed acpi0: reservation of 100000, fff00000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0 acpi_ec0: port 0x62,0x66 on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 vgapci0: port 0x4000-0x40ff mem 0xc0000000-0xc7ffffff,0xd0200000-0xd020ffff,0xd0300000-0xd03fffff irq 19 at device 5.0 on pci1 pcib2: at device 4.0 on pci0 pci16: on pcib2 bge0: mem 0xd0000000-0xd000ffff irq 16 at device 0.0 on pci16 miibus0: on bge0 brgphy0: PHY 1 on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto bge0: Ethernet address: 00:1a:4b:6b:88:cc bge0: [ITHREAD] pcib3: at device 5.0 on pci0 pci32: on pcib3 pcib4: at device 6.0 on pci0 pci48: on pcib4 ndis0: mem 0xc8000000-0xc8003fff irq 18 at device 0.0 on pci48 ndis0: [ITHREAD] ndis0: NDIS API version: 5.1 atapci0: port 0x9000-0x9007,0x9008-0x900b,0x9010-0x9017,0x5018-0x501b,0x5020-0x502f mem 0xd0409000-0xd04093ff irq 16 at device 18.0 on pci0 atapci0: [ITHREAD] atapci0: AHCI Version 01.10 controller with 4 ports PM not supported ata2: on atapci0 ata2: [ITHREAD] ata3: on atapci0 ata3: port not implemented ata3: [ITHREAD] ata4: on atapci0 ata4: port not implemented ata4: [ITHREAD] ata5: on atapci0 ata5: port not implemented ata5: [ITHREAD] ohci0: mem 0xd0401000-0xd0401fff irq 23 at device 19.0 on pci0 ohci0: [ITHREAD] usbus0: on ohci0 ohci1: mem 0xd0402000-0xd0402fff irq 17 at device 19.1 on pci0 ohci1: [ITHREAD] usbus1: on ohci1 ohci2: mem 0xd0403000-0xd0403fff irq 17 at device 19.2 on pci0 ohci2: [ITHREAD] usbus2: on ohci2 ohci3: mem 0xd0404000-0xd0404fff irq 17 at device 19.3 on pci0 ohci3: [ITHREAD] usbus3: on ohci3 ohci4: mem 0xd0405000-0xd0405fff irq 17 at device 19.4 on pci0 ohci4: [ITHREAD] usbus4: on ohci4 ehci0: mem 0xd0406000-0xd04060ff irq 23 at device 19.5 on pci0 ehci0: [ITHREAD] usbus5: EHCI version 1.0 usbus5: on ehci0 pci0: at device 20.0 (no driver attached) atapci1: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x5040-0x504f irq 16 at device 20.1 on pci0 ata0: on atapci1 ata0: [ITHREAD] hdac0: irq 16 at device 20.2 on pci0 hdac0: HDA Driver Revision: 20090131_0127 hdac0: [ITHREAD] isab0: at device 20.3 on pci0 isa0: on isab0 pcib5: at device 20.4 on pci0 pci2: on pcib5 cbb0: mem 0xd0100000-0xd0100fff irq 20 at device 4.0 on pci2 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 cbb0: [FILTER] battery0: on acpi0 battery1: on acpi0 acpi_acad0: on acpi0 acpi_button0: on acpi0 acpi_lid0: on acpi0 acpi_tz0: on acpi0 atrtc0: port 0x70-0x71,0x72-0x73 irq 8 on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model Synaptics Touchpad, device ID 3 cpu0: on acpi0 acpi_throttle0: on cpu0 powernow0: on cpu0 cpu1: on acpi0 acpi_throttle1: on cpu1 acpi_throttle1: failed to attach P_CNT device_attach: acpi_throttle1 attach returned 6 powernow1: on cpu1 pmtimer0 on isa0 orm0: at iomem 0xd0000-0xd0fff pnpid ORM0000 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ppc0: parallel port not found. Timecounters tick every 1.000 msec IPsec: Initialized Security Association Processing. ipfw2 (+ipv6) initialized, divert enabled, nat loadable, rule-based forwarding enabled, default to accept, logging limited to 10 packets/entry by default usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 12Mbps Full Speed USB v1.0 usbus4: 12Mbps Full Speed USB v1.0 usbus5: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 ushub0: on usbus0 ugen1.1: at usbus1 ushub1: on usbus1 ugen2.1: at usbus2 ushub2: on usbus2 ugen3.1: at usbus3 ushub3: on usbus3 ugen4.1: at usbus4 ushub4: on usbus4 ugen5.1: at usbus5 ushub5: on usbus5 acd0: DVDR at ata0-master PIO4 ad4: 152627MB at ata2-master SATA300 ushub0: 2 ports with 2 removable, self powered ushub1: 2 ports with 2 removable, self powered ushub2: 2 ports with 2 removable, self powered ushub3: 2 ports with 2 removable, self powered ushub4: 2 ports with 2 removable, self powered hdac0: HDA Codec #0: Analog Devices AD1981HD hdac0: HDA Codec #1: Lucent/Agere Systems (Unknown) pcm0: at cad 0 nid 1 on hdac0 GEOM: ad4s2: geometry does not match label (255h,63s != 16h,63s). acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 (probe0:ata0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:ata0:0:0:0): CAM Status: SCSI Status Error (probe0:ata0:0:0:0): SCSI Status: Check Condition (probe0:ata0:0:0:0): NOT READY asc:3a,1 (probe0:ata0:0:0:0): Medium not present - tray closed (probe0:ata0:0:0:0): Unretryable error ushub5: 10 ports with 10 removable, self powered acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 (probe0:ata0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:ata0:0:0:0): CAM Status: SCSI Status Error (probe0:ata0:0:0:0): SCSI Status: Check Condition (probe0:ata0:0:0:0): NOT READY asc:3a,1 (probe0:ata0:0:0:0): Medium not present - tray closed (probe0:ata0:0:0:0): Unretryable error cd0 at ata0 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 16.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed SMP: AP CPU #1 Launched! Trying to mount root from ufs:/dev/ad4s2a ugen0.2: at usbus0 ubt0: on usbus0 GEOM_ELI: Device ad4s2f.eli created. GEOM_ELI: Encryption: Blowfish-CBC 448 GEOM_ELI: Crypto: software GEOM_ELI: Device ad4s2h.eli created. GEOM_ELI: Encryption: CAMELLIA-CBC 256 GEOM_ELI: Crypto: software GEOM_ELI: Device ad4s2b.eli created. GEOM_ELI: Encryption: AES-CBC 256 GEOM_ELI: Crypto: software wlan0: Ethernet address: 00:1a:73:8c:08:32 WARNING: attempt to net_add_domain(bluetooth) after domainfinalize() >Fix: >Release-Note: >Audit-Trail: >Unformatted: