1. 18 6月, 2012 2 次提交
  2. 02 5月, 2012 1 次提交
  3. 01 5月, 2012 1 次提交
    • K
      hwmon: (coretemp) fix oops on cpu unplug · b7048711
      Kirill A. Shutemov 提交于
      coretemp tries to access core_data array beyond bounds on cpu unplug if
      core id of the cpu if more than NUM_REAL_CORES-1.
      
      BUG: unable to handle kernel NULL pointer dereference at 000000000000013c
      IP: [<ffffffffa00159af>] coretemp_cpu_callback+0x93/0x1ba [coretemp]
      PGD 673e5a067 PUD 66e9b3067 PMD 0
      Oops: 0000 [#1] SMP
      CPU 79
      Modules linked in: sunrpc cpufreq_ondemand acpi_cpufreq freq_table mperf bnep bluetooth rfkill ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter nf_conntrack_ipv4 nf_defrag_ipv4 ip6_tables xt_state nf_conntrack coretemp crc32c_intel asix tpm_tis pcspkr usbnet iTCO_wdt i2c_i801 microcode mii joydev tpm i2c_core iTCO_vendor_support tpm_bios i7core_edac igb ioatdma edac_core dca megaraid_sas [last unloaded: oprofile]
      
      Pid: 3315, comm: set-cpus Tainted: G        W    3.4.0-rc5+ #2 QCI QSSC-S4R/QSSC-S4R
      RIP: 0010:[<ffffffffa00159af>]  [<ffffffffa00159af>] coretemp_cpu_callback+0x93/0x1ba [coretemp]
      RSP: 0018:ffff880472fb3d48  EFLAGS: 00010246
      RAX: 0000000000000124 RBX: 0000000000000034 RCX: 00000000ffffffff
      RDX: 0000000000000000 RSI: 0000000000000046 RDI: 0000000000000246
      RBP: ffff880472fb3d88 R08: ffff88077fcd36c0 R09: 0000000000000001
      R10: ffffffff8184bc48 R11: 0000000000000000 R12: ffff880273095800
      R13: 0000000000000013 R14: ffff8802730a1810 R15: 0000000000000000
      FS:  00007f694a20f720(0000) GS:ffff88077fcc0000(0000) knlGS:0000000000000000
      CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
      CR2: 000000000000013c CR3: 000000067209b000 CR4: 00000000000007e0
      DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
      DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
      Process set-cpus (pid: 3315, threadinfo ffff880472fb2000, task ffff880471fa0000)
      Stack:
       ffff880277b4c308 0000000000000003 ffff880472fb3d88 0000000000000005
       0000000000000034 00000000ffffffd1 ffffffff81cadc70 ffff880472fb3e14
       ffff880472fb3dc8 ffffffff8161f48d ffff880471fa0000 0000000000000034
      Call Trace:
       [<ffffffff8161f48d>] notifier_call_chain+0x4d/0x70
       [<ffffffff8107f1be>] __raw_notifier_call_chain+0xe/0x10
       [<ffffffff81059d30>] __cpu_notify+0x20/0x40
       [<ffffffff815fa251>] _cpu_down+0x81/0x270
       [<ffffffff815fa477>] cpu_down+0x37/0x50
       [<ffffffff815fd6a3>] store_online+0x63/0xc0
       [<ffffffff813c7078>] dev_attr_store+0x18/0x30
       [<ffffffff811f02cf>] sysfs_write_file+0xef/0x170
       [<ffffffff81180443>] vfs_write+0xb3/0x180
       [<ffffffff8118076a>] sys_write+0x4a/0x90
       [<ffffffff816236a9>] system_call_fastpath+0x16/0x1b
      Code: 48 c7 c7 94 60 01 a0 44 0f b7 ac 10 ac 00 00 00 31 c0 e8 41 b7 5f e1 41 83 c5 02 49 63 c5 49 8b 44 c4 10 48 85 c0 74 56 45 31 ff <39> 58 18 75 4e eb 1f 49 63 d7 4c 89 f7 48 89 45 c8 48 6b d2 28
      RIP  [<ffffffffa00159af>] coretemp_cpu_callback+0x93/0x1ba [coretemp]
       RSP <ffff880472fb3d48>
      CR2: 000000000000013c
      Signed-off-by: NKirill A. Shutemov <kirill.shutemov@linux.intel.com>
      Cc: stable@vger.kernel.org # 3.0+
      Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
      b7048711
  4. 19 3月, 2012 1 次提交
  5. 27 1月, 2012 1 次提交
  6. 17 1月, 2012 1 次提交
  7. 21 12月, 2011 1 次提交
  8. 07 11月, 2011 1 次提交
  9. 14 10月, 2011 1 次提交
  10. 28 9月, 2011 2 次提交
  11. 24 9月, 2011 3 次提交
  12. 22 9月, 2011 3 次提交
    • G
      hwmon: (coretemp) Don't use threshold registers for tempX_max · f4af6fd6
      Guenter Roeck 提交于
      With commit c814a4c7, the meaning of tempX_max
      was changed. It no longer returns the value of bits 8:15 of
      MSR_IA32_TEMPERATURE_TARGET, but instead returns the value of CPU threshold
      register T1. tempX_max_hyst was added to reflect the value of temperature
      threshold register T0.
      
      As it turns out, T0 and T1 are used on some systems, presumably by the BIOS.
      Also, T0 and T1 don't have a well defined meaning. The thresholds may be used
      as upper or lower limits, and it is not guaranteed that T0 <= T1. Thus, the new
      attribute mapping does not reflect the actual usage of the threshold registers.
      Also, register contents are changed during runtime by an entity other than the
      hwmon driver, meaning the values cached by the driver do not reflect actual
      register contents.
      
      Revert most of c814a4c7 to address the problem.
      Support for T0 and T1 will be added back in with a separate commit, using new
      attribute names.
      Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
      Cc: Fenghua Yu <fenghua.yu@intel.com>
      Cc: Durgadoss R <durgadoss.r@intel.com>
      Acked-by: NJean Delvare <khali@linux-fr.org>
      f4af6fd6
    • J
      hwmon: (coretemp) Let the user force TjMax · a45a8c85
      Jean Delvare 提交于
      On old CPUs (and even some recent Atom CPUs) TjMax can't be read from
      the CPU registers, so it is guessed by the driver using a complex
      heuristic which isn't reliable. So let users who know their CPU's
      TjMax pass it as a module parameter.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Fenghua Yu <fenghua.yu@intel.com>
      Cc: "R, Durgadoss" <durgadoss.r@intel.com>
      Cc: Guenter Roeck <guenter.roeck@ericsson.com>
      Cc: Alexander Stein <alexander.stein@systec-electronic.com>
      Acked-by: NFenghua Yu <fenghua.yu@intel.com>
      Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
      a45a8c85
    • J
      hwmon: (coretemp) Drop duplicate function get_pkg_tjmax · 6bf9e9b0
      Jean Delvare 提交于
      Function get_pkg_tjmax is a simplified copy of get_tjmax. Drop it and
      always use get_tjmax, result is the same and this avoids code
      duplication.
      
      Also make get_tjmax less verbose: don't warn about MSR read failure
      when failure was expected, and don't report TjMax in the logs unless
      debugging is enabled.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Fenghua Yu <fenghua.yu@intel.com>
      Cc: Guenter Roeck <guenter.roeck@ericsson.com>
      Cc: Durgadoss R <durgadoss.r@intel.com>
      Acked-by: NFenghua Yu <fenghua.yu@intel.com>
      Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
      6bf9e9b0
  13. 14 9月, 2011 1 次提交
  14. 28 7月, 2011 1 次提交
  15. 18 6月, 2011 1 次提交
  16. 02 6月, 2011 3 次提交
  17. 27 5月, 2011 3 次提交
    • J
      hwmon: (coretemp) Fix section mismatch · 582e1b27
      Jean Delvare 提交于
      chk_ucode_version() is only called from coretemp_probe() which is
      __devinit, so it can be marked __devinit too.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Durgadoss R <durgadoss.r@intel.com>
      Cc: Fenghua Yu <fenghua.yu@intel.com>
      Cc: Guenter Roeck <guenter.roeck@ericsson.com>
      Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
      582e1b27
    • G
      hwmon: (coretemp) Update comments describing the handling of HT CPUs · 6777b9e4
      Guenter Roeck 提交于
      Update comments describing the handling of HT CPUs based on review feedback.
      Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
      Cc: Fenghua Yu <fenghua.yu@intel.com>
      Cc: Durgadoss R <durgadoss.r@intel.com>
      Acked-by: NJean Delvare <khali@linux-fr.org>
      6777b9e4
    • S
      hwmon: (coretemp) Initialize sysfs attributes · 4258781a
      Sergey Senozhatsky 提交于
      Initialize sysfs attrs before device_create_file() call to suppress lockdep_init_map()
      warning:
      
      [    3.653628] WARNING: at kernel/lockdep.c:2885 lockdep_init_map+0xea/0x43c()
      [    3.653698] Modules linked in:
      [    3.654835] Pid: 1, comm: swapper Not tainted 2.6.39-dbg-git8-05624-g46187f8 #576
      [    3.656014] Call Trace:
      [    3.657139]  [<ffffffff8103e4b4>] warn_slowpath_common+0x7e/0x96
      [    3.658298]  [<ffffffff8103e4e1>] warn_slowpath_null+0x15/0x17
      [    3.659460]  [<ffffffff8106d7b9>] lockdep_init_map+0xea/0x43c
      [    3.660616]  [<ffffffff81163c1a>] sysfs_add_file_mode+0x5d/0xa8
      [    3.661785]  [<ffffffff81163c71>] sysfs_add_file+0xc/0xe
      [    3.662929]  [<ffffffff81163d26>] sysfs_create_file+0x23/0x25
      [    3.664045]  [<ffffffff813724d1>] device_create_file+0x14/0x16
      [    3.665172]  [<ffffffff81460ed4>] coretemp_probe+0xf9/0x185
      [    3.666306]  [<ffffffff8137638e>] platform_drv_probe+0x12/0x14
      [    3.667420]  [<ffffffff81375321>] driver_probe_device+0xb0/0x14b
      [    3.668542]  [<ffffffff8137546d>] __device_attach+0x35/0x3a
      [    3.669710]  [<ffffffff81375438>] ? __driver_attach+0x7c/0x7c
      [    3.670816]  [<ffffffff8137426b>] bus_for_each_drv+0x54/0x88
      [    3.671921]  [<ffffffff81375231>] device_attach+0x77/0x9b
      [    3.673027]  [<ffffffff81374aef>] bus_probe_device+0x22/0x39
      [    3.674137]  [<ffffffff81373235>] device_add+0x3c1/0x550
      [    3.675249]  [<ffffffff81371ed9>] ? dev_set_name+0x3c/0x3e
      [    3.676371]  [<ffffffff813769f3>] platform_device_add+0x10c/0x156
      [    3.677491]  [<ffffffff8146af9c>] get_core_online+0xab/0x16e
      [    3.678608]  [<ffffffff81ad8070>] coretemp_init+0x4b/0x80
      [    3.679724]  [<ffffffff81ad8025>] ? hwmon_init+0xee/0xee
      [    3.680853]  [<ffffffff8100020a>] do_one_initcall+0x7a/0x13c
      [    3.681975]  [<ffffffff81aaac74>] kernel_init+0xe1/0x15b
      [    3.683081]  [<ffffffff8147e4e4>] kernel_thread_helper+0x4/0x10
      [    3.684174]  [<ffffffff8102d48c>] ? finish_task_switch+0x76/0xf0
      [    3.685266]  [<ffffffff81477918>] ? retint_restore_args+0x13/0x13
      [    3.686356]  [<ffffffff81aaab93>] ? start_kernel+0x3ee/0x3ee
      [    3.687425]  [<ffffffff8147e4e0>] ? gs_change+0x13/0x13
      [    3.688489] ---[ end trace 7392ad3e6a92ae39 ]---
      Signed-off-by: NSergey Senozhatsky <sergey.senozhatsky@gmail.com>
      Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
      4258781a
  18. 24 5月, 2011 2 次提交
  19. 21 5月, 2011 1 次提交
  20. 20 5月, 2011 1 次提交
  21. 09 1月, 2011 1 次提交
  22. 26 10月, 2010 5 次提交
  23. 28 9月, 2010 1 次提交
  24. 25 9月, 2010 2 次提交