Commit Graph

11 Commits

Author SHA1 Message Date
David Arcari 2b475d7af2 platform/x86/intel/pmc: Remove unnecessary declarations in header
JIRA: https://issues.redhat.com/browse/RHEL-20138

commit 9eeeb2a7c77313530a223b58ac53f0eba1c6292c
Author: Xi Pardee <xi.pardee@linux.intel.com>
Date:   Fri Feb 14 13:44:10 2025 -0800

    platform/x86/intel/pmc: Remove unnecessary declarations in header

    Remove unnecessary declarations in header file. Variable that are
    used by only one .c file are removed from header file and changed
    to be static in their corresponding .c file.

    Signed-off-by: Xi Pardee <xi.pardee@linux.intel.com>
    Link: https://lore.kernel.org/r/20250214214416.10150-3-xi.pardee@linux.intel.com
    Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
    Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

Signed-off-by: David Arcari <darcari@redhat.com>
2025-04-03 11:24:48 -04:00
David Arcari 1c061f4203 platform/x86/intel/pmc: Remove simple init functions
JIRA: https://issues.redhat.com/browse/RHEL-20138

commit 45fa1a0d4d8759787bf62b49019952e2d56a66f9
Author: Xi Pardee <xi.pardee@linux.intel.com>
Date:   Fri Feb 7 14:56:10 2025 -0800

    platform/x86/intel/pmc: Remove simple init functions

    Remove simple init functions to avoid duplicate code. Store
    init function performing architecture specific action in the
    corresponding pmc_dev_info structure. Replace init function
    with pmc_dev_info structure in X86_MATCH_VFM() of core.c.

    Signed-off-by: Xi Pardee <xi.pardee@linux.intel.com>
    Link: https://lore.kernel.org/r/20250207225615.401235-5-xi.pardee@linux.intel.com
    Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
    Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

Signed-off-by: David Arcari <darcari@redhat.com>
2025-04-03 11:24:48 -04:00
David Arcari 9d348937b3 platform/x86:intel/pmc: Create generic_core_init() for all platforms
JIRA: https://issues.redhat.com/browse/RHEL-20138

commit ac6bef0d54014cc010831ec86ac425f482a981ae
Author: Xi Pardee <xi.pardee@linux.intel.com>
Date:   Fri Feb 7 14:56:09 2025 -0800

    platform/x86:intel/pmc: Create generic_core_init() for all platforms

    Create a generic_core_init() function for all architectures to reduce
    duplicate code in each architecture file. Create an info structure
    to catch the variations between each architecture and pass it to the
    generic init function.

    Convert all architectures to call the generic core init function.

    Signed-off-by: Xi Pardee <xi.pardee@linux.intel.com>
    Link: https://lore.kernel.org/r/20250207225615.401235-4-xi.pardee@linux.intel.com
    Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
    Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

Signed-off-by: David Arcari <darcari@redhat.com>
2025-04-03 11:24:48 -04:00
David Arcari 27da4c66e9 platform/x86/intel/pmc: Remove duplicate enum
JIRA: https://issues.redhat.com/browse/RHEL-20138

commit 78eaf4d12d7c4ec6cf2f5ed8d8737ae0da390930
Author: Xi Pardee <xi.pardee@linux.intel.com>
Date:   Fri Feb 7 14:56:08 2025 -0800

    platform/x86/intel/pmc: Remove duplicate enum

    Remove duplicate enum PMC_IDX_SOC. PMC_IDX_SOC has the same value
    as PMC_IDX_MAIN. Replace it with PMC_IDX_MAIN to avoid confusion.

    Signed-off-by: Xi Pardee <xi.pardee@linux.intel.com>
    Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
    Link: https://lore.kernel.org/r/20250207225615.401235-3-xi.pardee@linux.intel.com
    Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

Signed-off-by: David Arcari <darcari@redhat.com>
2025-04-03 11:24:47 -04:00
David Arcari bfacf60216 platform/x86/intel/pmc: Refactor platform resume functions to use cnl_resume()
JIRA: https://issues.redhat.com/browse/RHEL-66571

commit 9fe43c8020a60b9c9ff44c4a9914e7e7df63084e
Author: David E. Box <david.e.box@linux.intel.com>
Date:   Thu Oct 17 14:04:37 2024 -0700

    platform/x86/intel/pmc: Refactor platform resume functions to use cnl_resume()

    Several platform resume functions currently call pmc_core_send_ltr_ignore()
    and pmc_core_resume_common(), both of which are already called by
    cnl_resume(). Simplify the code by having these functions call cnl_resume()
    directly.

    Signed-off-by: David E. Box <david.e.box@linux.intel.com>
    Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    Link: https://lore.kernel.org/r/20241017210439.3449324-1-david.e.box@linux.intel.com
    Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
    Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

Signed-off-by: David Arcari <darcari@redhat.com>
2025-01-03 09:53:08 -05:00
Steve Best b349666679 platform/x86:intel/pmc: Enable S0ix blocker show in Lunar Lake
JIRA: https://issues.redhat.com/browse/RHEL-46817

commit 86cc9c70fb6a881a92e51017438ed84d46010471
Author: Xi Pardee <xi.pardee@intel.com>
Date:   Thu Apr 25 17:27:52 2024 -0700

    platform/x86:intel/pmc: Enable S0ix blocker show in Lunar Lake

    Update Lunar Lake lpm maps to include S0ix blocker information.
    Add Lunar Lake blocker maps to enable S0ix blocker show in pmc
    core debugfs.

    Signed-off-by: Xi Pardee <xi.pardee@intel.com>
    Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
    Link: https://lore.kernel.org/r/20240426002752.2504282-4-xi.pardee@linux.intel.com
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Signed-off-by: Steve Best <sbest@redhat.com>
2024-07-09 22:00:11 -04:00
Steve Best 6952f5d23a platform/x86:intel/pmc: Update LNL signal status map
JIRA: https://issues.redhat.com/browse/RHEL-46817

commit 4f3eec14729eced6ef5ef7242b63ca14377d87fe
Author: Xi Pardee <xi.pardee@intel.com>
Date:   Thu Apr 25 17:27:50 2024 -0700

    platform/x86:intel/pmc: Update LNL signal status map

    Update Lunar Lake signal status map. This status map has been updated
    since the map was merged. This patch updates the signal status map to
    the lastest version.

    Signed-off-by: Xi Pardee <xi.pardee@intel.com>
    Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
    Link: https://lore.kernel.org/r/20240426002752.2504282-2-xi.pardee@linux.intel.com
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Signed-off-by: Steve Best <sbest@redhat.com>
2024-07-09 22:00:03 -04:00
Steve Best 4aed6b8e1b platform/x86/intel/pmc: Fix PCH names in comments
JIRA: https://issues.redhat.com/browse/RHEL-46817

commit f1f663ebfbec349118c41a5563aa266953200058
Author: Colin Ian King <colin.i.king@gmail.com>
Date:   Thu Apr 18 22:52:02 2024 +0100

    platform/x86/intel/pmc: Fix PCH names in comments

    The PCH names in the pmc drivers are incorrect in the comments,
    fix these.

    Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
    Link: https://lore.kernel.org/r/20240418215202.879171-1-colin.i.king@gmail.com
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Signed-off-by: Steve Best <sbest@redhat.com>
2024-07-09 21:59:52 -04:00
David Arcari 5e4a87a7cd platform/x86/intel/pmc/lnl: Remove SSRAM support
JIRA: https://issues.redhat.com/browse/RHEL-27144

commit e6ba4acde44957dc9bdc3222b5739217a102752d
Author: David E. Box <david.e.box@linux.intel.com>
Date:   Tue Feb 27 11:01:33 2024 -0800

    platform/x86/intel/pmc/lnl: Remove SSRAM support

    A recent PMC firmware change in Lunar Lake caused the pmc_core driver to
    fail to probe. This is due to a change in the GUID for PMC telemetry coming
    from the SSRAM device. Until a final release is ready this value may
    change again. In the meantime, disable the SSRAM support for Lunar Lake so
    the driver can load and provide some basic functionality.

    Fixes: 3748dfdae2a6 ("platform/x86/intel/pmc: Add Lunar Lake M support to intel_pmc_core driver")
    Signed-off-by: "David E. Box" <david.e.box@linux.intel.com>
    Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
    Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
    Link: https://lore.kernel.org/r/20240227190134.1592072-2-david.e.box@linux.intel.com
    Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

Signed-off-by: David Arcari <darcari@redhat.com>
2024-05-21 11:38:15 -04:00
David Arcari 4362b82a08 platform/x86/intel/pmc/lnl: Add GBE LTR ignore during suspend
JIRA: https://issues.redhat.com/browse/RHEL-15539

commit 6f9fac5535ba2038063c656f0afb496d7f87bcc1
Author: David E. Box <david.e.box@linux.intel.com>
Date:   Fri Dec 22 19:25:47 2023 -0800

    platform/x86/intel/pmc/lnl: Add GBE LTR ignore during suspend

    Add the GBE LTR ignore suspend time fix for Lunar Lake.

    Fixes: 119652b855e6 ("platform/x86/intel/pmc: Add Lunar Lake M support to intel_pmc_core driver")
    Signed-off-by: David E. Box <david.e.box@linux.intel.com>
    Link: https://lore.kernel.org/r/20231223032548.1680738-8-david.e.box@linux.intel.com
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Signed-off-by: David Arcari <darcari@redhat.com>
2024-01-10 10:02:25 -05:00
David Arcari 8c42578658 platform/x86/intel/pmc: Add Lunar Lake M support to intel_pmc_core driver
JIRA: https://issues.redhat.com/browse/RHEL-15539

commit 3748dfdae2a6bedc64ec7d2b17c9a58dc01c2700
Author: Rajvi Jingar <rajvi.jingar@linux.intel.com>
Date:   Mon Dec 18 20:22:16 2023 -0800

    platform/x86/intel/pmc: Add Lunar Lake M support to intel_pmc_core driver

    Add Lunar Lake M support in intel_pmc_core driver

    Signed-off-by: Rajvi Jingar <rajvi.jingar@linux.intel.com>
    Link: https://lore.kernel.org/r/20231219042216.2592029-8-rajvi.jingar@linux.intel.com
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Signed-off-by: David Arcari <darcari@redhat.com>
2024-01-10 09:35:57 -05:00