Skip to content
  1. Mar 25, 2022
  2. Mar 17, 2022
  3. Mar 16, 2022
  4. Mar 15, 2022
    • Rafael J. Wysocki's avatar
      Merge branch 'thermal-hfi' into linux-next · 4a73286a
      Rafael J. Wysocki authored
      * thermal-hfi:
        tools/power/x86/intel-speed-select: v1.12 release
        tools/power/x86/intel-speed-select: HFI support
        tools/power/x86/intel-speed-select: OOB daemon mode
        thermal: intel: hfi: INTEL_HFI_THERMAL depends on NET
        thermal: netlink: Fix parameter type of thermal_genl_cpu_capability_event() stub
        thermal: intel: hfi: Notify user space for HFI events
        thermal: netlink: Add a new event to notify CPU capabilities change
        thermal: intel: hfi: Enable notification interrupt
        thermal: intel: hfi: Handle CPU hotplug events
        thermal: intel: hfi: Minimally initialize the Hardware Feedback Interface
        x86/cpu: Add definitions for the Intel Hardware Feedback Interface
        x86/Documentation: Describe the Intel Hardware Feedback Interface
      4a73286a
    • Rafael J. Wysocki's avatar
      Merge branches 'thermal-int340x', 'thermal-powerclamp' and 'thermal-docs' into linux-next · 6b788bef
      Rafael J. Wysocki authored
      * thermal-int340x:
        thermal: Replace acpi_bus_get_device()
        thermal: int340x: Check for NULL after calling kmemdup()
      
      * thermal-powerclamp:
        thermal: intel_powerclamp: don't use bitmap_weight() in end_power_clamp()
      
      * thermal-docs:
        thermal: fix Documentation bullet list warning
      6b788bef
    • Rafael J. Wysocki's avatar
      Merge branch 'thermal' into linux-next · 49b7d538
      Rafael J. Wysocki authored
      * thermal:
        MAINTAINERS: thermal: samsung: update Krzysztof Kozlowski's email
        thermal/drivers/ti-soc-thermal: Remove unused function ti_thermal_get_temp()
        thermal/drivers/brcmstb_thermal: Interrupt is optional
        thermal: tegra-bpmp: Handle errors in BPMP response
        drivers/thermal/ti-soc-thermal: Add hwmon support
        dt-bindings: thermal: tsens: Add msm8953 compatible
        dt-bindings: thermal: Add sm8150 compatible string for LMh
        thermal/drivers/qcom/lmh: Add support for sm8150
        thermal/drivers/tsens: register thermal zones as hwmon sensors
        MAINTAINERS: thermal: samsung: Drop obsolete properties
        dt-bindings: thermal: samsung: Convert to dtschema
      49b7d538
    • Rafael J. Wysocki's avatar
      Merge branch 'devprop' into linux-next · 32e214dc
      Rafael J. Wysocki authored
      * devprop:
        device property: Don't split fwnode_get_irq*() APIs in the code
        i2c: smbus: Use device_*() functions instead of of_*()
        docs: firmware-guide: ACPI: Add named interrupt doc
        device property: Add fwnode_irq_get_byname
      32e214dc
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-tools' into linux-next · c349f455
      Rafael J. Wysocki authored
      * pm-tools:
        Documentation: amd-pstate: add tracer tool introduction
        tools/power/x86/amd_pstate_tracer: Add tracer tool for AMD P-state
        tools/power/x86/intel_pstate_tracer: make tracer as a module
        cpufreq: amd-pstate: Add more tracepoint for AMD P-State module
        turbostat: fix PC6 displaying on some systems
        cpupower: Add "perf" option to print AMD P-State information
        cpupower: Add function to print AMD P-State performance capabilities
        cpupower: Move print_speed function into misc helper
        cpupower: Enable boost state support for AMD P-State module
        cpupower: Add AMD P-State sysfs definition and access helper
        cpupower: Introduce ACPI CPPC library
        cpupower: Add the function to get the sysfs value from specific table
        cpupower: Initial AMD P-State capability
        cpupower: Add the function to check AMD P-State enabled
        cpupower: Add AMD P-State capability flag
        tools/power/cpupower/{ToDo => TODO}: Rename the todo file
        tools: cpupower: fix typo in cpupower-idle-set(1) manpage
      c349f455
    • Rafael J. Wysocki's avatar
      Merge branch 'powercap' into linux-next · 47f68bad
      Rafael J. Wysocki authored
      * powercap:
        powercap: DTPM: Fix spelling mistake "initialze" -> "initialize"
        powercap: DTPM: dtpm_node_callback[] can be static
        dtpm/soc/rk3399: Add the ability to unload the module
        powercap/dtpm_cpu: Add exit function
        powercap/dtpm: Move the 'root' reset place
        powercap/dtpm: Destroy hierarchy function
        powercap/dtpm: Fixup kfree for virtual node
        powercap/dtpm_cpu: Reset per_cpu variable in the release function
        powercap/dtpm: Change locking scheme
        rockchip/soc/drivers: Add DTPM description for rk3399
        powercap/drivers/dtpm: Add dtpm devfreq with energy model support
        powercap/drivers/dtpm: Add CPU DT initialization support
        powercap/drivers/dtpm: Add hierarchy creation
        powercap/drivers/dtpm: Convert the init table section to a simple array
      47f68bad
    • Rafael J. Wysocki's avatar
      Merge branches 'pm-core', 'pm-sleep', 'pm-domains' and 'pm-docs' into linux-next · 5c2c0827
      Rafael J. Wysocki authored
      * pm-core:
        PM: core: keep irq flags in device_pm_check_callbacks()
        PM: runtime: Have devm_pm_runtime_enable() handle pm_runtime_dont_use_autosuspend()
      
      * pm-sleep:
        PM: sleep: Add device name to suspend_report_result()
        PM: suspend: fix return value of __setup handler
        PM: hibernate: fix __setup handler error handling
        PM: hibernate: Clean up non-kernel-doc comments
        PM: sleep: wakeup: Fix typos in comments
        PM: hibernate: fix load_image_and_restore() error path
      
      * pm-domains:
        PM: domains: Fix sleep-in-atomic bug caused by genpd_debug_remove()
        PM: domains: use dev_err_probe() to simplify error handling
        PM: domains: Prevent power off for parent unless child is in deepest state
      
      * pm-docs:
        Documentation: admin-guide: pm: Document uncore frequency scaling
      5c2c0827
    • Rafael J. Wysocki's avatar
      Merge branches 'pm-cpufreq' and 'pm-cpuidle' into linux-next · 6cdab8ab
      Rafael J. Wysocki authored
      * pm-cpufreq:
        cpufreq: unify show() and store() naming and use __ATTR_XX
        cpufreq: longhaul: Replace acpi_bus_get_device()
        cpufreq: schedutil: Use to_gov_attr_set() to get the gov_attr_set
        cpufreq: Move to_gov_attr_set() to cpufreq.h
      
      * pm-cpuidle:
        cpuidle: haltpoll: Call cpuidle_poll_state_init() later
        intel_idle: add core C6 optimization for SPR
        intel_idle: add 'preferred_cstates' module argument
        intel_idle: add SPR support
        ACPI: processor idle: Check for architectural support for LPI
        cpuidle: PSCI: Move the `has_lpi` check to the beginning of the function
      6cdab8ab
    • Rafael J. Wysocki's avatar
      Merge branch 'pnp' into linux-next · 1c68ae03
      Rafael J. Wysocki authored
      * pnp:
        PNP: Replace acpi_bus_get_device()
      1c68ae03
    • Rafael J. Wysocki's avatar
      Merge branches 'acpi-fan', 'acpi-battery', 'acpi-soc' and 'acpi-cppc' into linux-next · 6b44cfbd
      Rafael J. Wysocki authored
      * acpi-fan:
        Documentation/admin-guide/acpi: Add documentation for fine grain control
        ACPI: fan: Add additional attributes for fine grain control
        ACPI: fan: Properly handle fine grain control
        ACPI: fan: Optimize struct acpi_fan_fif
        ACPI: fan: Separate file for attributes creation
        ACPI: fan: Fix error reporting to user space
      
      * acpi-battery:
        ACPI: battery: Add device HID and quirk for Microsoft Surface Go 3
      
      * acpi-soc:
        ACPI: LPSS: Provide an SSP type to the driver
        ACPI: LPSS: Constify properties member in struct lpss_device_desc
        ACPI: platform: Constify properties parameter in acpi_create_platform_device()
      
      * acpi-cppc:
        arm64, topology: enable use of init_cpu_capacity_cppc()
        arch_topology: obtain cpu capacity using information from CPPC
        x86, ACPI: rename init_freq_invariance_cppc() to arch_init_invariance_cppc()
      6b44cfbd
    • Rafael J. Wysocki's avatar
      Merge branches 'acpi-ec', 'acpi-docs' and 'acpi-apei' into linux-next · 78b5c4ca
      Rafael J. Wysocki authored
      * acpi-ec:
        ACPI: EC: Rearrange code in acpi_ec_submit_event()
        ACPI: EC: Reduce indentation level in acpi_ec_submit_event()
        ACPI: EC: Do not return result from advance_transaction()
      
      * acpi-docs:
        ACPI: docs: gpio-properties: Unify ASL style for GPIO examples
        ACPI: docs: enumeration: Unify Package () for properties
        ACPI: docs: enumeration: Drop comma for terminator entry
        ACPI: docs: enumeration: Drop ugly ifdeffery from the examples
        ACPI: docs: enumeration: Amend PWM enumeration ASL example
        ACPI: docs: enumeration: Remove redundant .owner assignment
        ACPI: docs: enumeration: Update UART serial bus resource documentation
        ACPI: docs: enumeration: Discourage to use custom _DSM methods
      
      * acpi-apei:
        ACPI: AGDI: Add driver for Arm Generic Diagnostic Dump and Reset device
        ACPI/APEI: Limit printable size of BERT table data
        ACPI: APEI: fix return value of __setup handlers
        ACPI: APEI: rename ghes_init() with an "acpi_" prefix
        ACPI: APEI: explicit init of HEST and GHES in apci_init()
      78b5c4ca
    • Rafael J. Wysocki's avatar
      Merge branches 'acpi-pm', 'acpi-properties', 'acpi-misc' and 'acpi-x86' into linux-next · 34c48bb3
      Rafael J. Wysocki authored
      * acpi-pm:
        ACPI: EC / PM: Print additional debug message in acpi_ec_dispatch_gpe()
        ACPI: PM: Print additional debug message in acpi_s2idle_wake()
      
      * acpi-properties:
        ACPI: property: Get rid of redundant 'else'
        ACPI: properties: Consistently return -ENOENT if there are no more references
      
      * acpi-misc:
        ACPI: clean up double words in two comments
      
      * acpi-x86:
        ACPI / x86: Work around broken XSDT on Advantech DAC-BJ01 board
        x86/ACPI: CPPC: Move init_freq_invariance_cppc() into x86 CPPC
        x86: Expose init_freq_invariance() to topology header
        x86/ACPI: CPPC: Move AMD maximum frequency ratio setting function into x86 CPPC
        x86/ACPI: CPPC: Rename cppc_msr.c to cppc.c
        ACPI / x86: Add skip i2c clients quirk for Lenovo Yoga Tablet 1050F/L
        ACPI / x86: Add skip i2c clients quirk for Nextbook Ares 8
      34c48bb3
    • Rafael J. Wysocki's avatar
      Merge branches 'acpica', 'acpi-osl', 'acpi-tables', 'acpi-scan' and 'acpi-bus' into linux-next · 9bf8fd60
      Rafael J. Wysocki authored
      * acpica:
        ACPICA: Avoid walking the ACPI Namespace if it is not there
        ACPICA: Use uintptr_t and offsetof() in Linux kernel builds
      
      * acpi-osl:
        ACPI: OSL: Fix and clean up acpi_os_read/write_port()
      
      * acpi-tables:
        ACPI: tables: Add AGDI to the list of known table signatures
        ACPI: tables: Add CEDT signature to the list of known tables
      
      * acpi-scan:
        ACPI: scan: Use ida_alloc() instead of ida_simple_get()
      
      * acpi-bus:
        ACPI: bus: Introduce acpi_bus_for_each_dev()
      9bf8fd60
    • Ingo Molnar's avatar
      sched/headers: Only include <linux/entry-common.h> when CONFIG_GENERIC_ENTRY=y · a7b2553b
      Ingo Molnar authored
      
      
      This header is not (yet) standalone.
      
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      a7b2553b
    • Ingo Molnar's avatar
      ccdbf33c
    • Ingo Molnar's avatar
      Merge branch 'sched/fast-headers' into sched/core · ccacfe56
      Ingo Molnar authored
      
      
      Merge the scheduler build speedup of the fast-headers tree.
      
      Cumulative scheduler (kernel/sched/) build time speedup on a
      Linux distribution's config, which enables all scheduler features,
      compared to the vanilla kernel:
      
            _____________________________________________________________________________
           |
           |  Vanilla kernel (v5.13-rc7):
           |_____________________________________________________________________________
           |
           |  Performance counter stats for 'make -j96 kernel/sched/' (3 runs):
           |
           |   126,975,564,374      instructions              #    1.45  insn per cycle           ( +-  0.00% )
           |    87,637,847,671      cycles                    #    3.959 GHz                      ( +-  0.30% )
           |         22,136.96 msec cpu-clock                 #    7.499 CPUs utilized            ( +-  0.29% )
           |
           |            2.9520 +- 0.0169 seconds time elapsed  ( +-  0.57% )
           |_____________________________________________________________________________
           |
           |  Patched kernel:
           |_____________________________________________________________________________
           |
           | Performance counter stats for 'make -j96 kernel/sched/' (3 runs):
           |
           |    50,420,496,914      instructions              #    1.47  insn per cycle           ( +-  0.00% )
           |    34,234,322,038      cycles                    #    3.946 GHz                      ( +-  0.31% )
           |          8,675.81 msec cpu-clock                 #    3.053 CPUs utilized            ( +-  0.45% )
           |
           |            2.8420 +- 0.0181 seconds time elapsed  ( +-  0.64% )
           |_____________________________________________________________________________
      
          Summary:
      
            - CPU time used to build the scheduler dropped by -60.9%, a reduction
              from 22.1 clock-seconds to 8.7 clock-seconds.
      
            - Wall-clock time to build the scheduler dropped by -3.9%, a reduction
              from 2.95 seconds to 2.84 seconds.
      
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      ccacfe56
  5. Mar 13, 2022
  6. Mar 12, 2022
  7. Mar 11, 2022
    • Randy Dunlap's avatar
      ARM: Spectre-BHB: provide empty stub for non-config · 68453767
      Randy Dunlap authored
      
      
      When CONFIG_GENERIC_CPU_VULNERABILITIES is not set, references
      to spectre_v2_update_state() cause a build error, so provide an
      empty stub for that function when the Kconfig option is not set.
      
      Fixes this build error:
      
        arm-linux-gnueabi-ld: arch/arm/mm/proc-v7-bugs.o: in function `cpu_v7_bugs_init':
        proc-v7-bugs.c:(.text+0x52): undefined reference to `spectre_v2_update_state'
        arm-linux-gnueabi-ld: proc-v7-bugs.c:(.text+0x82): undefined reference to `spectre_v2_update_state'
      
      Fixes: b9baf5c8 ("ARM: Spectre-BHB workaround")
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Cc: Russell King <rmk+kernel@armlinux.org.uk>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: patches@armlinux.org.uk
      Acked-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      68453767
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-5.17-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · 77fe1ba9
      Linus Torvalds authored
      Pull RISC-V fixes from Palmer Dabbelt:
      
       - prevent users from enabling the alternatives framework (and thus
         errata handling) on XIP kernels, where runtime code patching does not
         function correctly.
      
       - properly detect offset overflow for AUIPC-based relocations in
         modules. This may manifest as modules calling arbitrary invalid
         addresses, depending on the address allocated when a module is
         loaded.
      
      * tag 'riscv-for-linus-5.17-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        riscv: Fix auipc+jalr relocation range checks
        riscv: alternative only works on !XIP_KERNEL
      77fe1ba9
    • Linus Torvalds's avatar
      Merge tag 'powerpc-5.17-6' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 878409ec
      Linus Torvalds authored
      Pull powerpc fix from Michael Ellerman:
       "Fix STACKTRACE=n build, in particular for skiroot_defconfig"
      
      * tag 'powerpc-5.17-6' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc: Fix STACKTRACE=n build
      878409ec
    • Russell King (Oracle)'s avatar
      ARM: fix Thumb2 regression with Spectre BHB · 6c7cb60b
      Russell King (Oracle) authored
      
      
      When building for Thumb2, the vectors make use of a local label. Sadly,
      the Spectre BHB code also uses a local label with the same number which
      results in the Thumb2 reference pointing at the wrong place. Fix this
      by changing the number used for the Spectre BHB local label.
      
      Fixes: b9baf5c8 ("ARM: Spectre-BHB workaround")
      Tested-by: default avatarNathan Chancellor <nathan@kernel.org>
      Signed-off-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      6c7cb60b
    • Linus Torvalds's avatar
      Merge tag 'mmc-v5.17-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc · 3977a3fb
      Linus Torvalds authored
      Pull MMC fixes from Ulf Hansson:
       "MMC core:
         - Restore (mostly) the busy polling for MMC_SEND_OP_COND
      
        MMC host:
         - meson-gx: Fix DMA usage of meson_mmc_post_req()"
      
      * tag 'mmc-v5.17-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc:
        mmc: core: Restore (almost) the busy polling for MMC_SEND_OP_COND
        mmc: meson: Fix usage of meson_mmc_post_req()
      3977a3fb
    • Jarkko Sakkinen's avatar
      x86/sgx: Free backing memory after faulting the enclave page · 08999b24
      Jarkko Sakkinen authored
      
      
      There is a limited amount of SGX memory (EPC) on each system.  When that
      memory is used up, SGX has its own swapping mechanism which is similar
      in concept but totally separate from the core mm/* code.  Instead of
      swapping to disk, SGX swaps from EPC to normal RAM.  That normal RAM
      comes from a shared memory pseudo-file and can itself be swapped by the
      core mm code.  There is a hierarchy like this:
      
      	EPC <-> shmem <-> disk
      
      After data is swapped back in from shmem to EPC, the shmem backing
      storage needs to be freed.  Currently, the backing shmem is not freed.
      This effectively wastes the shmem while the enclave is running.  The
      memory is recovered when the enclave is destroyed and the backing
      storage freed.
      
      Sort this out by freeing memory with shmem_truncate_range(), as soon as
      a page is faulted back to the EPC.  In addition, free the memory for
      PCMD pages as soon as all PCMD's in a page have been marked as unused
      by zeroing its contents.
      
      Cc: stable@vger.kernel.org
      Fixes: 1728ab54 ("x86/sgx: Add a page reclaimer")
      Reported-by: default avatarDave Hansen <dave.hansen@linux.intel.com>
      Signed-off-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
      Signed-off-by: default avatarDave Hansen <dave.hansen@linux.intel.com>
      Link: https://lkml.kernel.org/r/20220303223859.273187-1-jarkko@kernel.org
      08999b24
    • Linus Torvalds's avatar
      Merge branch 'davidh' (fixes from David Howells) · 93ce9358
      Linus Torvalds authored
      Merge misc fixes from David Howells:
       "A set of patches for watch_queue filter issues noted by Jann. I've
        added in a cleanup patch from Christophe Jaillet to convert to using
        formal bitmap specifiers for the note allocation bitmap.
      
        Also two filesystem fixes (afs and cachefiles)"
      
      * emailed patches from David Howells <dhowells@redhat.com>:
        cachefiles: Fix volume coherency attribute
        afs: Fix potential thrashing in afs writeback
        watch_queue: Make comment about setting ->defunct more accurate
        watch_queue: Fix lack of barrier/sync/lock between post and read
        watch_queue: Free the alloc bitmap when the watch_queue is torn down
        watch_queue: Fix the alloc bitmap size to reflect notes allocated
        watch_queue: Use the bitmap API when applicable
        watch_queue: Fix to always request a pow-of-2 pipe ring size
        watch_queue: Fix to release page in ->release()
        watch_queue, pipe: Free watchqueue state after clearing pipe ring
        watch_queue: Fix filter limit check
      93ce9358
    • David Howells's avatar
      cachefiles: Fix volume coherency attribute · 413a4a6b
      David Howells authored
      
      
      A network filesystem may set coherency data on a volume cookie, and if
      given, cachefiles will store this in an xattr on the directory in the
      cache corresponding to the volume.
      
      The function that sets the xattr just stores the contents of the volume
      coherency buffer directly into the xattr, with nothing added; the
      checking function, on the other hand, has a cut'n'paste error whereby it
      tries to interpret the xattr contents as would be the xattr on an
      ordinary file (using the cachefiles_xattr struct).  This results in a
      failure to match the coherency data because the buffer ends up being
      shifted by 18 bytes.
      
      Fix this by defining a structure specifically for the volume xattr and
      making both the setting and checking functions use it.
      
      Since the volume coherency doesn't work if used, take the opportunity to
      insert a reserved field for future use, set it to 0 and check that it is
      0.  Log mismatch through the appropriate tracepoint.
      
      Note that this only affects cifs; 9p, afs, ceph and nfs don't use the
      volume coherency data at the moment.
      
      Fixes: 32e15003 ("fscache, cachefiles: Store the volume coherency data")
      Reported-by: default avatarRohith Surabattula <rohiths.msft@gmail.com>
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
      cc: Steve French <smfrench@gmail.com>
      cc: linux-cifs@vger.kernel.org
      cc: linux-cachefs@redhat.com
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      413a4a6b
Loading