Commit Graph

8 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 e632c467de platform/x86:intel/pmc: Move arch specific action to init function
JIRA: https://issues.redhat.com/browse/RHEL-20138

commit d026feb03bdcde33e22a75777d59ed9d8725bcdd
Author: Xi Pardee <xi.pardee@linux.intel.com>
Date:   Tue Feb 11 17:05:56 2025 -0800

    platform/x86:intel/pmc: Move arch specific action to init function

    Move arch specific action from core.c to the init() function of spt.c.

    Signed-off-by: Xi Pardee <xi.pardee@linux.intel.com>
    Link: https://lore.kernel.org/r/20250212010621.1003663-1-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 0ede2e8028 platform/x86:intel/pmc: Call pmc_get_low_power_modes from platform init
JIRA: https://issues.redhat.com/browse/RHEL-15539

commit 2e35e3aa9f10ea430468207c3dd9dc33ba1afc33
Author: Xi Pardee <xi.pardee@intel.com>
Date:   Wed Nov 29 14:21:23 2023 -0800

    platform/x86:intel/pmc: Call pmc_get_low_power_modes from platform init

    In order to setup a table of low power mode requirements for Meteor Lake,
    pmc_core_get_low_power_modes() will need to be run from platform init code
    so that the enabled modes are known, allowing the use of the
    pmc_for_each_mode helper. Make the function global and call it from the
    platform init code.

    Signed-off-by: Xi Pardee <xi.pardee@intel.com>
    Signed-off-by: David E. Box <david.e.box@linux.intel.com>
    Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
    Link: https://lore.kernel.org/r/20231129222132.2331261-12-david.e.box@linux.intel.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Signed-off-by: David Arcari <darcari@redhat.com>
2024-01-10 09:35:49 -05:00
David Arcari 25df4c4455 platform/x86:intel/pmc: Add support to handle multiple PMCs
Bugzilla: https://bugzilla.redhat.com/2177038

commit 1c709ae12dad6f7e2dd5becfbac0f5141c2e15fd
Author: Xi Pardee <xi.pardee@intel.com>
Date:   Tue Jun 13 15:53:42 2023 -0700

    platform/x86:intel/pmc: Add support to handle multiple PMCs

    To support platforms with multiple PMCs, add a PMC device structure to
    support each PMC instance.

    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/20230613225347.2720665-4-rajvi.jingar@linux.intel.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Signed-off-by: David Arcari <darcari@redhat.com>
2023-09-15 14:08:33 -04:00
David Arcari ff186d321b platform/x86:intel/pmc: Combine core_init() and core_configure()
Bugzilla: https://bugzilla.redhat.com/2177038

commit 804951203aa541ad6720c9726c173d18aeb3ab6b
Author: Xi Pardee <xi.pardee@intel.com>
Date:   Tue Jun 13 15:53:41 2023 -0700

    platform/x86:intel/pmc: Combine core_init() and core_configure()

    Combine core_init() and core_configure() functions to have a
    cleaner setup for platforms.

    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/20230613225347.2720665-3-rajvi.jingar@linux.intel.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Signed-off-by: David Arcari <darcari@redhat.com>
2023-09-15 14:08:33 -04:00
David Arcari eca830392a platform/x86: intel/pmc: Relocate Sunrise Point PCH support
Bugzilla: https://bugzilla.redhat.com/2153969

commit f23e21a345956e3bd234c6d5a3d29818604dfe74
Author: Rajvi Jingar <rajvi.jingar@linux.intel.com>
Date:   Mon Nov 14 10:32:52 2022 -0800

    platform/x86: intel/pmc: Relocate Sunrise Point PCH support

    Create spt.c for Sunrise Point PCH specific structures and init().
    This file supports Sky Lake and Kaby Lake platforms. There are no
    functional changes involved.

    Cc: David E Box <david.e.box@linux.intel.com>
    Reviewed-by: "David E. Box" <david.e.box@linux.intel.com>
    Signed-off-by: Rajvi Jingar <rajvi.jingar@linux.intel.com>
    Signed-off-by: "David E. Box" <david.e.box@linux.intel.com>
    Link: https://lore.kernel.org/r/20221114183257.2067662-4-gayatri.kammela@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>
2023-03-13 11:45:42 -04:00