Skip to content
  1. Apr 29, 2021
    • Linus Torvalds's avatar
      Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux · 35655ceb
      Linus Torvalds authored
      Pull clk updates from Stephen Boyd:
       "Here's a collection of largely clk driver updates. The usual suspects
        are here: i.MX, Qualcomm, Renesas, Allwinner, Samsung, and Rockchip,
        but it feels pretty light on commits.
      
        There's only one real commit to the framework core and that's to
        consolidate code. Otherwise the diffstat is dominated by many Qualcomm
        clk driver patches that modernize the driver for the proper way of
        speciying clk parents. That's shifting data around, which could subtly
        break things so I'll be on the lookout for fixes.
      
        New Drivers:
         - Proper clk driver for Mediatek MT7621 SoCs
         - Support for the clock controller on the new Rockchip rk3568
      
        Updates:
         - Simplify Zynq Kconfig dependencies
         - Use clk_hw pointers in socfpga driver
         - Cleanup parent data in qcom clk drivers
         - Some cleanups for rk3399 modularization
         - Fix reparenting of i.MX UART clocks by initializing only the ones
           associated to stdout
         - Correct the PCIE clocks for i.MX8MP and i.MX8MQ
         - Make i.MX LPCG and SCU clocks return on registering failure
         - Kernel doc fixes
         - Add DAB hardware accelerator clocks on Renesas R-Car E3 and M3-N
         - Add timer (TMU) clocks on Renesas R-Car H3 ES1.0
         - Add Timer (TMU & CMT) and thermal sensor (TSC) clocks on
           Renesas R-Car V3U
         - Sigma-delta modulation on Allwinner V3s audio PLL"
      
      * tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux: (82 commits)
        MAINTAINERS: add MT7621 CLOCK maintainer
        staging: mt7621-dts: use valid vendor 'mediatek' instead of invalid 'mtk'
        staging: mt7621-dts: make use of new 'mt7621-clk'
        clk: ralink: add clock driver for mt7621 SoC
        clk: uniphier: Fix potential infinite loop
        clk: qcom: rpmh: add support for SDX55 rpmh IPA clock
        clk: qcom: gcc-sdm845: get rid of the test clock
        clk: qcom: convert SDM845 Global Clock Controller to parent_data
        dt-bindings: clock: separate SDM845 GCC clock bindings
        clk: qcom: apss-ipq-pll: Add missing MODULE_DEVICE_TABLE
        clk: qcom: a53-pll: Add missing MODULE_DEVICE_TABLE
        clk: qcom: a7-pll: Add missing MODULE_DEVICE_TABLE
        dt: bindings: add mt7621-sysc device tree binding documentation
        dt-bindings: clock: add dt binding header for mt7621 clocks
        clk: samsung: Remove redundant dev_err calls
        clk: zynqmp: pll: add set_pll_mode to check condition in zynqmp_pll_enable
        clk: zynqmp: move zynqmp_pll_set_mode out of round_rate callback
        clk: zynqmp: Drop dependency on ARCH_ZYNQMP
        clk: zynqmp: Enable the driver if ZYNQMP_FIRMWARE is selected
        clk: qcom: gcc-sm8350: use ARRAY_SIZE instead of specifying num_parents
        ...
      35655ceb
    • Linus Torvalds's avatar
      Merge tag 'mailbox-v5.13' of git://git.linaro.org/landing-teams/working/fujitsu/integration · d8201efe
      Linus Torvalds authored
      Pull mailbox updates from Jassi Brar:
       "qcom:
         - enable support for SM8350 and SC7280
      
        sprd:
         - refcount channel usage
         - specify interrupt names in dt
         - support sc9863a
      
        arm:
         - drop redundant print
      
        ti:
         - convert dt-bindings to json schema
      
        and misc spelling fixes"
      
      * tag 'mailbox-v5.13' of git://git.linaro.org/landing-teams/working/fujitsu/integration:
        dt-bindings: mailbox: qcom-ipcc: Add compatible for SC7280
        dt-bindings: mailbox: ti,secure-proxy: Convert to json schema
        mailbox: arm_mhu_db: Remove redundant dev_err call in mhu_db_probe()
        mailbox: sprd: Add supplementary inbox support
        dt-bindings: mailbox: Add interrupt-names to SPRD mailbox
        mailbox: sprd: Introduce refcnt when clients requests/free channels
        MAINTAINERS: Add DT bindings directory to mailbox
        mailbox: fix various typos in comments
        mailbox: pcc: fix platform_no_drv_owner.cocci warnings
        dt-bindings: mailbox: Add compatible for SM8350 IPCC
      d8201efe
    • Linus Torvalds's avatar
      Merge tag 'backlight-next-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight · c969f245
      Linus Torvalds authored
      Pull backlight updates from Lee Jones:
       "New Device Support:
         - Add support for PMI8994 to Qualcom WLED
         - Add support for KTD259 to Kinetic KTD253
      
        Fix-ups:
         - Device Tree related fix-ups; kinetic,ktd253
         - Use proper sequence during sync_toggle; qcom-wled
         - Fix Wmisleading-indentation warnings; jornada720_bl
      
        Bug Fixes:
         - Fix sync toggle on WLED4; qcom-wled
         - Fix FSC update on WLED5; qcom-wled"
      
      * tag 'backlight-next-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight:
        backlight: journada720: Fix Wmisleading-indentation warning
        backlight: qcom-wled: Correct the sync_toggle sequence
        backlight: qcom-wled: Fix FSC update issue for WLED5
        dt-bindings: backlight: Add Kinetic KTD259 bindings
        backlight: ktd253: Support KTD259
        backlight: qcom-wled: Use sink_addr for sync toggle
        dt-bindings: backlight: qcom-wled: Add PMI8994 compatible
      c969f245
    • Linus Torvalds's avatar
      Merge tag 'mfd-next-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd · 71a5cc28
      Linus Torvalds authored
      Pull MFD updates from Lee Jones:
       "Core Framework:
         - Add support for Software Nodes to MFD Core
         - Remove support for Device Properties from MFD Core
         - Use standard APIs in MFD Core
      
        New Drivers:
         - Add support for ROHM BD9576MUF and BD9573MUF PMICs
         - Add support for Netronix Embedded Controller, PWM and RTC
         - Add support for Actions Semi ATC260x PMICs and OnKey
      
        New Device Support:
         - Add support for DG1 PCIe Graphics Card to Intel PMT
         - Add support for ROHM BD71815 PMIC to ROHM BD71828
         - Add support for Tolino Shine 2 HD to Netronix Embedded Controller
         - Add support for AX10 BMC Secure Updates to Intel M10 BMC
      
        Removed Device Support:
         - Remove Arizona Extcon support from MFD
         - Remove ST-E AB8500 Power Supply code from MFD
         - Remove AB3100 altogether
      
        New Functionality:
         - Add support for SMBus and I2C modes to Dialog DA9063
         - Switch to using Software Nodes in Intel (various)
      
        New/converted Device Tree bindings:
         - rohm bd71815-pmic, rohm bd9576-pmic, netronix ntxec, actions
           atc260x, ricoh rn5t618, qcom pm8xxx
      
      - Fix-ups:
         - Fix error handling/path; intel_pmt
         - Simplify code; rohm-bd718x7, ab8500-core, intel-m10-bmc
         - Trivial clean-ups (reordering, spelling); rohm-generic, rn5t618,
           max8997
         - Use correct data-type; db8500-prcmu
         - Remove superfluous code; lp87565, intel_quark_i2c_gpi, lpc_sch, twl
         - Use generic APIs/defines; lm3533-core, intel_quark_i2c_gpio
         - Regmap related fix-ups; intel-m10-bmc, sec-core
         - Reorder resource freeing during remove; intel_quark_i2c_gpio
         - Make table indexing more robust; intel_quark_i2c_gpio
         - Fix reference imbalances; arizona-irq
         - Staticify and (un)constify things; arizona-spi, stmpe, ene-kb3930,
           intel-lpss-acpi, intel-lpss-pci, atc260x-i2c, intel_quark_i2c_gpio
      
        Bug Fixes:
         - Fix incorrect (register) values; intel-m10-bmc
         - Kconfig related fixes; ABX500_CORE
         - Do not clear the Auto Reload Register; stm32-timers"
      
      * tag 'mfd-next-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd: (84 commits)
        mfd: intel-m10-bmc: Add support for MAX10 BMC Secure Updates
        Revert "mfd: max8997: Add of_compatible to Extcon and Charger mfd_cell"
        mfd: twl: Remove unused inline function twl4030charger_usb_en()
        dt-bindings: mfd: Convert pm8xxx bindings to yaml
        dt-bindings: mfd: Add compatible for pmk8350 rtc
        i2c: designware: Get rid of legacy platform data
        mfd: intel_quark_i2c_gpio: Convert I²C to use software nodes
        mfd: lpc_sch: Partially revert "Add support for Intel Quark X1000"
        mfd: arizona: Fix rumtime PM imbalance on error
        mfd: max8997: Replace 8998 with 8997
        mfd: core: Use acpi_find_child_device() for child devices lookup
        mfd: intel_quark_i2c_gpio: Don't play dirty trick with const
        mfd: intel_quark_i2c_gpio: Enable MSI interrupt
        mfd: intel_quark_i2c_gpio: Reuse BAR definitions for MFD cell indexing
        mfd: ntxec: Support for EC in Tolino Shine 2 HD
        mfd: stm32-timers: Avoid clearing auto reload register
        mfd: intel_quark_i2c_gpio: Replace I²C speeds with descriptive definitions
        mfd: intel_quark_i2c_gpio: Remove unused struct device member
        mfd: intel_quark_i2c_gpio: Unregister resources in reversed order
        mfd: Kconfig: ABX500_CORE should depend on ARCH_U8500
        ...
      71a5cc28
    • Linus Torvalds's avatar
      Merge tag 'mmc-v5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc · be18cd1f
      Linus Torvalds authored
      Pull MMC and MEMSTICK updates from Ulf Hansson:
       "MMC core:
         - Fix hanging on I/O during system suspend for removable cards
         - Set read only for SD cards with permanent write protect bit
         - Power cycle the SD/SDIO card if CMD11 fails for UHS voltage
         - Issue a cache flush for eMMC only when it's enabled
         - Adopt to updated cache ctrl settings for eMMC from MMC ioctls
         - Use use device property API when parsing voltages
         - Don't retry eMMC sanitize cmds
         - Use the timeout from the MMC ioctl for eMMC santize cmds
      
        MMC host:
         - mmc_spi: Make of_mmc_spi.c resource provider agnostic
         - mmc_spi: Use polling for card detect even without voltage-ranges
         - sdhci: Check for reset prior to DMA address unmap
         - sdhci-acpi: Add support for the AMDI0041 eMMC controller variant
         - sdhci-esdhc-imx: Depending on OF Kconfig and cleanup code
         - sdhci-pci: Add PCI IDs for Intel LKF
         - sdhci-pci: Fix initialization of some SD cards for Intel BYT
         - sdhci-pci-gli: Various improvements for GL97xx variants
         - sdhci-of-dwcmshc: Enable support for MMC_CAP_WAIT_WHILE_BUSY
         - sdhci-of-dwcmshc: Add ACPI support for BlueField-3 SoC
         - sdhci-of-dwcmshc: Add Rockchip platform support
         - tmio/renesas_sdhi: Extend support for reset and use a reset controller
         - tmio/renesas_sdhi: Enable support for MMC_CAP_WAIT_WHILE_BUSY
         - tmio/renesas_sdhi: Various improvements
      
        MEMSTICK:
         - Minor improvements/cleanups"
      
      * tag 'mmc-v5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc: (79 commits)
        mmc: block: Issue a cache flush only when it's enabled
        memstick: r592: ignore kfifo_out() return code again
        mmc: block: Update ext_csd.cache_ctrl if it was written
        mmc: mmc_spi: Make of_mmc_spi.c resource provider agnostic
        mmc: mmc_spi: Use already parsed IRQ
        mmc: mmc_spi: Drop unused NO_IRQ definition
        mmc: mmc_spi: Set up polling even if voltage-ranges is not present
        mmc: core: Convert mmc_of_parse_voltage() to use device property API
        mmc: core: Correct descriptions in mmc_of_parse()
        mmc: dw_mmc-rockchip: Just set default sample value for legacy mode
        mmc: sdhci-s3c: constify uses of driver/match data
        mmc: sdhci-s3c: correct kerneldoc of sdhci_s3c_drv_data
        mmc: sdhci-s3c: simplify getting of_device_id match data
        mmc: tmio: always restore irq register
        mmc: sdhci-pci-gli: Enlarge ASPM L1 entry delay of GL975x
        mmc: core: Let eMMC sanitize not retry in case of timeout/failure
        mmc: core: Add a retries parameter to __mmc_switch function
        memstick: r592: remove unused variable
        mmc: sdhci-st: Remove unnecessary error log
        mmc: sdhci-msm: Remove unnecessary error log
        ...
      be18cd1f
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.13-1' of git://github.com/cminyard/linux-ipmi · 6fa09d31
      Linus Torvalds authored
      Pull IPMI updates from Corey Minyard:
       "A bunch of little cleanups
      
        Nothing major, no functional changes"
      
      * tag 'for-linus-5.13-1' of git://github.com/cminyard/linux-ipmi:
        ipmi_si: Join string literals back
        ipmi_si: Drop redundant check before calling put_device()
        ipmi_si: Use strstrip() to remove surrounding spaces
        ipmi_si: Get rid of ->addr_source_cleanup()
        ipmi_si: Reuse si_to_str[] array in ipmi_hardcode_init_one()
        ipmi_si: Introduce ipmi_panic_event_str[] array
        ipmi_si: Use proper ACPI macros to check error code for failures
        ipmi_si: Utilize temporary variable to hold device pointer
        ipmi_si: Remove bogus err_free label
        ipmi_si: Switch to use platform_get_mem_or_io()
        ipmi: Handle device properties with software node API
        ipmi:ssif: make ssif_i2c_send() void
        ipmi: Refine retry conditions for getting device id
      6fa09d31
    • Linus Torvalds's avatar
      Merge tag 'devicetree-for-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux · 0080665f
      Linus Torvalds authored
      Pull devicetree updates from Rob Herring:
      
       - Refactor powerpc and arm64 kexec DT handling to common code. This
         enables IMA on arm64.
      
       - Add kbuild support for applying DT overlays at build time. The first
         user are the DT unittests.
      
       - Fix kerneldoc formatting and W=1 warnings in drivers/of/
      
       - Fix handling 64-bit flag on PCI resources
      
       - Bump dtschema version required to v2021.2.1
      
       - Enable undocumented compatible checks for dtbs_check. This allows
         tracking of missing binding schemas.
      
       - DT docs improvements. Regroup the DT docs and add the example schema
         and DT kernel ABI docs to the doc build.
      
       - Convert Broadcom Bluetooth and video-mux bindings to schema
      
       - Add QCom sm8250 Venus video codec binding schema
      
       - Add vendor prefixes for AESOP, YIC System Co., Ltd, and Siliconfile
         Technologies Inc.
      
       - Cleanup of DT schema type references on common properties and
         standard unit properties
      
      * tag 'devicetree-for-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (64 commits)
        powerpc: If kexec_build_elf_info() fails return immediately from elf64_load()
        powerpc: Free fdt on error in elf64_load()
        of: overlay: Fix kerneldoc warning in of_overlay_remove()
        of: linux/of.h: fix kernel-doc warnings
        of/pci: Add IORESOURCE_MEM_64 to resource flags for 64-bit memory addresses
        dt-bindings: bcm4329-fmac: add optional brcm,ccode-map
        docs: dt: update writing-schema.rst references
        dt-bindings: media: venus: Add sm8250 dt schema
        of: base: Fix spelling issue with function param 'prop'
        docs: dt: Add DT API documentation
        of: Add missing 'Return' section in kerneldoc comments
        of: Fix kerneldoc output formatting
        docs: dt: Group DT docs into relevant sub-sections
        docs: dt: Make 'Devicetree' wording more consistent
        docs: dt: writing-schema: Include the example schema in the doc build
        docs: dt: writing-schema: Remove spurious indentation
        dt-bindings: Fix reference in submitting-patches.rst to the DT ABI doc
        dt-bindings: ddr: Add optional manufacturer and revision ID to LPDDR3
        dt-bindings: media: video-interfaces: Drop the example
        devicetree: bindings: clock: Minor typo fix in the file armada3700-tbg-clock.txt
        ...
      0080665f
    • Linus Torvalds's avatar
      Merge tag 'for-v5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply · 5a69e9bc
      Linus Torvalds authored
      Pull power supply and reset updates from Sebastian Reichel:
       "battery/charger driver changes:
         - core:
            - provide function stubs if CONFIG_POWER_SUPPLY=n
            - reduce loglevel for probe defer info
         - surface:
            - new battery and charger drivers for Surface
         - bq27xxx:
            - add bq78z100 support
            - fix current_now/power_avg for newer chips
         - cw2015:
            - add CHARGE_NOW support
         - ab8500:
            - drop pdata support
         - convert most DT bindings to YAML
         - lots of minor fixes and cleanups
      
        reset drivers:
         - ltc2952-poweroff:
            - make trigger delay configurable from DT
         - minor fixes and cleanups"
      
      * tag 'for-v5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply: (97 commits)
        power: supply: cpcap-battery: fix invalid usage of list cursor
        power: supply: bq256xx: add kerneldoc for structure members
        power: supply: act8945a: correct kerneldoc
        power: supply: max17040: remove unneeded double cast
        power: supply: max17040: handle device_property_read_u8_array() failure
        power: supply: max14577: remove unneeded variable initialization
        power: supply: surface-charger: Make symbol 'surface_ac_pm_ops' static
        power: supply: surface-battery: Make some symbols static
        power: reset: restart-poweroff: Add missing MODULE_DEVICE_TABLE
        power: reset: hisi-reboot: add missing MODULE_DEVICE_TABLE
        power: supply: s3c_adc_battery: fix possible use-after-free in s3c_adc_bat_remove()
        power: supply: generic-adc-battery: fix possible use-after-free in gab_remove()
        power: supply: Add AC driver for Surface Aggregator Module
        power: supply: Add battery driver for Surface Aggregator Module
        power: supply: bq25980: Move props from battery node
        power: supply: core: Use true and false for bool variable
        power: supply: goldfish: Remove the GOLDFISH dependency
        power: reset: ltc2952: make trigger delay configurable
        power: supply: cpcap-charger: Simplify bool conversion
        power: supply: cpcap-charger: Add usleep to cpcap charger to avoid usb plug bounce
        ...
      5a69e9bc
    • Linus Torvalds's avatar
      Merge tag 'hsi-for-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-hsi · a8b5e037
      Linus Torvalds authored
      Pull HSI update from Sebastian Reichel:
      
       - memory leak fix in hsi_add_client_from_dt() error path
      
      * tag 'hsi-for-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-hsi:
        HSI: core: fix resource leaks in hsi_add_client_from_dt()
      a8b5e037
    • Linus Torvalds's avatar
      Merge tag 'for-5.13/io_uring-2021-04-27' of git://git.kernel.dk/linux-block · 625434da
      Linus Torvalds authored
      Pull io_uring updates from Jens Axboe:
      
       - Support for multi-shot mode for POLL requests
      
       - More efficient reference counting. This is shamelessly stolen from
         the mm side. Even though referencing is mostly single/dual user, the
         128 count was retained to keep the code the same. Maybe this
         should/could be made generic at some point.
      
       - Removal of the need to have a manager thread for each ring. The
         manager threads only job was checking and creating new io-threads as
         needed, instead we handle this from the queue path.
      
       - Allow SQPOLL without CAP_SYS_ADMIN or CAP_SYS_NICE. Since 5.12, this
         thread is "just" a regular application thread, so no need to restrict
         use of it anymore.
      
       - Cleanup of how internal async poll data lifetime is managed.
      
       - Fix for syzbot reported crash on SQPOLL cancelation.
      
       - Make buffer registration more like file registrations, which includes
         flexibility in avoiding full set unregistration and re-registration.
      
       - Fix for io-wq affinity setting.
      
       - Be a bit more defensive in task->pf_io_worker setup.
      
       - Various SQPOLL fixes.
      
       - Cleanup of SQPOLL creds handling.
      
       - Improvements to in-flight request tracking.
      
       - File registration cleanups.
      
       - Tons of cleanups and little fixes
      
      * tag 'for-5.13/io_uring-2021-04-27' of git://git.kernel.dk/linux-block: (156 commits)
        io_uring: maintain drain logic for multishot poll requests
        io_uring: Check current->io_uring in io_uring_cancel_sqpoll
        io_uring: fix NULL reg-buffer
        io_uring: simplify SQPOLL cancellations
        io_uring: fix work_exit sqpoll cancellations
        io_uring: Fix uninitialized variable up.resv
        io_uring: fix invalid error check after malloc
        io_uring: io_sq_thread() no longer needs to reset current->pf_io_worker
        kernel: always initialize task->pf_io_worker to NULL
        io_uring: update sq_thread_idle after ctx deleted
        io_uring: add full-fledged dynamic buffers support
        io_uring: implement fixed buffers registration similar to fixed files
        io_uring: prepare fixed rw for dynanic buffers
        io_uring: keep table of pointers to ubufs
        io_uring: add generic rsrc update with tags
        io_uring: add IORING_REGISTER_RSRC
        io_uring: enumerate dynamic resources
        io_uring: add generic path for rsrc update
        io_uring: preparation for rsrc tagging
        io_uring: decouple CQE filling from requests
        ...
      625434da
    • Linus Torvalds's avatar
      Merge tag 'for-5.13/libata-2021-04-27' of git://git.kernel.dk/linux-block · c05a182b
      Linus Torvalds authored
      Pull libata updates from Jens Axboe:
       "Mostly cleanups this time, but also a few additions:
      
         - kernel-doc cleanups and sanitization (Lee)
      
         - Spelling fix (Bhaskar)
      
         - Fix ata_qc_from_tag() return value check in dwc_460ex (Dinghao)
      
         - Fall-through warning fix (Gustavo)
      
         - IRQ registration fixes (Sergey)
      
         - Add AHCI support for Tegra186 (Sowjanya)
      
         - Add xiling phy support for AHCI (Piyush)
      
         - SXS disable fix for AHCI for Hisilicon Kunpeng920 (Xingui)
      
         - pata legacy probe mask support (Maciej)"
      
      * tag 'for-5.13/libata-2021-04-27' of git://git.kernel.dk/linux-block: (54 commits)
        libata: Fix fall-through warnings for Clang
        pata_ipx4xx_cf: Fix unsigned comparison with less than zero
        ata: ahci_tegra: call tegra_powergate_power_off only when PM domain is not present
        ata: ahci_tegra: Add AHCI support for Tegra186
        dt-binding: ata: tegra: Add dt-binding documentation for Tegra186
        dt-bindings: ata: tegra: Convert binding documentation to YAML
        pata_legacy: Add `probe_mask' parameter like with ide-generic
        pata_platform: Document `pio_mask' module parameter
        pata_legacy: Properly document module parameters
        ata: ahci: ceva: Updated code by using dev_err_probe()
        ata: ahci: Disable SXS for Hisilicon Kunpeng920
        ata: libahci_platform: fix IRQ check
        sata_mv: add IRQ checks
        ata: pata_acpi: Fix some incorrect function param descriptions
        ata: libata-acpi: Fix function name and provide description for 'prev_gtf'
        ata: sata_mv: Fix misnaming of 'mv_bmdma_stop()'
        ata: pata_cs5530: Fix misspelling of 'cs5530_init_one()'s 'pdev' param
        ata: pata_legacy: Repair a couple kernel-doc problems
        ata: ata_generic: Fix misspelling of 'ata_generic_init_one()'
        ata: pata_opti: Fix spelling issue of 'val' in 'opti_write_reg()'
        ...
      c05a182b
    • Linus Torvalds's avatar
      Merge tag 'for-5.13/drivers-2021-04-27' of git://git.kernel.dk/linux-block · fc058606
      Linus Torvalds authored
      Pull block driver updates from Jens Axboe:
      
       - MD changes via Song:
              - raid5 POWER fix
              - raid1 failure fix
              - UAF fix for md cluster
              - mddev_find_or_alloc() clean up
              - Fix NULL pointer deref with external bitmap
              - Performance improvement for raid10 discard requests
              - Fix missing information of /proc/mdstat
      
       - rsxx const qualifier removal (Arnd)
      
       - Expose allocated brd pages (Calvin)
      
       - rnbd via Gioh Kim:
              - Change maintainer
              - Change domain address of maintainers' email
              - Add polling IO mode and document update
              - Fix memory leak and some bug detected by static code analysis
                tools
              - Code refactoring
      
       - Series of floppy cleanups/fixes (Denis)
      
       - s390 dasd fixes (Julian)
      
       - kerneldoc fixes (Lee)
      
       - null_blk double free (Lv)
      
       - null_blk virtual boundary addition (Max)
      
       - Remove xsysace driver (Michal)
      
       - umem driver removal (Davidlohr)
      
       - ataflop fixes (Dan)
      
       - Revalidate disk removal (Christoph)
      
       - Bounce buffer cleanups (Christoph)
      
       - Mark lightnvm as deprecated (Christoph)
      
       - mtip32xx init cleanups (Shixin)
      
       - Various fixes (Tian, Gustavo, Coly, Yang, Zhang, Zhiqiang)
      
      * tag 'for-5.13/drivers-2021-04-27' of git://git.kernel.dk/linux-block: (143 commits)
        async_xor: increase src_offs when dropping destination page
        drivers/block/null_blk/main: Fix a double free in null_init.
        md/raid1: properly indicate failure when ending a failed write request
        md-cluster: fix use-after-free issue when removing rdev
        nvme: introduce generic per-namespace chardev
        nvme: cleanup nvme_configure_apst
        nvme: do not try to reconfigure APST when the controller is not live
        nvme: add 'kato' sysfs attribute
        nvme: sanitize KATO setting
        nvmet: avoid queuing keep-alive timer if it is disabled
        brd: expose number of allocated pages in debugfs
        ataflop: fix off by one in ataflop_probe()
        ataflop: potential out of bounds in do_format()
        drbd: Fix fall-through warnings for Clang
        block/rnbd: Use strscpy instead of strlcpy
        block/rnbd-clt-sysfs: Remove copy buffer overlap in rnbd_clt_get_path_name
        block/rnbd-clt: Remove max_segment_size
        block/rnbd-clt: Generate kobject_uevent when the rnbd device state changes
        block/rnbd-srv: Remove unused arguments of rnbd_srv_rdma_ev
        Documentation/ABI/rnbd-clt: Add description for nr_poll_queues
        ...
      fc058606
    • Linus Torvalds's avatar
      Merge tag 'for-5.13/block-2021-04-27' of git://git.kernel.dk/linux-block · 6c002921
      Linus Torvalds authored
      Pull block updates from Jens Axboe:
       "Pretty quiet round this time, which is nice. In detail:
      
         - Series revamping bounce buffer support (Christoph)
      
         - Dead code removal (Christoph, Bart)
      
         - Partition iteration revamp, now using xarray (Christoph)
      
         - Passthrough request scheduler improvements (Lin)
      
         - Series of BFQ improvements (Paolo)
      
         - Fix ioprio task iteration (Peter)
      
         - Various little tweaks and fixes (Tejun, Saravanan, Bhaskar, Max,
           Nikolay)"
      
      * tag 'for-5.13/block-2021-04-27' of git://git.kernel.dk/linux-block: (41 commits)
        blk-iocost: don't ignore vrate_min on QD contention
        blk-mq: Fix spurious debugfs directory creation during initialization
        bfq/mq-deadline: remove redundant check for passthrough request
        blk-mq: bypass IO scheduler's limit_depth for passthrough request
        block: Remove an obsolete comment from sg_io()
        block: move bio_list_copy_data to pktcdvd
        block: remove zero_fill_bio_iter
        block: add queue_to_disk() to get gendisk from request_queue
        block: remove an incorrect check from blk_rq_append_bio
        block: initialize ret in bdev_disk_changed
        block: Fix sys_ioprio_set(.which=IOPRIO_WHO_PGRP) task iteration
        block: remove disk_part_iter
        block: simplify diskstats_show
        block: simplify show_partition
        block: simplify printk_all_partitions
        block: simplify partition_overlaps
        block: simplify partition removal
        block: take bd_mutex around delete_partitions in del_gendisk
        block: refactor blk_drop_partitions
        block: move more syncing and invalidation to delete_partition
        ...
      6c002921
    • Linus Torvalds's avatar
      Merge tag 'sched-core-2021-04-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 16b3d0cf
      Linus Torvalds authored
      Pull scheduler updates from Ingo Molnar:
      
       - Clean up SCHED_DEBUG: move the decades old mess of sysctl, procfs and
         debugfs interfaces to a unified debugfs interface.
      
       - Signals: Allow caching one sigqueue object per task, to improve
         performance & latencies.
      
       - Improve newidle_balance() irq-off latencies on systems with a large
         number of CPU cgroups.
      
       - Improve energy-aware scheduling
      
       - Improve the PELT metrics for certain workloads
      
       - Reintroduce select_idle_smt() to improve load-balancing locality -
         but without the previous regressions
      
       - Add 'scheduler latency debugging': warn after long periods of pending
         need_resched. This is an opt-in feature that requires the enabling of
         the LATENCY_WARN scheduler feature, or the use of the
         resched_latency_warn_ms=xx boot parameter.
      
       - CPU hotplug fixes for HP-rollback, and for the 'fail' interface. Fix
         remaining balance_push() vs. hotplug holes/races
      
       - PSI fixes, plus allow /proc/pressure/ files to be written by
         CAP_SYS_RESOURCE tasks as well
      
       - Fix/improve various load-balancing corner cases vs. capacity margins
      
       - Fix sched topology on systems with NUMA diameter of 3 or above
      
       - Fix PF_KTHREAD vs to_kthread() race
      
       - Minor rseq optimizations
      
       - Misc cleanups, optimizations, fixes and smaller updates
      
      * tag 'sched-core-2021-04-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (61 commits)
        cpumask/hotplug: Fix cpu_dying() state tracking
        kthread: Fix PF_KTHREAD vs to_kthread() race
        sched/debug: Fix cgroup_path[] serialization
        sched,psi: Handle potential task count underflow bugs more gracefully
        sched: Warn on long periods of pending need_resched
        sched/fair: Move update_nohz_stats() to the CONFIG_NO_HZ_COMMON block to simplify the code & fix an unused function warning
        sched/debug: Rename the sched_debug parameter to sched_verbose
        sched,fair: Alternative sched_slice()
        sched: Move /proc/sched_debug to debugfs
        sched,debug: Convert sysctl sched_domains to debugfs
        debugfs: Implement debugfs_create_str()
        sched,preempt: Move preempt_dynamic to debug.c
        sched: Move SCHED_DEBUG sysctl to debugfs
        sched: Don't make LATENCYTOP select SCHED_DEBUG
        sched: Remove sched_schedstats sysctl out from under SCHED_DEBUG
        sched/numa: Allow runtime enabling/disabling of NUMA balance without SCHED_DEBUG
        sched: Use cpu_dying() to fix balance_push vs hotplug-rollback
        cpumask: Introduce DYING mask
        cpumask: Make cpu_{online,possible,present,active}() inline
        rseq: Optimise rseq_get_rseq_cs() and clear_rseq_cs()
        ...
      16b3d0cf
    • Linus Torvalds's avatar
      Merge tag 'perf-core-2021-04-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 42dec9a9
      Linus Torvalds authored
      Pull perf event updates from Ingo Molnar:
      
       - Improve Intel uncore PMU support:
      
           - Parse uncore 'discovery tables' - a new hardware capability
             enumeration method introduced on the latest Intel platforms. This
             table is in a well-defined PCI namespace location and is read via
             MMIO. It is organized in an rbtree.
      
             These uncore tables will allow the discovery of standard counter
             blocks, but fancier counters still need to be enumerated
             explicitly.
      
           - Add Alder Lake support
      
           - Improve IIO stacks to PMON mapping support on Skylake servers
      
       - Add Intel Alder Lake PMU support - which requires the introduction of
         'hybrid' CPUs and PMUs. Alder Lake is a mix of Golden Cove ('big')
         and Gracemont ('small' - Atom derived) cores.
      
         The CPU-side feature set is entirely symmetrical - but on the PMU
         side there's core type dependent PMU functionality.
      
       - Reduce data loss with CPU level hardware tracing on Intel PT / AUX
         profiling, by fixing the AUX allocation watermark logic.
      
       - Improve ring buffer allocation on NUMA systems
      
       - Put 'struct perf_event' into their separate kmem_cache pool
      
       - Add support for synchronous signals for select perf events. The
         immediate motivation is to support low-overhead sampling-based race
         detection for user-space code. The feature consists of the following
         main changes:
      
           - Add thread-only event inheritance via
             perf_event_attr::inherit_thread, which limits inheritance of
             events to CLONE_THREAD.
      
           - Add the ability for events to not leak through exec(), via
             perf_event_attr::remove_on_exec.
      
           - Allow the generation of SIGTRAP via perf_event_attr::sigtrap,
             extend siginfo with an u64 ::si_perf, and add the breakpoint
             information to ::si_addr and ::si_perf if the event is
             PERF_TYPE_BREAKPOINT.
      
         The siginfo support is adequate for breakpoints right now - but the
         new field can be used to introduce support for other types of
         metadata passed over siginfo as well.
      
       - Misc fixes, cleanups and smaller updates.
      
      * tag 'perf-core-2021-04-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (53 commits)
        signal, perf: Add missing TRAP_PERF case in siginfo_layout()
        signal, perf: Fix siginfo_t by avoiding u64 on 32-bit architectures
        perf/x86: Allow for 8<num_fixed_counters<16
        perf/x86/rapl: Add support for Intel Alder Lake
        perf/x86/cstate: Add Alder Lake CPU support
        perf/x86/msr: Add Alder Lake CPU support
        perf/x86/intel/uncore: Add Alder Lake support
        perf: Extend PERF_TYPE_HARDWARE and PERF_TYPE_HW_CACHE
        perf/x86/intel: Add Alder Lake Hybrid support
        perf/x86: Support filter_match callback
        perf/x86/intel: Add attr_update for Hybrid PMUs
        perf/x86: Add structures for the attributes of Hybrid PMUs
        perf/x86: Register hybrid PMUs
        perf/x86: Factor out x86_pmu_show_pmu_cap
        perf/x86: Remove temporary pmu assignment in event_init
        perf/x86/intel: Factor out intel_pmu_check_extra_regs
        perf/x86/intel: Factor out intel_pmu_check_event_constraints
        perf/x86/intel: Factor out intel_pmu_check_num_counters
        perf/x86: Hybrid PMU support for extra_regs
        perf/x86: Hybrid PMU support for event constraints
        ...
      42dec9a9
    • Linus Torvalds's avatar
      Merge tag 'objtool-core-2021-04-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 03b2cd72
      Linus Torvalds authored
      Pull objtool updates from Ingo Molnar:
      
       - Standardize the crypto asm code so that it looks like compiler-
         generated code to objtool - so that it can understand it. This
         enables unwinding from crypto asm code - and also fixes the last
         known remaining objtool warnings for LTO and more.
      
       - x86 decoder fixes: clean up and fix the decoder, and also extend it a
         bit
      
       - Misc fixes and cleanups
      
      * tag 'objtool-core-2021-04-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (24 commits)
        x86/crypto: Enable objtool in crypto code
        x86/crypto/sha512-ssse3: Standardize stack alignment prologue
        x86/crypto/sha512-avx2: Standardize stack alignment prologue
        x86/crypto/sha512-avx: Standardize stack alignment prologue
        x86/crypto/sha256-avx2: Standardize stack alignment prologue
        x86/crypto/sha1_avx2: Standardize stack alignment prologue
        x86/crypto/sha_ni: Standardize stack alignment prologue
        x86/crypto/crc32c-pcl-intel: Standardize jump table
        x86/crypto/camellia-aesni-avx2: Unconditionally allocate stack buffer
        x86/crypto/aesni-intel_avx: Standardize stack alignment prologue
        x86/crypto/aesni-intel_avx: Fix register usage comments
        x86/crypto/aesni-intel_avx: Remove unused macros
        objtool: Support asm jump tables
        objtool: Parse options from OBJTOOL_ARGS
        objtool: Collate parse_options() users
        objtool: Add --backup
        objtool,x86: More ModRM sugar
        objtool,x86: Rewrite ADD/SUB/AND
        objtool,x86: Support %riz encodings
        objtool,x86: Simplify register decode
        ...
      03b2cd72
    • Linus Torvalds's avatar
      Merge tag 'locking-core-2021-04-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 0ff0edb5
      Linus Torvalds authored
      Pull locking updates from Ingo Molnar:
      
       - rtmutex cleanup & spring cleaning pass that removes ~400 lines of
         code
      
       - Futex simplifications & cleanups
      
       - Add debugging to the CSD code, to help track down a tenacious race
         (or hw problem)
      
       - Add lockdep_assert_not_held(), to allow code to require a lock to not
         be held, and propagate this into the ath10k driver
      
       - Misc LKMM documentation updates
      
       - Misc KCSAN updates: cleanups & documentation updates
      
       - Misc fixes and cleanups
      
       - Fix locktorture bugs with ww_mutexes
      
      * tag 'locking-core-2021-04-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (44 commits)
        kcsan: Fix printk format string
        static_call: Relax static_call_update() function argument type
        static_call: Fix unused variable warn w/o MODULE
        locking/rtmutex: Clean up signal handling in __rt_mutex_slowlock()
        locking/rtmutex: Restrict the trylock WARN_ON() to debug
        locking/rtmutex: Fix misleading comment in rt_mutex_postunlock()
        locking/rtmutex: Consolidate the fast/slowpath invocation
        locking/rtmutex: Make text section and inlining consistent
        locking/rtmutex: Move debug functions as inlines into common header
        locking/rtmutex: Decrapify __rt_mutex_init()
        locking/rtmutex: Remove pointless CONFIG_RT_MUTEXES=n stubs
        locking/rtmutex: Inline chainwalk depth check
        locking/rtmutex: Move rt_mutex_debug_task_free() to rtmutex.c
        locking/rtmutex: Remove empty and unused debug stubs
        locking/rtmutex: Consolidate rt_mutex_init()
        locking/rtmutex: Remove output from deadlock detector
        locking/rtmutex: Remove rtmutex deadlock tester leftovers
        locking/rtmutex: Remove rt_mutex_timed_lock()
        MAINTAINERS: Add myself as futex reviewer
        locking/mutex: Remove repeated declaration
        ...
      0ff0edb5
    • Linus Torvalds's avatar
      Merge tag 'core-rcu-2021-04-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 9a45da92
      Linus Torvalds authored
      Pull RCU updates from Ingo Molnar:
      
       - Support for "N" as alias for last bit in bitmap parsing library (eg
         using syntax like "nohz_full=2-N")
      
       - kvfree_rcu updates
      
       - mm_dump_obj() updates. (One of these is to mm, but was suggested by
         Andrew Morton.)
      
       - RCU callback offloading update
      
       - Polling RCU grace-period interfaces
      
       - Realtime-related RCU updates
      
       - Tasks-RCU updates
      
       - Torture-test updates
      
       - Torture-test scripting updates
      
       - Miscellaneous fixes
      
      * tag 'core-rcu-2021-04-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (77 commits)
        rcutorture: Test start_poll_synchronize_rcu() and poll_state_synchronize_rcu()
        rcu: Provide polling interfaces for Tiny RCU grace periods
        torture: Fix kvm.sh --datestamp regex check
        torture: Consolidate qemu-cmd duration editing into kvm-transform.sh
        torture: Print proper vmlinux path for kvm-again.sh runs
        torture: Make TORTURE_TRUST_MAKE available in kvm-again.sh environment
        torture: Make kvm-transform.sh update jitter commands
        torture: Add --duration argument to kvm-again.sh
        torture: Add kvm-again.sh to rerun a previous torture-test
        torture: Create a "batches" file for build reuse
        torture: De-capitalize TORTURE_SUITE
        torture: Make upper-case-only no-dot no-slash scenario names official
        torture: Rename SRCU-t and SRCU-u to avoid lowercase characters
        torture: Remove no-mpstat error message
        torture: Record kvm-test-1-run.sh and kvm-test-1-run-qemu.sh PIDs
        torture: Record jitter start/stop commands
        torture: Extract kvm-test-1-run-qemu.sh from kvm-test-1-run.sh
        torture: Record TORTURE_KCONFIG_GDB_ARG in qemu-cmd
        torture: Abstract jitter.sh start/stop into scripts
        rcu: Provide polling interfaces for Tree RCU grace periods
        ...
      9a45da92
    • Linus Torvalds's avatar
      Merge tag 'drm-next-2021-04-28' of git://anongit.freedesktop.org/drm/drm · 68a32ba1
      Linus Torvalds authored
      Pull drm updates from Dave Airlie:
       "The usual lots of work all over the place.
      
        i915 has gotten some Alderlake work and prelim DG1 code, along with a
        major locking rework over the GEM code, and brings back the property
        of timing out long running jobs using a watchdog. amdgpu has some
        Alderbran support (new GPU), freesync HDMI support along with a lot
        other fixes.
      
        Outside of the drm, there is a new printf specifier added which should
        have all the correct acks/sobs:
      
         - printk fourcc modifier support added %p4cc
      
        Summary:
      
        core:
         - drm_crtc_commit_wait
         - atomic plane state helpers reworked for full state
         - dma-buf heaps API rework
         - edid: rework and improvements for displayid
      
        dp-mst:
         - better topology logging
      
        bridge:
         - Chipone ICN6211
         - Lontium LT8912B
         - anx7625 regulator support
      
        panel:
         - fix lt9611 4k panels handling
      
        simple-kms:
         - add plane state helpers
      
        ttm:
         - debugfs support
         - removal of unused sysfs
         - ignore signaled moved fences
         - ioremap buffer according to mem caching
      
        i915:
         - Alderlake S enablement
         - Conversion to dma_resv_locking
         - Bring back watchdog timeout support
         - legacy ioctl cleanups
         - add GEM TDDO and RFC process
         - DG1 LMEM preparation work
         - intel_display.c refactoring
         - Gen9/TGL PCH combination support
         - eDP MSO Support
         - multiple PSR instance support
         - Link training debug updates
         - Disable PSR2 support on JSL/EHL
         - DDR5/LPDDR5 support for bw calcs
         - LSPCON limited to gen9/10 platforms
         - HSW/BDW async flip/VTd corruption workaround
         - SAGV watermark fixes
         - SNB hard hang on ring resume fix
         - Limit imported dma-buf size
         - move to use new tasklet API
         - refactor KBL/TGL/ADL-S display/gt steppings
         - refactoring legacy DP/HDMI, FB plane code out
      
        amdgpu:
         - uapi: add ioctl to query video capabilities
         - Iniital AMD Freesync HDMI support
         - Initial Adebaran support
         - 10bpc dithering improvements
         - DCN secure display support
         - Drop legacy IO BAR requirements
         - PCIE/S0ix/RAS/Prime/Reset fixes
         - Display ASSR support
         - SMU gfx busy queues for RV/PCO
         - Initial LTTPR display work
      
        amdkfd:
         - MMU notifier fixes
         - APU fixes
      
        radeon:
         - debugfs cleanps
         - fw error handling ifix
         - Flexible array cleanups
      
        msm:
         - big DSI phy/pll cleanup
         - sc7280 initial support
         - commong bandwidth scaling path
         - shrinker locking contention fixes
         - unpin/swap support for GEM objcets
      
        ast:
         - cursor plane handling reworked
      
        tegra:
         - don't register DP AUX channels before connectors
      
        zynqmp:
         - fix OOB struct padding memset
      
        gma500:
         - drop ttm and medfield support
      
        exynos:
         - request_irq cleanup function
      
        mediatek:
         - fine tune line time for EOTp
         - MT8192 dpi support
         - atomic crtc config updates
         - don't support HDMI connector creation
      
        mxsdb:
         - imx8mm support
      
        panfrost:
         - MMU IRQ handling rework
      
        qxl:
         - locking fixes
         - resource deallocation changes
      
        sun4i:
         - add alpha properties to UI/VI layers
      
        vc4:
         - RPi4 CEC support
      
        vmwgfx:
         - doc cleanups
      
        arc:
         - moved to drm/tiny"
      
      * tag 'drm-next-2021-04-28' of git://anongit.freedesktop.org/drm/drm: (1390 commits)
        drm/ttm: Don't count pages in SG BOs against pages_limit
        drm/ttm: fix return value check
        drm/bridge: lt8912b: fix incorrect handling of of_* return values
        drm: bridge: fix LONTIUM use of mipi_dsi_() functions
        drm: bridge: fix ANX7625 use of mipi_dsi_() functions
        drm/amdgpu: page retire over debugfs mechanism
        drm/radeon: Fix a missing check bug in radeon_dp_mst_detect()
        drm/amd/display: Fix the Wunused-function warning
        drm/radeon/r600: Fix variables that are not used after assignment
        drm/amdgpu/smu7: fix CAC setting on TOPAZ
        drm/amd/display: Update DCN302 SR Exit Latency
        drm/amdgpu: enable ras eeprom on aldebaran
        drm/amdgpu: RAS harvest on driver load
        drm/amdgpu: add ras aldebaran ras eeprom driver
        drm/amd/pm: increase time out value when sending msg to SMU
        drm/amdgpu: add DMUB outbox event IRQ source define/complete/debug flag
        drm/amd/pm: add the callback to get vbios bootup values for vangogh
        drm/radeon: Fix size overflow
        drm/amdgpu: Fix size overflow
        drm/amdgpu: move mmhub ras_func init to ip specific file
        ...
      68a32ba1
    • Linus Torvalds's avatar
      Merge tag 'media/v5.13-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media · 3aa139aa
      Linus Torvalds authored
      Pull media updates from Mauro Carvalho Chehab:
      
       - addition of a maintainer's profile for the media subsystem
      
       - addition of i.MX8 IP support
      
       - qcom/camss gained support for hardware version Titan 170
      
       - new RC keymaps
      
       - Lots of other improvements, cleanups and bug fixes
      
      * tag 'media/v5.13-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (488 commits)
        media: coda: fix macroblocks count control usage
        media: rkisp1: params: fix wrong bits settings
        media: cedrus: Fix H265 status definitions
        media: meson-ge2d: fix rotation parameters
        media: v4l2-ctrls: fix reference to freed memory
        media: venus : hfi: add venus image info into smem
        media: venus: Fix internal buffer size calculations for v6.
        media: venus: helpers: keep max bandwidth when mbps exceeds the supported range
        media: venus: fix hw overload error log condition
        media: venus: core: correct firmware name for sm8250
        media: venus: core,pm: fix potential infinite loop
        media: venus: core: Fix kerneldoc warnings
        media: gscpa/stv06xx: fix memory leak
        media: cx25821: remove unused including <linux/version.h>
        media: staging: media/meson: remove redundant dev_err call
        media: adv7842: support 1 block EDIDs, fix clearing EDID
        media: adv7842: configure all pads
        media: allegro: change kernel-doc comment blocks to normal comments
        media: camss: ispif: Remove redundant dev_err call in msm_ispif_subdev_init()
        media: i2c: rdamc21: Fix warning on u8 cast
        ...
      3aa139aa
  2. Apr 28, 2021
    • Linus Torvalds's avatar
      Merge tag 'fixes-v5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security · acd3d285
      Linus Torvalds authored
      Pull security layer fixes from James Morris:
       "Miscellaneous minor fixes"
      
      * tag 'fixes-v5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security:
        security: commoncap: clean up kernel-doc comments
        security: commoncap: fix -Wstringop-overread warning
      acd3d285
    • Linus Torvalds's avatar
      Merge tag 'linux-kselftest-kunit-5.13-rc1' of... · 1e9599df
      Linus Torvalds authored
      Merge tag 'linux-kselftest-kunit-5.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
      
      Pull KUnit updates from Shuah Khan:
       "Several fixes and a new feature to support failure from dynamic
        analysis tools such as UBSAN and fake ops for testing.
      
         - a fake ops struct for testing a "free" function to complain if it
           was called with an invalid argument, or caught a double-free. Most
           return void and have no normal means of signalling failure (e.g.
           super_operations, iommu_ops, etc.)"
      
      * tag 'linux-kselftest-kunit-5.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
        Documentation: kunit: add tips for using current->kunit_test
        kunit: fix -Wunused-function warning for __kunit_fail_current_test
        kunit: support failure from dynamic analysis tools
        kunit: tool: make --kunitconfig accept dirs, add lib/kunit fragment
        kunit: make KUNIT_EXPECT_STREQ() quote values, don't print literals
        kunit: Match parenthesis alignment to improve code readability
      1e9599df
    • Linus Torvalds's avatar
      Merge tag 'linux-kselftest-next-5.13-rc1' of... · 2a68c268
      Linus Torvalds authored
      Merge tag 'linux-kselftest-next-5.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
      
      Pull Kselftest updates from Shuah Khan:
      
       - fixes and updates to resctrl test from Fenghua Yu and Reinette Chatre
      
       - fixes to Kselftest documentation, framework
      
       - minor spelling correction in timers test
      
      * tag 'linux-kselftest-next-5.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: (25 commits)
        selftests/resctrl: Change a few printed messages
        Documentation: kselftest: fix path to test module files
        selftests/resctrl: Create .gitignore to include resctrl_tests
        selftests/resctrl: Fix checking for < 0 for unsigned values
        selftests/resctrl: Fix incorrect parsing of iMC counters
        selftests/resctrl: Fix unmount resctrl FS
        selftests/resctrl: Skip the test if requested resctrl feature is not supported
        selftests/resctrl: Modularize resctrl test suite main() function
        selftests/resctrl: Don't hard code value of "no_of_bits" variable
        selftests/resctrl: Fix MBA/MBM results reporting format
        selftests/resctrl: Use resctrl/info for feature detection
        selftests/resctrl: Check for resctrl mount point only if resctrl FS is supported
        selftests/resctrl: Add config dependencies
        selftests/resctrl: Fix a printed message
        selftests/resctrl: Share show_cache_info() by CAT and CMT tests
        selftests/resctrl: Call kselftest APIs to log test results
        selftests/resctrl: Rename CQM test as CMT test
        selftests/resctrl: Fix missing options "-n" and "-p"
        selftests/resctrl: Ensure sibling CPU is not same as original CPU
        selftests/resctrl: Clean up resctrl features check
        ...
      2a68c268
    • Linus Torvalds's avatar
      Merge branch 'for-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup · 55e6be65
      Linus Torvalds authored
      Pull cgroup changes from Tejun Heo:
       "The only notable change is Vipin's new misc cgroup controller.
      
        This implements generic support for resources which can be controlled
        by simply counting and limiting the number of resource instances - ie
        there's X number of these on the system and this cgroup subtree can
        have upto Y of those.
      
        The first user is the address space IDs used for virtual machine
        memory encryption and expected future usages are similar - niche
        hardware features with concrete resource limits and simple usage
        models"
      
      * 'for-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup:
        cgroup: use tsk->in_iowait instead of delayacct_is_task_waiting_on_io()
        cgroup/cpuset: fix typos in comments
        cgroup: misc: mark dummy misc_cg_res_total_usage() static inline
        svm/sev: Register SEV and SEV-ES ASIDs to the misc controller
        cgroup: Miscellaneous cgroup documentation.
        cgroup: Add misc cgroup controller
      55e6be65
    • Linus Torvalds's avatar
      Merge tag 'livepatching-for-5.13' of... · eb6bbacc
      Linus Torvalds authored
      Merge tag 'livepatching-for-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/livepatching/livepatching
      
      Pull livepatching update from Petr Mladek:
      
       - Use TIF_NOTIFY_SIGNAL infrastructure instead of the fake signal
      
      * tag 'livepatching-for-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/livepatching/livepatching:
        livepatch: Replace the fake signal sending with TIF_NOTIFY_SIGNAL infrastructure
      eb6bbacc
    • Linus Torvalds's avatar
      Merge tag 'printk-for-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux · 7f3d08b2
      Linus Torvalds authored
      Pull printk updates from Petr Mladek:
      
       - Stop synchronizing kernel log buffer readers by logbuf_lock. As a
         result, the access to the buffer is fully lockless now.
      
         Note that printk() itself still uses locks because it tries to flush
         the messages to the console immediately. Also the per-CPU temporary
         buffers are still there because they prevent infinite recursion and
         serialize backtraces from NMI. All this is going to change in the
         future.
      
       - kmsg_dump API rework and cleanup as a side effect of the logbuf_lock
         removal.
      
       - Make bstr_printf() aware that %pf and %pF formats could deference the
         given pointer.
      
       - Show also page flags by %pGp format.
      
       - Clarify the documentation for plain pointer printing.
      
       - Do not show no_hash_pointers warning multiple times.
      
       - Update Senozhatsky email address.
      
       - Some clean up.
      
      * tag 'printk-for-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux: (24 commits)
        lib/vsprintf.c: remove leftover 'f' and 'F' cases from bstr_printf()
        printk: clarify the documentation for plain pointer printing
        kernel/printk.c: Fixed mundane typos
        printk: rename vprintk_func to vprintk
        vsprintf: dump full information of page flags in pGp
        mm, slub: don't combine pr_err with INFO
        mm, slub: use pGp to print page flags
        MAINTAINERS: update Senozhatsky email address
        lib/vsprintf: do not show no_hash_pointers message multiple times
        printk: console: remove unnecessary safe buffer usage
        printk: kmsg_dump: remove _nolock() variants
        printk: remove logbuf_lock
        printk: introduce a kmsg_dump iterator
        printk: kmsg_dumper: remove @active field
        printk: add syslog_lock
        printk: use atomic64_t for devkmsg_user.seq
        printk: use seqcount_latch for clear_seq
        printk: introduce CONSOLE_LOG_MAX
        printk: consolidate kmsg_dump_get_buffer/syslog_print_all code
        printk: refactor kmsg_dump_get_buffer()
        ...
      7f3d08b2
    • Linus Torvalds's avatar
      Merge tag 'kgdb-5.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/danielt/linux · 916a7596
      Linus Torvalds authored
      Pull kgdb updates from Daniel Thompson:
       "Exclusively tidy ups this cycle. Most of them are thanks to Sumit Garg
        and, as it happens, the clean ups do result in a slight increase in
        the line count. This is due to registering kdb commands using data
        structures rather than function calls which, in turn, simplifies the
        memory management during command registration.
      
        In addition to changes to command registration we also have some dead
        code removal, a clearer implementation of environment variable
        handling and a typo fix"
      
      * tag 'kgdb-5.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/danielt/linux:
        kdb: Refactor env variables get/set code
        kernel: debug: Ordinary typo fixes in the file gdbstub.c
        kdb: Simplify kdb commands registration
        kdb: Remove redundant function definitions/prototypes
      916a7596
    • Linus Torvalds's avatar
      Merge tag 's390-5.13-1' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · 6daa755f
      Linus Torvalds authored
      Pull s390 updates from Heiko Carstens:
      
       - fix buffer size for in-kernel disassembler for ebpf programs.
      
       - fix two memory leaks in zcrypt driver.
      
       - expose PCI device UID as index, including an indicator if the uid is
         unique.
      
       - remove some oprofile leftovers.
      
       - improve stack unwinder tests.
      
       - don't use gcc atomic builtins anymore, just like all other
         architectures. Even though I'm sure the current code is ok, I totally
         dislike that s390 is the only architecture being special here;
         especially considering that there was a lengthly discussion about
         this topic and the outcome was not to use the builtins. Therefore
         open-code atomic ops again with inline assembly and switch to gcc
         builtins as soon as other architectures are doing.
      
       - couple of other changes to atomic and cmpxchg, and use
         atomic-instrumented.h for KASAN.
      
       - separate zbus creation, registration, and scanning in our PCI code
         which allows for cleaner and easier handling.
      
       - a rather large change to the vfio-ap code to fix circular locking
         dependencies when updating crypto masks.
      
       - move QAOB handling from qdio layer down to drivers.
      
       - add CRW inject facility to common I/O layer. This adds debugs files
         which allow to generate artificial events from user space for testing
         purposes.
      
       - increase SCLP console line length from 80 to 320 characters to avoid
         odd wrapped lines.
      
       - add protected virtualization guest and host indication files, which
         indicate either that a guest is running in pv mode or if the
         hypervisor is capable of starting pv guests.
      
       - various other small fixes and improvements all over the place.
      
      * tag 's390-5.13-1' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: (53 commits)
        s390/disassembler: increase ebpf disasm buffer size
        s390/archrandom: add parameter check for s390_arch_random_generate
        s390/zcrypt: fix zcard and zqueue hot-unplug memleak
        s390/pci: expose a PCI device's UID as its index
        s390/atomic,cmpxchg: always inline __xchg/__cmpxchg
        s390/smp: fix do_restart() prototype
        s390: get rid of oprofile leftovers
        s390/atomic,cmpxchg: make constraints work with old compilers
        s390/test_unwind: print test suite start/end info
        s390/cmpxchg: use unsigned long values instead of void pointers
        s390/test_unwind: add WARN if tests failed
        s390/test_unwind: unify error handling paths
        s390: update defconfigs
        s390/spinlock: use R constraint in inline assembly
        s390/atomic,cmpxchg: switch to use atomic-instrumented.h
        s390/cmpxchg: get rid of gcc atomic builtins
        s390/atomic: get rid of gcc atomic builtins
        s390/atomic: use proper constraints
        s390/atomic: move remaining inline assemblies to atomic_ops.h
        s390/bitops: make bitops only work on longs
        ...
      6daa755f
    • Linus Torvalds's avatar
      Merge tag 'x86_core_for_v5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · c6536676
      Linus Torvalds authored
      Pull x86 updates from Borislav Petkov:
      
       - Turn the stack canary into a normal __percpu variable on 32-bit which
         gets rid of the LAZY_GS stuff and a lot of code.
      
       - Add an insn_decode() API which all users of the instruction decoder
         should preferrably use. Its goal is to keep the details of the
         instruction decoder away from its users and simplify and streamline
         how one decodes insns in the kernel. Convert its users to it.
      
       - kprobes improvements and fixes
      
       - Set the maximum DIE per package variable on Hygon
      
       - Rip out the dynamic NOP selection and simplify all the machinery
         around selecting NOPs. Use the simplified NOPs in objtool now too.
      
       - Add Xeon Sapphire Rapids to list of CPUs that support PPIN
      
       - Simplify the retpolines by folding the entire thing into an
         alternative now that objtool can handle alternatives with stack ops.
         Then, have objtool rewrite the call to the retpoline with the
         alternative which then will get patched at boot time.
      
       - Document Intel uarch per models in intel-family.h
      
       - Make Sub-NUMA Clustering topology the default and Cluster-on-Die the
         exception on Intel.
      
      * tag 'x86_core_for_v5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (53 commits)
        x86, sched: Treat Intel SNC topology as default, COD as exception
        x86/cpu: Comment Skylake server stepping too
        x86/cpu: Resort and comment Intel models
        objtool/x86: Rewrite retpoline thunk calls
        objtool: Skip magical retpoline .altinstr_replacement
        objtool: Cache instruction relocs
        objtool: Keep track of retpoline call sites
        objtool: Add elf_create_undef_symbol()
        objtool: Extract elf_symbol_add()
        objtool: Extract elf_strtab_concat()
        objtool: Create reloc sections implicitly
        objtool: Add elf_create_reloc() helper
        objtool: Rework the elf_rebuild_reloc_section() logic
        objtool: Fix static_call list generation
        objtool: Handle per arch retpoline naming
        objtool: Correctly handle retpoline thunk calls
        x86/retpoline: Simplify retpolines
        x86/alternatives: Optimize optimize_nops()
        x86: Add insn_decode_kernel()
        x86/kprobes: Move 'inline' to the beginning of the kprobe_is_ss() declaration
        ...
      c6536676
    • Linus Torvalds's avatar
      Fix misc new gcc warnings · e7c6e405
      Linus Torvalds authored
      
      
      It seems like Fedora 34 ends up enabling a few new gcc warnings, notably
      "-Wstringop-overread" and "-Warray-parameter".
      
      Both of them cause what seem to be valid warnings in the kernel, where
      we have array size mismatches in function arguments (that are no longer
      just silently converted to a pointer to element, but actually checked).
      
      This fixes most of the trivial ones, by making the function declaration
      match the function definition, and in the case of intel_pm.c, removing
      the over-specified array size from the argument declaration.
      
      At least one 'stringop-overread' warning remains in the i915 driver, but
      that one doesn't have the same obvious trivial fix, and may or may not
      actually be indicative of a bug.
      
      [ It was a mistake to upgrade one of my machines to Fedora 34 while
        being busy with the merge window, but if this is the extent of the
        compiler upgrade problems, things are better than usual    - Linus ]
      
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      e7c6e405
    • Stephen Boyd's avatar
      Merge branch 'clk-ralink' into clk-next · 3ba2d41d
      Stephen Boyd authored
       - Proper clk driver for Mediatek MT7621 SoCs
      
      * clk-ralink:
        MAINTAINERS: add MT7621 CLOCK maintainer
        staging: mt7621-dts: use valid vendor 'mediatek' instead of invalid 'mtk'
        staging: mt7621-dts: make use of new 'mt7621-clk'
        clk: ralink: add clock driver for mt7621 SoC
        dt: bindings: add mt7621-sysc device tree binding documentation
        dt-bindings: clock: add dt binding header for mt7621 clocks
      3ba2d41d
    • Stephen Boyd's avatar
      Merge branches 'clk-imx', 'clk-samsung', 'clk-zynq', 'clk-rockchip' and... · bbc3b403
      Stephen Boyd authored
      Merge branches 'clk-imx', 'clk-samsung', 'clk-zynq', 'clk-rockchip' and 'clk-uniphier' into clk-next
      
       - Simplify Zynq Kconfig dependencies
      
      * clk-imx:
        clk: imx: Reference preceded by free
        clk: imx8mq: Correct the pcie1 sels
        clk: imx8mp: Remove the none exist pcie clocks
        clk: imx: Fix reparenting of UARTs not associated with stdout
      
      * clk-samsung:
        clk: samsung: Remove redundant dev_err calls
        clk: exynos7: Mark aclk_fsys1_200 as critical
      
      * clk-zynq:
        clk: zynqmp: pll: add set_pll_mode to check condition in zynqmp_pll_enable
        clk: zynqmp: move zynqmp_pll_set_mode out of round_rate callback
        clk: zynqmp: Drop dependency on ARCH_ZYNQMP
        clk: zynqmp: Enable the driver if ZYNQMP_FIRMWARE is selected
      
      * clk-rockchip:
        clk: rockchip: drop MODULE_ALIAS from rk3399 clock controller
        clk: rockchip: drop parenthesis from ARM || COMPILE_TEST depends
        clk: rockchip: add clock controller for rk3568
        clk: rockchip: support more core div setting
        dt-binding: clock: Document rockchip, rk3568-cru bindings
        clk: rockchip: add dt-binding header for rk3568
      
      * clk-uniphier:
        clk: uniphier: Fix potential infinite loop
      bbc3b403
    • Stephen Boyd's avatar
      Merge branches 'clk-cleanup', 'clk-renesas', 'clk-socfpga', 'clk-allwinner'... · c3ad3219
      Stephen Boyd authored
      Merge branches 'clk-cleanup', 'clk-renesas', 'clk-socfpga', 'clk-allwinner' and 'clk-qcom' into clk-next
      
       - Use clk_hw pointers in socfpga driver
       - Cleanup parent data in qcom clk drivers
      
      * clk-cleanup:
        clk: Drop double "if" in clk_core_determine_round_nolock() comment
        clk: at91: Trivial typo fixes in the file sama7g5.c
        clk: use clk_core_enable_lock() a bit more
      
      * clk-renesas:
        clk: renesas: Zero init clk_init_data
        clk: renesas: Couple of spelling fixes
        clk: renesas: r8a779a0: Add CMT clocks
        clk: renesas: r8a7795: Add TMU clocks
        clk: renesas: r8a779a0: Add TSC clock
        clk: renesas: r8a779a0: Add TMU clocks
        clk: renesas: r8a77965: Add DAB clock
        clk: renesas: r8a77990: Add DAB clock
      
      * clk-socfpga:
        clk: socfpga: remove redundant initialization of variable div
        clk: socfpga: arria10: Fix memory leak of socfpga_clk on error return
        clk: socfpga: Fix code formatting
        clk: socfpga: Convert to s10/agilex/n5x to use clk_hw
        clk: socfpga: arria10: convert to use clk_hw
        clk: socfpga: use clk_hw_register for a5/c5
      
      * clk-allwinner:
        clk: sunxi: Demote non-conformant kernel-doc headers
        clk: sunxi-ng: v3s: use sigma-delta modulation for audio-pll
      
      * clk-qcom: (45 commits)
        clk: qcom: rpmh: add support for SDX55 rpmh IPA clock
        clk: qcom: gcc-sdm845: get rid of the test clock
        clk: qcom: convert SDM845 Global Clock Controller to parent_data
        dt-bindings: clock: separate SDM845 GCC clock bindings
        clk: qcom: apss-ipq-pll: Add missing MODULE_DEVICE_TABLE
        clk: qcom: a53-pll: Add missing MODULE_DEVICE_TABLE
        clk: qcom: a7-pll: Add missing MODULE_DEVICE_TABLE
        clk: qcom: gcc-sm8350: use ARRAY_SIZE instead of specifying num_parents
        clk: qcom: gcc-sm8250: use ARRAY_SIZE instead of specifying num_parents
        clk: qcom: gcc-sm8150: use ARRAY_SIZE instead of specifying num_parents
        clk: qcom: gcc-sc8180x: use ARRAY_SIZE instead of specifying num_parents
        clk: qcom: gcc-sc7180: use ARRAY_SIZE instead of specifying num_parents
        clk: qcom: videocc-sm8250: use parent_hws where possible
        clk: qcom: videocc-sm8150: use parent_hws where possible
        clk: qcom: gpucc-sm8250: use parent_hws where possible
        clk: qcom: gpucc-sm8150: use parent_hws where possible
        clk: qcom: gcc-sm8350: use parent_hws where possible
        clk: qcom: gcc-sm8250: use parent_hws where possible
        clk: qcom: gcc-sm8150: use parent_hws where possible
        clk: qcom: gcc-sdx55: use parent_hws where possible
        ...
      c3ad3219
    • Linus Torvalds's avatar
      Merge tag 'audit-pr-20210426' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit · e359bce3
      Linus Torvalds authored
      Pull audit updates from Paul Moore:
       "Another small pull request for audit, most of the patches are
        documentation updates with only two real code changes: one to fix a
        compiler warning for a dummy function/macro, and one to cleanup some
        code since we removed the AUDIT_FILTER_ENTRY ages ago (v4.17)"
      
      * tag 'audit-pr-20210426' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit:
        audit: drop /proc/PID/loginuid documentation Format field
        audit: avoid -Wempty-body warning
        audit: document /proc/PID/sessionid
        audit: document /proc/PID/loginuid
        MAINTAINERS: update audit files
        audit: further cleanup of AUDIT_FILTER_ENTRY deprecation
      e359bce3
    • Linus Torvalds's avatar
      Merge tag 'selinux-pr-20210426' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux · f1c921fb
      Linus Torvalds authored
      Pull selinux updates from Paul Moore:
      
       - Add support for measuring the SELinux state and policy capabilities
         using IMA.
      
       - A handful of SELinux/NFS patches to compare the SELinux state of one
         mount with a set of mount options. Olga goes into more detail in the
         patch descriptions, but this is important as it allows more
         flexibility when using NFS and SELinux context mounts.
      
       - Properly differentiate between the subjective and objective LSM
         credentials; including support for the SELinux and Smack. My clumsy
         attempt at a proper fix for AppArmor didn't quite pass muster so John
         is working on a proper AppArmor patch, in the meantime this set of
         patches shouldn't change the behavior of AppArmor in any way. This
         change explains the bulk of the diffstat beyond security/.
      
       - Fix a problem where we were not properly terminating the permission
         list for two SELinux object classes.
      
      * tag 'selinux-pr-20210426' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux:
        selinux: add proper NULL termination to the secclass_map permissions
        smack: differentiate between subjective and objective task credentials
        selinux: clarify task subjective and objective credentials
        lsm: separate security_task_getsecid() into subjective and objective variants
        nfs: account for selinux security context when deciding to share superblock
        nfs: remove unneeded null check in nfs_fill_super()
        lsm,selinux: add new hook to compare new mount to an existing mount
        selinux: fix misspellings using codespell tool
        selinux: fix misspellings using codespell tool
        selinux: measure state and policy capabilities
        selinux: Allow context mounts for unpriviliged overlayfs
      f1c921fb
    • Linus Torvalds's avatar
      Merge tag 'afs-netfs-lib-20210426' of... · fafe1e39
      Linus Torvalds authored
      Merge tag 'afs-netfs-lib-20210426' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs
      
      Pull AFS updates from David Howells:
       "Use the new netfs lib.
      
        Begin the process of overhauling the use of the fscache API by AFS and
        the introduction of support for features such as Transparent Huge
        Pages (THPs).
      
         - Add some support for THPs, including using core VM helper functions
           to find details of pages.
      
         - Use the ITER_XARRAY I/O iterator to mediate access to the pagecache
           as this handles THPs and doesn't require allocation of large bvec
           arrays.
      
         - Delegate address_space read/pre-write I/O methods for AFS to the
           netfs helper library. A method is provided to the library that
           allows it to issue a read against the server.
      
           This includes a change in use for PG_fscache (it now indicates a
           DIO write in progress from the marked page), so a number of waits
           need to be deployed for it.
      
         - Split the core AFS writeback function to make it easier to modify
           in future patches to handle writing to the cache. [This might
           feasibly make more sense moved out into my fscache-iter branch].
      
        I've tested these with "xfstests -g quick" against an AFS volume
        (xfstests needs patching to make it work). With this, AFS without a
        cache passes all expected xfstests; with a cache, there's an extra
        failure, but that's also there before these patches. Fixing that
        probably requires a greater overhaul (as can be found on my
        fscache-iter branch, but that's for a later time).
      
        Thanks should go to Marc Dionne and Jeff Altman of AuriStor for
        exercising the patches in their test farm also"
      
      Link: https://lore.kernel.org/lkml/3785063.1619482429@warthog.procyon.org.uk/
      
      * tag 'afs-netfs-lib-20210426' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs:
        afs: Use the netfs_write_begin() helper
        afs: Use new netfs lib read helper API
        afs: Use the fs operation ops to handle FetchData completion
        afs: Prepare for use of THPs
        afs: Extract writeback extension into its own function
        afs: Wait on PG_fscache before modifying/releasing a page
        afs: Use ITER_XARRAY for writing
        afs: Set up the iov_iter before calling afs_extract_data()
        afs: Log remote unmarshalling errors
        afs: Don't truncate iter during data fetch
        afs: Move key to afs_read struct
        afs: Print the operation debug_id when logging an unexpected data version
        afs: Pass page into dirty region helpers to provide THP size
        afs: Disable use of the fscache I/O routines
      fafe1e39
    • Linus Torvalds's avatar
      Merge tag 'netfs-lib-20210426' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs · 820c4bae
      Linus Torvalds authored
      Pull network filesystem helper library updates from David Howells:
       "Here's a set of patches for 5.13 to begin the process of overhauling
        the local caching API for network filesystems. This set consists of
        two parts:
      
        (1) Add a helper library to handle the new VM readahead interface.
      
            This is intended to be used unconditionally by the filesystem
            (whether or not caching is enabled) and provides a common
            framework for doing caching, transparent huge pages and, in the
            future, possibly fscrypt and read bandwidth maximisation. It also
            allows the netfs and the cache to align, expand and slice up a
            read request from the VM in various ways; the netfs need only
            provide a function to read a stretch of data to the pagecache and
            the helper takes care of the rest.
      
        (2) Add an alternative fscache/cachfiles I/O API that uses the kiocb
            facility to do async DIO to transfer data to/from the netfs's
            pages, rather than using readpage with wait queue snooping on one
            side and vfs_write() on the other. It also uses less memory, since
            it doesn't do buffered I/O on the backing file.
      
            Note that this uses SEEK_HOLE/SEEK_DATA to locate the data
            available to be read from the cache. Whilst this is an improvement
            from the bmap interface, it still has a problem with regard to a
            modern extent-based filesystem inserting or removing bridging
            blocks of zeros. Fixing that requires a much greater overhaul.
      
        This is a step towards overhauling the fscache API. The change is
        opt-in on the part of the network filesystem. A netfs should not try
        to mix the old and the new API because of conflicting ways of handling
        pages and the PG_fscache page flag and because it would be mixing DIO
        with buffered I/O. Further, the helper library can't be used with the
        old API.
      
        This does not change any of the fscache cookie handling APIs or the
        way invalidation is done at this time.
      
        In the near term, I intend to deprecate and remove the old I/O API
        (fscache_allocate_page{,s}(), fscache_read_or_alloc_page{,s}(),
        fscache_write_page() and fscache_uncache_page()) and eventually
        replace most of fscache/cachefiles with something simpler and easier
        to follow.
      
        This patchset contains the following parts:
      
         - Some helper patches, including provision of an ITER_XARRAY iov
           iterator and a function to do readahead expansion.
      
         - Patches to add the netfs helper library.
      
         - A patch to add the fscache/cachefiles kiocb API.
      
         - A pair of patches to fix some review issues in the ITER_XARRAY and
           read helpers as spotted by Al and Willy.
      
        Jeff Layton has patches to add support in Ceph for this that he
        intends for this merge window. I have a set of patches to support AFS
        that I will post a separate pull request for.
      
        With this, AFS without a cache passes all expected xfstests; with a
        cache, there's an extra failure, but that's also there before these
        patches. Fixing that probably requires a greater overhaul. Ceph also
        passes the expected tests.
      
        I also have patches in a separate branch to tidy up the handling of
        PG_fscache/PG_private_2 and their contribution to page refcounting in
        the core kernel here, but I haven't included them in this set and will
        route them separately"
      
      Link: https://lore.kernel.org/lkml/3779937.1619478404@warthog.procyon.org.uk/
      
      * tag 'netfs-lib-20210426' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs:
        netfs: Miscellaneous fixes
        iov_iter: Four fixes for ITER_XARRAY
        fscache, cachefiles: Add alternate API to use kiocb for read/write to cache
        netfs: Add a tracepoint to log failures that would be otherwise unseen
        netfs: Define an interface to talk to a cache
        netfs: Add write_begin helper
        netfs: Gather stats
        netfs: Add tracepoints
        netfs: Provide readahead and readpage netfs helpers
        netfs, mm: Add set/end/wait_on_page_fscache() aliases
        netfs, mm: Move PG_fscache helper funcs to linux/netfs.h
        netfs: Documentation for helper library
        netfs: Make a netfs helper module
        mm: Implement readahead_control pageset expansion
        mm/readahead: Handle ractl nr_pages being modified
        fs: Document file_ra_state
        mm/filemap: Pass the file_ra_state in the ractl
        mm: Add set/end/wait functions for PG_private_2
        iov_iter: Add ITER_XARRAY
      820c4bae
    • Linus Torvalds's avatar
      Merge tag 'fs.idmapped.helpers.v5.13' of... · 34a456eb
      Linus Torvalds authored
      Merge tag 'fs.idmapped.helpers.v5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux
      
      Pull fs mapping helper updates from Christian Brauner:
       "This adds kernel-doc to all new idmapping helpers and improves their
        naming which was triggered by a discussion with some fs developers.
        Some of the names are based on suggestions by Vivek and Al.
      
        Also remove the open-coded permission checking in a few places with
        simple helpers. Overall this should lead to more clarity and make it
        easier to maintain"
      
      * tag 'fs.idmapped.helpers.v5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux:
        fs: introduce two inode i_{u,g}id initialization helpers
        fs: introduce fsuidgid_has_mapping() helper
        fs: document and rename fsid helpers
        fs: document mapping helpers
      34a456eb
    • Linus Torvalds's avatar
      Merge tag 'fs.idmapped.docs.v5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux · cc15422c
      Linus Torvalds authored
      Pull fs helper kernel-doc updates from Christian Brauner:
       "In the last cycles we forgot to update the kernel-docs in some places
        that were changed during the idmapped mount work. Lukas and Randy took
        the chance to not just fixup those places but also fixup and expand
        kernel-docs for some additional helpers.
      
        No functional changes"
      
      * tag 'fs.idmapped.docs.v5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux:
        fs: update kernel-doc for vfs_rename()
        fs: turn some comments into kernel-doc
        xattr: fix kernel-doc for mnt_userns and vfs xattr helpers
        namei: fix kernel-doc for struct renamedata and more
        libfs: fix kernel-doc for mnt_userns
      cc15422c
    • Linus Torvalds's avatar
      Merge tag 'iomap-5.13-merge-2' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · b34b95eb
      Linus Torvalds authored
      Pull iomap update from Darrick Wong:
       "A single patch to the iomap code, which augments what gets logged when
        someone tries to swapon an unacceptable swap file. (Yes, this is a
        continuation of the swapfile drama from last season...)"
      
      * tag 'iomap-5.13-merge-2' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
        iomap: improve the warnings from iomap_swapfile_activate
      b34b95eb