public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Move ...mce/therm_throt.c to drivers/thermal/
@ 2021-01-25 13:05 Borislav Petkov
  2021-01-25 13:05 ` [PATCH v2 1/2] x86/mce: Get rid of mcheck_intel_therm_init() Borislav Petkov
  2021-01-25 13:05 ` [PATCH v2 2/2] thermal: Move therm_throt there from x86/mce Borislav Petkov
  0 siblings, 2 replies; 13+ messages in thread
From: Borislav Petkov @ 2021-01-25 13:05 UTC (permalink / raw)
  To: X86 ML; +Cc: Zhang Rui, Daniel Lezcano, Amit Kucheria, linux-pm, LKML

From: Borislav Petkov <bp@suse.de>

Hi,

here's v2 which addresses peterz's comments to patch 2.

@thermal folks, lemme know if you have any objections otherwise I'll
route this through the tip tree.

Thx.

Changelog:
==========

v1:

so this has come up a bunch of times in the past and PeterZ is right
- that thing doesn't have anything to do with the MCE glue so move it
where it belongs.

Thx.

Borislav Petkov (2):
  x86/mce: Get rid of mcheck_intel_therm_init()
  thermal: Move therm_throt there from x86/mce

 arch/x86/Kconfig                              |  4 --
 arch/x86/include/asm/irq.h                    |  4 ++
 arch/x86/include/asm/mce.h                    | 22 -----------
 arch/x86/include/asm/thermal.h                | 21 ++++++++++
 arch/x86/kernel/cpu/intel.c                   |  3 ++
 arch/x86/kernel/cpu/mce/Makefile              |  2 -
 arch/x86/kernel/cpu/mce/core.c                |  1 -
 arch/x86/kernel/cpu/mce/intel.c               |  1 -
 arch/x86/kernel/irq.c                         | 29 ++++++++++++++
 drivers/thermal/intel/Kconfig                 |  4 ++
 drivers/thermal/intel/Makefile                |  1 +
 .../thermal/intel}/therm_throt.c              | 39 +++----------------
 drivers/thermal/intel/x86_pkg_temp_thermal.c  |  3 +-
 13 files changed, 70 insertions(+), 64 deletions(-)
 create mode 100644 arch/x86/include/asm/thermal.h
 rename {arch/x86/kernel/cpu/mce => drivers/thermal/intel}/therm_throt.c (96%)

-- 
2.29.2


^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: [PATCH v2 2/2] thermal: Move therm_throt there from x86/mce
@ 2021-02-09  2:27 Sergey Senozhatsky
  2021-02-09 10:16 ` Borislav Petkov
  0 siblings, 1 reply; 13+ messages in thread
From: Sergey Senozhatsky @ 2021-02-09  2:27 UTC (permalink / raw)
  To: Borislav Petkov
  Cc: Peter Zijlstra, Zhang Rui, linux-pm, LKML, Amit Kucheria,
	Daniel Lezcano, X86 ML

Hi,

Seems that the patch triggers some WARNs on my laptop.

For every CPU:

[    0.003751] WARNING: CPU: 4 PID: 0 at arch/x86/kernel/irq.c:390 thermal_set_handler+0x12/0x25
[    0.003751] Modules linked in:
[    0.003751] CPU: 4 PID: 0 Comm: swapper/4 Tainted: G        W         5.11.0-rc6-next-20210208-00003-g3ba4c4f662ad-dirty #1928
[    0.003751] RIP: 0010:thermal_set_handler+0x12/0x25
[    0.003751] RSP: 0000:ffffb5f0c00c7ed8 EFLAGS: 00010097
[    0.003751] RAX: 0000000000000003 RBX: 0000000000000000 RCX: 00000000000001b2
[    0.003751] RDX: 0000000000000000 RSI: 0000000000000003 RDI: ffffffff98410d00
[    0.003751] RBP: ffff9e3c5fb11460 R08: 0000000000000000 R09: 000000000003007f
[    0.003751] R10: ffff9e3c5fb11480 R11: 0000000000000000 R12: 0000000000000428
[    0.003751] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[    0.003751] FS:  0000000000000000(0000) GS:ffff9e3c5fb00000(0000) knlGS:0000000000000000
[    0.003751] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    0.003751] CR2: 0000000000000000 CR3: 000000039ee0a001 CR4: 00000000001706a0
[    0.003751] Call Trace:
[    0.003751]  intel_init_thermal+0x16d/0x1c7
[    0.003751]  identify_cpu+0x249/0x329
[    0.003751]  identify_secondary_cpu+0x15/0x8c
[    0.003751]  smp_store_cpu_info+0x3f/0x48
[    0.003751]  start_secondary+0x42/0xfd
[    0.003751]  secondary_startup_64_no_verify+0xb0/0xbb

	-ss

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-02-09 10:28 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-25 13:05 [PATCH v2 0/2] Move ...mce/therm_throt.c to drivers/thermal/ Borislav Petkov
2021-01-25 13:05 ` [PATCH v2 1/2] x86/mce: Get rid of mcheck_intel_therm_init() Borislav Petkov
2021-01-29 18:18   ` [tip: ras/core] " tip-bot2 for Borislav Petkov
2021-01-25 13:05 ` [PATCH v2 2/2] thermal: Move therm_throt there from x86/mce Borislav Petkov
2021-01-25 15:42   ` Zhang Rui
2021-01-25 16:47     ` Borislav Petkov
2021-01-25 17:14     ` Srinivas Pandruvada
2021-01-25 17:18       ` Borislav Petkov
2021-01-25 17:25         ` Srinivas Pandruvada
2021-01-27 11:07   ` Zhang Rui
2021-01-29 18:18   ` [tip: ras/core] " tip-bot2 for Borislav Petkov
  -- strict thread matches above, loose matches on Subject: below --
2021-02-09  2:27 [PATCH v2 2/2] " Sergey Senozhatsky
2021-02-09 10:16 ` Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox