Skip to content
Snippets Groups Projects
  1. Aug 25, 2010
    • Andreas Herrmann's avatar
      hwmon: (k8temp) Differentiate between AM2 and ASB1 · a05e93f3
      Andreas Herrmann authored
      
      Commit 8bf0223ed515be24de0c671eedaff49e78bebc9c (hwmon, k8temp: Fix
      temperature reporting for ASB1 processor revisions) fixed temperature
      reporting for ASB1 CPUs. But those CPU models (model 0x6b, 0x6f, 0x7f)
      were packaged both as AM2 (desktop) and ASB1 (mobile). Thus the commit
      leads to wrong temperature reporting for AM2 CPU parts.
      
      The solution is to determine the package type for models 0x6b, 0x6f,
      0x7f.
      
      This is done using BrandId from CPUID Fn8000_0001_EBX[15:0]. See
      "Constructing the processor Name String" in "Revision Guide for AMD
      NPT Family 0Fh Processors" (Rev. 3.46).
      
      Cc: Rudolf Marek <r.marek@assembler.cz>
      Cc: stable@kernel.org [.32.x, .33.x, .34.x, .35.x]
      Reported-by: default avatarVladislav Guberinic <neosisani@gmail.com>
      Signed-off-by: default avatarAndreas Herrmann <andreas.herrmann3@amd.com>
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      a05e93f3
    • Axel Lin's avatar
      hwmon: (ads7871) Fix ads7871_probe error paths · c12c507d
      Axel Lin authored
      
      1. remove 'status' variable
      2. remove unneeded initialization of 'err' variable
      3. return missing error code if sysfs_create_group fail.
      4. fix the init sequence as:
         - check hardware existence
         - kzalloc for ads7871_data
         - sysfs_create_group
         - hwmon_device_register
      
      Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
      Cc: stable@kernel.org
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      c12c507d
    • Jean Delvare's avatar
      hwmon: (coretemp) Fix harmless build warning · 45ff34d3
      Jean Delvare authored
      
      Fix the following build warning:
      
        CC [M]  drivers/hwmon/coretemp.o
      drivers/hwmon/coretemp.c: In function "coretemp_init":
      drivers/hwmon/coretemp.c:521: warning: unused variable "n"
      drivers/hwmon/coretemp.c:521: warning: unused variable "p"
      
      Introduced by commit 851b29cb. When
      you drop code, you also have to drop the variables this code was
      using.
      
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Cc: Chen Gong <gong.chen@linux.intel.com>
      Cc: Rudolf Marek <r.marek@assembler.cz>
      Cc: Huaxu Wan <huaxu.wan@intel.com>
      45ff34d3
  2. Aug 20, 2010
    • Andrew Morton's avatar
      revert "hwmon: f71882fg: add support for the Fintek F71808E" · f2e41e91
      Andrew Morton authored
      
      Revert commit 7721fea3 ("hwmon:
      f71882fg: add support for the Fintek F71808E").
      
      Hans said:
      
      : A second review after I've received a data sheet for this device from
      : Fintek has turned up a few bugs.
      :
      : Unfortunately Giel (nor I) have time to fix this in time for the 2.6.36
      : cycle.  Therefor I would like to see this patch reverted as not having any
      : support for the hwmon function of this superio chip is better then having
      : unreliable support.
      
      Cc: Giel van Schijndel <me@mortis.eu>
      Cc: Jean Delvare <khali@linux-fr.org>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Jonathan Cameron <jic23@cam.ac.uk>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      f2e41e91
  3. Aug 14, 2010
  4. Aug 12, 2010
  5. Aug 11, 2010
  6. Aug 09, 2010
  7. Aug 06, 2010
  8. Aug 05, 2010
  9. Aug 03, 2010
    • Fenghua Yu's avatar
      x86, hwmon: Package Level Thermal/Power: pkgtemp hwmon driver · cb84b194
      Fenghua Yu authored
      
      This patch adds a hwmon driver for package level thermal control. The driver
      dumps package level thermal information through sysfs interface so that upper
      level application (e.g. lm_sensor) can retrive the information.
      
      Instead of having the package level hwmon code in coretemp, I write a seperate
      driver pkgtemp because:
      
      First, package level thermal sensors include not only sensors for each core,
      but also sensors for uncore, memory controller or other components in the
      package. Logically it will be clear to have a seperate hwmon driver for package
      level hwmon to monitor wider range of sensors in a package. Merging package
      thermal driver into core thermal driver doesn't make sense and may mislead.
      
      Secondly, merging the two drivers together may cause coding mess. It's easier
      to include various package level sensors info if more sensor information is
      implemented. Coretemp code needs to consider a lot of legacy machine cases.
      Pkgtemp code only considers platform starting from Sandy Bridge.
      
      On a 1Sx4Cx2T Sandy Bridge platform, lm-sensors dumps the pkgtemp and coretemp:
      
      pkgtemp-isa-0000
      Adapter: ISA adapter
      physical id 0: +33.0°C  (high = +79.0°C, crit = +99.0°C)
      
      coretemp-isa-0000
      Adapter: ISA adapter
      Core 0:      +32.0°C  (high = +79.0°C, crit = +99.0°C)
      
      coretemp-isa-0001
      Adapter: ISA adapter
      Core 1:      +32.0°C  (high = +79.0°C, crit = +99.0°C)
      
      coretemp-isa-0002
      Adapter: ISA adapter
      Core 2:      +32.0°C  (high = +79.0°C, crit = +99.0°C)
      
      coretemp-isa-0003
      Adapter: ISA adapter
      Core 3:      +32.0°C  (high = +79.0°C, crit = +99.0°C)
      
      [ hpa: folded v3 patch removing improper global variable "SHOW" ]
      
      Signed-off-by: default avatarFenghua Yu <fenghua.yu@intel.com>
      LKML-Reference: <1280448826-12004-3-git-send-email-fenghua.yu@intel.com>
      Reviewed-by: default avatarLen Brown <len.brown@intel.com>
      Signed-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
      cb84b194
  10. Jul 24, 2010
  11. Jul 09, 2010
    • Jean Delvare's avatar
      hwmon: (coretemp) Properly label the sensors · 3f4f09b4
      Jean Delvare authored
      
      Don't assume that CPU entry number and core ID always match. It
      worked in the simple cases (single CPU, no HT) but fails on
      multi-CPU systems.
      
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Acked-by: default avatarHuaxu Wan <huaxu.wan@intel.com>
      Cc: stable@kernel.org
      3f4f09b4
    • Jean Delvare's avatar
      hwmon: (coretemp) Skip duplicate CPU entries · d883b9f0
      Jean Delvare authored
      
      On hyper-threaded CPUs, each core appears twice in the CPU list. Skip
      the second entry to avoid duplicate sensors.
      
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Acked-by: default avatarHuaxu Wan <huaxu.wan@intel.com>
      Cc: stable@kernel.org
      d883b9f0
    • Jean Delvare's avatar
      hwmon: (it87) Fix in7 on IT8720F · 436cad2a
      Jean Delvare authored
      
      The IT8720F has no VIN7 pin, so VCCH should always be routed
      internally to VIN7 with an internal divider. Curiously, there still
      is a configuration bit to control this, which means it can be set
      incorrectly. And even more curiously, many boards out there are
      improperly configured, even though the IT8720F datasheet claims that
      the internal routing of VCCH to VIN7 is the default setting. So we
      force the internal routing in this case.
      
      It turns out that all boards with the wrong setting are from Gigabyte,
      so I suspect a BIOS bug. But it's easy enough to workaround in the
      driver, so let's do it.
      
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Cc: Jean-Marc Spaggiari <jean-marc@spaggiari.org>
      Cc: stable@kernel.org
      436cad2a
    • Andreas Herrmann's avatar
      hwmon: (k8temp) Fix temperature reporting for ASB1 processor revisions · d535bad9
      Andreas Herrmann authored
      
      Reported temperature for ASB1 CPUs is too high.
      Add ASB1 CPU revisions (these are also non-desktop variants) to the
      list of CPUs for which the temperature fixup is not required.
      
      Example: (from LENOVO ThinkPad Edge 13, 01972NG, system was idle)
      
        Current kernel reports
      
        $ sensors
        k8temp-pci-00c3
        Adapter: PCI adapter
        Core0 Temp:  +74.0 C
        Core0 Temp:  +70.0 C
        Core1 Temp:  +69.0 C
        Core1 Temp:  +70.0 C
      
        With this patch I have
      
        $ sensors
        k8temp-pci-00c3
        Adapter: PCI adapter
        Core0 Temp:  +54.0 C
        Core0 Temp:  +51.0 C
        Core1 Temp:  +48.0 C
        Core1 Temp:  +49.0 C
      
      Cc: stable@kernel.org [.32.x .33.x, .34.x]
      Cc: Rudolf Marek <r.marek@assembler.cz>
      Signed-off-by: default avatarAndreas Herrmann <andreas.herrmann3@amd.com>
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      d535bad9
Loading