1. 30 Jun, 2023 30 commits
  2. 29 Jun, 2023 10 commits
    • Linus Torvalds's avatar
      Merge tag 'slab-for-6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab · 632f54b4
      Linus Torvalds authored
      Pull slab updates from Vlastimil Babka:
      
       - SLAB deprecation:
      
         Following the discussion at LSF/MM 2023 [1] and no objections, the
         SLAB allocator is deprecated by renaming the config option (to make
         its users notice) to CONFIG_SLAB_DEPRECATED with updated help text.
         SLUB should be used instead. Existing defconfigs with CONFIG_SLAB are
         also updated.
      
       - SLAB_NO_MERGE kmem_cache flag (Jesper Dangaard Brouer):
      
         There are (very limited) cases where kmem_cache merging is
         undesirable, and existing ways to prevent it are hacky. Introduce a
         new flag to do that cleanly and convert the existing hacky users.
         Btrfs plans to use this for debug kernel builds (that use case is
         always fine), networking for performance reasons (that should be very
         rare).
      
       - Replace the usage of weak PRNGs (David Keisar Schmidt):
      
         In addition to using stronger RNGs for the security related features,
         the code is a bit cleaner.
      
       - Misc code cleanups (SeongJae Parki, Xiongwei Song, Zhen Lei, and
         zhaoxinchao)
      
      Link: https://lwn.net/Articles/932201/ [1]
      
      * tag 'slab-for-6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab:
        mm/slab_common: use SLAB_NO_MERGE instead of negative refcount
        mm/slab: break up RCU readers on SLAB_TYPESAFE_BY_RCU example code
        mm/slab: add a missing semicolon on SLAB_TYPESAFE_BY_RCU example code
        mm/slab_common: reduce an if statement in create_cache()
        mm/slab: introduce kmem_cache flag SLAB_NO_MERGE
        mm/slab: rename CONFIG_SLAB to CONFIG_SLAB_DEPRECATED
        mm/slab: remove HAVE_HARDENED_USERCOPY_ALLOCATOR
        mm/slab_common: Replace invocation of weak PRNG
        mm/slab: Replace invocation of weak PRNG
        slub: Don't read nr_slabs and total_objects directly
        slub: Remove slabs_node() function
        slub: Remove CONFIG_SMP defined check
        slub: Put objects_show() into CONFIG_SLUB_DEBUG enabled block
        slub: Correct the error code when slab_kset is NULL
        mm/slab: correct return values in comment for _kmem_cache_create()
      632f54b4
    • Linus Torvalds's avatar
      Merge tag 'soc-arm-6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · bf1fa6f1
      Linus Torvalds authored
      Pull ARM SoC updates from Arnd Bergmann:
       "These are mostly minor cleanups and bugfixes that address harmless
        problems.
      
        The largest branch is a conversion of the omap platform to use GPIO
        descriptors throughout the tree, for any devices that are not fully
        converted to devicetree.
      
        The Samsung Exynos platform gains back support for the Exynos4212 chip
        that was previously unused and removed but is now used for the Samsung
        Galaxy Tab3"
      
      * tag 'soc-arm-6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (24 commits)
        ARM: omap2: Fix copy/paste bug
        MAINTAINERS: Replace my email address
        Input: ads7846 - fix pointer cast warning
        Input: ads7846 - Fix usage of match data
        ARM: omap2: Fix checkpatch issues
        arm: omap1: replace printk() with pr_err macro
        ARM: omap: Fix checkpatch issues
        ARM: s3c: Switch i2c drivers back to use .probe()
        ARM: versatile: mark mmc_status() static
        ARM: spear: include "pl080.h" for pl080_get_signal() prototype
        ARM: sa1100: address missing prototype warnings
        ARM: pxa: fix missing-prototypes warnings
        ARM: orion5x: fix d2net gpio initialization
        ARM: omap2: fix missing tick_broadcast() prototype
        ARM: omap1: add missing include
        ARM: lpc32xx: add missing include
        ARM: imx: add missing include
        ARM: highbank: add missing include
        ARM: ep93xx: fix missing-prototype warnings
        ARM: davinci: fix davinci_cpufreq_init() declaration
        ...
      bf1fa6f1
    • Linus Torvalds's avatar
      Merge tag 'soc-defconfig-6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · 0873694a
      Linus Torvalds authored
      Pull ARM SoC defconfig updates from Arnd Bergmann:
       "The arm64 defconfig file gets the usual updates to enable addition
        device drivers as well as the sparx5 and realtek SoC platforms.
      
        For arm32, there are only a couple of cleanup patches for imx, renesas
        and rockchips"
      
      * tag 'soc-defconfig-6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (23 commits)
        arm64: defconfig: Enable Rockchip I2S TDM and ES8316 drivers
        arm64: defconfig: update RK8XX MFD config
        ARM: multi_v7_defconfig: update MFD_RK808 name
        arm64: defconfig: Enable UBIFS
        arm64: defconfig: enable drivers for Verdin AM62
        arm64: defconfig: Build SM6115 display and GPU clock controller drivers
        arm64: defconfig: Build display clock controller driver for QCM2290
        arm64: defconfig: Build interconnect driver for QCM2290
        arm64: defconfig: Build Global Clock Controller driver for QCM2290
        arm64: defconfig: Build MSM power manager driver
        arm64: defconfig: Enable sc828x0xp lpasscc clock controller
        arm64: defconfig: Enable the TI SN65DSI83 driver
        arm64: defconfig: Enable Renesas MTU3a counter config
        arm64: defconfig: enable Mediatek PMIC key
        arm64: defconfig: enable MT6357 regulator
        ARM: imx_v6_v7_defconfig: Remove KERNEL_LZO config
        arm64: defconfig: Enable ipq6018 apss clock and PLL controller
        arm64: defconfig: Enable ARCH_SPARX5 and ARCH_REALTEK
        arm64: defconfig: enable FSA4480 driver as module
        ARM: shmobile: defconfig: Refresh for v6.4-rc1
        ...
      0873694a
    • Linus Torvalds's avatar
      Merge tag 'soc-drivers-6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · e4c8d018
      Linus Torvalds authored
      Pull ARM SoC driver updates from Arnd Bergmann:
       "Nothing surprising in the SoC specific drivers, with the usual
        updates:
      
         - Added or improved SoC driver support for Tegra234, Exynos4121,
           RK3588, as well as multiple Mediatek and Qualcomm chips
      
         - SCMI firmware gains support for multiple SMC/HVC transport and
           version 3.2 of the protocol
      
         - Cleanups amd minor changes for the reset controller, memory
           controller, firmware and sram drivers
      
         - Minor changes to amd/xilinx, samsung, tegra, nxp, ti, qualcomm,
           amlogic and renesas SoC specific drivers"
      
      * tag 'soc-drivers-6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (118 commits)
        dt-bindings: interrupt-controller: Convert Amlogic Meson GPIO interrupt controller binding
        MAINTAINERS: add PHY-related files to Amlogic SoC file list
        drivers: meson: secure-pwrc: always enable DMA domain
        tee: optee: Use kmemdup() to replace kmalloc + memcpy
        soc: qcom: geni-se: Do not bother about enable/disable of interrupts in secondary sequencer
        dt-bindings: sram: qcom,imem: document qdu1000
        soc: qcom: icc-bwmon: Fix MSM8998 count unit
        dt-bindings: soc: qcom,rpmh-rsc: Require power-domains
        soc: qcom: socinfo: Add Soc ID for IPQ5300
        dt-bindings: arm: qcom,ids: add SoC ID for IPQ5300
        soc: qcom: Fix a IS_ERR() vs NULL bug in probe
        soc: qcom: socinfo: Add support for new fields in revision 19
        soc: qcom: socinfo: Add support for new fields in revision 18
        dt-bindings: firmware: scm: Add compatible for SDX75
        soc: qcom: mdt_loader: Fix split image detection
        dt-bindings: memory-controllers: drop unneeded quotes
        soc: rockchip: dtpm: use C99 array init syntax
        firmware: tegra: bpmp: Add support for DRAM MRQ GSCs
        soc/tegra: pmc: Use devm_clk_notifier_register()
        soc/tegra: pmc: Simplify debugfs initialization
        ...
      e4c8d018
    • Arnd Bergmann's avatar
      sysctl: fix unused proc_cap_handler() function warning · 554588e8
      Arnd Bergmann authored
      Since usermodehelper_table() is marked static now, we get a
      warning about it being unused when SYSCTL is disabled:
      
      kernel/umh.c:497:12: error: 'proc_cap_handler' defined but not used [-Werror=unused-function]
      
      Just move it inside of the same #ifdef.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Tested-by: default avatarMatthieu Baerts <matthieu.baerts@tessares.net>
      Fixes: 861dc0b4 ("sysctl: move umh sysctl registration to its own file")
      Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
      [mcgrof: adjust new commit ID for Fixes tag]
      Signed-off-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
      554588e8
    • Linus Torvalds's avatar
      Merge tag 'soc-newsoc-6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · a9025a5f
      Linus Torvalds authored
      Pull new ARM SoC support from Arnd Bergmann:
       "There are two new SoC families this time, and both appear fairly
        similar: The Nuvoton MA35D1 and the STMicroelectronics STM32MP2 are
        both dual-core Cortex-A35 based chips for the low-power industrial
        embedded market, and they mark the first 64-bit product in a widely
        used family of 32-bit Arm MCUs and SoCs.
      
        The way into the kernel is completely different here: The team at ST
        has a long history of working upstream with their STM32MP1 and other
        SoCs, and they produced a complete port to arm64 together with the
        initial announcement. Nuvoton also has multiple SoC product lines with
        current or previous upstream support, but those are maintained by
        third parties and are unrelated. The patch series from Nuvoton's Jacky
        Huang had to go through many revisisions to get to this point and is
        still missing a few drivers including the serial port for the moment.
      
        The branch contains the devicetree files as well as all the code
        changes, in order to have something that can be tested standalone"
      
      * tag 'soc-newsoc-6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (25 commits)
        clk: nuvoton: Use clk_parent_data instead of string for parent clock
        clk: nuvoton: Update all constant hex values to lowercase
        clk: nuvoton: Add clk-ma35d1.h for driver extern functions
        remoteproc: stm32: use correct format strings on 64-bit
        MAINTAINERS: add entry for ARM/STM32 ARCHITECTURE
        arm64: defconfig: enable ARCH_STM32 and STM32 serial driver
        arm64: dts: st: add stm32mp257f-ev1 board support
        dt-bindings: stm32: document stm32mp257f-ev1 board
        arm64: dts: st: introduce stm32mp25 pinctrl files
        arm64: dts: st: introduce stm32mp25 SoCs family
        arm64: introduce STM32 family on Armv8 architecture
        dt-bindings: stm32: add st,stm32mp25-syscfg compatible for syscon
        pinctrl: stm32: add stm32mp257 pinctrl support
        dt-bindings: pinctrl: stm32: support for stm32mp257 and additional packages
        Documentation/process: add soc maintainer handbook
        reset: RESET_NUVOTON_MA35D1 should depend on ARCH_MA35
        reset: Add Nuvoton ma35d1 reset driver support
        clk: nuvoton: Add clock driver for ma35d1 clock controller
        arm64: dts: nuvoton: Add initial ma35d1 device tree
        dt-bindings: serial: Document ma35d1 uart controller
        ...
      a9025a5f
    • Linus Torvalds's avatar
      Merge tag 'soc-dt-6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · 6c1561fb
      Linus Torvalds authored
      Pull ARM SoC devicetree updates from Arnd Bergmann:
       "The biggest change this time is for the 32-bit devicetree files, which
        are all moved to a new location, using separate subdirectories for
        each SoC vendor, following the same scheme that is used on arm64, mips
        and riscv. This has been discussed for many years, but so far we never
        did this as there was a plan to move the files out of the kernel
        entirely, which has never happened.
      
        The impact of this will be that all external patches no longer apply,
        and anything depending on the location of the dtb files in the build
        directory will have to change. The installed files after 'make
        dtbs_install' keep the current location.
      
        There are six added SoCs here that are largely variants of previously
        added chips. Two other chips are added in a separate branch along with
        their device drivers.
      
         - The Samsung Exynos 4212 makes its return after the Samsung Galaxy
           Express phone is addded at last. The SoC support was originally
           added in 2012 but removed again in 2017 as it was unused at the
           time.
      
         - Amlogic C3 is a Cortex-A35 based smart IP camera chip
      
         - Qualcomm MSM8939 (Snapdragon 615) is a more featureful variant of
           the still common MSM8916 (Snapdragon 410) phone chip that has been
           supported for a long time.
      
         - Qualcomm SC8180x (Snapdragon 8cx) is one of their earlier high-end
           laptop chips, used in the Lenovo Flex 5G, which is added along with
           the reference board.
      
         - Qualcomm SDX75 is the latest generation modem chip that is used as
           a peripherial in phones but can also run a standalone Linux. Unlike
           the prior 32-bit SDX65 and SDX55, this now has a 64-bit Cortex-A55.
      
         - Alibaba T-Head TH1520 is a quad-core RISC-V chip based on the
           Xuantie C910 core, a step up from all previously added rv64 chips.
      
        All of the above come with reference board implementations, those
        included there are 39 new board files, but only five more 32-bit this
        time, probably a new low:
      
         - Marantec Maveo board based on dhcor imx6ull module
      
         - Endian 4i Edge 200, based on the armv5 Marvell Kirkwood chip
      
         - Epson Moverio BT-200 AR glasses based on TI OMAP4
      
         - PHYTEC STM32MP1-3 Dev board based on STM32MP15 PHYTEC SOM
      
         - ICnova ADB4006 board based on Allwinner A20
      
        On the 64-bit side, there are also fewer addded machines than we had
        in the recent releases:
      
         - Three boards based on NXP i.MX8: Emtop SoM & Baseboard, NXP i.MX8MM
           EVKB board and i.MX8MP based Gateworks Venice gw7905-2x device.
      
         - NVIDIA IGX Orin and Jetson Orin Nano boards, both based on tegra234
      
         - Qualcomm gains support for 6 reference boards on various members of
           their IPQ networking SoC series, as well as the Sony Xperia M4 Aqua
           phone, the Acer Aspire 1 laptop, and the Fxtec Pro1X board on top
           of the various reference platforms for their new chips.
      
         - Rockchips support for several newer boards: Indiedroid Nova
           (rk3588), Edgeble Neural Compute Module 6B (rk3588), FriendlyARM
           NanoPi R2C Plus (rk3328), Anbernic RG353PS (rk3566), Lunzn
           Fastrhino R66S/R68S (rk3568)
      
         - TI K3/AM625 based PHYTEC phyBOARD-Lyra-AM625 board and Toradex
           Verdin family with AM62 COM, carrier and dev boards
      
        Other changes to existing boards contain the usual minor improvements
        along with
      
         - continued updates to clean up dts files based on dtc warnings and
           binding checks, in particular cache properties and node names
      
         - support for devicetree overlays on at91, bcm283x
      
         - significant additions to existing SoC support on mediatek,
           qualcomm, ti k3 family, starfive jh71xx, NXP i.MX6 and i.MX8, ST
           STM32MP1
      
        As usual, a lot more detail is available in the individual merge
        commits"
      
      * tag 'soc-dt-6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (926 commits)
        ARM: mvebu: fix unit address on armada-390-db flash
        ARM: dts: Move .dts files to vendor sub-directories
        kbuild: Support flat DTBs install
        ARM: dts: Add .dts files missing from the build
        ARM: dts: allwinner: Use quoted #include
        ARM: dts: lan966x: kontron-d10: add PHY interrupts
        ARM: dts: lan966x: kontron-d10: fix SPI CS
        ARM: dts: lan966x: kontron-d10: fix board reset
        ARM: dts: at91: Enable device-tree overlay support for AT91 boards
        arm: dts: Enable device-tree overlay support for AT91 boards
        arm64: dts: exynos: Remove clock from Exynos850 pmu_system_controller
        ARM: dts: at91: use generic name for shutdown controller
        ARM: dts: BCM5301X: Add cells sizes to PCIe nodes
        dt-bindings: firmware: brcm,kona-smc: convert to YAML
        riscv: dts: sort makefile entries by directory
        riscv: defconfig: enable T-HEAD SoC
        MAINTAINERS: add entry for T-HEAD RISC-V SoC
        riscv: dts: thead: add sipeed Lichee Pi 4A board device tree
        riscv: dts: add initial T-HEAD TH1520 SoC device tree
        riscv: Add the T-HEAD SoC family Kconfig option
        ...
      6c1561fb
    • Linus Torvalds's avatar
      Merge tag 'mips_6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux · b775d6c5
      Linus Torvalds authored
      Pull MIPS updates from Thomas Bogendoerfer:
      
       - add support for TP-Link HC220 G5 v1
      
       - add support for Wifi/Bluetooth on CI20
      
       - rework Ralink clock and reset handling
      
       - cleanups and fixes
      
      * tag 'mips_6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux: (58 commits)
        MIPS: Loongson64: DTS: Add RTC support to Loongson-2K1000
        MIPS: Loongson64: DTS: Add RTC support to LS7A PCH
        MIPS: OCTEON: octeon-usb: cleanup divider calculation
        MIPS: OCTEON: octeon-usb: introduce dwc3_octeon_{read,write}q
        MIPS: OCTEON: octeon-usb: move gpio config to separate function
        MIPS: OCTEON: octeon-usb: use bitfields for shim register
        MIPS: OCTEON: octeon-usb: use bitfields for host config register
        MIPS: OCTEON: octeon-usb: use bitfields for control register
        MIPS: OCTEON: octeon-usb: add all register offsets
        mips: ralink: match all supported system controller compatible strings
        MIPS: dec: prom: Address -Warray-bounds warning
        MIPS: DTS: CI20: Raise VDDCORE voltage to 1.125 volts
        clk: ralink: mtmips: Fix uninitialized use of ret in mtmips_register_{fixed,factor}_clocks()
        mips: ralink: introduce commonly used remap node function
        mips: pci-mt7620: use dev_info() to log PCIe device detection result
        mips: pci-mt7620: do not print NFTS register value as error log
        MAINTAINERS: add Mediatek MTMIPS Clock maintainer
        mips: ralink: get cpu rate from new driver code
        mips: ralink: remove reset related code
        mips: ralink: mt7620: remove clock related code
        ...
      b775d6c5
    • Linus Torvalds's avatar
      Merge tag 'devicetree-for-6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux · 18f38fed
      Linus Torvalds authored
      Pull devicetree updates from Rob Herring:
       "Bindings:
      
         - Add some missing type definitions to properties
      
         - Drop unneeded quotes and use absolute paths in bindings
      
         - Remove redundant "binding" or "schema" in binding titles
      
         - Add bindings for Ralink SoCs interrupt controller, QCA2066
           Bluetooth, infineon,irps5401, new NXP i.MX GPT variants, shineworld
           lh133k MIPI SPI panel, Socionext Synquacer platforms, RK3588 PCIe,
           ST M95640 EEPROM, and FSL DCP crypto variants, and Arm Cortex-R52
      
        DT core:
      
         - Improve the reserved-memory range allocation to maximize contiguous
           space
      
         - Use device_set_node() helper in place of open coding"
      
      * tag 'devicetree-for-6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (40 commits)
        dt-bindings: interrupt-controller: add Ralink SoCs interrupt controller
        dt-bindings: PCI: dwc: rockchip: Update for RK3588
        dt-bindings: auxdisplay: holtek: Add missing type for "linux,no-autorepeat"
        dt-bindings: input: mediatek,pmic-keys: Fix typo in "linux,keycodes" property name
        dt-bindings: pwm: drop unneeded quotes
        dt-bindings: crypto: drop unneeded quotes
        dt-bindings: arm: socionext: add Synquacer platforms
        dt-bindings: connector: usb: allow a single HS port
        dt-bindings: bus: ti-sysc: fix typo
        of: reserved_mem: Use stable allocation order
        of: reserved_mem: Try to keep range allocations contiguous
        dt-bindings: arm: drop unneeded quotes and use absolute /schemas path
        dt-bindings: firmware: arm,scmi: drop unneeded quotes and use absolute /schemas path
        dt-bindings: dvfs: drop unneeded quotes
        dt-bindings: gpu: drop unneeded quotes
        dt-bindings: i3c: silvaco,i3c-master: drop unneeded quotes
        dt-bindings: rockchip: grf: drop unneeded quotes
        dt-bindings: spmi: mtk,spmi-mtk-pmif: drop unneeded quotes
        dt-bindings: Remove last usage of "binding" or "schema" in titles
        dt-bindings: display: panel: mipi-dbi-spi: add spi-3wire property
        ...
      18f38fed
    • Linus Torvalds's avatar
      Merge tag 'fs_for_v6.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs · c6b02710
      Linus Torvalds authored
      Pull misc filesystem updates from Jan Kara:
      
       - Rewrite kmap_local() handling in ext2
      
       - Convert ext2 direct IO path to iomap (with some infrastructure tweaks
         associated with that)
      
       - Convert two boilerplate licenses in udf to SPDX identifiers
      
       - Other small udf, ext2, and quota fixes and cleanups
      
      * tag 'fs_for_v6.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
        udf: Fix uninitialized array access for some pathnames
        ext2: Drop fragment support
        quota: fix warning in dqgrab()
        quota: Properly disable quotas when add_dquot_ref() fails
        fs: udf: udftime: Replace LGPL boilerplate with SPDX identifier
        fs: udf: Replace GPL 2.0 boilerplate license notice with SPDX identifier
        fs: Drop wait_unfrozen wait queue
        ext2_find_entry()/ext2_dotdot(): callers don't need page_addr anymore
        ext2_{set_link,delete_entry}(): don't bother with page_addr
        ext2_put_page(): accept any pointer within the page
        ext2_get_page(): saner type
        ext2: use offset_in_page() instead of open-coding it as subtraction
        ext2_rename(): set_link and delete_entry may fail
        ext2: Add direct-io trace points
        ext2: Move direct-io to use iomap
        ext2: Use generic_buffers_fsync() implementation
        ext4: Use generic_buffers_fsync_noflush() implementation
        fs/buffer.c: Add generic_buffers_fsync*() implementation
        ext2/dax: Fix ext2_setsize when len is page aligned
      c6b02710