1. 03 Aug, 2010 7 commits
    • Marti Raudsepp's avatar
      [CPUFREQ] powernow-k8: On load failure, remind the user to enable support in BIOS setup · 298decfb
      Marti Raudsepp authored
      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
    • Borislav Petkov's avatar
      [CPUFREQ] powernow-k8: Limit Pstate transition latency check · c2f4a2c6
      Borislav Petkov authored
      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: default avatarBorislav Petkov <borislav.petkov@amd.com>
      Signed-off-by: default avatarDave Jones <davej@redhat.com>
      c2f4a2c6
    • Matthew Garrett's avatar
      [CPUFREQ] Fix PCC driver error path · 6ebdf777
      Matthew Garrett authored
      The PCC cpufreq driver unmaps the mailbox address range if any CPUs fail to
      initialise, but doesn't do anything to remove the registered CPUs from the
      cpufreq core resulting in failures further down the line. We're better off
      simply returning a failure - the cpufreq core will unregister us cleanly if
      we end up with no successfully registered CPUs. Tidy up the failure path
      and also add a sanity check to ensure that the firmware gives us a realistic
      frequency - the core deals badly with that being set to 0.
      Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
      Cc: Naga Chumbalkar <nagananda.chumbalkar@hp.com>
      Signed-off-by: default avatarDave Jones <davej@redhat.com>
      6ebdf777
    • Daniel J Blueman's avatar
      [CPUFREQ] fix double freeing in error path of pcc-cpufreq · 0d9715d6
      Daniel J Blueman authored
      Prevent double freeing on error path.
      Signed-off-by: default avatarDaniel J Blueman <daniel.blueman@gmail.com>
      Signed-off-by: default avatarDave Jones <davej@redhat.com>
      0d9715d6
    • Matthew Garrett's avatar
      [CPUFREQ] pcc driver should check for pcch method before calling _OSC · 5d77b854
      Matthew Garrett authored
      The pcc specification documents an _OSC method that's incompatible with the
      one defined as part of the ACPI spec. This shouldn't be a problem as both
      are supposed to be guarded with a UUID. Unfortunately approximately nobody
      (including HP, who wrote this spec) properly check the UUID on entry to the
      _OSC call. Right now this could result in surprising behaviour if the pcc
      driver performs an _OSC call on a machine that doesn't implement the pcc
      specification. Check whether the PCCH method exists first in order to reduce
      this probability.
      Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
      Cc: Naga Chumbalkar <nagananda.chumbalkar@hp.com>
      Signed-off-by: default avatarDave Jones <davej@redhat.com>
      5d77b854
    • Xiaotian Feng's avatar
      [CPUFREQ] fix memory leak in cpufreq_add_dev · cad70a6a
      Xiaotian Feng authored
      We didn't free policy->related_cpus in error path err_unlock_policy.
      This is catched by following kmemleak report:
      
      unreferenced object 0xffff88022a0b96d0 (size 512):
        comm "modprobe", pid 886, jiffies 4294689177 (age 780.694s)
        hex dump (first 32 bytes):
          00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
          00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
        backtrace:
          [<ffffffff8111ebe5>] create_object+0x186/0x281
          [<ffffffff814fad4f>] kmemleak_alloc+0x60/0xa7
          [<ffffffff8111127a>] kmem_cache_alloc_node_notrace+0x120/0x142
          [<ffffffff81262e4f>] alloc_cpumask_var_node+0x2c/0xd7
          [<ffffffff81262f0b>] alloc_cpumask_var+0x11/0x13
          [<ffffffff81262f1c>] zalloc_cpumask_var+0xf/0x11
          [<ffffffff8140fac0>] cpufreq_add_dev+0x11f/0x547
          [<ffffffff81334bda>] sysdev_driver_register+0xc2/0x11d
          [<ffffffff8140e334>] cpufreq_register_driver+0xcb/0x1b8
          [<ffffffffa032e040>] 0xffffffffa032e040
          [<ffffffff810021ba>] do_one_initcall+0x5e/0x15c
          [<ffffffff81087f94>] sys_init_module+0xa6/0x1e6
          [<ffffffff81009bc2>] system_call_fastpath+0x16/0x1b
          [<ffffffffffffffff>] 0xffffffffffffffff
      Signed-off-by: default avatarXiaotian Feng <dfeng@redhat.com>
      Cc: Thomas Renninger <trenn@suse.de>
      Cc: Prarit Bhargava <prarit@redhat.com>
      Signed-off-by: default avatarDave Jones <davej@redhat.com>
      cad70a6a
    • Andrej Gelenberg's avatar
      [CPUFREQ] revert "[CPUFREQ] remove rwsem lock from CPUFREQ_GOV_STOP call (second call site)" · ffe6275f
      Andrej Gelenberg authored
      395913d0 ("[CPUFREQ] remove rwsem lock
      from CPUFREQ_GOV_STOP call (second call site)") is not needed, because
      there is no rwsem lock in cpufreq_ondemand and cpufreq_conservative
      anymore.  Lock should not be released until the work done.
      
      Addresses https://bugzilla.kernel.org/show_bug.cgi?id=1594Signed-off-by: default avatarAndrej Gelenberg <andrej.gelenberg@udo.edu>
      Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
      Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Acked-by: default avatarMathieu Desnoyers <mathieu.desnoyers@efficios.com>
      Signed-off-by: default avatarDave Jones <davej@redhat.com>
      ffe6275f
  2. 26 Jul, 2010 4 commits
  3. 25 Jul, 2010 2 commits
  4. 23 Jul, 2010 9 commits
  5. 22 Jul, 2010 18 commits