X86 platform drivers
 help / color / mirror / Atom feed
* [PATCH 0/4] x86: atom-punit/-pmc s2idle device state checks
@ 2023-12-31 16:33 Hans de Goede
  2023-12-31 16:33 ` [PATCH 1/4] platform/x86: pmc_atom: Annotate d3_sts register bit defines Hans de Goede
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Hans de Goede @ 2023-12-31 16:33 UTC (permalink / raw)
  To: Johannes Stezenbach, Takashi Iwai, Ilpo Järvinen,
	Andy Shevchenko, Thomas Gleixner, Ingo Molnar, Borislav Petkov,
	Dave Hansen, H . Peter Anvin
  Cc: Hans de Goede, platform-driver-x86, x86

Hi All,

These 2 patches are an upstream submission of a patch titled:
"Intel Atom suspend: add debug check for S0ix blockers"

Which I have been carrying in my personal kernel tree for years now.
This code originally comes from the latte-l-oss branch of:
https://github.com/MiCode/Xiaomi_Kernel_OpenSource

And has been posted on upstream mailinglists before by
Johannes Stezenbach, whose authorship I have kept for
the 2 base patches and has been reposted by Takashi Iwai
and at one point in time I picked this up from Takashi's
reposting as can be seen from the S-o-b lines. Unfortunately
I cannot find the original postings, so I have no link to
those.

The original version of this added some ugly hooks into
the intel_idle driver which I presume is why these patches
never go anywhere upstream.

With the new acpi_s2idle_dev_ops and acpi_register_lps0_dev()
functionality this functionality can now be implemented cleanly
and that is what this patch-series does.

x86/tip maintainers, it is probably the cleanest if I merge
this entire series through the pdx86 tree (*). Can I have your
ack for merging patch 4/4 through the pdx86 tree ?

Regards,

Hans

*) Andy recently mentioned that it might be a good idea to move
some of the arch/x86/platform code to drivers/platform/x86,
arch/x86/platform/atom/punit_atom_debug.c which is a completely
standalone driver definitly is a good candidate for this


Hans de Goede (2):
  platform/x86: pmc_atom: Annotate d3_sts register bit defines
  platform/x86: pmc_atom: Check state of PMC clocks on s2idle

Johannes Stezenbach (2):
  platform/x86: pmc_atom: Check state of PMC managed devices on s2idle
  x86/platform/atom: Check state of Punit managed devices on s2idle

 arch/x86/platform/atom/punit_atom_debug.c  | 40 ++++++++++
 drivers/platform/x86/pmc_atom.c            | 86 ++++++++++++++++++++++
 include/linux/platform_data/x86/pmc_atom.h | 12 +--
 3 files changed, 132 insertions(+), 6 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2024-01-07 13:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-31 16:33 [PATCH 0/4] x86: atom-punit/-pmc s2idle device state checks Hans de Goede
2023-12-31 16:33 ` [PATCH 1/4] platform/x86: pmc_atom: Annotate d3_sts register bit defines Hans de Goede
2023-12-31 16:33 ` [PATCH 2/4] platform/x86: pmc_atom: Check state of PMC managed devices on s2idle Hans de Goede
2024-01-01 23:56   ` Andy Shevchenko
2023-12-31 16:33 ` [PATCH 3/4] platform/x86: pmc_atom: Check state of PMC clocks " Hans de Goede
2024-01-02  0:01   ` Andy Shevchenko
2023-12-31 16:33 ` [PATCH 4/4] x86/platform/atom: Check state of Punit managed devices " Hans de Goede
2024-01-02  0:07   ` Andy Shevchenko
2024-01-07 13:47     ` Hans de Goede

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