Commit Graph

24 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
David Arcari 2e73e3dbd4 platform/x86/intel/pmc: Move GBE LTR ignore to suspend callback
JIRA: https://issues.redhat.com/browse/RHEL-15539
Conflicts: Out of order upstream commits (merge 2ad815797ef0)

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

    platform/x86/intel/pmc: Move GBE LTR ignore to suspend callback

    Commit 804951203aa5 ("platform/x86:intel/pmc: Combine core_init() and
    core_configure()") caused a network performance regression due to the GBE
    LTR ignore that it added at probe. This was needed in order to allow the
    SoC to enter the deepest Package C state. To fix the regression and at
    least support PC10 during suspend, move the LTR ignore from probe to the
    suspend callback, and enable it again on resume. This solution will allow
    PC10 during suspend but restrict Package C entry at runtime to no deeper
    than PC8/9 while a network cable it attach to the PCH LAN.

    Fixes: 804951203aa5 ("platform/x86:intel/pmc: Combine core_init() and core_configure()")
    Signed-off-by: "David E. Box" <david.e.box@linux.intel.com>
    Link: https://lore.kernel.org/r/20231223032548.1680738-6-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>
2024-01-10 10:01:48 -05:00
David Arcari d5f1a114dd platform/x86/intel/pmc: Allow reenabling LTRs
JIRA: https://issues.redhat.com/browse/RHEL-15539

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

    platform/x86/intel/pmc: Allow reenabling LTRs

    Commit 804951203aa5 ("platform/x86:intel/pmc: Combine core_init() and
    core_configure()") caused a network performance regression due to the GBE
    LTR ignore that it added during probe. The fix will move the ignore to
    occur at suspend-time (so as to not affect suspend power). This will
    require the ability to enable the LTR again on resume. Modify
    pmc_core_send_ltr_ignore() to allow enabling an LTR.

    Fixes: 804951203aa5 ("platform/x86:intel/pmc: Combine core_init() and core_configure()")
    Signed-off-by: "David E. Box" <david.e.box@linux.intel.com>
    Link: https://lore.kernel.org/r/20231223032548.1680738-5-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>
2024-01-10 09:40:05 -05:00
David Arcari 3acf15dfee platform/x86/intel/pmc: Add ssram_init flag in PMC discovery in Meteor Lake
JIRA: https://issues.redhat.com/browse/RHEL-15539

commit 1d62ada48d41d72d72232585eed0f3e1136ae1fb
Author: Rajvi Jingar <rajvi.jingar@linux.intel.com>
Date:   Mon Dec 18 20:22:14 2023 -0800

    platform/x86/intel/pmc: Add ssram_init flag in PMC discovery in Meteor Lake

    If PMC discovery using pmc_core_ssram_init() was unsuccessful for the
    Meteor Lake platform, the legacy enumeration method is used. In this
    case pci device struct for the PMC SSRAM is not available
    and pmc_core_ssram_get_lpm_reqs() will not work. Add ssram_init flag to
    indicate if the PMC SSRAM initialization was successful or not. Call
    pmc_core_ssram_get_lpm_reqs() only if the ssram_init flag is set to true.

    Signed-off-by: Rajvi Jingar <rajvi.jingar@linux.intel.com>
    Link: https://lore.kernel.org/r/20231219042216.2592029-6-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:52 -05:00
David Arcari 50249b5050 platform/x86/intel/pmc: Move common code to core.c
JIRA: https://issues.redhat.com/browse/RHEL-15539

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

    platform/x86/intel/pmc: Move common code to core.c

    Functions like mtl_set_device_d3() and mtl_punit_pmt_init() were added for
    Meteor Lake. To be able to use them in Arrow Lake and future platforms,
    move them to core.c.

    Also, to support different guids, add guid argument in
    pmc_core_punit_pmt_init() and to support different PCI function numbers,
    add func arg in pmc_core_ssram_init().

    Signed-off-by: Rajvi Jingar <rajvi.jingar@linux.intel.com>
    Link: https://lore.kernel.org/r/20231219042216.2592029-5-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:52 -05:00
David Arcari f435422918 platform/x86/intel/pmc: Fix in mtl_punit_pmt_init()
JIRA: https://issues.redhat.com/browse/RHEL-15539

commit 1f5e56c9f6cc92c45d27adfe78fb54c716fed2e2
Author: Rajvi Jingar <rajvi.jingar@linux.intel.com>
Date:   Mon Dec 18 20:22:09 2023 -0800

    platform/x86/intel/pmc: Fix in mtl_punit_pmt_init()

    pci_get_domain_bus_and_slot() increases the reference count on the pci
    device that is used to register the endpoint. In case of failure in
    registration, decrease reference count using pci_dev_put(pcidev) before
    returning.

    Fixes: 6e7964855381 ("platform/x86/intel/pmc: Show Die C6 counter on Meteor Lake")
    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/20231219042216.2592029-1-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:51 -05:00
David Arcari a58d62cf62 platform/x86/intel/pmc: Show Die C6 counter on Meteor Lake
JIRA: https://issues.redhat.com/browse/RHEL-15539

commit 6e79648553818bb21021ccf72ae27f4508844818
Author: David E. Box <david.e.box@linux.intel.com>
Date:   Wed Nov 29 14:21:32 2023 -0800

    platform/x86/intel/pmc: Show Die C6 counter on Meteor Lake

    Expose the Die C6 counter on Meteor Lake.

    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-21-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:51 -05:00
David Arcari 8ddd6eb860 platform/x86/intel/pmc: Read low power mode requirements for MTL-M and MTL-P
JIRA: https://issues.redhat.com/browse/RHEL-15539

commit 935b8211a31a52c82150b2b83c8428859393860d
Author: Xi Pardee <xi.pardee@intel.com>
Date:   Wed Nov 29 14:21:30 2023 -0800

    platform/x86/intel/pmc: Read low power mode requirements for MTL-M and MTL-P

    Add support to read the low power mode requirements for Meteor Lake M and
    Meteor Lake P.

    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-19-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 53e95bd05e platform/x86/intel/pmc/mtl: Use return value from pmc_core_ssram_init()
JIRA: https://issues.redhat.com/browse/RHEL-15539

commit 642dd26f58d91f4bb2e2fcaaf178bbc35369b73a
Author: David E. Box <david.e.box@linux.intel.com>
Date:   Wed Nov 29 14:21:26 2023 -0800

    platform/x86/intel/pmc/mtl: Use return value from pmc_core_ssram_init()

    Instead of checking for a NULL regbase, use the return value from
    pmc_core_ssram_init() to check if PMC discovery was successful. If not, use
    the legacy enumeration method (which only works for the primary PMC).

    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-15-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 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 3849bfd08b platform/x86:intel/pmc: Add Meteor Lake IOE-M PMC related maps
Bugzilla: https://bugzilla.redhat.com/2177038

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

    platform/x86:intel/pmc: Add Meteor Lake IOE-M PMC related maps

    Add device ID and register maps for the PMC in IO expansion die M in
    Meteor Lake.

    Signed-off-by: Xi Pardee <xi.pardee@intel.com>
    Signed-off-by: Rajvi Jingar <rajvi.jingar@linux.intel.com>
    Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
    Link: https://lore.kernel.org/r/20230613225347.2720665-9-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:10:03 -04:00
David Arcari c6634a94d6 platform/x86:intel/pmc: Add Meteor Lake IOE-P PMC related maps
Bugzilla: https://bugzilla.redhat.com/2177038

commit 9f17728d96483dad1cbb3de2a4adcf59d1a04b37
Author: Xi Pardee <xi.pardee@intel.com>
Date:   Tue Jun 13 15:53:46 2023 -0700

    platform/x86:intel/pmc: Add Meteor Lake IOE-P PMC related maps

    Add device ID and register maps for the PMC in IO expansion die P in
    Meteor Lake.

    Signed-off-by: Xi Pardee <xi.pardee@intel.com>
    Signed-off-by: Rajvi Jingar <rajvi.jingar@linux.intel.com>
    Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
    Link: https://lore.kernel.org/r/20230613225347.2720665-8-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 6d01d01785 platform/x86:intel/pmc: Use SSRAM to discover pwrm base address of primary PMC
Bugzilla: https://bugzilla.redhat.com/2177038

commit 23e74e3ca6b56d12c14c7369d940187713c85d43
Author: Xi Pardee <xi.pardee@intel.com>
Date:   Tue Jun 13 15:53:45 2023 -0700

    platform/x86:intel/pmc: Use SSRAM to discover pwrm base address of primary PMC

    On older platforms, the base address for PMC was hardcoded in the
    driver. Newer platforms can now retrieve the base address from SSRAM.
    Use SSRAM to discover pwrm base address on Meteor Lake platform. If
    this method fails, it will fall back to the hardcoded value.

    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-7-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 58d35a7054 platform/x86:intel/pmc: Discover PMC devices
Bugzilla: https://bugzilla.redhat.com/2177038

commit 1b8c7b843c0043dd1b81e162e5b5fbed4b256896
Author: David E. Box <david.e.box@linux.intel.com>
Date:   Tue Jun 13 15:53:44 2023 -0700

    platform/x86:intel/pmc: Discover PMC devices

    On platforms with multiple PMCs, additional PMC devices are discovered
    in the SSRAM device associated with the primary PMC. Add support for
    discovering PMC devices from SSRAM. Use PMC devid to assign the
    corresponding register map.

    Signed-off-by: Xi Pardee <xi.pardee@intel.com>
    Signed-off-by: David E. Box <david.e.box@linux.intel.com>
    Signed-off-by: Rajvi Jingar <rajvi.jingar@linux.intel.com>
    Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
    Link: https://lore.kernel.org/r/20230613225347.2720665-6-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 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 f5b9a0c6af platform/x86:intel/pmc: Update maps for Meteor Lake P/M platforms
Bugzilla: https://bugzilla.redhat.com/2177038

commit 9682cfd1973d01e43c2764c662e6d3291ddf770d
Author: Xi Pardee <xi.pardee@intel.com>
Date:   Tue Jun 13 15:53:40 2023 -0700

    platform/x86:intel/pmc: Update maps for Meteor Lake P/M platforms

    Fix the IP name errors in the register maps used by the following
    debugfs attributes in the Meteor Lake SOC-M PMC.

    pfear_sts
    lpm_sts
    ltr_show

    Fixes: c5ad454a12c6 ("platform/x86: intel/pmc/core: Add Meteor Lake support to pmc core driver")
    Signed-off-by: Xi Pardee <xi.pardee@intel.com>
    Signed-off-by: Rajvi Jingar <rajvi.jingar@linux.intel.com>
    Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
    Link: https://lore.kernel.org/r/20230613225347.2720665-2-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 d96cc4eb63 platform/x86/intel/pmc/mtl: Put devices in D3 during resume
Bugzilla: https://bugzilla.redhat.com/2177038

commit f2b689ab2f8cc089cc7659c323f282e6a1fb6d64
Author: David E. Box <david.e.box@linux.intel.com>
Date:   Wed Jun 7 16:38:49 2023 -0700

    platform/x86/intel/pmc/mtl: Put devices in D3 during resume

    An earlier commit placed some driverless devices in D3 during boot so that
    they don't block package cstate entry on Meteor Lake. Also place these
    devices in D3 after resume from suspend.

    Fixes: 336ba968d3e3 ("platform/x86/intel/pmc/mtl: Put GNA/IPU/VPU devices in D3")
    Signed-off-by: David E. Box <david.e.box@linux.intel.com>
    Link: https://lore.kernel.org/r/20230607233849.239047-2-david.e.box@linux.intel.com
    Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@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-09-15 14:08:33 -04:00
David Arcari ba6b28e374 platform/x86/intel/pmc/mtl: Put GNA/IPU/VPU devices in D3
Bugzilla: https://bugzilla.redhat.com/2177038

commit 336ba968d3e30038c13b03a71f5a672db6c9e303
Author: David E. Box <david.e.box@linux.intel.com>
Date:   Sun Apr 9 12:25:35 2023 -0700

    platform/x86/intel/pmc/mtl: Put GNA/IPU/VPU devices in D3

    On Meteor Lake, the GNA, IPU, and VPU devices are booted in D0 power state
    and will block the SoC from going into the deepest Package C-state if a
    driver is not present. Put each device in D3hot if no driver is found.

    Signed-off-by: David E. Box <david.e.box@linux.intel.com>
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://lore.kernel.org/r/20230409192535.914540-1-david.e.box@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 81f69904e4 platform/x86: intel/pmc/core: Add Meteor Lake support to pmc core driver
Bugzilla: https://bugzilla.redhat.com/2153969

commit c5ad454a12c6a6d08dd67c971a0b12adc9953304
Author: Gayatri Kammela <gayatri.kammela@linux.intel.com>
Date:   Mon Nov 14 10:32:57 2022 -0800

    platform/x86: intel/pmc/core: Add Meteor Lake support to pmc core driver

    Add Meteor Lake client and mobile support to pmc core driver. This patch
    adds legacy support.

    Cc: David E Box <david.e.box@linux.intel.com>
    Suggested-by: David E Box <david.e.box@linux.intel.com>
    Reviewed-by: "David E. Box" <david.e.box@linux.intel.com>
    Signed-off-by: Sukumar Ghorai <sukumar.ghorai@intel.com>
    Signed-off-by: Gayatri Kammela <gayatri.kammela@linux.intel.com>
    Signed-off-by: "David E. Box" <david.e.box@linux.intel.com>
    Link: https://lore.kernel.org/r/20221114183257.2067662-9-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:43 -04:00