1. 17 3月, 2011 1 次提交
  2. 02 3月, 2011 2 次提交
  3. 30 12月, 2010 2 次提交
  4. 04 8月, 2010 3 次提交
    • B
      [CPUFREQ] powernow-k8: Fix misleading variable naming · b30d3304
      Borislav Petkov 提交于
      rdmsr() takes the lower 32 bits as a second argument and the high 32 as
      a third. Fix the names accordingly since they were swapped.
      
      There should be no functionality change resulting from this patch.
      Signed-off-by: NBorislav Petkov <borislav.petkov@amd.com>
      Signed-off-by: NDave Jones <davej@redhat.com>
      b30d3304
    • M
      [CPUFREQ] powernow-k8: On load failure, remind the user to enable support in BIOS setup · 298decfb
      Marti Raudsepp 提交于
      On Wed, 2010-01-20 at 16:56 +0100, Thomas Renninger wrote:
      > But most often this happens if people upgrade their CPU and do not
      > update their BIOS.
      > Or the vendor does not recognise the new CPU even if the BIOS got
      > updated.
      
      Maybe some of those people just didn't realize it was disabled in BIOS?
      If you tell users that it's a firmware bug then they'll probably just
      give up.
      
      > The itself message might be an enhancment, IMO it's not worth a patch.
      
      Why do you think so? I spent an hour on hunting down the BIOS upgrade,
      only to find that it didn't improve anything. It was a day later that I
      realized that it might be a BIOS option; and the option was literally
      the _last_ option in the whole BIOS setup. :)
      
      This message would have saved the day.
      
      > But do not revert the FW_BUG part!
      
      Sure, you have a point here.
      
      How about this patch?
      298decfb
    • B
      [CPUFREQ] powernow-k8: Limit Pstate transition latency check · c2f4a2c6
      Borislav Petkov 提交于
      The Pstate transition latency check was added for broken F10h BIOSen
      which wrongly contain a value of 0 for transition and bus master
      latency. Fam11h and later, however, (will) have similar transition
      latency so extend that behavior for them too.
      Signed-off-by: NBorislav Petkov <borislav.petkov@amd.com>
      Signed-off-by: NDave Jones <davej@redhat.com>
      c2f4a2c6
  5. 27 7月, 2010 1 次提交
  6. 19 7月, 2010 1 次提交
  7. 26 5月, 2010 1 次提交
  8. 03 5月, 2010 1 次提交
  9. 10 4月, 2010 3 次提交
  10. 28 1月, 2010 1 次提交
  11. 13 1月, 2010 1 次提交
  12. 17 12月, 2009 1 次提交
    • R
      cpumask: rename tsk_cpumask to tsk_cpus_allowed · a4636818
      Rusty Russell 提交于
      Noone uses this wrapper yet, and Ingo asked that it be kept consistent
      with current task_struct usage.
      
      (One user crept in via linux-next: fixed)
      
      Signed-off-by: Rusty Russell <rusty@rustcorp.com.au.
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Tejun Heo <tj@kernel.org>
      a4636818
  13. 25 11月, 2009 2 次提交
    • T
      [ACPI/CPUFREQ] Introduce bios_limit per cpu cpufreq sysfs interface · e2f74f35
      Thomas Renninger 提交于
      This interface is mainly intended (and implemented) for ACPI _PPC BIOS
      frequency limitations, but other cpufreq drivers can also use it for
      similar use-cases.
      
      Why is this needed:
      
      Currently it's not obvious why cpufreq got limited.
      People see cpufreq/scaling_max_freq reduced, but this could have
      happened by:
        - any userspace prog writing to scaling_max_freq
        - thermal limitations
        - hardware (_PPC in ACPI case) limitiations
      
      Therefore export bios_limit (in kHz) to:
        - Point the user that it's the BIOS (broken or intended) which limits
          frequency
        - Export it as a sysfs interface for userspace progs.
          While this was a rarely used feature on laptops, there will appear
          more and more server implemenations providing "Green IT" features like
          allowing the service processor to limit the frequency. People want
          to know about HW/BIOS frequency limitations.
      
      All ACPI P-state driven cpufreq drivers are covered with this patch:
        - powernow-k8
        - powernow-k7
        - acpi-cpufreq
      
      Tested with a patched DSDT which limits the first two cores (_PPC returns 1)
      via _PPC, exposed by bios_limit:
      # echo 2200000 >cpu2/cpufreq/scaling_max_freq
      # cat cpu*/cpufreq/scaling_max_freq
      2600000
      2600000
      2200000
      2200000
      # #scaling_max_freq shows general user/thermal/BIOS limitations
      
      # cat cpu*/cpufreq/bios_limit
      2600000
      2600000
      2800000
      2800000
      # #bios_limit only shows the HW/BIOS limitation
      
      CC: Pallipadi Venkatesh <venkatesh.pallipadi@intel.com>
      CC: Len Brown <lenb@kernel.org>
      CC: davej@codemonkey.org.uk
      CC: linux@dominikbrodowski.net
      Signed-off-by: NThomas Renninger <trenn@suse.de>
      Signed-off-by: NDave Jones <davej@redhat.com>
      e2f74f35
    • R
      [CPUFREQ] cpumask: don't put a cpumask on the stack in x86...cpufreq/powernow-k8.c · b8cbe7e8
      Rusty Russell 提交于
      It's still mugging the current process's cpumask, but as comment in
      1ff6e97f says, it's not a trivial fix.
      
      So, at least we can use a cpumask_var_t to do the Wrong Thing the Right Way :)
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      To: cpufreq@vger.kernel.org
      Cc: Mark Langsdorf <mark.langsdorf@amd.com>
      Signed-off-by: NDave Jones <davej@redhat.com>
      b8cbe7e8
  14. 18 11月, 2009 1 次提交
  15. 16 9月, 2009 1 次提交
  16. 02 9月, 2009 1 次提交
  17. 09 7月, 2009 1 次提交
  18. 07 7月, 2009 1 次提交
  19. 15 6月, 2009 7 次提交
  20. 09 6月, 2009 1 次提交
  21. 06 6月, 2009 1 次提交
  22. 27 5月, 2009 2 次提交
    • A
      [CPUFREQ] powernow-k8: determine exact CPU frequency for HW Pstates · ca446d06
      Andreas Herrmann 提交于
      Slightly modified by trenn@suse.de -> only do this on fam 10h and fam 11h.
      
      Currently powernow-k8 determines CPU frequency from ACPI PSS objects, but
      according to AMD family 11h BKDG this frequency is just a rounded value:
      
        "CoreFreq (MHz) = The CPU COF specified by MSRC001_00[6B:64][CpuFid]
        rounded to the nearest 100 Mhz."
      
      As a consequnce powernow-k8 reports wrong CPU frequency on some systems,
      e.g. on Turion X2 Ultra:
      
        powernow-k8: Found 1 AMD Turion(tm)X2 Ultra DualCore Mobile ZM-82
                     processors (2 cpu cores) (version 2.20.00)
        powernow-k8:    0 : pstate 0 (2200 MHz)
        powernow-k8:    1 : pstate 1 (1100 MHz)
        powernow-k8:    2 : pstate 2 (600 MHz)
      
      But this is wrong as frequency for Pstate2 is 550 MHz. x86info reports it
      correctly:
      
        #x86info -a |grep Pstate
        ...
        Pstate-0: fid=e, did=0, vid=24 (2200MHz)
        Pstate-1: fid=e, did=1, vid=30 (1100MHz)
        Pstate-2: fid=e, did=2, vid=3c (550MHz) (current)
      
      Solution is to determine the frequency directly from Pstate MSRs instead
      of using rounded values from ACPI table.
      Signed-off-by: NAndreas Herrmann <andreas.herrmann3@amd.com>
      Signed-off-by: NThomas Renninger <trenn@suse.de>
      Signed-off-by: NDave Jones <davej@redhat.com>
      ca446d06
    • T
      [CPUFREQ] powernow-k8 cleanup msg if BIOS does not export ACPI _PSS cpufreq data · df182977
      Thomas Renninger 提交于
      - Make the message shorter and easier to grep for
      - Use printk_once instead of WARN_ONCE (functionality of these was mixed)
      Signed-off-by: NThomas Renninger <trenn@suse.de>
      Cc: Langsdorf, Mark <mark.langsdorf@amd.com>
      Signed-off-by: NDave Jones <davej@redhat.com>
      df182977
  23. 13 3月, 2009 1 次提交
  24. 25 2月, 2009 3 次提交