1. 12 Apr, 2023 1 commit
    • Zhang Yuchen's avatar
      ipmi: fix SSIF not responding under certain cond. · 6d2555cd
      Zhang Yuchen authored
      The ipmi communication is not restored after a specific version of BMC is
      upgraded on our server.
      The ipmi driver does not respond after printing the following log:
      
          ipmi_ssif: Invalid response getting flags: 1c 1
      
      I found that after entering this branch, ssif_info->ssif_state always
      holds SSIF_GETTING_FLAGS and never return to IDLE.
      
      As a result, the driver cannot be loaded, because the driver status is
      checked during the unload process and must be IDLE in shutdown_ssif():
      
              while (ssif_info->ssif_state != SSIF_IDLE)
                      schedule_timeout(1);
      
      The process trigger this problem is:
      
      1. One msg timeout and next msg start send, and call
      ssif_set_need_watch().
      
      2. ssif_set_need_watch()->watch_timeout()->start_flag_fetch() change
      ssif_state to SSIF_GETTING_FLAGS.
      
      3. In msg_done_handler() ssif_state == SSIF_GETTING_FLAGS, if an error
      message is received, the second branch does not modify the ssif_state.
      
      4. All retry action need IS_SSIF_IDLE() == True. Include retry action in
      watch_timeout(), msg_done_handler(). Sending msg does not work either.
      SSIF_IDLE is also checked in start_next_msg().
      
      5. The only thing that can be triggered in the SSIF driver is
      watch_timeout(), after destory_user(), this timer will stop too.
      
      So, if enter this branch, the ssif_state will remain SSIF_GETTING_FLAGS
      and can't send msg, no timer started, can't unload.
      
      We did a comparative test before and after adding this patch, and the
      result is effective.
      
      Fixes: 25930707 ("ipmi: Add SMBus interface driver (SSIF)")
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarZhang Yuchen <zhangyuchen.lcr@bytedance.com>
      Message-Id: <20230412074907.80046-1-zhangyuchen.lcr@bytedance.com>
      Signed-off-by: default avatarCorey Minyard <minyard@acm.org>
      6d2555cd
  2. 04 Apr, 2023 1 commit
  3. 16 Mar, 2023 1 commit
  4. 02 Mar, 2023 2 commits
  5. 27 Feb, 2023 13 commits
    • Linus Torvalds's avatar
      Merge tag 'arm-fixes-6.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · 98281842
      Linus Torvalds authored
      Pull ARM SoC fixes from Arnd Bergmann:
       "A few bugfixes already came up during the merge window. Samsung,
        ASpeed, Spear have minor DT changes, in case of Samsung this fixes a
        regression compared to earlier versions.
      
        Bartosz takes over as the primary maintainer for the TI DaVinci
        platform, and we get a few last minute defconfig changes"
      
      * tag 'arm-fixes-6.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc:
        ARM: dts: spear320-hmi: correct STMPE GPIO compatible
        ARM: dts: aspeed: p10bmc: Update battery node name
        arm64: defconfig: Add IOSCHED_BFQ to the default configs
        arm64: defconfig: Fix unintentional disablement of PCI on i.MX
        ARM: dts: exynos: correct TMU phandle in Odroid XU3 family
        ARM: dts: exynos: correct TMU phandle in Odroid HC1
        ARM: dts: exynos: correct TMU phandle in Odroid XU
        ARM: dts: exynos: correct TMU phandle in Exynos5250
        ARM: dts: exynos: correct TMU phandle in Exynos4210
        ARM: dts: exynos: correct TMU phandle in Exynos4
        MAINTAINERS: make me the maintainer of DaVinci platforms
      98281842
    • Linus Torvalds's avatar
      Merge tag 'soc-drivers-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · 11c70529
      Linus Torvalds authored
      Pull ARM SoC driver updates from Arnd Bergmann:
       "As usual, there are lots of minor driver changes across SoC platforms
        from NXP, Amlogic, AMD Zynq, Mediatek, Qualcomm, Apple and Samsung.
        These usually add support for additional chip variations in existing
        drivers, but also add features or bugfixes.
      
        The SCMI firmware subsystem gains a unified raw userspace interface
        through debugfs, which can be used for validation purposes.
      
        Newly added drivers include:
      
         - New power management drivers for StarFive JH7110, Allwinner D1 and
           Renesas RZ/V2M
      
         - A driver for Qualcomm battery and power supply status
      
         - A SoC device driver for identifying Nuvoton WPCM450 chips
      
         - A regulator coupler driver for Mediatek MT81xxv"
      
      * tag 'soc-drivers-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (165 commits)
        power: supply: Introduce Qualcomm PMIC GLINK power supply
        soc: apple: rtkit: Do not copy the reg state structure to the stack
        soc: sunxi: SUN20I_PPU should depend on PM
        memory: renesas-rpc-if: Remove redundant division of dummy
        soc: qcom: socinfo: Add IDs for IPQ5332 and its variant
        dt-bindings: arm: qcom,ids: Add IDs for IPQ5332 and its variant
        dt-bindings: power: qcom,rpmpd: add RPMH_REGULATOR_LEVEL_LOW_SVS_L1
        firmware: qcom_scm: Move qcom_scm.h to include/linux/firmware/qcom/
        MAINTAINERS: Update qcom CPR maintainer entry
        dt-bindings: firmware: document Qualcomm SM8550 SCM
        dt-bindings: firmware: qcom,scm: add qcom,scm-sa8775p compatible
        soc: qcom: socinfo: Add Soc IDs for IPQ8064 and variants
        dt-bindings: arm: qcom,ids: Add Soc IDs for IPQ8064 and variants
        soc: qcom: socinfo: Add support for new field in revision 17
        soc: qcom: smd-rpm: Add IPQ9574 compatible
        soc: qcom: pmic_glink: remove redundant calculation of svid
        soc: qcom: stats: Populate all subsystem debugfs files
        dt-bindings: soc: qcom,rpmh-rsc: Update to allow for generic nodes
        soc: qcom: pmic_glink: add CONFIG_NET/CONFIG_OF dependencies
        soc: qcom: pmic_glink: Introduce altmode support
        ...
      11c70529
    • Linus Torvalds's avatar
      Merge tag 'fuse-update-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse · d40b2f4c
      Linus Torvalds authored
      Pull fuse updates from Miklos Szeredi:
      
       - Fix regression in fileattr permission checking
      
       - Fix possible hang during PID namespace destruction
      
       - Add generic support for request extensions
      
       - Add supplementary group list extension
      
       - Add limited support for supplying supplementary groups in create
         requests
      
       - Documentation fixes
      
      * tag 'fuse-update-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse:
        fuse: add inode/permission checks to fileattr_get/fileattr_set
        fuse: fix all W=1 kernel-doc warnings
        fuse: in fuse_flush only wait if someone wants the return code
        fuse: optional supplementary group in create requests
        fuse: add request extension
      d40b2f4c
    • Linus Torvalds's avatar
      Merge tag 'mmc-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc · da15efe1
      Linus Torvalds authored
      Pull MMC updates from Ulf Hansson:
       "MMC core:
         - Extend slot-gpio to be used for host specific card detect interrupts
         - Align to common busy polling behaviour for mmc ioctls
         - Suggest the BFQ I/O scheduler to be built along with MMC/SD support
         - Add devm_mmc_alloc_host() to enable further cleanups in host drivers
      
        MMC host:
         - atmel-mci: Fix race condition when stopping/starting a command
         - dw_mmc-starfive: Add new driver to support the StarFive JH7110 variant
         - dw_mmc-rockchip: Add support for the RK3588 variant
         - jz4740: Add support for the vqmmc power supply
         - meson-gx: Convert the DT bindings to the dt-schema
         - meson-gx: Enable the platform interrupt to be used for card detect
         - moxart: Set the supported maximum request/block/segment sizes
         - renesas,sdhi: Add support for the RZ/V2M variants
         - sdhci: Rework code to drop SDHCI_QUIRK_MISSING_CAPS
         - sdhci-esdhc-imx: Improve tuning logic support
         - sdhci-msm: Add support for the IPQ5332 and the IPQ9574 variants
         - sdhci-of-dwcmshc: Add the missing device table IDs for acpi
         - sdhci-of-dwcmshc: Improve clock support for the Rockchip variant
         - sdhci-of-dwcmshc: Enable support of V4 host for the BlueField-3 variant
         - sdhci-pxav2: Add support for the PXA168 V1 variant
         - sdhci-pxav2: Add support for SDIO IRQs for the PXA168 V1 variant
         - uniphier-sd: Add support for SD UHS-I speed modes"
      
      * tag 'mmc-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc: (59 commits)
        mmc: meson-gx: Use devm_platform_get_and_ioremap_resource()
        mmc: meson-gx: constify member data of struct meson_host
        mmc: meson-gx: use devm_clk_get_enabled() for core clock
        mmc: core: fix return value check in devm_mmc_alloc_host()
        dt-bindings: mmc: meson-gx: fix interrupt binding
        mmc: meson-gx: support platform interrupt as card detect interrupt
        dt-bindings: mmc: meson-gx: support specifying cd interrupt
        mmc: core: support setting card detect interrupt from drivers
        mmc: starfive: Add sdio/emmc driver support
        dt-bindings: mmc: Add StarFive MMC module
        dt-bindings: mmc: sdhci-msm: Allow 1 icc path
        dt-bindings: mmc: rockchip-dw-mshc: Add RK3588 compatible string
        mmc: core: Align to common busy polling behaviour for mmc ioctls
        dt-bindings: mmc: Add resets property to cadence SDHCI binding
        mmc: meson-gx: remove meson_mmc_get_cd
        mmc: moxart: set maximum request/block/segment sizes
        mmc: sdhci-brcmstb: Use devm_platform_get_and_ioremap_resource()
        mmc: sdhci-of-dwcmshc: add the missing device table IDs for acpi
        mmc: sdhci-of-dwcmshc: Update DLL and pre-change delay for rockchip platform
        mmc: jz4740: Add support for vqmmc power supply
        ...
      da15efe1
    • Linus Torvalds's avatar
      Merge tag 'dma-mapping-6.3-2022-02-27' of git://git.infradead.org/users/hch/dma-mapping · 6ffb575b
      Linus Torvalds authored
      Pull dma-mapping updates from Christoph Hellwig:
      
       - remove a not very useful and now unused swiotlb API (Christoph
         Hellwig)
      
       - fix a section mismatch (Randy Dunlap)
      
      * tag 'dma-mapping-6.3-2022-02-27' of git://git.infradead.org/users/hch/dma-mapping:
        swiotlb: mark swiotlb_memblock_alloc() as __init
        swiotlb: remove swiotlb_max_segment
      6ffb575b
    • Linus Torvalds's avatar
      Merge tag 'memblock-v6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock · 5a6d9249
      Linus Torvalds authored
      Pull memblock updates from Mike Rapoport:
       "Small optimizations:
      
         - fix off-by-one in the check whether memblock_add_range() should
           reallocate memory to accommodate newly inserted range
      
         - check only for relevant regions in memblock_merge_regions() rather
           than swipe over the entire array"
      
      * tag 'memblock-v6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock:
        memblock: Avoid useless checks in memblock_merge_regions().
        memblock: Make a boundary tighter in memblock_add_range().
      5a6d9249
    • Linus Torvalds's avatar
      Merge tag 'm68knommu-for-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu · 02a737f4
      Linus Torvalds authored
      Pull m68knommu updates from Greg Ungerer:
      
       - spelling fixes
      
      * tag 'm68knommu-for-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu:
        m68k: nommu: Fix misspellings of "DragonEngine"
        m68k: nommu: Fix misspellings of "uCdimm"
      02a737f4
    • Linus Torvalds's avatar
      Merge tag 'csky-for-linus-6.3' of https://github.com/c-sky/csky-linux · b6cc7a04
      Linus Torvalds authored
      Pull csky update from Guo Ren:
      
       - Optimize delay accuracy
      
      * tag 'csky-for-linus-6.3' of https://github.com/c-sky/csky-linux:
        csky: delay: Add function alignment
      b6cc7a04
    • Arnd Bergmann's avatar
      Merge tag 'samsung-dt-fixes-6.3' of... · 9f79762e
      Arnd Bergmann authored
      Merge tag 'samsung-dt-fixes-6.3' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux into arm/fixes
      
      Fixes for Samsung DTS ARM for v6.3
      
      Thermal framework commit 3fd6d6e2 ("thermal/of: Rework the thermal
      device tree initialization") merged in v6.1-rc1, exposed
      misconfiguration of Exynos Thermal Monitoring Unit (TMU) thermal-sensors
      property in DTS.  This misconfiguration in DTS was working fine before
      that Thermal commit, but now all thermal zones fail to register except
      the first one (CPU).  This can lead to missing cooling of a board and
      eventually either emergency shutdown or damaged board.
      
      * tag 'samsung-dt-fixes-6.3' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux:
        ARM: dts: exynos: correct TMU phandle in Odroid XU3 family
        ARM: dts: exynos: correct TMU phandle in Odroid HC1
        ARM: dts: exynos: correct TMU phandle in Odroid XU
        ARM: dts: exynos: correct TMU phandle in Exynos5250
        ARM: dts: exynos: correct TMU phandle in Exynos4210
        ARM: dts: exynos: correct TMU phandle in Exynos4
      
      Link: https://lore.kernel.org/r/20230221095337.9453-1-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      9f79762e
    • Krzysztof Kozlowski's avatar
      ARM: dts: spear320-hmi: correct STMPE GPIO compatible · 33a0c1b8
      Krzysztof Kozlowski authored
      The compatible is st,stmpe-gpio.
      
      Fixes: e2eb6918 ("ARM: SPEAr320: DT: Add SPEAr 320 HMI board support")
      Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
      Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Link: https://lore.kernel.org/r/20230225162237.40242-1-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      33a0c1b8
    • Eddie James's avatar
      ARM: dts: aspeed: p10bmc: Update battery node name · a8cef541
      Eddie James authored
      The ADC sensor for the battery needs to be named "iio-hwmon" for
      compatibility with user space applications.
      Signed-off-by: default avatarEddie James <eajames@linux.ibm.com>
      Link: https://lore.kernel.org/r/20230202152759.67069-1-eajames@linux.ibm.com
      Fixes: bf1914e2 ("ARM: dts: aspeed: p10bmc: Fix ADC iio-hwmon battery node name")
      Signed-off-by: default avatarJoel Stanley <joel@jms.id.au>
      Link: https://lore.kernel.org/r/20230221003352.1218797-1-joel@jms.id.auSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      a8cef541
    • Linus Walleij's avatar
      arm64: defconfig: Add IOSCHED_BFQ to the default configs · e505e6bf
      Linus Walleij authored
      ARM64 systems are often memory constrained and more often than not
      use slow single-channel storage such as flash memory or MMC/SD-cards.
      For any interactive systems (such as mobile phones, tablets,
      chromebooks...) the BFQ I/O scheduler will be desireable.
      
      Make sure the BFQ I/O scheduler is available on these systems.
      
      ARM (32), Loongarch, MIPS, m68k, UM and S390 has also enabled BFQ in
      their defconfigs, cf commit b495dfed
      "um: Cleanup CONFIG_IOSCHED_CFQ" where the motivation is that
      it replaces the former CFQ scheduler.
      
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Will Deacon <will@kernel.org>
      Cc: Paolo Valente <paolo.valente@linaro.org>
      Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
      Cc: Ulf Hansson <ulf.hansson@linaro.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Link: https://lore.kernel.org/r/20230224135230.2295826-1-linus.walleij@linaro.orgSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      e505e6bf
    • Mark Brown's avatar
      arm64: defconfig: Fix unintentional disablement of PCI on i.MX · 0cd5780e
      Mark Brown authored
      A recent update to support PCI endpoint mode on i.MX platforms
      unintentionally disabled PCI host support for i.MX in defconfig.  The
      existing PCI_IMX6 was made a hidden option, selected by new options
      PCI_IMX6_HOST (for the existing support) and PCI_IMX6_EP (for the
      endpoint mode), but there has been no corresponding update to defconfig
      so the PCI_IMX6 ends up getting disabled.  Switch defconfig to
      PCI_IMX6_HOST to preserve the existing functionality.
      
      Fixes: 75c2f26d ("PCI: imx6: Add i.MX PCIe EP mode support")
      Reported-by: default avatar"kernelci.org bot" <bot@kernelci.org>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      Reviewed-by: default avatarRichard Zhu <hongxing.zhu@nxp.com>
      Link: https://lore.kernel.org/r/20230220-imx-pci-defconfig-v1-1-2210cf08340e@kernel.orgSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      0cd5780e
  6. 26 Feb, 2023 22 commits
    • Linus Torvalds's avatar
      Merge tag 'rproc-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux · f3a2439f
      Linus Torvalds authored
      Pull remoteproc updates from Bjorn Andersson:
      
       - Support for PRU clients to acquire a control reference to the PRU
         instances is introduced, and the PRU now allows specifying
         firmware-name in Devicetree. sysfs is requested to be read-only when
         the remoteproc instance is consumed by another kernel driver
      
       - Support for the C7xv DSP on AM62A SoC is introduced
      
       - The Devicetree binding for the Qualcomm PAS devices are split up in
         multiple files, to better account for the differences in resources
         between them. A number of missing Devicetree bindings are added, and
         the Qualcomm WCNSS binding is converted to YAML
      
       - A few cleanups are introduced for the Mediatek SCP driver. And a
         sanity check of the firmware image is introduced in the Mediatek
         driver
      
       - For Qualcomm SC7280 ADSP support is added, MSM8953 gains ADSP and
         modem support, SM6115 and SM8550 gains ADSP, CDSP and modem support,
         and support for pronto v3 support (used on e.g. MSM8953) is added
      
       - The Qualcomm modem remoteproc driver is modified to use a no-map
         reserved-memory region for it's authentication metadata, in order to
         avoid fatal security violations caused by accesses from Linux during
         the authentication process
      
       - Support for separate loading of a Devicetree blob is added to the PAS
         driver, and support for the PAS driver to carve out DSM memory for
         the modem is added as well
      
       - The Qualcomm ADSP remoteproc driver gains support for mapping memory
         into specific range using the IOMMU. The sysmon driver is
         transitioned to strlcpy()
      
      * tag 'rproc-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux: (69 commits)
        dt-bindings: mailbox: qcom,apcs-kpss-global: drop mbox-names from example
        dt-bindings: remoteproc: qcom,glink-edge: correct label description
        dt-bindings: remoteproc: qcom,glink-rpm-edge: convert to DT schema
        dt-bindings: remoteproc: qcom,sm8550-pas: correct power domains
        remoteproc: qcom_q6v5_pas: enable sm8550 adsp & cdsp autoboot
        dt-bindings: remoteproc: qcom: Add sm6115 pas yaml file
        remoteproc: qcom: pas: Add sm6115 remoteprocs
        remoteproc: qcom: pas: Adjust the phys addr wrt the mem region
        remoteproc: qcom: fix sparse warnings
        remoteproc: qcom: replace kstrdup with kstrndup
        remoteproc: mediatek: Check the SCP image format
        remoteproc: qcom_q6v5_mss: Use a carveout to authenticate modem headers
        Revert "remoteproc: qcom_q6v5_mss: map/unmap metadata region before/after use"
        dt-bindings: remoteproc: qcom,sc7280-mss-pil: Update memory-region
        dt-bindings: remoteproc: qcom,sc7180-mss-pil: Update memory-region
        dt-bindings: remoteproc: qcom,msm8996-mss-pil: Update memory region
        dt-bindings: remoteproc: qcom,q6v5: Move MSM8996 to schema
        remoteproc: qcom_q6v5_pas: add sm8550 adsp, cdsp & mpss compatible & data
        remoteproc: qcom_q6v5_pas: add support for assigning memory to firmware
        remoteproc: qcom_q6v5_pas: add support for dtb co-firmware loading
        ...
      f3a2439f
    • Linus Torvalds's avatar
      Merge tag 'rpmsg-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux · cc38a46d
      Linus Torvalds authored
      Pull rpmsg updates from Bjorn Andersson:
      
       - rpmsg ctrl and char driver locking is ensure ordering in cases where
         the communication link is being torn down in parallel with calls to
         open(2) or poll(2)
      
       - The glink driver is refactored, to move rpm/smem-specifics out of the
         common logic and better suite further improvements, such as
         transports without a mailbox controller. The handling of remoteproc
         shutdown is improved, to fail clients immediately instead of having
         them to wait for timeouts. A driver_override memory leak is corrected
         and a few spelling improvements are introduced
      
       - glink_ssr is transitioned off strlcpy() and "gpr" is added as a valid
         child node of the glink-edge DT binding
      
      * tag 'rpmsg-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux:
        rpmsg: glink: Release driver_override
        rpmsg: glink: Avoid infinite loop on intent for missing channel
        rpmsg: glink: Fix GLINK command prefix
        rpmsg: glink: Fix spelling of peek
        rpmsg: glink: Cancel pending intent requests at removal
        rpmsg: glink: Fail qcom_glink_tx() once remove has been initiated
        rpmsg: glink: Move irq and mbox handling to transports
        rpmsg: glink: rpm: Wrap driver context
        rpmsg: glink: smem: Wrap driver context
        rpmsg: glink: Extract tx kick operation
        rpmsg: glink: Include types in qcom_glink_native.h
        rpmsg: ctrl: Add lock to rpmsg_ctrldev_remove
        rpmsg: char: Add lock to avoid race when rpmsg device is released
        rpmsg: move from strlcpy with unused retval to strscpy
        dt-bindings: remoteproc: qcom,glink-edge: add GPR node
      cc38a46d
    • Linus Torvalds's avatar
      Merge tag 'hwlock-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux · 9b0b0dd8
      Linus Torvalds authored
      Pull hwspinlock updates from Bjorn Andersson:
       "This updates the sun6i DT binding to allow (and require) #hwlock-cells
        and makes use of device_match_of_node() to slight clean up the
        condition in of_hwspin_lock_get_id()"
      
      * tag 'hwlock-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux:
        dt-bindings: hwlock: sun6i: Add #hwlock-cells to example
        dt-bindings: hwlock: sun6i: Add missing #hwlock-cells
        hwspinlock: Use device_match_of_node()
      9b0b0dd8
    • Linus Torvalds's avatar
      Merge tag 'kbuild-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild · 498a1cf9
      Linus Torvalds authored
      Pull Kbuild updates from Masahiro Yamada:
      
       - Change V=1 option to print both short log and full command log
      
       - Allow V=1 and V=2 to be combined as V=12
      
       - Make W=1 detect wrong .gitignore files
      
       - Tree-wide cleanups for unused command line arguments passed to Clang
      
       - Stop using -Qunused-arguments with Clang
      
       - Make scripts/setlocalversion handle only correct release tags instead
         of any arbitrary annotated tag
      
       - Create Debian and RPM source packages without cleaning the source
         tree
      
       - Various cleanups for packaging
      
      * tag 'kbuild-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: (74 commits)
        kbuild: rpm-pkg: remove unneeded KERNELRELEASE from modules/headers_install
        docs: kbuild: remove description of KBUILD_LDS_MODULE
        .gitattributes: use 'dts' diff driver for *.dtso files
        kbuild: deb-pkg: improve the usability of source package
        kbuild: deb-pkg: fix binary-arch and clean in debian/rules
        kbuild: tar-pkg: use tar rules in scripts/Makefile.package
        kbuild: make perf-tar*-src-pkg work without relying on git
        kbuild: deb-pkg: switch over to source format 3.0 (quilt)
        kbuild: deb-pkg: make .orig tarball a hard link if possible
        kbuild: deb-pkg: hide KDEB_SOURCENAME from Makefile
        kbuild: srcrpm-pkg: create source package without cleaning
        kbuild: rpm-pkg: build binary packages from source rpm
        kbuild: deb-pkg: create source package without cleaning
        kbuild: add a tool to list files ignored by git
        Documentation/llvm: add Chimera Linux, Google and Meta datacenters
        setlocalversion: use only the correct release tag for git-describe
        setlocalversion: clean up the construction of version output
        .gitignore: ignore *.cover and *.mbx
        kbuild: remove --include-dir MAKEFLAG from top Makefile
        kbuild: fix trivial typo in comment
        ...
      498a1cf9
    • Linus Torvalds's avatar
      Merge tag 'media/v6.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media · 4b8c673b
      Linus Torvalds authored
      Pull media updates from Mauro Carvalho Chehab:
      
       - Removal of several VB1-only deprecated drivers: cpia2, fsl-viu, meye,
         stkwebcam, tm6000, vpfe_capture and zr364xx
      
       - saa7146 recovered from staging/deprecated. We opted to give ti a
         chance, and, instead of deprecating it, the intention is to write
         patches migrating it from VB1 to VB2.
      
       - av7110 returned from staging/deprecated/ to staging/ as we're not
         planning on dropping it any time soon
      
       - media controller API has gained experimental support for G_ROUTING
         and streams API. No drivers use it right now. We're planning to add
         one after -rc1, giving some time to experience the API and eventually
         have changes during the next development cycle
      
       - New sensor drivers: imx296, imx415, ov8858
      
       - Atomisp had lots of changes, specially on its sensor's interface,
         making atomisp sensor drivers closer to normal sensor drivers
      
       - media controller kAPI has gained some helpers to traverse pipelines
      
       - uvcvideo now better support power line control
      
       - lots of bug fixes, cleanups and driver improvements
      
      * tag 'media/v6.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (296 commits)
        media: imx-mipi-csis: Check csis_fmt validity before use
        media: v4l2-subdev.c: clear stream field
        media: v4l2-ctrls-api.c: move ctrl->is_new = 1 to the correct line
        media: Revert "media: saa7146: deprecate hexium_gemini/orion, mxb and ttpci"
        media: Revert "media: av7110: move to staging/media/deprecated/saa7146"
        media: imx-pxp: convert to regmap
        media: imx-pxp: Use non-threaded IRQ
        media: imx-pxp: Introduce pxp_read() and pxp_write() wrappers
        media: imx-pxp: Implement frame size enumeration
        media: imx-pxp: Pass pixel format value to find_format()
        media: imx-pxp: Add media controller support
        media: imx-pxp: Don't set bus_info manually in .querycap()
        media: imx-pxp: Sort headers alphabetically
        media: imx-pxp: add support for i.MX7D
        media: imx-pxp: make data_path_ctrl0 platform dependent
        media: imx-pxp: disable LUT block
        media: imx-pxp: explicitly disable unused blocks
        media: imx-pxp: extract helper function to setup data path
        media: imx-pxp: detect PXP version
        media: dt-bindings: media: fsl-pxp: convert to yaml
        ...
      4b8c673b
    • Linus Torvalds's avatar
      Documentation: simplify and clarify DCO contribution example language · d4563201
      Linus Torvalds authored
      Long long ago, in a more innocent time, Greg wrote the clarification for
      how the DCO should work and that you couldn't make anonymous
      contributions, because the sign-off needed to be something we could
      check back with.
      
      It was 2006, and nobody reacted to the wording, the whole Facebook 'real
      name' controversy was a decade in the future, and nobody even thought
      about it.  And despite the language, we've always accepted nicknames and
      that language was never meant to be any kind of exclusionary wording.
      
      In fact, even when it became a discussion in other adjacent projects,
      apparently nobody even thought to just clarify the language in the
      kernel docs, and instead we had projects like the CNCF that had long
      discussions about it, and wrote their own clarifications [1] of it.
      
      Just simplify the wording to the point where it shouldn't be causing
      unnecessary angst and pain, or scare away people who go by preferred
      naming.
      
      Link: https://github.com/cncf/foundation/blob/659fd32c86dc/dco-guidelines.md [1]
      Fixes: af45f32d ("We can not allow anonymous contributions to the kernel")
      Acked-by: default avatarGreg KH <gregkh@linuxfoundation.org>
      Acked-by: default avatarMichael Dolan <mdolan@linuxfoundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      d4563201
    • Marek Vasut's avatar
      media: imx-mipi-csis: Check csis_fmt validity before use · 3e62aba8
      Marek Vasut authored
      The find_csis_format() may return NULL in case supported format is not
      found, check the return value of find_csis_format() before using the
      result to avoid NULL pointer dereference.
      
      Fixes: 11927d0f ("media: imx-mipi-csis: Use V4L2 subdev active state")
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
      3e62aba8
    • Hans Verkuil's avatar
      media: v4l2-subdev.c: clear stream field · 68e87ebf
      Hans Verkuil authored
      Both userspace and kernelspace can pass structs with an uninitialized
      'stream' field. Since the check_state() function checks for a non-zero
      stream field, suddenly these calls will fails with -EINVAL.
      
      So check in the wrapper functions in v4l2-subdev.c (which are used by both
      the kernel and userspace API) if V4L2_SUBDEV_FL_STREAMS is set, and if not,
      then zero the stream field.
      
      Currently no drivers set V4L2_SUBDEV_FL_STREAMS, so the stream field will
      always be set to 0.
      
      This patch might well be reverted in the future when streams support is
      fully enabled and we finalized the userspace API support for this feature.
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
      68e87ebf
    • Masahiro Yamada's avatar
      kbuild: rpm-pkg: remove unneeded KERNELRELEASE from modules/headers_install · 7adf14d8
      Masahiro Yamada authored
      This is a temporary workaround added by commit f6e09b07 ("kbuild:
      do not put .scmversion into the source tarball").
      
      Since commit 1cb86b6c ("kbuild: save overridden KERNELRELEASE in
      include/config/kernel.release"), the user-supplied KERNELRELEASE is
      saved in include/config/kernel.release.
      
      Remove it again.
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
      7adf14d8
    • Sangmoon Kim's avatar
      docs: kbuild: remove description of KBUILD_LDS_MODULE · 29cbe6ec
      Sangmoon Kim authored
      Commit 596b0474 ("kbuild: preprocess module linker script")
      removes KBUILD_LDS_MODULE, yet the variable is still mentioned in
      kbuild documentation. Remove the reference to the now-nonexistent
      variable.
      Signed-off-by: default avatarSangmoon Kim <sangmoon.kim@samsung.com>
      Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      29cbe6ec
    • Masahiro Yamada's avatar
      .gitattributes: use 'dts' diff driver for *.dtso files · ae41e0e4
      Masahiro Yamada authored
      Now we have the third extension for DT source files (overlay).
      Give the diff=dts attribute to *.dtso as well.
      
      While I was here, I merged *.c and *.o into *.[ch] and added the
      SPDX-License-Identifier.
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      ae41e0e4
    • Masahiro Yamada's avatar
      kbuild: deb-pkg: improve the usability of source package · 3ab18a62
      Masahiro Yamada authored
      Improve the source package support in case the dpkg-buildpackage is
      directly used to build binary packages.
      
      For cross-compiling, you can set CROSS_COMPILE via the environment
      variable, but it is better to set it automatically - set it to
      ${DEB_HOST_GNU_TYPE}- if we are cross-compiling but not from the top
      Makefile.
      
      The generated source package may be carried to a different build
      environment, which may have a different compiler installed.
      Run olddefconfig first to set new CONFIG options to their default
      values without prompting.
      
      Take KERNELRELEASE and KBUILD_BUILD_VERSION from the version field of
      debian/changelog in case it is updated afterwards.
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      3ab18a62
    • Masahiro Yamada's avatar
      kbuild: deb-pkg: fix binary-arch and clean in debian/rules · c5bf2efb
      Masahiro Yamada authored
      The clean target needs ARCH=${ARCH} to clean up the tree for the correct
      architecture. 'make (bin)deb-pkg' skips cleaning, but the preclean hook
      may be executed if dpkg-buildpackage is directly used.
      
      The binary-arch target does not need KERNELRELEASE because it is not
      updated during the installation. KBUILD_BUILD_VERSION is not needed
      either because binary-arch does not build vmlinux.
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      c5bf2efb
    • Masahiro Yamada's avatar
      kbuild: tar-pkg: use tar rules in scripts/Makefile.package · 1fc90958
      Masahiro Yamada authored
      Use %.tar, %.tar.gz, %.tar.bz2, %.tar.xz, %.tar.zst rules in
      scripts/Makefile.package.
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      1fc90958
    • Masahiro Yamada's avatar
      kbuild: make perf-tar*-src-pkg work without relying on git · e0ca1674
      Masahiro Yamada authored
      Currently, perf-tar*-src-pkg only uses 'git archive', but it is better
      to make it work without relying on git.
      
      The file, HEAD, which saves the commit hash, will be included in the
      tarball only when the source tree is managed by git. The git tree is
      more precisely checked; it has been copied from scripts/setlocalversion.
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      e0ca1674
    • Masahiro Yamada's avatar
      kbuild: deb-pkg: switch over to source format 3.0 (quilt) · e7853995
      Masahiro Yamada authored
      Change the source format from "1.0" to "3.0 (quilt)" because it works
      more cleanly.
      
      All files except .config and debian/ go into the orig tarball.
      Add a single patch, debian/patches/config, and delete the ugly
      extend-diff-ignore patterns.
      
      The debian tarball will be compressed into *.debian.tar.xz by default.
      If you like to use a different compression mode, you can pass the
      command line option, DPKG_FLAGS=-Zgzip, for example.
      
      The orig tarball only supports gzip for now. The combination of
      gzip and xz is somewhat clumsy, but it is not a practical problem.
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Reviewed-by: default avatarNicolas Schier <nicolas@fjasle.eu>
      e7853995
    • Masahiro Yamada's avatar
      kbuild: deb-pkg: make .orig tarball a hard link if possible · b44aa8c9
      Masahiro Yamada authored
      If '..' belongs to the same filesystem, create a hard link instead of
      a copy. In most cases, you can save disk space.
      
      I do not want to use 'mv' because keeping linux.tar.gz is useful to
      avoid unneeded rebuilding of the tarball.
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Reviewed-by: default avatarNicolas Schier <nicolas@fjasle.eu>
      b44aa8c9
    • Masahiro Yamada's avatar
      kbuild: deb-pkg: hide KDEB_SOURCENAME from Makefile · 6eabebb1
      Masahiro Yamada authored
      scripts/Makefile.package does not need to know the value of
      KDEB_SOURCENAME because the source name can be taken from
      debian/changelog by using dpkg-parsechangelog.
      
      Move the default of KDEB_SOURCENAME (i.e. linux-upstream) to
      scripts/package/mkdebian.
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Reviewed-by: default avatarNicolas Schier <nicolas@fjasle.eu>
      6eabebb1
    • Masahiro Yamada's avatar
      kbuild: srcrpm-pkg: create source package without cleaning · 6fc91752
      Masahiro Yamada authored
      If you run 'make (src)rpm-pkg', all objects are lost due to 'make clean',
      which makes the incremental builds impossible.
      
      Instead of cleaning, pass the exclude list to tar's --exclude-from
      option.
      
      Previously, the .config was contained in the source tarball.
      
      With this commit, the source rpm consists of separate linux.tar.gz
      and .config.
      
      Remove stale comments. Now, 'make (src)rpm-pkg' works with O= option.
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      6fc91752
    • Masahiro Yamada's avatar
      kbuild: rpm-pkg: build binary packages from source rpm · 1ec9bb70
      Masahiro Yamada authored
      The build rules of rpm-pkg and srcrpm-pkg are almost the same.
      Remove the code duplication.
      
      Change rpm-pkg to build binary packages from the source package generated
      by srcrpm-pkg.
      
      This changes the output directory of the srpm generated by 'make rpm-pkg'
      because srcrpm-pkg overrides _srcrpmdir.
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      1ec9bb70
    • Masahiro Yamada's avatar
      kbuild: deb-pkg: create source package without cleaning · 7bf4582d
      Masahiro Yamada authored
      If you run 'make deb-pkg', all objects are lost due to 'make clean',
      which makes the incremental builds impossible.
      
      Instead of cleaning, pass the exclude list to tar's --exclude-from
      option.
      
      Previously, *.diff.gz contained some check-in files such as
      .clang-format, .cocciconfig.
      
      With this commit, *.diff.gz will only contain the .config and debian/.
      The other source files will go into the .orig tarball.
      
      linux.tar.gz is rebuilt only when the source files that would go into
      the tarball are changed.
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Reviewed-by: default avatarNicolas Schier <nicolas@fjasle.eu>
      7bf4582d
    • Liam R. Howlett's avatar
      mm/mprotect: Fix successful vma_merge() of next in do_mprotect_pkey() · 2fcd07b7
      Liam R. Howlett authored
      If mprotect_fixup() successfully calls vma_merge() and replaces vma and
      the next vma, then the tmp variable in the do_mprotect_pkey() is not
      updated to point to the new vma end.  This results in the loop detecting
      a gap between VMAs that does not exist.
      
      Fix the faulty value of tmp by setting it to the end location of the vma
      iterator at the end of the loop.
      
      Link: https://lkml.kernel.org/r/20230224212055.1786100-1-Liam.Howlett@oracle.com
      Fixes: 2286a691 ("mm: change mprotect_fixup to vma iterator")
      Link: https://lore.kernel.org/linux-mm/20230223120407.729110a6ecd1416ac59d9cb0@linux-foundation.org/Signed-off-by: default avatarLiam R. Howlett <Liam.Howlett@oracle.com>
      Reported-by: default avatarBert Karwatzki <spasswolf@web.de>
      Link: https://bugzilla.kernel.org/show_bug.cgi?id=217061Tested-by: default avatarBert Karwatzki <spasswolf@web.de>
      Reported-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      Link: https://lore.kernel.org/linux-mm/CAHk-=wjFmVL7NiuxL54qLkoabni_yD-oF9=dpDgETtdsiCbhUg@mail.gmail.com/Tested-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      2fcd07b7