1. 25 8月, 2022 2 次提交
  2. 10 8月, 2022 1 次提交
  3. 09 8月, 2022 1 次提交
  4. 29 7月, 2022 1 次提交
    • R
      ACPI/IORT: Fix build error implicit-function-declaration · de026976
      Ren Zhijie 提交于
      If CONFIG_ACPI_IORT=y and CONFIG_IOMMU_API is not set,
      make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-,
      will be failed, like this:
      
      drivers/acpi/arm64/iort.c: In function ‘iort_get_rmr_sids’:
      drivers/acpi/arm64/iort.c:1406:2: error: implicit declaration of function ‘iort_iommu_rmr_get_resv_regions’; did you mean ‘iort_iommu_get_resv_regions’? [-Werror=implicit-function-declaration]
        iort_iommu_rmr_get_resv_regions(iommu_fwnode, NULL, head);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        iort_iommu_get_resv_regions
      cc1: some warnings being treated as errors
      make[3]: *** [drivers/acpi/arm64/iort.o] Error 1
      
      The function iort_iommu_rmr_get_resv_regions()
      is declared under CONFIG_IOMMU_API,
      and the callers of iort_get_rmr_sids() and iort_put_rmr_sids()
      would select IOMMU_API.
      
      To fix this error, move the definitions to #ifdef CONFIG_IOMMU_API.
      
      Fixes: e302eea8 ("ACPI/IORT: Add a helper to retrieve RMR info directly")
      Signed-off-by: NRen Zhijie <renzhijie2@huawei.com>
      Acked-by: NHanjun Guo <guohanjun@huawei.com>
      Link: https://lore.kernel.org/r/20220726033520.47865-1-renzhijie2@huawei.comSigned-off-by: NJoerg Roedel <jroedel@suse.de>
      de026976
  5. 28 7月, 2022 10 次提交
  6. 27 7月, 2022 2 次提交
    • R
      ACPI: CPPC: Do not prevent CPPC from working in the future · 4f4179fc
      Rafael J. Wysocki 提交于
      There is a problem with the current revision checks in
      is_cppc_supported() that they essentially prevent the CPPC support
      from working if a new _CPC package format revision being a proper
      superset of the v3 and only causing _CPC to return a package with more
      entries (while retaining the types and meaning of the entries defined by
      the v3) is introduced in the future and used by the platform firmware.
      
      In that case, as long as the number of entries in the _CPC return
      package is at least CPPC_V3_NUM_ENT, it should be perfectly fine to
      use the v3 support code and disregard the additional package entries
      added by the new package format revision.
      
      For this reason, drop is_cppc_supported() altogether, put the revision
      checks directly into acpi_cppc_processor_probe() so they are easier to
      follow and rework them to take the case mentioned above into account.
      
      Fixes: 4773e77c ("ACPI / CPPC: Add support for CPPC v3")
      Cc: 4.18+ <stable@vger.kernel.org> # 4.18+
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      4f4179fc
    • R
      ACPI: PM: x86: Print messages regarding LPS0 idle support · ec6c0503
      Rafael J. Wysocki 提交于
      Because suspend-to-idle is always supported and on x86 it is the only
      way to suspend the system if S3 is not supported by the platform, the
      kernel attempts to enter low-power S0 idle in the suspend-to-idle flow
      regardless of whether or not the ACPI_FADT_LOW_POWER_S0 flag is set in
      the FADT.  However, if that flag is not set, residency counters
      associated with low-power S0 idle may not count and the platform may
      refuse to put the EC into a low-power mode, for example.
      
      For this reason, print diagnostic messages when the platform should
      achieve significant energy savings in low-power S0 idle (because the
      ACPI_FADT_LOW_POWER_S0 flag is set in the FADT) and when
      suspend-to-idle becomes the default suspend method (because low-power
      S0 idle should be equally or more efficient than S3, if available).
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Reviewed-by: NMario Limonciello <mario.limonciello@amd.com>
      ec6c0503
  7. 22 7月, 2022 1 次提交
    • S
      ACPI: PPTT: Leave the table mapped for the runtime usage · 0c80f9e1
      Sudeep Holla 提交于
      Currently, everytime an information needs to be fetched from the PPTT,
      the table is mapped via acpi_get_table() and unmapped after the use via
      acpi_put_table() which is fine. However we do this at runtime especially
      when the CPU is hotplugged out and plugged in back since we re-populate
      the cache topology and other information.
      
      However, with the support to fetch LLC information from the PPTT in the
      cpuhotplug path which is executed in the atomic context, it is preferred
      to avoid mapping and unmapping of the PPTT for every single use as the
      acpi_get_table() might sleep waiting for a mutex.
      
      In order to avoid the same, the table is needs to just mapped once on
      the boot CPU and is never unmapped allowing it to be used at runtime
      with out the hassle of mapping and unmapping the table.
      Reported-by: NGuenter Roeck <linux@roeck-us.net>
      Cc: Rafael J. Wysocki <rafael@kernel.org>
      Signed-off-by: NSudeep Holla <sudeep.holla@arm.com>
      
      --
      
      Hi Rafael,
      
      Sorry to bother you again on this PPTT changes. Guenter reported an issue
      with lockdep enabled in -next that include my cacheinfo/arch_topology changes
      to utilise LLC from PPTT in the CPU hotplug path.
      
      Please ack the change once you are happy so that I can get it merged with
      other fixes via Greg's tree.
      
      Regards,
      Sudeep
      Acked-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Link: https://lore.kernel.org/r/20220720-arch_topo_fixes-v3-2-43d696288e84@arm.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      0c80f9e1
  8. 21 7月, 2022 1 次提交
  9. 20 7月, 2022 3 次提交
  10. 19 7月, 2022 1 次提交
  11. 16 7月, 2022 3 次提交
  12. 15 7月, 2022 7 次提交
  13. 06 7月, 2022 7 次提交