Re: 5-STABLE cpufreq hotter than est from ports

From: Nate Lawson (nate_at_root.org)
Date: 08/30/05

  • Next message: Gunther Nikl: "Re: Sysinstall automatic filesystem size generation."
    Date: Mon, 29 Aug 2005 21:57:09 -0700
    To: Tijl Coosemans <tijl@ulyssis.org>
    
    

    Tijl Coosemans wrote:
    > A couple days ago I updated my system and was excited to see cpufreq
    > and powerd in 5-stable. Since then however I noticed that my laptop
    > temperature is about 5°C higher than with est and estctrl. I found that
    > cpufreq when setting 200MHz for example set the absolute frequency to
    > 1600MHz (max for this laptop) and the relative frequency (p4tcc) to
    > 12.5% instead of using a more power conserving setting like 800MHz/25%.

    A variant of your patch has been committed and will be MFCd. Thanks!

    > So, I've worked out a patch (attached) that makes sure
    > that a lower frequency level has at most the same absolute setting
    > (preferably less of course). This eliminates quite a few levels so
    > somebody with a better knowledge of cpufreq should check if this patch
    > really does something good. This is the first time I've taken a look at
    > FreeBSD source code by the way.

    I added back the check for CPUFREQ_CMP since you don't want duplicate
    levels. This is not currently a problem with est/p4tcc but other
    combinations of settings could have produced duplicates with the patch's
    approach.

    > Also, somewhat related, the p4tcc driver doesn't recognise
    > acpi_throttle, which means that when you load the cpufreq module after
    > booting, the freq levels are messed up. I'm not sure what the best
    > solution for this is. Let p4tcc detect acpi_throttle and don't attach
    > if it's present (like acpi_throttle does now if it finds p4tcc) or
    > detach it before attaching? Or maybe p4tcc and acpi_throttle should be
    > merged into one driver?

    acpi_throttle is only the same as p4tcc on x86 platforms. We need a
    better negotiation strategy in general between the different drivers.
    The logic for these two is already p4tcc > acpi_throttle but we need to
    support reprobing when cpufreq.ko is loaded after boot by detaching both
    and then allowing p4tcc to win the probe.

    -- 
    Nate
    _______________________________________________
    freebsd-stable@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-stable
    To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
    

  • Next message: Gunther Nikl: "Re: Sysinstall automatic filesystem size generation."

    Relevant Pages

    • 5-STABLE cpufreq hotter than est from ports
      ... A couple days ago I updated my system and was excited to see cpufreq ... 1600MHz (max for this laptop) and the relative frequency (p4tcc) to ... that a lower frequency level has at most the same absolute setting ...
      (freebsd-stable)
    • Re: 5-STABLE cpufreq hotter than est from ports
      ... > cpufreq when setting 200MHz for example set the absolute frequency to ... > (and still skipping duplicates). ... the freq levels are messed up. ... Let p4tcc detect acpi_throttle and don't attach ...
      (freebsd-stable)
    • Linux 2.6.9-rc1
      ... cpufreq, agp, sata, network drivers - you name it. ... o cciss /proc dependency fix ... bus driver for multiple PowerPCs ... o USB: Make removable-LUN support a non-test option in the ...
      (Linux-Kernel)
    • [PATCH 3/8] Kconfig: cleanup cpufreq menu
      ... This properly indents the cpufreq menu. ... config X86_ACPI_CPUFREQ ... tristate "ACPI Processor P-States driver" ... This driver adds a CPUFreq driver which utilizes the ACPI ...
      (Linux-Kernel)
    • Re: 2.6.11-mm4
      ... the pmac cpufreq Kconfig dependencies are being troublesome. ... config PPC601_SYNC_FIX ... tristate "SuperH CPU Frequency driver" ... This adds the cpufreq driver for SuperH. ...
      (Linux-Kernel)