Skip to content
  1. Jul 09, 2021
    • Christoph Hellwig's avatar
      libata: fix ata_pio_sector for CONFIG_HIGHMEM · ecef6a9e
      Christoph Hellwig authored
      
      
      Data transfers are not required to be block aligned in memory, so they
      span two pages.  Fix this by splitting the call to >sff_data_xfer into
      two for that case.
      
      This has been broken since the initial libata import before the damn
      of git, but was uncovered by the legacy ide driver removal.
      
      Reported-by: default avatarkernel test robot <oliver.sang@intel.com>
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      Link: https://lore.kernel.org/r/20210709130237.3730959-1-hch@lst.de
      
      
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      ecef6a9e
    • Linus Torvalds's avatar
      Merge tag 'drm-next-2021-07-08-1' of git://anongit.freedesktop.org/drm/drm · f5596657
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Some fixes for rc1 that came in the past weeks, mainly a bunch of
        amdgpu fixes, some i915 and the rest are misc around the place. I'm
        sending this a bit early so some more stuff may show up, but I'll
        probably take tomorrow off.
      
        dma-buf:
         - doc fixes
      
        amdgpu:
         - Misc Navi fixes
         - Powergating fix
         - Yellow Carp updates
         - Beige Goby updates
         - S0ix fix
         - Revert overlay validation fix
         - GPU reset fix for DC
         - PPC64 fix
         - Add new dimgrey cavefish DID
         - RAS fix
         - TTM fixes
      
        amdkfd:
         - SVM fixes
      
        radeon:
         - Fix missing drm_gem_object_put in error path
         - NULL ptr deref fix
      
        i915:
         - display DP VSC fix
         - DG1 display fix
         - IRQ fixes
         - IRQ demidlayering
      
        gma500:
         - bo leaks in error paths fixed"
      
      * tag 'drm-next-2021-07-08-1' of git://anongit.freedesktop.org/drm/drm: (52 commits)
        drm/i915: Drop all references to DRM IRQ midlayer
        drm/i915: Use the correct IRQ during resume
        drm/i915/display/dg1: Correctly map DPLLs during state readout
        drm/i915/display: Do not zero past infoframes.vsc
        drm/amdgpu: Conditionally reset SDMA RAS error counts
        drm/amdkfd: Maintain svm_bo reference in page->zone_device_data
        drm/amdkfd: add invalid pages debug at vram migration
        drm/amdkfd: skip migration for pages already in VRAM
        drm/amdkfd: skip invalid pages during migrations
        drm/amdkfd: classify and map mixed svm range pages in GPU
        drm/amdkfd: use hmm range fault to get both domain pfns
        drm/amdgpu: get owner ref in validate and map
        drm/amdkfd: set owner ref to svm range prefault
        drm/amdkfd: add owner ref param to get hmm pages
        drm/amdkfd: device pgmap owner at the svm migrate init
        drm/amdkfd: inc counter on child ranges with xnack off
        drm/amd/display: Extend DMUB diagnostic logging to DCN3.1
        drm/amdgpu: Update NV SIMD-per-CU to 2
        drm/amdgpu: add new dimgrey cavefish DID
        drm/amd/pm: skip PrepareMp1ForUnload message in s0ix
        ...
      f5596657
    • Linus Torvalds's avatar
      Merge tag 'pwm/for-5.14-rc1' of... · 8c1bfd74
      Linus Torvalds authored
      Merge tag 'pwm/for-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm
      
      Pull pwm updates from Thierry Reding:
       "This contains mostly various fixes, cleanups and some conversions to
        the atomic API. One noteworthy change is that PWM consumers can now
        pass a hint to the PWM core about the PWM usage, enabling PWM
        providers to implement various optimizations.
      
        There's also a fair bit of simplification here with the addition of
        some device-managed helpers as well as unification between the DT and
        ACPI firmware interfaces"
      
      * tag 'pwm/for-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm: (50 commits)
        pwm: Remove redundant assignment to pointer pwm
        pwm: ep93xx: Fix read of uninitialized variable ret
        pwm: ep93xx: Prepare clock before using it
        pwm: ep93xx: Unfold legacy callbacks into ep93xx_pwm_apply()
        pwm: ep93xx: Implement .apply callback
        pwm: vt8500: Only unprepare the clock after the pwmchip was removed
        pwm: vt8500: Drop if with an always false condition
        pwm: tegra: Assert reset only after the PWM was unregistered
        pwm: tegra: Don't needlessly enable and disable the clock in .remove()
        pwm: tegra: Don't modify HW state in .remove callback
        pwm: tegra: Drop an if block with an always false condition
        pwm: core: Simplify some devm_*pwm*() functions
        pwm: core: Remove unused devm_pwm_put()
        pwm: core: Unify fwnode checks in the module
        pwm: core: Reuse fwnode_to_pwmchip() in ACPI case
        pwm: core: Convert to use fwnode for matching
        docs: firmware-guide: ACPI: Add a PWM example
        dt-bindings: pwm: pwm-tiecap: Add compatible string for AM64 SoC
        dt-bindings: pwm: pwm-tiecap: Convert to json schema
        pwm: sprd: Don't check the return code of pwmchip_remove()
        ...
      8c1bfd74
    • Linus Torvalds's avatar
      Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux · b0dfd9af
      Linus Torvalds authored
      Pull more clk updates from Stephen Boyd:
      
       - A handful of fixes for lmk04832 driver
      
       - Migrate the basic clk divider to use determine rate ops
      
       - Fix modpost build for hisilicon hi3559a driver
      
       - Actually set the parent in k210_clk_set_parent()
      
      * tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux:
        Revert "clk: divider: Switch from .round_rate to .determine_rate by default"
        clk: hisilicon: hi3559a: Drop __init markings everywhere
        clk: meson: regmap: switch to determine_rate for the dividers
        clk: divider: Switch from .round_rate to .determine_rate by default
        clk: divider: Add re-usable determine_rate implementations
        clk: k210: Fix k210_clk_set_parent()
        clk: lmk04832: Fix spelling mistakes in dev_err messages and comments
        clk: lmk04832: fix return value check in lmk04832_probe()
        clk: stm32mp1: fix missing spin_lock_init()
      b0dfd9af
    • Linus Torvalds's avatar
      Merge tag 'pci-v5.14-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci · 316a2c9b
      Linus Torvalds authored
      Pull pci updates from Bjorn Helgaas:
       "Enumeration:
         - Fix dsm_label_utf16s_to_utf8s() buffer overrun (Krzysztof
           Wilczyński)
         - Rely on lengths from scnprintf(), dsm_label_utf16s_to_utf8s()
           (Krzysztof Wilczyński)
         - Use sysfs_emit() and sysfs_emit_at() in "show" functions (Krzysztof
           Wilczyński)
         - Fix 'resource_alignment' newline issues (Krzysztof Wilczyński)
         - Add 'devspec' newline (Krzysztof Wilczyński)
         - Dynamically map ECAM regions (Russell King)
      
        Resource management:
         - Coalesce host bridge contiguous apertures (Kai-Heng Feng)
      
        PCIe native device hotplug:
         - Ignore Link Down/Up caused by DPC (Lukas Wunner)
      
        Power management:
         - Leave Apple Thunderbolt controllers on for s2idle or standby
           (Konstantin Kharlamov)
      
        Virtualization:
         - Work around Huawei Intelligent NIC VF FLR erratum (Chiqijun)
         - Clarify error message for unbound IOV devices (Moritz Fischer)
         - Add pci_reset_bus_function() Secondary Bus Reset interface (Raphael
           Norwitz)
      
        Peer-to-peer DMA:
         - Simplify distance calculation (Christoph Hellwig)
         - Finish RCU conversion of pdev->p2pdma (Eric Dumazet)
         - Rename upstream_bridge_distance() and rework doc (Logan Gunthorpe)
         - Collect acs list in stack buffer to avoid sleeping (Logan
           Gunthorpe)
         - Use correct calc_map_type_and_dist() return type (Logan Gunthorpe)
         - Warn if host bridge not in whitelist (Logan Gunthorpe)
         - Refactor pci_p2pdma_map_type() (Logan Gunthorpe)
         - Avoid pci_get_slot(), which may sleep (Logan Gunthorpe)
      
        Altera PCIe controller driver:
         - Add Joyce Ooi as Altera PCIe maintainer (Joyce Ooi)
      
        Broadcom iProc PCIe controller driver:
         - Fix multi-MSI base vector number allocation (Sandor Bodo-Merle)
         - Support multi-MSI only on uniprocessor kernel (Sandor Bodo-Merle)
      
        Freescale i.MX6 PCIe controller driver:
         - Limit DBI register length for imx6qp PCIe (Richard Zhu)
         - Add "vph-supply" for PHY supply voltage (Richard Zhu)
         - Enable PHY internal regulator when supplied >3V (Richard Zhu)
         - Remove imx6_pcie_probe() redundant error message (Zhen Lei)
      
        Intel Gateway PCIe controller driver:
         - Fix INTx enable (Martin Blumenstingl)
      
        Marvell Aardvark PCIe controller driver:
         - Fix checking for PIO Non-posted Request (Pali Rohár)
         - Implement workaround for the readback value of VEND_ID (Pali Rohár)
      
        MediaTek PCIe controller driver:
         - Remove redundant error printing in mtk_pcie_subsys_powerup() (Zhen
           Lei)
      
        MediaTek PCIe Gen3 controller driver:
         - Add missing MODULE_DEVICE_TABLE (Zou Wei)
      
        Microchip PolarFlare PCIe controller driver:
         - Make struct event_descs static (Krzysztof Wilczyński)
      
        Microsoft Hyper-V host bridge driver:
         - Fix race condition when removing the device (Long Li)
         - Remove bus device removal unused refcount/functions (Long Li)
      
        Mobiveil PCIe controller driver:
         - Remove unused readl and writel functions (Krzysztof Wilczyński)
      
        NVIDIA Tegra PCIe controller driver:
         - Add missing MODULE_DEVICE_TABLE (Zou Wei)
      
        NVIDIA Tegra194 PCIe controller driver:
         - Fix tegra_pcie_ep_raise_msi_irq() ill-defined shift (Jon Hunter)
         - Fix host initialization during resume (Vidya Sagar)
      
        Rockchip PCIe controller driver:
         - Register IRQ handlers after device and data are ready (Javier
           Martinez Canillas)"
      
      * tag 'pci-v5.14-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: (48 commits)
        PCI/P2PDMA: Finish RCU conversion of pdev->p2pdma
        PCI: xgene: Annotate __iomem pointer
        PCI: Fix kernel-doc formatting
        PCI: cpcihp: Declare cpci_debug in header file
        MAINTAINERS: Add Joyce Ooi as Altera PCIe maintainer
        PCI: rockchip: Register IRQ handlers after device and data are ready
        PCI: tegra194: Fix tegra_pcie_ep_raise_msi_irq() ill-defined shift
        PCI: aardvark: Implement workaround for the readback value of VEND_ID
        PCI: aardvark: Fix checking for PIO Non-posted Request
        PCI: tegra194: Fix host initialization during resume
        PCI: tegra: Add missing MODULE_DEVICE_TABLE
        PCI: imx6: Enable PHY internal regulator when supplied >3V
        dt-bindings: imx6q-pcie: Add "vph-supply" for PHY supply voltage
        PCI: imx6: Limit DBI register length for imx6qp PCIe
        PCI: imx6: Remove imx6_pcie_probe() redundant error message
        PCI: intel-gw: Fix INTx enable
        PCI: iproc: Support multi-MSI only on uniprocessor kernel
        PCI: iproc: Fix multi-MSI base vector number allocation
        PCI: mediatek-gen3: Add missing MODULE_DEVICE_TABLE
        PCI: Dynamically map ECAM regions
        ...
      316a2c9b
    • Alexey Gladkov's avatar
      Fix UCOUNT_RLIMIT_SIGPENDING counter leak · f3791f4d
      Alexey Gladkov authored
      We must properly handle an errors when we increase the rlimit counter
      and the ucounts reference counter. We have to this with RCU protection
      to prevent possible use-after-free that could occur due to concurrent
      put_cred_rcu().
      
      The following reproducer triggers the problem:
      
        $ cat testcase.sh
        case "${STEP:-0}" in
        0)
      	ulimit -Si 1
      	ulimit -Hi 1
      	STEP=1 unshare -rU "$0"
      	killall sleep
      	;;
        1)
      	for i in 1 2 3 4 5; do unshare -rU sleep 5 & done
      	;;
        esac
      
      with the KASAN report being along the lines of
      
        BUG: KASAN: use-after-free in put_ucounts+0x17/0xa0
        Write of size 4 at addr ffff8880045f031c by task swapper/2/0
      
        CPU: 2 PID: 0 Comm: swapper/2 Not tainted 5.13.0+ #19
        Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-alt4 04/01/2014
        Call Trace:
         <IRQ>
         put_ucounts+0x17/0xa0
         put_cred_rcu+0xd5/0x190
         rcu_core+0x3bf/0xcb0
         __do_softirq+0xe3/0x341
         irq_exit_rcu+0xbe/0xe0
         sysvec_apic_timer_interrupt+0x6a/0x90
         </IRQ>
         asm_sysvec_apic_timer_interrupt+0x12/0x20
         default_idle_call+0x53/0x130
         do_idle+0x311/0x3c0
         cpu_startup_entry+0x14/0x20
         secondary_startup_64_no_verify+0xc2/0xcb
      
        Allocated by task 127:
         kasan_save_stack+0x1b/0x40
         __kasan_kmalloc+0x7c/0x90
         alloc_ucounts+0x169/0x2b0
         set_cred_ucounts+0xbb/0x170
         ksys_unshare+0x24c/0x4e0
         __x64_sys_unshare+0x16/0x20
         do_syscall_64+0x37/0x70
         entry_SYSCALL_64_after_hwframe+0x44/0xae
      
        Freed by task 0:
         kasan_save_stack+0x1b/0x40
         kasan_set_track+0x1c/0x30
         kasan_set_free_info+0x20/0x30
         __kasan_slab_free+0xeb/0x120
         kfree+0xaa/0x460
         put_cred_rcu+0xd5/0x190
         rcu_core+0x3bf/0xcb0
         __do_softirq+0xe3/0x341
      
        The buggy address belongs to the object at ffff8880045f0300
         which belongs to the cache kmalloc-192 of size 192
        The buggy address is located 28 bytes inside of
         192-byte region [ffff8880045f0300, ffff8880045f03c0)
        The buggy address belongs to the page:
        page:000000008de0a388 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff8880045f0000 pfn:0x45f0
        flags: 0x100000000000200(slab|node=0|zone=1)
        raw: 0100000000000200 ffffea00000f4640 0000000a0000000a ffff888001042a00
        raw: ffff8880045f0000 000000008010000d 00000001ffffffff 0000000000000000
        page dumped because: kasan: bad access detected
      
        Memory state around the buggy address:
         ffff8880045f0200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
         ffff8880045f0280: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
        >ffff8880045f0300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                    ^
         ffff8880045f0380: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
         ffff8880045f0400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
        ==================================================================
        Disabling lock debugging due to kernel taint
      
      Fixes: d6469690
      
       ("Reimplement RLIMIT_SIGPENDING on top of ucounts")
      Cc: Eric W. Biederman <ebiederm@xmission.com>
      Cc: Oleg Nesterov <oleg@redhat.com>
      Signed-off-by: default avatarAlexey Gladkov <legion@kernel.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      f3791f4d
  2. Jul 08, 2021
    • Dave Airlie's avatar
      Merge tag 'drm-misc-next-fixes-2021-07-01' of... · 21c355b0
      Dave Airlie authored
      Merge tag 'drm-misc-next-fixes-2021-07-01' of git://anongit.freedesktop.org/drm/drm-misc
      
       into drm-next
      
      Short summary of fixes pull:
      
       * amdgpu: TTM fixes
       * dma-buf: Doc fixes
       * gma500: Fix potential BO leaks in error handling
       * radeon: Fix NULL-ptr deref
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Thomas Zimmermann <tzimmermann@suse.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/YN2GK2SH64yqXqh9@linux-uq9g
      21c355b0
    • Dave Airlie's avatar
      Merge tag 'drm-intel-next-fixes-2021-07-07' of... · 5cebdea6
      Dave Airlie authored
      Merge tag 'drm-intel-next-fixes-2021-07-07' of git://anongit.freedesktop.org/drm/drm-intel
      
       into drm-next
      
      One fix targeting stable for display DP VSC, plus DG1 display fix and
      a bug fix of IRQs usages and cleanup references to the DRM IRQ midlayer.
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Rodrigo Vivi <rodrigo.vivi@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/YOXDp/+CFDgJ2/7f@intel.com
      5cebdea6
    • Dave Airlie's avatar
      Merge tag 'amd-drm-next-5.14-2021-07-01' of... · 0d3a1b37
      Dave Airlie authored
      Merge tag 'amd-drm-next-5.14-2021-07-01' of https://gitlab.freedesktop.org/agd5f/linux
      
       into drm-next
      
      amd-drm-next-5.14-2021-07-01:
      
      amdgpu:
      - Misc Navi fixes
      - Powergating fix
      - Yellow Carp updates
      - Beige Goby updates
      - S0ix fix
      - Revert overlay validation fix
      - GPU reset fix for DC
      - PPC64 fix
      - Add new dimgrey cavefish DID
      - RAS fix
      
      amdkfd:
      - SVM fixes
      
      radeon:
      - Fix missing drm_gem_object_put in error path
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Alex Deucher <alexander.deucher@amd.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210701042241.25449-1-alexander.deucher@amd.com
      0d3a1b37
    • Linus Torvalds's avatar
      Merge tag 'acpi-5.14-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · e9f1cbc0
      Linus Torvalds authored
      Pull more ACPI updates from Rafael Wysocki:
       "These include fixes of the recently introduced support for the
        Platform Runtime Mechanism (PRM) feature, a new backlight quirk, a
        suspend-to-idle wakeup fix for non-Intel platforms and a fix for the
        AMBA bus resource list in /proc/iomem.
      
        Specifics:
      
         - Fix up the recently added Platform Runtime Mechanism (PRM) support
           by correnting a couple of implementation mistakes in it and adding
           a Kconfig help text to describe it (Aubrey Li, Rafael Wysocki).
      
         - Add backlight quirk for Dell Vostro 3350 (Hans de Goede).
      
         - Avoid spurious wakeups from suspend-to-idle on non-Intel platforms
           by restricting special EC GPE handling to the Intel ones (Mario
           Limonciello).
      
         - Modify the AMBA bus support in ACPI to avoid adding using resource
           names in /proc/iomem (Liguang Zhang)"
      
      * tag 'acpi-5.14-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: Do not singal PRM support if not enabled
        ACPI: Correct \_SB._OSC bit definition for PRM
        ACPI: Kconfig: Provide help text for the ACPI_PRMT option
        ACPI: PM: Only mark EC GPE for wakeup on Intel systems
        ACPI: video: Add quirk for the Dell Vostro 3350
        ACPI: AMBA: Fix resource name in /proc/iomem
      e9f1cbc0
    • Linus Torvalds's avatar
      Merge tag 'pm-5.14-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · aef4226f
      Linus Torvalds authored
      Pull more power management updates from Rafael Wysocki:
       "These include cpufreq core simplifications and fixes, cpufreq driver
        updates, cpuidle driver update, a generic power domains (genpd)
        locking fix and a debug-related simplification of the PM core.
      
        Specifics:
      
         - Drop the ->stop_cpu() (not really useful) and ->resolve_freq()
           (unused) cpufreq driver callbacks and modify the users of the
           former accordingly (Viresh Kumar, Rafael Wysocki).
      
         - Add frequency invariance support to the ACPI CPPC cpufreq driver
           again along with the related fixes and cleanups (Viresh Kumar).
      
         - Update the Meditak, qcom and SCMI ARM cpufreq drivers (Fabien
           Parent, Seiya Wang, Sibi Sankar, Christophe JAILLET).
      
         - Rename black/white-lists in the DT cpufreq driver (Viresh Kumar).
      
         - Add generic performance domains support to the dvfs DT bindings
           (Sudeep Holla).
      
         - Refine locking in the generic power domains (genpd) support code to
           avoid lock dependency issues (Stephen Boyd).
      
         - Update the MSM and qcom ARM cpuidle drivers (Bartosz Dudziak).
      
         - Simplify the PM core debug code by using ktime_us_delta() to
           compute time interval lengths (Mark-PK Tsai)"
      
      * tag 'pm-5.14-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (21 commits)
        PM: domains: Shrink locking area of the gpd_list_lock
        PM: sleep: Use ktime_us_delta() in initcall_debug_report()
        cpufreq: CPPC: Add support for frequency invariance
        arch_topology: Avoid use-after-free for scale_freq_data
        cpufreq: CPPC: Pass structure instance by reference
        cpufreq: CPPC: Fix potential memleak in cppc_cpufreq_cpu_init
        cpufreq: Remove ->resolve_freq()
        cpufreq: Reuse cpufreq_driver_resolve_freq() in __cpufreq_driver_target()
        cpufreq: Remove the ->stop_cpu() driver callback
        cpufreq: powernv: Migrate to ->exit() callback instead of ->stop_cpu()
        cpufreq: CPPC: Migrate to ->exit() callback instead of ->stop_cpu()
        cpufreq: intel_pstate: Combine ->stop_cpu() and ->offline()
        cpuidle: qcom: Add SPM register data for MSM8226
        dt-bindings: arm: msm: Add SAW2 for MSM8226
        dt-bindings: cpufreq: update cpu type and clock name for MT8173 SoC
        clk: mediatek: remove deprecated CLK_INFRA_CA57SEL for MT8173 SoC
        cpufreq: dt: Rename black/white-lists
        cpufreq: scmi: Fix an error message
        cpufreq: mediatek: add support for mt8365
        dt-bindings: dvfs: Add support for generic performance domains
        ...
      aef4226f
    • Linus Torvalds's avatar
      Merge tag 'for-v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply · c6e8c51f
      Linus Torvalds authored
      Pull power supply and reset updates from Sebastian Reichel:
       "Battery/charger driver changes:
      
         - convert charger-manager binding to YAML
      
         - drop bd70528-charger driver
      
         - drop pm2301-charger driver
      
         - introduce rt5033-battery driver
      
         - misc improvements and fixes"
      
      * tag 'for-v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply: (42 commits)
        power: supply: ab8500: Fix an old bug
        power: supply: axp288_fuel_gauge: remove redundant continue statement
        power: supply: axp288_fuel_gauge: Make "T3 MRD" no_battery_list DMI entry more generic
        power: supply: axp288_fuel_gauge: Rename fuel_gauge_blacklist to no_battery_list
        power: supply: bq24190_charger: drop of_match_ptr() from device ID table
        drivers: power: add missing MODULE_DEVICE_TABLE in keystone-reset.c
        power: supply: ab8500: add missing MODULE_DEVICE_TABLE
        power: supply: charger-manager: add missing MODULE_DEVICE_TABLE
        power: reset: regulator-poweroff: add missing MODULE_DEVICE_TABLE
        power: supply: cpcap-charger: get the battery inserted infomation from cpcap-battery
        power: supply: cpcap-battery: invalidate config when incompatible measurements are read
        power: supply: axp20x_battery: allow disabling battery charging
        power: supply: max17040: drop unused platform data support
        power: supply: max17040: simplify POWER_SUPPLY_PROP_ONLINE
        power: supply: max17040: remove non-working POWER_SUPPLY_PROP_STATUS
        power: reset: at91-sama5d2_shdwc: Remove redundant error printing in at91_shdwc_probe()
        power: reset: gpio-poweroff: add missing MODULE_DEVICE_TABLE
        power: supply: rt5033_battery: Fix device tree enumeration
        dt-bindings: power: supply: Add DT schema for richtek,rt5033-battery
        power: supply: Drop BD70528 support
        ...
      c6e8c51f
    • Linus Torvalds's avatar
      Merge tag 'linux-watchdog-5.14-rc1' of git://www.linux-watchdog.org/linux-watchdog · 9d69294b
      Linus Torvalds authored
      Pull watchdog updates from Wim Van Sebroeck:
      
       - Add Mstar MSC313e WDT driver
      
       - Add support for sama7g5-wdt
      
       - Add compatible for SC7280 SoC
      
       - Add compatible for Mediatek MT8195
      
       - sbsa: Support architecture version 1
      
       - Removal of the MV64x60 watchdog driver
      
       - Extra PCI IDs for hpwdt
      
       - Add hrtimer-based pretimeout feature
      
       - Add {min,max}_timeout sysfs nodes
      
       - keembay timeout and pre-timeout handling
      
       - Several fixes, cleanups and improvements
      
      * tag 'linux-watchdog-5.14-rc1' of git://www.linux-watchdog.org/linux-watchdog: (56 commits)
        watchdog: iTCO_wdt: use dev_err() instead of pr_err()
        watchdog: Add Mstar MSC313e WDT driver
        dt-bindings: watchdog: Add Mstar MSC313e WDT devicetree bindings documentation
        watchdog: iTCO_wdt: Account for rebooting on second timeout
        dt-bindings: watchdog: Convert arm,sbsa-gwdt to DT schema
        dt-bindings: watchdog: sama5d4-wdt: add compatible for sama7g5-wdt
        watchdog: sama5d4_wdt: add support for sama7g5-wdt
        dt-bindings: watchdog: sama5d4-wdt: convert to yaml
        watchdog: ziirave_wdt: Remove VERSION_FMT defines and add sysfs newlines
        dt-bindings: watchdog: Add compatible for Mediatek MT8195
        dt-bindings: watchdog: dw-wdt: add description for rk3568
        watchdog: imx_sc_wdt: fix pretimeout
        watchdog: diag288_wdt: Remove redundant assignment
        watchdog: Add hrtimer-based pretimeout feature
        dt-bindings: watchdog: Add compatible for SC7280 SoC
        watchdog: qcom: Move suspend/resume to suspend_late/resume_early
        watchdog: Fix a typo in the file orion_wdt.c
        watchdog: jz4740: Fix return value check in jz4740_wdt_probe()
        watchdog: Remove MV64x60 watchdog driver
        doc: mtk-wdt: support pre-timeout when the bark irq is available
        ...
      9d69294b
    • Linus Torvalds's avatar
      Merge tag 'nfsd-5.14' of git://linux-nfs.org/~bfields/linux · 0cc2ea8c
      Linus Torvalds authored
      Pull nfsd updates from Bruce Fields:
      
       - add tracepoints for callbacks and for client creation and destruction
      
       - cache the mounts used for server-to-server copies
      
       - expose callback information in /proc/fs/nfsd/clients/*/info
      
       - don't hold locks unnecessarily while waiting for commits
      
       - update NLM to use xdr_stream, as we have for NFSv2/v3/v4
      
      * tag 'nfsd-5.14' of git://linux-nfs.org/~bfields/linux: (69 commits)
        nfsd: fix NULL dereference in nfs3svc_encode_getaclres
        NFSD: Prevent a possible oops in the nfs_dirent() tracepoint
        nfsd: remove redundant assignment to pointer 'this'
        nfsd: Reduce contention for the nfsd_file nf_rwsem
        lockd: Update the NLMv4 SHARE results encoder to use struct xdr_stream
        lockd: Update the NLMv4 nlm_res results encoder to use struct xdr_stream
        lockd: Update the NLMv4 TEST results encoder to use struct xdr_stream
        lockd: Update the NLMv4 void results encoder to use struct xdr_stream
        lockd: Update the NLMv4 FREE_ALL arguments decoder to use struct xdr_stream
        lockd: Update the NLMv4 SHARE arguments decoder to use struct xdr_stream
        lockd: Update the NLMv4 SM_NOTIFY arguments decoder to use struct xdr_stream
        lockd: Update the NLMv4 nlm_res arguments decoder to use struct xdr_stream
        lockd: Update the NLMv4 UNLOCK arguments decoder to use struct xdr_stream
        lockd: Update the NLMv4 CANCEL arguments decoder to use struct xdr_stream
        lockd: Update the NLMv4 LOCK arguments decoder to use struct xdr_stream
        lockd: Update the NLMv4 TEST arguments decoder to use struct xdr_stream
        lockd: Update the NLMv4 void arguments decoder to use struct xdr_stream
        lockd: Update the NLMv1 SHARE results encoder to use struct xdr_stream
        lockd: Update the NLMv1 nlm_res results encoder to use struct xdr_stream
        lockd: Update the NLMv1 TEST results encoder to use struct xdr_stream
        ...
      0cc2ea8c
    • Colin Ian King's avatar
      pwm: Remove redundant assignment to pointer pwm · bebedf2b
      Colin Ian King authored
      
      
      The pointer pwm is being initialized with a value that is never read and
      it is being updated later with a new value. The initialization is
      redundant and can be removed.
      
      Addresses-Coverity: ("Unused value")
      Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
      Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
      bebedf2b
    • Linus Torvalds's avatar
      Merge tag 'modules-for-v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux · a931dd33
      Linus Torvalds authored
      Pull module updates from Jessica Yu:
      
       - Fix incorrect logic in module_kallsyms_on_each_symbol()
      
       - Fix for a Coccinelle warning
      
      * tag 'modules-for-v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux:
        module: correctly exit module_kallsyms_on_each_symbol when fn() != 0
        kernel/module: Use BUG_ON instead of if condition followed by BUG
      a931dd33
    • Rafael J. Wysocki's avatar
      Merge branches 'acpi-misc', 'acpi-video' and 'acpi-prm' · 166fdb4d
      Rafael J. Wysocki authored
      * acpi-misc:
        ACPI: AMBA: Fix resource name in /proc/iomem
      
      * acpi-video:
        ACPI: video: Add quirk for the Dell Vostro 3350
      
      * acpi-prm:
        ACPI: Do not singal PRM support if not enabled
        ACPI: Correct \_SB._OSC bit definition for PRM
        ACPI: Kconfig: Provide help text for the ACPI_PRMT option
      166fdb4d
    • Rafael J. Wysocki's avatar
      Merge branches 'pm-cpuidle', 'pm-sleep' and 'pm-domains' · 843372db
      Rafael J. Wysocki authored
      * pm-cpuidle:
        cpuidle: qcom: Add SPM register data for MSM8226
        dt-bindings: arm: msm: Add SAW2 for MSM8226
      
      * pm-sleep:
        PM: sleep: Use ktime_us_delta() in initcall_debug_report()
      
      * pm-domains:
        PM: domains: Shrink locking area of the gpd_list_lock
      843372db
    • Linus Torvalds's avatar
      Merge tag 'x86-fpu-2021-07-07' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 1423e266
      Linus Torvalds authored
      Pull x86 fpu updates from Thomas Gleixner:
       "Fixes and improvements for FPU handling on x86:
      
         - Prevent sigaltstack out of bounds writes.
      
           The kernel unconditionally writes the FPU state to the alternate
           stack without checking whether the stack is large enough to
           accomodate it.
      
           Check the alternate stack size before doing so and in case it's too
           small force a SIGSEGV instead of silently corrupting user space
           data.
      
         - MINSIGSTKZ and SIGSTKSZ are constants in signal.h and have never
           been updated despite the fact that the FPU state which is stored on
           the signal stack has grown over time which causes trouble in the
           field when AVX512 is available on a CPU. The kernel does not expose
           the minimum requirements for the alternate stack size depending on
           the available and enabled CPU features.
      
           ARM already added an aux vector AT_MINSIGSTKSZ for the same reason.
           Add it to x86 as well.
      
         - A major cleanup of the x86 FPU code. The recent discoveries of
           XSTATE related issues unearthed quite some inconsistencies,
           duplicated code and other issues.
      
           The fine granular overhaul addresses this, makes the code more
           robust and maintainable, which allows to integrate upcoming XSTATE
           related features in sane ways"
      
      * tag 'x86-fpu-2021-07-07' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (74 commits)
        x86/fpu/xstate: Clear xstate header in copy_xstate_to_uabi_buf() again
        x86/fpu/signal: Let xrstor handle the features to init
        x86/fpu/signal: Handle #PF in the direct restore path
        x86/fpu: Return proper error codes from user access functions
        x86/fpu/signal: Split out the direct restore code
        x86/fpu/signal: Sanitize copy_user_to_fpregs_zeroing()
        x86/fpu/signal: Sanitize the xstate check on sigframe
        x86/fpu/signal: Remove the legacy alignment check
        x86/fpu/signal: Move initial checks into fpu__restore_sig()
        x86/fpu: Mark init_fpstate __ro_after_init
        x86/pkru: Remove xstate fiddling from write_pkru()
        x86/fpu: Don't store PKRU in xstate in fpu_reset_fpstate()
        x86/fpu: Remove PKRU handling from switch_fpu_finish()
        x86/fpu: Mask PKRU from kernel XRSTOR[S] operations
        x86/fpu: Hook up PKRU into ptrace()
        x86/fpu: Add PKRU storage outside of task XSAVE buffer
        x86/fpu: Dont restore PKRU in fpregs_restore_userspace()
        x86/fpu: Rename xfeatures_mask_user() to xfeatures_mask_uabi()
        x86/fpu: Move FXSAVE_LEAK quirk info __copy_kernel_to_fpregs()
        x86/fpu: Rename __fpregs_load_activate() to fpregs_restore_userregs()
        ...
      1423e266
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.14-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · 4ea90317
      Linus Torvalds authored
      Pull xen updates from Juergen Gross:
       "Only two minor patches this time: one cleanup patch and one patch
        refreshing a Xen header"
      
      * tag 'for-linus-5.14-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        xen: sync include/xen/interface/io/ring.h with Xen's newest version
        xen: Use DEVICE_ATTR_*() macro
      4ea90317
    • Linus Torvalds's avatar
      Merge tag 'Wimplicit-fallthrough-clang-5.14-rc1' of... · 383df634
      Linus Torvalds authored
      Merge tag 'Wimplicit-fallthrough-clang-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux
      
      Pull more fallthrough fixes from Gustavo Silva:
       "Fix maore fall-through warnings when building the kernel with clang
        and '-Wimplicit-fallthrough'"
      
      * tag 'Wimplicit-fallthrough-clang-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux:
        Input: Fix fall-through warning for Clang
        scsi: aic94xx: Fix fall-through warning for Clang
        i3c: master: cdns: Fix fall-through warning for Clang
        net/mlx4: Fix fall-through warning for Clang
      383df634
    • Linus Torvalds's avatar
      Merge tag 'hwlock-v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/andersson/remoteproc · b5e6d126
      Linus Torvalds authored
      Pull hwspinlock updates from Bjorn Andersson:
       "This adds a driver for the hardware spinlock in Allwinner sun6i"
      
      * tag 'hwlock-v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/andersson/remoteproc:
        dt-bindings: hwlock: sun6i: Fix various warnings in binding
        hwspinlock: add sun6i hardware spinlock support
        dt-bindings: hwlock: add sun6i_hwspinlock
      b5e6d126
    • Linus Torvalds's avatar
      Merge tag 'rproc-v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/andersson/remoteproc · d0fe3f47
      Linus Torvalds authored
      Pull remoteproc updates from Bjorn Andersson:
       "This adds support for controlling the PRU and R5F clusters on the TI
        AM64x, the remote processor in i.MX7ULP, i.MX8MN/P and i.MX8ULP NXP
        and the audio, compute and modem remoteprocs in the Qualcomm SC8180x
        platform.
      
        It fixes improper ordering of cdev and device creation of the
        remoteproc control interface and it fixes resource leaks in the error
        handling path of rproc_add() and the Qualcomm modem and wifi
        remoteproc drivers.
      
        Lastly it fixes a few build warnings and replace the dummy parameter
        passed in the mailbox api of the stm32 driver to something not living
        on the stack"
      
      * tag 'rproc-v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/andersson/remoteproc: (32 commits)
        remoteproc: qcom: pas: Add SC8180X adsp, cdsp and mpss
        dt-bindings: remoteproc: qcom: pas: Add SC8180X adsp, cdsp and mpss
        remoteproc: imx_rproc: support i.MX8ULP
        dt-bindings: remoteproc: imx_rproc: support i.MX8ULP
        remoteproc: stm32: fix mbox_send_message call
        remoteproc: core: Cleanup device in case of failure
        remoteproc: core: Fix cdev remove and rproc del
        remoteproc: core: Move validate before device add
        remoteproc: core: Move cdev add before device add
        remoteproc: pru: Add support for various PRU cores on K3 AM64x SoCs
        dt-bindings: remoteproc: pru: Update bindings for K3 AM64x SoCs
        remoteproc: qcom_wcnss: Use devm_qcom_smem_state_get()
        remoteproc: qcom_q6v5: Use devm_qcom_smem_state_get() to fix missing put()
        soc: qcom: smem_state: Add devm_qcom_smem_state_get()
        dt-bindings: remoteproc: qcom: pas: Fix indentation warnings
        remoteproc: imx-rproc: Fix IMX_REMOTEPROC configuration
        remoteproc: imx_rproc: support i.MX8MN/P
        remoteproc: imx_rproc: support i.MX7ULP
        remoteproc: imx_rproc: make clk optional
        remoteproc: imx_rproc: initial support for mutilple start/stop method
        ...
      d0fe3f47
  3. Jul 07, 2021