1. 02 Jun, 2022 9 commits
  2. 01 Jun, 2022 10 commits
  3. 31 May, 2022 3 commits
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-5.19-mw0' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · 35b51afd
      Linus Torvalds authored
      Pull RISC-V updates from Palmer Dabbelt:
      
       - Support for the Svpbmt extension, which allows memory attributes to
         be encoded in pages
      
       - Support for the Allwinner D1's implementation of page-based memory
         attributes
      
       - Support for running rv32 binaries on rv64 systems, via the compat
         subsystem
      
       - Support for kexec_file()
      
       - Support for the new generic ticket-based spinlocks, which allows us
         to also move to qrwlock. These should have already gone in through
         the asm-geneic tree as well
      
       - A handful of cleanups and fixes, include some larger ones around
         atomics and XIP
      
      * tag 'riscv-for-linus-5.19-mw0' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux: (51 commits)
        RISC-V: Prepare dropping week attribute from arch_kexec_apply_relocations[_add]
        riscv: compat: Using seperated vdso_maps for compat_vdso_info
        RISC-V: Fix the XIP build
        RISC-V: Split out the XIP fixups into their own file
        RISC-V: ignore xipImage
        RISC-V: Avoid empty create_*_mapping definitions
        riscv: Don't output a bogus mmu-type on a no MMU kernel
        riscv: atomic: Add custom conditional atomic operation implementation
        riscv: atomic: Optimize dec_if_positive functions
        riscv: atomic: Cleanup unnecessary definition
        RISC-V: Load purgatory in kexec_file
        RISC-V: Add purgatory
        RISC-V: Support for kexec_file on panic
        RISC-V: Add kexec_file support
        RISC-V: use memcpy for kexec_file mode
        kexec_file: Fix kexec_file.c build error for riscv platform
        riscv: compat: Add COMPAT Kbuild skeletal support
        riscv: compat: ptrace: Add compat_arch_ptrace implement
        riscv: compat: signal: Add rt_frame implementation
        riscv: add memory-type errata for T-Head
        ...
      35b51afd
    • Linus Torvalds's avatar
      Merge tag 'iommu-updates-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu · e1cbc3b9
      Linus Torvalds authored
      Pull iommu updates from Joerg Roedel:
      
       - Intel VT-d driver updates:
           - Domain force snooping improvement.
           - Cleanups, no intentional functional changes.
      
       - ARM SMMU driver updates:
           - Add new Qualcomm device-tree compatible strings
           - Add new Nvidia device-tree compatible string for Tegra234
           - Fix UAF in SMMUv3 shared virtual addressing code
           - Force identity-mapped domains for users of ye olde SMMU legacy
             binding
           - Minor cleanups
      
       - Fix a BUG_ON in the vfio_iommu_group_notifier:
           - Groundwork for upcoming iommufd framework
           - Introduction of DMA ownership so that an entire IOMMU group is
             either controlled by the kernel or by user-space
      
       - MT8195 and MT8186 support in the Mediatek IOMMU driver
      
       - Make forcing of cache-coherent DMA more coherent between IOMMU
         drivers
      
       - Fixes for thunderbolt device DMA protection
      
       - Various smaller fixes and cleanups
      
      * tag 'iommu-updates-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu: (88 commits)
        iommu/amd: Increase timeout waiting for GA log enablement
        iommu/s390: Tolerate repeat attach_dev calls
        iommu/vt-d: Remove hard coding PGSNP bit in PASID entries
        iommu/vt-d: Remove domain_update_iommu_snooping()
        iommu/vt-d: Check domain force_snooping against attached devices
        iommu/vt-d: Block force-snoop domain attaching if no SC support
        iommu/vt-d: Size Page Request Queue to avoid overflow condition
        iommu/vt-d: Fold dmar_insert_one_dev_info() into its caller
        iommu/vt-d: Change return type of dmar_insert_one_dev_info()
        iommu/vt-d: Remove unneeded validity check on dev
        iommu/dma: Explicitly sort PCI DMA windows
        iommu/dma: Fix iova map result check bug
        iommu/mediatek: Fix NULL pointer dereference when printing dev_name
        iommu: iommu_group_claim_dma_owner() must always assign a domain
        iommu/arm-smmu: Force identity domains for legacy binding
        iommu/arm-smmu: Support Tegra234 SMMU
        dt-bindings: arm-smmu: Add compatible for Tegra234 SOC
        dt-bindings: arm-smmu: Document nvidia,memory-controller property
        iommu/arm-smmu-qcom: Add SC8280XP support
        dt-bindings: arm-smmu: Add compatible for Qualcomm SC8280XP
        ...
      e1cbc3b9
    • Linus Torvalds's avatar
      Merge tag 'microblaze-v5.19' of git://git.monstr.eu/linux-2.6-microblaze · 3335d555
      Linus Torvalds authored
      Pull microblaze updates from Michal Simek:
      
       - Fix issues with freestanding
      
       - Wire memblock_dump_all()
      
       - Add support for memory reservation from DT
      
      * tag 'microblaze-v5.19' of git://git.monstr.eu/linux-2.6-microblaze:
        microblaze: fix typos in comments
        microblaze: Add support for reserved memory defined by DT
        microblaze: Wire memblock_dump_all()
        microblaze: Use simple memmove/memcpy implementation from lib/string.c
        microblaze: Do loop unrolling for optimized memset implementation
        microblaze: Use simple memset implementation from lib/string.c
      3335d555
  4. 30 May, 2022 18 commits
    • Uwe Kleine-König's avatar
      RISC-V: Prepare dropping week attribute from arch_kexec_apply_relocations[_add] · 7699f7aa
      Uwe Kleine-König authored
      Without this change arch/riscv/kernel/elf_kexec.c fails to compile once
      commit 233c1e6c319c ("kexec_file: drop weak attribute from
      arch_kexec_apply_relocations[_add]") is also contained in the tree.
      This currently happens in next-20220527.
      
      Prepare the RISC-V similar to the s390 adaption done in 233c1e6c319c.
      This is safe to do on top of the riscv change even without the change to
      arch_kexec_apply_relocations.
      
      Fixes: 838b3e28 ("RISC-V: Load purgatory in kexec_file")
      Looks-good-to: liaochang (A) <liaochang1@huawei.com>
      Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
      7699f7aa
    • Linus Torvalds's avatar
      Merge tag 'for-5.19/fbdev-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev · 8ab2afa2
      Linus Torvalds authored
      Pull fbdev fixes and updates from Helge Deller:
       "A buch of small fixes and cleanups, including:
      
         - vesafb: Fix a use-after-free due early fb_info cleanup
      
         - clcdfb: Fix refcount leak in clcdfb_of_vram_setup
      
         - hyperv_fb: Allow resolutions with size > 64 MB for Gen1
      
         - pxa3xx-gcu: release the resources correctly in
           pxa3xx_gcu_probe/remove()
      
         - omapfb: Prevent compiler warning regarding
           hwa742_update_window_async()"
      
      * tag 'for-5.19/fbdev-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev:
        video: fbdev: omap: Add prototype for hwa742_update_window_async()
        video: fbdev: vesafb: Fix a use-after-free due early fb_info cleanup
        video: fbdev: radeon: Fix spelling typo in comment
        video: fbdev: xen: remove setting of 'transp' parameter
        video: fbdev: pxa3xx-gcu: release the resources correctly in pxa3xx_gcu_probe/remove()
        video: fbdev: omapfb: simplify the return expression of nec_8048_connect()
        video: fbdev: omapfb: simplify the return expression of dsi_init_pll_data()
        video: fbdev: clcdfb: Fix refcount leak in clcdfb_of_vram_setup
        video: fbdev: hyperv_fb: Allow resolutions with size > 64 MB for Gen1
      8ab2afa2
    • Linus Torvalds's avatar
      Merge tag 'for-5.19/parisc-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux · e11a9356
      Linus Torvalds authored
      Pull parisc architecture updates from Helge Deller:
       "Minor cleanups and code optimizations, e.g.:
      
         - improvements in assembly statements in the tmpalias code path
      
         - added some additionals compile time checks
      
         - drop some unneccesary assembler DMA syncs"
      
      * tag 'for-5.19/parisc-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
        parisc: Drop __ARCH_WANT_OLD_READDIR and __ARCH_WANT_SYS_OLDUMOUNT
        parisc: Optimize tmpalias function calls
        parisc: Add dep_safe() macro to deposit a register in 32- and 64-kernels
        parisc: Fix wrong comment for shr macro
        parisc: Prevent ldil() to sign-extend into upper 32 bits
        parisc: Don't hardcode assembler bit definitions in tmpalias code
        parisc: Don't enforce DMA completion order in cache flushes
        parisc: video: fbdev: stifb: Add sti_dump_font() to dump STI font
      e11a9356
    • Linus Torvalds's avatar
      Merge tag 'pm-5.19-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 1ff7bc3b
      Linus Torvalds authored
      Pull more power management updates from Rafael Wysocki:
       "These update the ARM cpufreq drivers and fix up the CPPC cpufreq
        driver after recent changes, update the OPP code and PM documentation
        and add power sequences support to the system reboot and power off
        code.
      
        Specifics:
      
         - Add Tegra234 cpufreq support (Sumit Gupta)
      
         - Clean up and enhance the Mediatek cpufreq driver (Wan Jiabing,
           Rex-BC Chen, and Jia-Wei Chang)
      
         - Fix up the CPPC cpufreq driver after recent changes (Zheng Bin,
           Pierre Gondois)
      
         - Minor update to dt-binding for Qcom's opp-v2-kryo-cpu (Yassine
           Oudjana)
      
         - Use list iterator only inside the list_for_each_entry loop
           (Xiaomeng Tong, and Jakob Koschel)
      
         - New APIs related to finding OPP based on interconnect bandwidth
           (Krzysztof Kozlowski)
      
         - Fix the missing of_node_put() in _bandwidth_supported() (Dan
           Carpenter)
      
         - Cleanups (Krzysztof Kozlowski, and Viresh Kumar)
      
         - Add Out of Band mode description to the intel-speed-select utility
           documentation (Srinivas Pandruvada)
      
         - Add power sequences support to the system reboot and power off code
           and make related platform-specific changes for multiple platforms
           (Dmitry Osipenko, Geert Uytterhoeven)"
      
      * tag 'pm-5.19-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (60 commits)
        cpufreq: CPPC: Fix unused-function warning
        cpufreq: CPPC: Fix build error without CONFIG_ACPI_CPPC_CPUFREQ_FIE
        Documentation: admin-guide: PM: Add Out of Band mode
        kernel/reboot: Change registration order of legacy power-off handler
        m68k: virt: Switch to new sys-off handler API
        kernel/reboot: Add devm_register_restart_handler()
        kernel/reboot: Add devm_register_power_off_handler()
        soc/tegra: pmc: Use sys-off handler API to power off Nexus 7 properly
        reboot: Remove pm_power_off_prepare()
        regulator: pfuze100: Use devm_register_sys_off_handler()
        ACPI: power: Switch to sys-off handler API
        memory: emif: Use kernel_can_power_off()
        mips: Use do_kernel_power_off()
        ia64: Use do_kernel_power_off()
        x86: Use do_kernel_power_off()
        sh: Use do_kernel_power_off()
        m68k: Switch to new sys-off handler API
        powerpc: Use do_kernel_power_off()
        xen/x86: Use do_kernel_power_off()
        parisc: Use do_kernel_power_off()
        ...
      1ff7bc3b
    • Linus Torvalds's avatar
      Merge tag 'thermal-5.19-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 32665a9e
      Linus Torvalds authored
      Pull additional thermal control update from Rafael Wysocki:
       "Add Meteor Lake PCI device ID to the int340x thermal control driver
        (Sumeet Pawnikar)"
      
      * tag 'thermal-5.19-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        thermal: int340x: Add Meteor Lake PCI device ID
      32665a9e
    • Linus Torvalds's avatar
      Merge tag 'acpi-5.19-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 527953ef
      Linus Torvalds authored
      Pull more ACPI updates from Rafael Wysocki:
       "These add some new device IDs, update a few drivers (processor,
        battery, backlight) and clean up code in a few places.
      
        Specifics:
      
         - Add Meteor Lake ACPI IDs for DPTF devices (Sumeet Pawnikar)
      
         - Rearrange find_child_checks() to simplify code (Rafael Wysocki)
      
         - Use memremap() to map the UCSI mailbox that is always in main
           memory and drop acpi_release_memory() that has no more users
           (Heikki Krogerus, Dan Carpenter)
      
         - Make max_cstate/nocst/bm_check_disable processor module parameters
           visible in sysfs (Yajun Deng)
      
         - Fix typo in the CPPC driver (Julia Lawall)
      
         - Make the ACPI battery driver show the "not-charging" status by
           default unless "charging" or "full" is directly indicated (Werner
           Sembach)
      
         - Improve the PM notifier in the ACPI backlight driver (Zhang Rui)
      
         - Clean up some white space in the ACPI code (Ian Cowan)"
      
      * tag 'acpi-5.19-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        usb: typec: ucsi: acpi: fix a NULL vs IS_ERR() check in probe
        ACPI: DPTF: Support Meteor Lake
        ACPI: CPPC: fix typo in comment
        ACPI: video: improve PM notifer callback
        ACPI: clean up white space in a few places for consistency
        ACPI: glue: Rearrange find_child_checks()
        ACPI: processor: idle: Expose max_cstate/nocst/bm_check_disable read-only in sysfs
        ACPI: battery: Make "not-charging" the default on no charging or full info
        ACPI: OSL: Remove the helper for deactivating memory region
        usb: typec: ucsi: acpi: Map the mailbox with memremap()
      527953ef
    • Linus Torvalds's avatar
      Merge tag 'ovl-update-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs · 2c5ca23f
      Linus Torvalds authored
      Pull overlayfs updates from Miklos Szeredi:
      
       - Support idmapped layers in overlayfs (Christian Brauner)
      
       - Add a fix to exportfs that is relevant to open_by_handle_at(2) as
         well
      
       - Introduce new lookup helpers that allow passing mnt_userns into
         inode_permission()
      
      * tag 'ovl-update-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs:
        ovl: support idmapped layers
        ovl: handle idmappings in ovl_xattr_{g,s}et()
        ovl: handle idmappings in layer open helpers
        ovl: handle idmappings in ovl_permission()
        ovl: use ovl_copy_{real,upper}attr() wrappers
        ovl: store lower path in ovl_inode
        ovl: handle idmappings for layer lookup
        ovl: handle idmappings for layer fileattrs
        ovl: use ovl_path_getxattr() wrapper
        ovl: use ovl_lookup_upper() wrapper
        ovl: use ovl_do_notify_change() wrapper
        ovl: pass layer mnt to ovl_open_realfile()
        ovl: pass ofs to setattr operations
        ovl: handle idmappings in creation operations
        ovl: add ovl_upper_mnt_userns() wrapper
        ovl: pass ofs to creation operations
        ovl: use wrappers to all vfs_*xattr() calls
        exportfs: support idmapped mounts
        fs: add two trivial lookup helpers
      2c5ca23f
    • Linus Torvalds's avatar
      Merge tag 'mips_5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux · 73d15ba6
      Linus Torvalds authored
      Pull MIPS updates from Thomas Bogendoerfer:
       "Cleanups and fixes"
      
      * tag 'mips_5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux: (38 commits)
        MIPS: RALINK: Define pci_remap_iospace under CONFIG_PCI_DRIVERS_GENERIC
        MIPS: Use memblock_add_node() in early_parse_mem() under CONFIG_NUMA
        MIPS: Return -EINVAL if mem parameter is empty in early_parse_mem()
        MIPS: Kconfig: Fix indentation and add endif comment
        MIPS: bmips: Fix compiler warning observed on W=1 build
        MIPS: Rewrite `csum_tcpudp_nofold' in plain C
        mips: setup: use strscpy to replace strlcpy
        MIPS: Octeon: add SNIC10E board
        MIPS: Ingenic: Refresh defconfig for CU1000-Neo and CU1830-Neo.
        MIPS: Ingenic: Refresh device tree for Ingenic SoCs and boards.
        MIPS: Ingenic: Add PWM nodes for X1830.
        MIPS: Octeon: fix typo in comment
        MIPS: loongson32: Kconfig: Remove extra space
        MIPS: Sibyte: remove unnecessary return variable
        MIPS: Use NOKPROBE_SYMBOL() instead of __kprobes annotation
        selftests/ftrace: Save kprobe_events to test log
        MIPS: tools: no need to initialise statics to 0
        MIPS: Loongson: Use hwmon_device_register_with_groups() to register hwmon
        MIPS: VR41xx: Drop redundant spinlock initialization
        MIPS: smp: optimization for flush_tlb_mm when exiting
        ...
      73d15ba6
    • Linus Torvalds's avatar
      Merge tag 'm68knommu-for-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu · 2d2da475
      Linus Torvalds authored
      Pull m68knommu updates from Greg Ungerer:
       "A collection of changes to add elf-fdpic loader support for m68k.
      
        Also a collection of various fixes. They include typo corrections,
        undefined symbol compilation fixes, removal of the ISA_DMA_API support
        and removal of unused code.
      
        Summary:
      
         - correctly set up ZERO_PAGE pointer
      
         - drop ISA_DMA_API support
      
         - fix comment typos
      
         - fixes for undefined symbols
      
         - remove unused code and variables
      
         - elf-fdpic loader support for m68k"
      
      * tag 'm68knommu-for-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu:
        m68knommu: fix 68000 CPU link with no platform selected
        m68k: removed unused "mach_get_ss"
        m68knommu: fix undefined reference to `mach_get_rtc_pll'
        m68knommu: fix undefined reference to `_init_sp'
        m68knommu: allow elf_fdpic loader to be selected
        m68knommu: add definitions to support elf_fdpic program loader
        m68knommu: implement minimal regset support
        m68knommu: use asm-generic/mmu.h for nommu setups
        m68k: fix typos in comments
        m68k: coldfire: drop ISA_DMA_API support
        m68knommu: set ZERO_PAGE() to the allocated zeroed page
      2d2da475
    • Rafael J. Wysocki's avatar
      Merge branches 'acpi-battery', 'acpi-video' and 'acpi-misc' · 4a577fca
      Rafael J. Wysocki authored
      Merge ACPI battery and backlight driver update and miscellaneous
      cleanup for 5.19-rc1:
      
       - Make the ACPI battery driver show the "not-charging" status by
         default unless "charging" or "full" is directly indicated (Werner
         Sembach).
      
       - Improve the PM notifier in the ACPI backlight driver (Zhang Rui).
      
       - Clean up some white space in the ACPI code (Ian Cowan).
      
      * acpi-battery:
        ACPI: battery: Make "not-charging" the default on no charging or full info
      
      * acpi-video:
        ACPI: video: improve PM notifer callback
      
      * acpi-misc:
        ACPI: clean up white space in a few places for consistency
      4a577fca
    • Rafael J. Wysocki's avatar
      Merge branches 'acpi-glue', 'acpi-osl', 'acpi-processor' and 'acpi-cppc' · 15f4bb9a
      Rafael J. Wysocki authored
      Merge general ACPI cleanups and processor support updates for 5.19-rc1:
      
       - Rearrange find_child_checks() to simplify code (Rafael Wysocki).
      
       - Use memremap() to map the UCSI mailbox that is always in main memory
         and drop acpi_release_memory() that has no more users (Heikki
         Krogerus, Dan Carpenter).
      
       - Make max_cstate/nocst/bm_check_disable processor module parameters
         visible in sysfs (Yajun Deng).
      
       - Fix typo in the CPPC driver (Julia Lawall).
      
      * acpi-glue:
        ACPI: glue: Rearrange find_child_checks()
      
      * acpi-osl:
        usb: typec: ucsi: acpi: fix a NULL vs IS_ERR() check in probe
        ACPI: OSL: Remove the helper for deactivating memory region
        usb: typec: ucsi: acpi: Map the mailbox with memremap()
      
      * acpi-processor:
        ACPI: processor: idle: Expose max_cstate/nocst/bm_check_disable read-only in sysfs
      
      * acpi-cppc:
        ACPI: CPPC: fix typo in comment
      15f4bb9a
    • Dan Carpenter's avatar
      usb: typec: ucsi: acpi: fix a NULL vs IS_ERR() check in probe · a9face89
      Dan Carpenter authored
      The devm_memremap() function never returns NULL.  It returns error
      pointers.
      
      Fixes: cdc3d2ab ("usb: typec: ucsi: acpi: Map the mailbox with memremap()")
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Reviewed-by: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
      Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      a9face89
    • Helge Deller's avatar
      parisc: Drop __ARCH_WANT_OLD_READDIR and __ARCH_WANT_SYS_OLDUMOUNT · 72acadfe
      Helge Deller authored
      Those old syscalls aren't exported via our syscall table, so just drop
      them.
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      72acadfe
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-sysoff' · 9f9c1f68
      Rafael J. Wysocki authored
      Merge system power off handling rework from Dmitry Osipenko for
      5.19-rc1.
      
      This introduces a mechanism allowing power sequences to be used for
      powering off the system and makes related changes in platform-specific
      code for multiple platforms.
      
      * pm-sysoff: (29 commits)
        kernel/reboot: Change registration order of legacy power-off handler
        m68k: virt: Switch to new sys-off handler API
        kernel/reboot: Add devm_register_restart_handler()
        kernel/reboot: Add devm_register_power_off_handler()
        soc/tegra: pmc: Use sys-off handler API to power off Nexus 7 properly
        reboot: Remove pm_power_off_prepare()
        regulator: pfuze100: Use devm_register_sys_off_handler()
        ACPI: power: Switch to sys-off handler API
        memory: emif: Use kernel_can_power_off()
        mips: Use do_kernel_power_off()
        ia64: Use do_kernel_power_off()
        x86: Use do_kernel_power_off()
        sh: Use do_kernel_power_off()
        m68k: Switch to new sys-off handler API
        powerpc: Use do_kernel_power_off()
        xen/x86: Use do_kernel_power_off()
        parisc: Use do_kernel_power_off()
        arm64: Use do_kernel_power_off()
        riscv: Use do_kernel_power_off()
        csky: Use do_kernel_power_off()
        ...
      9f9c1f68
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-docs' · 1cdc5ba0
      Rafael J. Wysocki authored
      Merge PM documentation update for 5.19-rc1.
      
      * pm-docs:
        Documentation: admin-guide: PM: Add Out of Band mode
      1cdc5ba0
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-opp' · 22ffff6d
      Rafael J. Wysocki authored
      Merge OPP (Operating Performance Points) changes for 5.19-rc1:
      
       - Minor update to dt-binding for Qcom's opp-v2-kryo-cpu (Yassine
         Oudjana).
      
       - Use list iterator only inside the list_for_each_entry loop (Xiaomeng
         Tong, and Jakob Koschel).
      
       - New APIs related to finding OPP based on interconnect bandwidth
         (Krzysztof Kozlowski).
      
       - Fix the missing of_node_put() in _bandwidth_supported() (Dan
         Carpenter).
      
       - Cleanups (Krzysztof Kozlowski, and Viresh Kumar).
      
      * pm-opp:
        opp: Reorder definition of ceil/floor helpers
        opp: Add apis to retrieve opps with interconnect bandwidth
        dt-bindings: opp: opp-v2-kryo-cpu: Remove SMEM
        opp: use list iterator only inside the loop
        opp: replace usage of found with dedicated list iterator variable
        PM: opp: simplify with dev_err_probe()
        OPP: call of_node_put() on error path in _bandwidth_supported()
      22ffff6d
    • Pierre Gondois's avatar
      cpufreq: CPPC: Fix unused-function warning · da436345
      Pierre Gondois authored
      Building the cppc_cpufreq driver with for arm64 with
      CONFIG_ENERGY_MODEL=n triggers the following warnings:
       drivers/cpufreq/cppc_cpufreq.c:550:12: error: ‘cppc_get_cpu_cost’ defined but not used
      [-Werror=unused-function]
         550 | static int cppc_get_cpu_cost(struct device *cpu_dev, unsigned long KHz,
             |            ^~~~~~~~~~~~~~~~~
       drivers/cpufreq/cppc_cpufreq.c:481:12: error: ‘cppc_get_cpu_power’ defined but not used
      [-Werror=unused-function]
         481 | static int cppc_get_cpu_power(struct device *cpu_dev,
             |            ^~~~~~~~~~~~~~~~~~
      
      Move the Energy Model related functions into specific guards.
      This allows to fix the warning and prevent doing extra work
      when the Energy Model is not present.
      
      Fixes: 740fcdc2 ("cpufreq: CPPC: Register EM based on efficiency class information")
      Reported-by: default avatarShaokun Zhang <zhangshaokun@hisilicon.com>
      Signed-off-by: default avatarPierre Gondois <pierre.gondois@arm.com>
      Tested-by: default avatarShaokun Zhang <zhangshaokun@hisilicon.com>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      da436345
    • Zheng Bin's avatar
      cpufreq: CPPC: Fix build error without CONFIG_ACPI_CPPC_CPUFREQ_FIE · a3f083e0
      Zheng Bin authored
      If CONFIG_ACPI_CPPC_CPUFREQ_FIE is not set, building fails:
      
      drivers/cpufreq/cppc_cpufreq.c: In function ‘populate_efficiency_class’:
      drivers/cpufreq/cppc_cpufreq.c:584:2: error: ‘cppc_cpufreq_driver’ undeclared (first use in this function); did you mean ‘cpufreq_driver’?
        cppc_cpufreq_driver.register_em = cppc_cpufreq_register_em;
        ^~~~~~~~~~~~~~~~~~~
        cpufreq_driver
      
      Make declare of cppc_cpufreq_driver out of CONFIG_ACPI_CPPC_CPUFREQ_FIE
      to fix this.
      
      Fixes: 740fcdc2 ("cpufreq: CPPC: Register EM based on efficiency class information")
      Signed-off-by: default avatarZheng Bin <zhengbin13@huawei.com>
      Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      a3f083e0