Skip to content
  1. Jul 01, 2021
    • Christoph Hellwig's avatar
      loop: reorder loop_exit · 8b52d8be
      Christoph Hellwig authored
      
      
      Unregister the misc and blockdevice first to prevent further access,
      and only then iterate to remove the devices.
      
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      Reviewed-by: default avatarChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
      Link: https://lore.kernel.org/r/20210623145908.92973-2-hch@lst.de
      
      
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      8b52d8be
    • Christoph Hellwig's avatar
      mmc: initialized disk->minors · 1033d103
      Christoph Hellwig authored
      
      
      Fix a let hunk from the blk_mq_alloc_disk conversion.
      
      Fixes: 281ea6a5bfdc ("mmc: switch to blk_mq_alloc_disk")
      Reported-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      Tested-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
      Acked-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
      Link: https://lore.kernel.org/r/20210621080144.3655131-1-hch@lst.de
      
      
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      1033d103
    • Christoph Hellwig's avatar
      mmc: switch to blk_mq_alloc_disk · 607d968a
      Christoph Hellwig authored
      
      
      Use the blk_mq_alloc_disk to allocate the request_queue and gendisk
      together.
      
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      Reviewed-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
      Link: https://lore.kernel.org/r/20210616053934.880951-3-hch@lst.de
      
      
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      607d968a
    • Christoph Hellwig's avatar
      mmc: remove an extra blk_{get,put}_queue pair · 249cda33
      Christoph Hellwig authored
      
      
      The gendisk already acquires a reference to the queue when add_disk
      is called, which dropped on put_disk.  So remove the superflous
      extra refcounting.
      
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      Reviewed-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
      Link: https://lore.kernel.org/r/20210616053934.880951-2-hch@lst.de
      
      
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      249cda33
    • Prasanna Kumar Kalever's avatar
      nbd: provide a way for userspace processes to identify device backends · 6497ef8d
      Prasanna Kumar Kalever authored
      
      
      Problem:
      On reconfigure of device, there is no way to defend if the backend
      storage is matching with the initial backend storage.
      
      Say, if an initial connect request for backend "pool1/image1" got
      mapped to /dev/nbd0 and the userspace process is terminated. A next
      reconfigure request within NBD_ATTR_DEAD_CONN_TIMEOUT is allowed to
      use /dev/nbd0 for a different backend "pool1/image2"
      
      For example, an operation like below could be dangerous:
      
      $ sudo rbd-nbd map --try-netlink rbd-pool/ext4-image
      /dev/nbd0
      $ sudo blkid /dev/nbd0
      /dev/nbd0: UUID="bfc444b4-64b1-418f-8b36-6e0d170cfc04" TYPE="ext4"
      $ sudo pkill -9 rbd-nbd
      $ sudo rbd-nbd attach --try-netlink --device /dev/nbd0 rbd-pool/xfs-image
      /dev/nbd0
      $ sudo blkid /dev/nbd0
      /dev/nbd0: UUID="d29bf343-6570-4069-a9ea-2fa156ced908" TYPE="xfs"
      
      Solution:
      Provide a way for userspace processes to keep some metadata to identify
      between the device and the backend, so that when a reconfigure request is
      made, we can compare and avoid such dangerous operations.
      
      With this solution, as part of the initial connect request, backend
      path can be stored in the sysfs per device config, so that on a reconfigure
      request it's easy to check if the backend path matches with the initial
      connect backend path.
      
      Please note, ioctl interface to nbd will not have these changes, as there
      won't be any reconfigure.
      
      Signed-off-by: default avatarPrasanna Kumar Kalever <prasanna.kalever@redhat.com>
      Reviewed-by: default avatarXiubo Li <xiubli@redhat.com>
      Reviewed-by: default avatarMing Lei <ming.lei@redhat.com>
      Link: https://lore.kernel.org/r/20210429102828.31248-1-prasanna.kalever@redhat.com
      
      
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      6497ef8d
    • Christoph Hellwig's avatar
      ubd: use blk_mq_alloc_disk and blk_cleanup_disk · 35efb594
      Christoph Hellwig authored
      
      
      Use blk_mq_alloc_disk and blk_cleanup_disk to simplify the gendisk and
      request_queue allocation.
      
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      Link: https://lore.kernel.org/r/20210614060759.3965724-3-hch@lst.de
      
      
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      35efb594
    • Christoph Hellwig's avatar
      ubd: remove the code to register as the legacy IDE driver · 7eb90f7e
      Christoph Hellwig authored
      
      
      With the legacy IDE driver long deprecated, and modern userspace being
      much more flexible about dev_t assignments there is no reason to fake
      a registration as the legacy IDE driver in ubd.  This registeration
      is a little problematic as it registers the same request_queue for
      multiple gendisks, so just remove it.
      
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      Acked-By: default avatarAnton Ivanov <anton.ivanov@cambridgegreys.com>
      Link: https://lore.kernel.org/r/20210614060759.3965724-2-hch@lst.de
      
      
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      7eb90f7e
    • Christoph Hellwig's avatar
      2f43dbf3
    • Christoph Hellwig's avatar
      mtip32xx: use blk_mq_alloc_disk and blk_cleanup_disk · cc25592c
      Christoph Hellwig authored
      
      
      Use blk_mq_alloc_disk and blk_cleanup_disk to simplify the gendisk and
      request_queue allocation.
      
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      Link: https://lore.kernel.org/r/20210614060343.3965416-3-hch@lst.de
      
      
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      cc25592c
    • Christoph Hellwig's avatar
      mtip32xx: simplify sysfs setup · d2efa81d
      Christoph Hellwig authored
      
      
      Pass the driver specific attributes directly to device_add_disk instead
      of manually creating them after the disk registration.
      
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      Link: https://lore.kernel.org/r/20210614060343.3965416-2-hch@lst.de
      
      
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      d2efa81d
    • Linus Torvalds's avatar
      Merge tag 'for-5.14/drivers-2021-06-29' of git://git.kernel.dk/linux-block · 44046219
      Linus Torvalds authored
      Pull block driver updates from Jens Axboe:
       "Pretty calm round, mostly just NVMe and a bit of MD:
      
         - NVMe updates (via Christoph)
              - improve the APST configuration algorithm (Alexey Bogoslavsky)
              - look for StorageD3Enable on companion ACPI device
                (Mario Limonciello)
              - allow selecting the network interface for TCP connections
                (Martin Belanger)
              - misc cleanups (Amit Engel, Chaitanya Kulkarni, Colin Ian King,
                Christoph)
              - move the ACPI StorageD3 code to drivers/acpi/ and add quirks
                for certain AMD CPUs (Mario Limonciello)
              - zoned device support for nvmet (Chaitanya Kulkarni)
              - fix the rules for changing the serial number in nvmet
                (Noam Gottlieb)
              - various small fixes and cleanups (Dan Carpenter, JK Kim,
                Chaitanya Kulkarni, Hannes Reinecke, Wesley Sheng, Geert
                Uytterhoeven, Daniel Wagner)
      
         - MD updates (Via Song)
              - iostats rewrite (Guoqing Jiang)
              - raid5 lock contention optimization (Gal Ofri)
      
         - Fall through warning fix (Gustavo)
      
         - Misc fixes (Gustavo, Jiapeng)"
      
      * tag 'for-5.14/drivers-2021-06-29' of git://git.kernel.dk/linux-block: (78 commits)
        nvmet: use NVMET_MAX_NAMESPACES to set nn value
        loop: Fix missing discard support when using LOOP_CONFIGURE
        nvme.h: add missing nvme_lba_range_type endianness annotations
        nvme: remove zeroout memset call for struct
        nvme-pci: remove zeroout memset call for struct
        nvmet: remove zeroout memset call for struct
        nvmet: add ZBD over ZNS backend support
        nvmet: add Command Set Identifier support
        nvmet: add nvmet_req_bio put helper for backends
        nvmet: add req cns error complete helper
        block: export blk_next_bio()
        nvmet: remove local variable
        nvmet: use nvme status value directly
        nvmet: use u32 type for the local variable nsid
        nvmet: use u32 for nvmet_subsys max_nsid
        nvmet: use req->cmd directly in file-ns fast path
        nvmet: use req->cmd directly in bdev-ns fast path
        nvmet: make ver stable once connection established
        nvmet: allow mn change if subsys not discovered
        nvmet: make sn stable once connection was established
        ...
      44046219
    • Linus Torvalds's avatar
      Merge tag 'for-5.14/block-2021-06-29' of git://git.kernel.dk/linux-block · df668a5f
      Linus Torvalds authored
      Pull core block updates from Jens Axboe:
      
       - disk events cleanup (Christoph)
      
       - gendisk and request queue allocation simplifications (Christoph)
      
       - bdev_disk_changed cleanups (Christoph)
      
       - IO priority improvements (Bart)
      
       - Chained bio completion trace fix (Edward)
      
       - blk-wbt fixes (Jan)
      
       - blk-wbt enable/disable fix (Zhang)
      
       - Scheduler dispatch improvements (Jan, Ming)
      
       - Shared tagset scheduler improvements (John)
      
       - BFQ updates (Paolo, Luca, Pietro)
      
       - BFQ lock inversion fix (Jan)
      
       - Documentation improvements (Kir)
      
       - CLONE_IO block cgroup fix (Tejun)
      
       - Remove of ancient and deprecated block dump feature (zhangyi)
      
       - Discard merge fix (Ming)
      
       - Misc fixes or followup fixes (Colin, Damien, Dan, Long, Max, Thomas,
         Yang)
      
      * tag 'for-5.14/block-2021-06-29' of git://git.kernel.dk/linux-block: (129 commits)
        block: fix discard request merge
        block/mq-deadline: Remove a WARN_ON_ONCE() call
        blk-mq: update hctx->dispatch_busy in case of real scheduler
        blk: Fix lock inversion between ioc lock and bfqd lock
        bfq: Remove merged request already in bfq_requests_merged()
        block: pass a gendisk to bdev_disk_changed
        block: move bdev_disk_changed
        block: add the events* attributes to disk_attrs
        block: move the disk events code to a separate file
        block: fix trace completion for chained bio
        block/partitions/msdos: Fix typo inidicator -> indicator
        block, bfq: reset waker pointer with shared queues
        block, bfq: check waker only for queues with no in-flight I/O
        block, bfq: avoid delayed merge of async queues
        block, bfq: boost throughput by extending queue-merging times
        block, bfq: consider also creation time in delayed stable merge
        block, bfq: fix delayed stable merge check
        block, bfq: let also stably merged queues enjoy weight raising
        blk-wbt: make sure throttle is enabled properly
        blk-wbt: introduce a new disable state to prevent false positive by rwb_enabled()
        ...
      df668a5f
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid · df04fbe8
      Linus Torvalds authored
      Pull HID updates from Jiri Kosina:
      
       - patch series that ensures that hid-multitouch driver disables touch
         and button-press reporting on hid-mt devices during suspend when the
         device is not configured as a wakeup-source, from Hans de Goede
      
       - support for ISH DMA on Intel EHL platform, from Even Xu
      
       - support for Renoir and Cezanne SoCs, Ambient Light Sensor and Human
         Presence Detection sensor for amd-sfh driver, from Basavaraj Natikar
      
       - other assorted code cleanups and device-specific fixes/quirks
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid: (45 commits)
        HID: thrustmaster: Switch to kmemdup() when allocate change_request
        HID: multitouch: Disable event reporting on suspend when the device is not a wakeup-source
        HID: logitech-dj: Implement may_wakeup ll-driver callback
        HID: usbhid: Implement may_wakeup ll-driver callback
        HID: core: Add hid_hw_may_wakeup() function
        HID: input: Add support for Programmable Buttons
        HID: wacom: Correct base usage for capacitive ExpressKey status bits
        HID: amd_sfh: Add initial support for HPD sensor
        HID: amd_sfh: Extend ALS support for newer AMD platform
        HID: amd_sfh: Extend driver capabilities for multi-generation support
        HID: surface-hid: Fix get-report request
        HID: sony: fix freeze when inserting ghlive ps3/wii dongles
        HID: usbkbd: Avoid GFP_ATOMIC when GFP_KERNEL is possible
        HID: amd_sfh: change in maintainer
        HID: intel-ish-hid: ipc: Specify that EHL no cache snooping
        HID: intel-ish-hid: ishtp: Add dma_no_cache_snooping() callback
        HID: intel-ish-hid: Set ISH driver depends on x86
        HID: hid-input: add Surface Go battery quirk
        HID: intel-ish-hid: Fix minor typos in comments
        HID: usbmouse: Avoid GFP_ATOMIC when GFP_KERNEL is possible
        ...
      df04fbe8
    • Linus Torvalds's avatar
      Merge tag 'edac_updates_for_v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras · 4b5e35ce
      Linus Torvalds authored
      Pull EDAC updates from Tony Luck:
       "Various fixes and support for new CPUs:
      
         - Clean up error messages from thunderx_edac
      
         - Add MODULE_DEVICE_TABLE to ti_edac so it will autoload
      
         - Use %pR to print resources in aspeed_edac
      
         - Add Yazen Ghannam as MAINTAINER for AMD edac drivers
      
         - Fix Ice Lake and Sapphire Rapids drivers to report correct "near"
           or "far" device for errors in 2LM configurations
      
         - Add support of on package high bandwidth memory in Sapphire Rapids
      
         - New CPU support for three CPUs supporting in-band ECC (IOT SKUs for
           ICL-NNPI, Tiger Lake and Alder Lake)
      
         - Don't even try to load Intel EDAC drivers when running as a guest
      
         - Fix Kconfig dependency on X86_MCE_INTEL for EDAC_IGEN6"
      
      * tag 'edac_updates_for_v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras:
        EDAC/igen6: fix core dependency
        EDAC/Intel: Do not load EDAC driver when running as a guest
        EDAC/igen6: Add Intel Alder Lake SoC support
        EDAC/igen6: Add Intel Tiger Lake SoC support
        EDAC/igen6: Add Intel ICL-NNPI SoC support
        EDAC/i10nm: Add support for high bandwidth memory
        EDAC/i10nm: Add detection of memory levels for ICX/SPR servers
        EDAC/skx_common: Add new ADXL components for 2-level memory
        MAINTAINERS: Make Yazen Ghannam maintainer for EDAC-AMD64
        EDAC/aspeed: Use proper format string for printing resource
        EDAC/ti: Add missing MODULE_DEVICE_TABLE
        EDAC/thunderx: Remove irrelevant variable from error messages
      4b5e35ce
    • Linus Torvalds's avatar
      Merge tag 'tpmdd-next-v5.14-rc1' of... · e60d726f
      Linus Torvalds authored
      Merge tag 'tpmdd-next-v5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd
      
      Pull tpm driver updates from Jarkko Sakkinen:
       "Bug fixes for TPM"
      
      [ This isn't actually the whole contents of the tag and thus doesn't
        contain Jarkko's signature - I dropped the two top commits that added
        support for signing modules using elliptic curve keys because there's
        a new series for that that fixes a few confising things   - Linus ]
      
      * tag 'tpmdd-next-v5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd:
        tpm: Replace WARN_ONCE() with dev_err_once() in tpm_tis_status()
        tpm_tis: Use DEFINE_RES_MEM() to simplify code
        tpm: fix some doc warnings in tpm1-cmd.c
        tpm_tis_spi: add missing SPI device ID entries
        tpm: add longer timeout for TPM2_CC_VERIFY_SIGNATURE
        char: tpm: move to use request_irq by IRQF_NO_AUTOEN flag
        tpm_tis_spi: set default probe function if device id not match
        tpm_crb: Use IOMEM_ERR_PTR when function returns iomem
      e60d726f
    • Linus Torvalds's avatar
      Merge tag 'platform-drivers-x86-v5.14-1' of... · 776ba3ad
      Linus Torvalds authored
      Merge tag 'platform-drivers-x86-v5.14-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
      
      Pull x86 platform driver updates from Hans de Goede:
       "Highlights:
      
         - New think-lmi driver adding support for changing Lenovo Thinkpad
           BIOS settings from within Linux using the standard firmware-
           attributes class sysfs API
      
         - MS Surface aggregator-cdev now also supports forwarding events to
           user-space (for debugging / new driver development purposes only)
      
         - New intel_skl_int3472 driver this provides the necessary glue to
           translate ACPI table information to GPIOs, regulators, etc. for
           camera sensors on Intel devices with IPU3 attached MIPI cameras
      
         - A whole bunch of other fixes + device-specific quirk additions
      
         - New devm_work_autocancel() devm-helpers.h function"
      
      * tag 'platform-drivers-x86-v5.14-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86: (83 commits)
        platform/x86: dell-wmi-sysman: Change user experience when Admin/System Password is modified
        platform/x86: intel_skl_int3472: Uninitialized variable in skl_int3472_handle_gpio_resources()
        platform/x86: think-lmi: Move kfree(setting->possible_values) to tlmi_attr_setting_release()
        platform/x86: think-lmi: Split current_value to reflect only the value
        platform/x86: think-lmi: Fix issues with duplicate attributes
        platform/x86: think-lmi: Return EINVAL when kbdlang gets set to a 0 length string
        platform/x86: intel_cht_int33fe: Move to its own subfolder
        platform/x86: intel_skl_int3472: Move to intel/ subfolder
        platform/x86: intel_skl_int3472: Provide skl_int3472_unregister_clock()
        platform/x86: intel_skl_int3472: Provide skl_int3472_unregister_regulator()
        platform/x86: intel_skl_int3472: Use ACPI GPIO resource directly
        platform/x86: intel_skl_int3472: Fix dependencies (drop CLKDEV_LOOKUP)
        platform/x86: intel_skl_int3472: Free ACPI device resources after use
        platform/x86: Remove "default n" entries
        platform/x86: ISST: Use numa node id for cpu pci dev mapping
        platform/x86: ISST: Optimize CPU to PCI device mapping
        tools/power/x86/intel-speed-select: v1.10 release
        tools/power/x86/intel-speed-select: Fix uncore memory frequency display
        extcon: extcon-max8997: Simplify driver using devm
        extcon: extcon-max8997: Fix IRQ freeing at error path
        ...
      776ba3ad
    • Linus Torvalds's avatar
      Merge tag 'mailbox-v5.14' of git://git.linaro.org/landing-teams/working/fujitsu/integration · ebb81c14
      Linus Torvalds authored
      Pull mailbox updates from Jassi Brar:
      
       - imx: add support for i.MX8ULP
      
       - mtk: code change around callback struct
      
       - qcom: add sm6125, MSM8939 fix for channel exhaustion
      
       - microchip: add support for polarfire controller
      
       - misc: cosmetic changes to bcm-2835,flexrm,pdc, arm-mhu and hisilicon
      
      * tag 'mailbox-v5.14' of git://git.linaro.org/landing-teams/working/fujitsu/integration: (26 commits)
        MAINTAINERS: add entry for polarfire soc mailbox
        dt-bindings: add bindings for polarfire soc system controller
        mbox: add polarfire soc system controller mailbox
        dt-bindings: add bindings for polarfire soc mailbox
        mailbox: imx: Avoid using val uninitialized in imx_mu_isr()
        mailbox: qcom: Add MSM8939 APCS support
        mailbox: qcom: Use PLATFORM_DEVID_AUTO to register platform device
        dt-bindings: mailbox: qcom: Add MSM8939 APCS compatible
        mailbox: qcom-apcs: Add SM6125 compatible
        dt-bindings: mailbox: Add binding for sm6125
        mailbox: mtk-cmdq: Fix uninitialized variable in cmdq_mbox_flush()
        mailbox: bcm-flexrm-mailbox: Remove redundant dev_err call in flexrm_mbox_probe()
        mailbox: bcm2835: Remove redundant dev_err call in bcm2835_mbox_probe()
        mailbox: qcom-ipcc: Fix IPCC mbox channel exhaustion
        mailbox: mtk-cmdq: Add struct cmdq_pkt in struct cmdq_cb_data
        mailbox: mtk-cmdq: Use mailbox rx_callback
        mailbox: mtk-cmdq: Remove cmdq_cb_status
        mailbox: imx-mailbox: support i.MX8ULP MU
        mailbox: imx: add xSR/xCR register array
        mailbox: imx: replace the xTR/xRR array with single register
        ...
      ebb81c14
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.14-1' of git://github.com/cminyard/linux-ipmi · c0c6d209
      Linus Torvalds authored
      Pull IPMI driver updates from Corey Minyard:
       "Mostly a restructure of the kcs_bmc driver to make it easier to use
        with different types of devices, and just to clean things up and
        improve things.
      
        Also some bug fixes for the kcs_bmc driver.
      
        One fix to the IPMI watchdog to stop the timer when the action is
        none. Not a big deal, but it's the right thing to do"
      
      * tag 'for-linus-5.14-1' of git://github.com/cminyard/linux-ipmi:
        ipmi: kcs_bmc_aspeed: Fix less than zero comparison of a unsigned int
        ipmi: kcs_bmc_aspeed: Optionally apply status address
        ipmi: kcs_bmc_aspeed: Fix IBFIE typo from datasheet
        ipmi: kcs_bmc_aspeed: Implement KCS SerIRQ configuration
        dt-bindings: ipmi: Add optional SerIRQ property to ASPEED KCS devices
        dt-bindings: ipmi: Convert ASPEED KCS binding to schema
        ipmi: kcs_bmc: Add serio adaptor
        ipmi: kcs_bmc: Enable IBF on open
        ipmi: kcs_bmc: Allow clients to control KCS IRQ state
        ipmi: kcs_bmc: Decouple the IPMI chardev from the core
        ipmi: kcs_bmc: Strip private client data from struct kcs_bmc
        ipmi: kcs_bmc: Split headers into device and client
        ipmi: kcs_bmc: Turn the driver data-structures inside-out
        ipmi: kcs_bmc: Split out kcs_bmc_cdev_ipmi
        ipmi: kcs_bmc: Rename {read,write}_{status,data}() functions
        ipmi: kcs_bmc: Make status update atomic
        ipmi: kcs_bmc_aspeed: Use of match data to extract KCS properties
        ipmi/watchdog: Stop watchdog timer when the current action is 'none'
      c0c6d209
  2. Jun 30, 2021
    • Jiri Kosina's avatar
      Merge branch 'for-5.14/multitouch' into for-linus · b3e29642
      Jiri Kosina authored
      - patch series that ensures that hid-multitouch driver disables touch and
        button-press reporting on hid-mt devices during suspend when the device is
        not configured as a wakeup-source, from Hans de Goede
      b3e29642
    • Jiri Kosina's avatar
      Merge branch 'for-5.14/logitech' into for-linus · 8f4ef88e
      Jiri Kosina authored
      - support for LCD menu keys + LCD brightness control on the Logitech Z-10
        speakers (with LCD) which use the same protocol as the G15 keyboards
        from Hans de Goede
      8f4ef88e
    • Jiri Kosina's avatar
      Merge branch 'for-5.14/intel-ish' into for-linus · 33197bd3
      Jiri Kosina authored
      - support for ISH DMA on EHL platform from Even Xu
      - various code style fixes and cleanups from Lee Jones and Uwe Kleine-König
      33197bd3
    • Jiri Kosina's avatar
      Merge branch 'for-5.14/google' into for-linus · 7f1f3803
      Jiri Kosina authored
      - device tree match for Google Whiskers device from Ikjoon Jang
      7f1f3803
    • Jiri Kosina's avatar
      Merge branch 'for-5.14/core' into for-linus · fd73788c
      Jiri Kosina authored
      - device unbinding locking fix from Dmitry Torokhov
      - support for programmable buttons (mapping to KEY_MACRO# event codes)
        from Thomas Weißschuh
      - various other small fixes and code style improvements
      fd73788c
    • Jiri Kosina's avatar
      Merge branch 'for-5.14/amd-sfh' into for-linus · 5a94296b
      Jiri Kosina authored
      - support for Renoir and Cezanne SoCs
      - support for Ambient Light Sensor
      - support for Human Presence Detection sensor
      
      all from Basavaraj Natikar
      5a94296b
    • Linus Torvalds's avatar
      Merge tag 'dlm-5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm · 007b350a
      Linus Torvalds authored
      Pull dlm updates from David Teigland:
       "This is a major dlm networking enhancement that adds message
        retransmission so that the dlm can reliably continue operating when
        network connections fail and nodes reconnect.
      
        Previously, this would result in lost messages which could only be
        handled as a node failure"
      
      * tag 'dlm-5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm: (26 commits)
        fs: dlm: invalid buffer access in lookup error
        fs: dlm: fix race in mhandle deletion
        fs: dlm: rename socket and app buffer defines
        fs: dlm: introduce proto values
        fs: dlm: move dlm allow conn
        fs: dlm: use alloc_ordered_workqueue
        fs: dlm: fix memory leak when fenced
        fs: dlm: fix lowcomms_start error case
        fs: dlm: Fix spelling mistake "stucked" -> "stuck"
        fs: dlm: Fix memory leak of object mh
        fs: dlm: don't allow half transmitted messages
        fs: dlm: add midcomms debugfs functionality
        fs...
      007b350a
    • Linus Torvalds's avatar
      Merge tag 'gfs2-v5.13-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2 · 8418dabd
      Linus Torvalds authored
      Pull gfs2 updates from Andreas Gruenbacher:
       "Various minor gfs2 cleanups and fixes"
      
      * tag 'gfs2-v5.13-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2:
        gfs2: Clean up gfs2_unstuff_dinode
        gfs2: Unstuff before locking page in gfs2_page_mkwrite
        gfs2: Clean up the error handling in gfs2_page_mkwrite
        gfs2: Fix error handling in init_statfs
        gfs2: Fix underflow in gfs2_page_mkwrite
        gfs2: Use list_move_tail instead of list_del/list_add_tail
        gfs2: Fix do_gfs2_set_flags description
      8418dabd
    • Linus Torvalds's avatar
      Merge tag '5.14-rc-smb3-fixes-part1' of git://git.samba.org/sfrench/cifs-2.6 · bbd91626
      Linus Torvalds authored
      Pull cifs updates from Steve French:
      
       - improve fallocate emulation
      
       - DFS fixes
      
       - minor multichannel fixes
      
       - various cleanup patches, many to address Coverity warnings
      
      * tag '5.14-rc-smb3-fixes-part1' of git://git.samba.org/sfrench/cifs-2.6: (38 commits)
        smb3: prevent races updating CurrentMid
        cifs: fix missing spinlock around update to ses->status
        cifs: missing null pointer check in cifs_mount
        smb3: fix possible access to uninitialized pointer to DACL
        cifs: missing null check for newinode pointer
        cifs: remove two cases where rc is set unnecessarily in sid_to_id
        SMB3: Add new info level for query directory
        cifs: fix NULL dereference in smb2_check_message()
        smbdirect: missing rc checks while waiting for rdma events
        cifs: Avoid field over-reading memcpy()
        smb311: remove dead code for non compounded posix query info
        cifs: fix SMB1 error path in cifs_get_file_info_unix
        smb3: fix uninitialized value f...
      bbd91626
    • Linus Torvalds's avatar
      Merge tag 'fs.openat2.unknown_flags.v5.14' of... · b97902b6
      Linus Torvalds authored
      Merge tag 'fs.openat2.unknown_flags.v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux
      
      Pull openat2 fixes from Christian Brauner:
      
       - Remove the unused VALID_UPGRADE_FLAGS define we carried from an
         extension to openat2() that we haven't merged. Aleksa might be
         getting back to it at some point but just not right now.
      
       - openat2() used to accidently ignore unknown flag values in the upper
         32 bits.
      
         The new openat2() syscall verifies that no unknown O-flag values are
         set and returns an error to userspace if they are while the older
         open syscalls like open() and openat() simply ignore unknown flag
         values:
      
            #define O_FLAG_CURRENTLY_INVALID (1 << 31)
            struct open_how how = {
                  .flags = O_RDONLY | O_FLAG_CURRENTLY_INVALID,
                  .resolve = 0,
            };
      
            /* fails */
            fd = openat2(-EBADF, "/dev/null", &how, sizeof(how));
      
            /* succeeds */
            fd = openat(-EBADF, "/dev/null", O_RDONLY | O_FLAG_CURRENTLY_INVALID);
      
         However, openat2() silently truncates the upper 32 bits meaning:
      
            #define O_FLAG_CURRENTLY_INVALID_LOWER32 (1 << 31)
            #define O_FLAG_CURRENTLY_INVALID_UPPER32 (1 << 40)
      
            struct open_how how_lowe32 = {
                  .flags = O_RDONLY | O_FLAG_CURRENTLY_INVALID_LOWER32,
            };
      
            struct open_how how_upper32 = {
                  .flags = O_RDONLY | O_FLAG_CURRENTLY_INVALID_UPPER32,
            };
      
            /* fails */
            fd = openat2(-EBADF, "/dev/null", &how_lower32, sizeof(how_lower32));
      
            /* succeeds */
            fd = openat2(-EBADF, "/dev/null", &how_upper32, sizeof(how_upper32));
      
         Fix this by preventing the immediate truncation in build_open_flags()
         and add a compile-time check to catch when we add flags in the upper
         32 bit range.
      
      * tag 'fs.openat2.unknown_flags.v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux:
        test: add openat2() test for invalid upper 32 bit flag value
        open: don't silently ignore unknown O-flags in openat2()
        fcntl: remove unused VALID_UPGRADE_FLAGS
      b97902b6
    • Linus Torvalds's avatar
      Merge tag 'fs.mount_setattr.nosymfollow.v5.14' of... · 30d1a556
      Linus Torvalds authored
      Merge tag 'fs.mount_setattr.nosymfollow.v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux
      
      Pull mount_setattr updates from Christian Brauner:
       "A few releases ago the old mount API gained support for a mount
        options which prevents following symlinks on a given mount. This adds
        support for it in the new mount api through the MOUNT_ATTR_NOSYMFOLLOW
        flag via mount_setattr() and fsmount(). With mount_setattr() that flag
        can even be applied recursively.
      
        There's an additional ack from Ross Zwisler who originally authored
        the nosymfollow patch. As I've already had the patches in my for-next
        I didn't add his ack explicitly"
      
      * tag 'fs.mount_setattr.nosymfollow.v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux:
        tests: test MOUNT_ATTR_NOSYMFOLLOW with mount_setattr()
        mount: Support "nosymfollow" in new mount api
      30d1a556
    • Linus Torvalds's avatar
      Merge branch 'akpm' (patches from Andrew) · 65090f30
      Linus Torvalds authored
      Merge misc updates from Andrew Morton:
       "191 patches.
      
        Subsystems affected by this patch series: kthread, ia64, scripts,
        ntfs, squashfs, ocfs2, kernel/watchdog, and mm (gup, pagealloc, slab,
        slub, kmemleak, dax, debug, pagecache, gup, swap, memcg, pagemap,
        mprotect, bootmem, dma, tracing, vmalloc, kasan, initialization,
        pagealloc, and memory-failure)"
      
      * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (191 commits)
        mm,hwpoison: make get_hwpoison_page() call get_any_page()
        mm,hwpoison: send SIGBUS with error virutal address
        mm/page_alloc: split pcp->high across all online CPUs for cpuless nodes
        mm/page_alloc: allow high-order pages to be stored on the per-cpu lists
        mm: replace CONFIG_FLAT_NODE_MEM_MAP with CONFIG_FLATMEM
        mm: replace CONFIG_NEED_MULTIPLE_NODES with CONFIG_NUMA
        docs: remove description of DISCONTIGMEM
        arch, mm: remove stale mentions of DISCONIGMEM
        mm: remove CONFIG_DISCONTIGMEM
        m68k: remove support for DISCONTIGMEM
        arc: remove support for DISCONTIGMEM
        arc: update comment about HIGHMEM implementation
        alpha: remove DISCONTIGMEM and NUMA
        mm/page_alloc: move free_the_page
        mm/page_alloc: fix counting of managed_pages
        mm/page_alloc: improve memmap_pages dbg msg
        mm: drop SECTION_SHIFT in code comments
        mm/page_alloc: introduce vm.percpu_pagelist_high_fraction
        mm/page_alloc: limit the number of pages on PCP lists when reclaim is active
        mm/page_alloc: scale the number of pages that are batch freed
        ...
      65090f30
    • Linus Torvalds's avatar
      Merge tag 'devprop-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 349a2d52
      Linus Torvalds authored
      Pull device properties framework updates from Rafael Wysocki:
       "These unify device properties access in some pieces of code and make
        related changes.
      
        Specifics:
      
         - Handle device properties with software node API in the ACPI IORT
           table parsing code (Heikki Krogerus).
      
         - Unify of_node access in the common device properties code, constify
           the acpi_dma_supported() argument pointer and fix up CONFIG_ACPI=n
           stubs of some functions related to device properties (Andy
           Shevchenko)"
      
      * tag 'devprop-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        device property: Unify access to of_node
        ACPI: scan: Constify acpi_dma_supported() helper function
        ACPI: property: Constify stubs for CONFIG_ACPI=n case
        ACPI: IORT: Handle device properties with software node API
        device property: Retrieve fwnode from of_node via accessor
      349a2d52
    • Linus Torvalds's avatar
      Merge tag 'pnp-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 72ad9f9d
      Linus Torvalds authored
      Pull PNP updates from Rafael Wysocki:
       "These get rid of unnecessary local variables and function, reduce code
        duplication and clean up message printing.
      
        Specifics:
      
         - Remove unnecessary local variables from isapnp_proc_attach_device()
           (Anupama K Patil).
      
         - Make the callers of pnp_alloc() use kzalloc() directly and drop the
           former (Heiner Kallweit).
      
         - Make two pieces of code use dev_dbg() instead of dev_printk() with
           the KERN_DEBUG message level (Heiner Kallweit).
      
         - Use DEVICE_ATTR_RO() instead of full DEVICE_ATTR() in some places
           in card.c (Zhen Lei).
      
         - Use list_for_each_entry() instead of list_for_each() in
           insert_device() (Zou Wei)"
      
      * tag 'pnp-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        PNP: pnpbios: Use list_for_each_entry() instead of list_for_each()
        PNP: use DEVICE_ATTR_RO macro
        PNP: Switch over to dev_dbg()
        PNP: Remove pnp_alloc()
        drivers: pnp: isapnp: proc.c: Remove unnecessary local variables
      72ad9f9d
    • Linus Torvalds's avatar
      Merge tag 'acpi-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 5e692824
      Linus Torvalds authored
      Pull ACPI updates from Rafael Wysocki:
       "These update the ACPICA code in the kernel to the 20210604 upstream
        revision, add preliminary support for the Platform Runtime Mechanism
        (PRM), address issues related to the handling of device dependencies
        in the ACPI device eunmeration code, improve the tracking of ACPI
        power resource states, improve the ACPI support for suspend-to-idle on
        AMD systems, continue the unification of message printing in the ACPI
        code, address assorted issues and clean up the code in a number of
        places.
      
        Specifics:
      
         - Update ACPICA code in the kernel to upstrea revision 20210604
           including the following changes:
      
            - Add defines for the CXL Host Bridge Structureand and add the
              CFMWS structure definition to CEDT (Alison Schofield).
            - iASL: Finish support for the IVRS ACPI table (Bob Moore).
            - iASL: Add support for the SVKL table (Bob Moore).
            - iASL: Add full support for RGRT ACPI table (Bob Moore).
            - iASL: Add support for the BDAT ACPI table (Bob Moore).
            - iASL: add disassembler support for PRMT (Erik Kaneda).
            - Fix memory leak caused by _CID repair function (Erik Kaneda).
            - Add support for PlatformRtMechanism OpRegion (Erik Kaneda).
            - Add PRMT module header to facilitate parsing (Erik Kaneda).
            - Add _PLD panel positions (Fabian Wüthrich).
            - MADT: add Multiprocessor Wakeup Mailbox Structure and the SVKL
              table headers (Kuppuswamy Sathyanarayanan).
            - Use ACPI_FALLTHROUGH (Wei Ming Chen).
      
         - Add preliminary support for the Platform Runtime Mechanism (PRM) to
           allow the AML interpreter to call PRM functions (Erik Kaneda).
      
         - Address some issues related to the handling of device dependencies
           reported by _DEP in the ACPI device enumeration code and clean up
           some related pieces of it (Rafael Wysocki).
      
         - Improve the tracking of states of ACPI power resources (Rafael
           Wysocki).
      
         - Improve ACPI support for suspend-to-idle on AMD systems (Alex
           Deucher, Mario Limonciello, Pratik Vishwakarma).
      
         - Continue the unification and cleanup of message printing in the
           ACPI code (Hanjun Guo, Heiner Kallweit).
      
         - Fix possible buffer overrun issue with the description_show() sysfs
           attribute method (Krzysztof Wilczyński).
      
         - Improve the acpi_mask_gpe kernel command line parameter handling
           and clean up the core ACPI code related to sysfs (Andy Shevchenko,
           Baokun Li, Clayton Casciato).
      
         - Postpone bringing devices in the general ACPI PM domain to D0
           during resume from system-wide suspend until they are really needed
           (Dmitry Torokhov).
      
         - Make the ACPI processor driver fix up C-state latency if not
           ordered (Mario Limonciello).
      
         - Add support for identifying devices depening on the given one that
           are not its direct descendants with the help of _DEP (Daniel
           Scally).
      
         - Extend the checks related to ACPI IRQ overrides on x86 in order to
           avoid false-positives (Hui Wang).
      
         - Add battery DPTF participant for Intel SoCs (Sumeet Pawnikar).
      
         - Rearrange the ACPI fan driver and device power management code to
           use a common list of device IDs (Rafael Wysocki).
      
         - Fix clang CFI violation in the ACPI BGRT table parsing code and
           clean it up (Nathan Chancellor).
      
         - Add GPE-related quirks for some laptops to the EC driver (Chris
           Chiu, Zhang Rui).
      
         - Make the ACPI PPTT table parsing code populate the cache-id value
           if present in the firmware (James Morse).
      
         - Remove redundant clearing of context->ret.pointer from
           acpi_run_osc() (Hans de Goede).
      
         - Add missing acpi_put_table() in acpi_init_fpdt() (Jing Xiangfeng).
      
         - Make ACPI APEI handle ARM Processor Error CPER records like Memory
           Error ones to avoid user space task lockups (Xiaofei Tan).
      
         - Stop warning about disabled ACPI in APEI (Jon Hunter).
      
         - Fix fall-through warning for Clang in the SBSHC driver (Gustavo A.
           R. Silva).
      
         - Add custom DSDT file as Makefile prerequisite (Richard Fitzgerald).
      
         - Initialize local variable to avoid garbage being returned (Colin
           Ian King).
      
         - Simplify assorted pieces of code, address assorted coding style and
           documentation issues and comment typos (Baokun Li, Christophe
           JAILLET, Clayton Casciato, Liu Shixin, Shaokun Zhang, Wei Yongjun,
           Yang Li, Zhen Lei)"
      
      * tag 'acpi-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (97 commits)
        ACPI: PM: postpone bringing devices to D0 unless we need them
        ACPI: tables: Add custom DSDT file as makefile prerequisite
        ACPI: bgrt: Use sysfs_emit
        ACPI: bgrt: Fix CFI violation
        ACPI: EC: trust DSDT GPE for certain HP laptop
        ACPI: scan: Simplify acpi_table_events_fn()
        ACPI: PM: Adjust behavior for field problems on AMD systems
        ACPI: PM: s2idle: Add support for new Microsoft UUID
        ACPI: PM: s2idle: Add support for multiple func mask
        ACPI: PM: s2idle: Refactor common code
        ACPI: PM: s2idle: Use correct revision id
        ACPI: sysfs: Remove tailing return statement in void function
        ACPI: sysfs: Use __ATTR_RO() and __ATTR_RW() macros
        ACPI: sysfs: Sort headers alphabetically
        ACPI: sysfs: Refactor param_get_trace_state() to drop dead code
        ACPI: sysfs: Unify pattern of memory allocations
        ACPI: sysfs: Allow bitmap list to be supplied to acpi_mask_gpe
        ACPI: sysfs: Make sparse happy about address space in use
        ACPI: scan: Fix race related to dropping dependencies
        ACPI: scan: Reorganize acpi_device_add()
        ...
      5e692824
    • Linus Torvalds's avatar
      Merge tag 'pm-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 3563f55c
      Linus Torvalds authored
      Pull power management updates from Rafael Wysocki:
       "These add hybrid processors support to the intel_pstate driver and
        make it work with more processor models when HWP is disabled, make the
        intel_idle driver use special C6 idle state paremeters when package
        C-states are disabled, add cooling support to the tegra30 devfreq
        driver, rework the TEO (timer events oriented) cpuidle governor,
        extend the OPP (operating performance points) framework to use the
        required-opps DT property in more cases, fix some issues and clean up
        a number of assorted pieces of code.
      
        Specifics:
      
         - Make intel_pstate support hybrid processors using abstract
           performance units in the HWP interface (Rafael Wysocki).
      
         - Add Icelake servers and Cometlake support in no-HWP mode to
           intel_pstate (Giovanni Gherdovich).
      
         - Make cpufreq_online() error path be consistent with the CPU device
           removal path in cpufreq (Rafael Wysocki).
      
         - Clean up 3 cpufreq drivers and the statistics code (Hailong Liu,
           Randy Dunlap, Shaokun Zhang).
      
         - Make intel_idle use special idle state parameters for C6 when
           package C-states are disabled (Chen Yu).
      
         - Rework the TEO (timer events oriented) cpuidle governor to address
           some theoretical shortcomings in it (Rafael Wysocki).
      
         - Drop unneeded semicolon from the TEO governor (Wan Jiabing).
      
         - Modify the runtime PM framework to accept unassigned suspend and
           resume callback pointers (Ulf Hansson).
      
         - Improve pm_runtime_get_sync() documentation (Krzysztof Kozlowski).
      
         - Improve device performance states support in the generic power
           domains (genpd) framework (Ulf Hansson).
      
         - Fix some documentation issues in genpd (Yang Yingliang).
      
         - Make the operating performance points (OPP) framework use the
           required-opps DT property in use cases that are not related to
           genpd (Hsin-Yi Wang).
      
         - Make lazy_link_required_opp_table() use list_del_init instead of
           list_del/INIT_LIST_HEAD (Yang Yingliang).
      
         - Simplify wake IRQs handling in the core system-wide sleep support
           code and clean up some coding style inconsistencies in it (Tian
           Tao, Zhen Lei).
      
         - Add cooling support to the tegra30 devfreq driver and improve its
           DT bindings (Dmitry Osipenko).
      
         - Fix some assorted issues in the devfreq core and drivers (Chanwoo
           Choi, Dong Aisheng, YueHaibing)"
      
      * tag 'pm-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (39 commits)
        PM / devfreq: passive: Fix get_target_freq when not using required-opp
        cpufreq: Make cpufreq_online() call driver->offline() on errors
        opp: Allow required-opps to be used for non genpd use cases
        cpuidle: teo: remove unneeded semicolon in teo_select()
        dt-bindings: devfreq: tegra30-actmon: Add cooling-cells
        dt-bindings: devfreq: tegra30-actmon: Convert to schema
        PM / devfreq: userspace: Use DEVICE_ATTR_RW macro
        PM: runtime: Clarify documentation when callbacks are unassigned
        PM: runtime: Allow unassigned ->runtime_suspend|resume callbacks
        PM: runtime: Improve path in rpm_idle() when no callback
        PM: hibernate: remove leading spaces before tabs
        PM: sleep: remove trailing spaces and tabs
        PM: domains: Drop/restore performance state votes for devices at runtime PM
        PM: domains: Return early if perf state is already set for the device
        PM: domains: Split code in dev_pm_genpd_set_performance_state()
        cpuidle: teo: Use kerneldoc documentation in admin-guide
        cpuidle: teo: Rework most recent idle duration values treatment
        cpuidle: teo: Change the main idle state selection logic
        cpuidle: teo: Cosmetic modification of teo_select()
        cpuidle: teo: Cosmetic modifications of teo_update()
        ...
      3563f55c
    • Linus Torvalds's avatar
      Merge tag 'x86-entry-2021-06-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 1dfb0f47
      Linus Torvalds authored
      Pull x86 entry code related updates from Thomas Gleixner:
      
       - Consolidate the macros for .byte ... opcode sequences
      
       - Deduplicate register offset defines in include files
      
       - Simplify the ia32,x32 compat handling of the related syscall tables
         to get rid of #ifdeffery.
      
       - Clear all EFLAGS which are not required for syscall handling
      
       - Consolidate the syscall tables and switch the generation over to the
         generic shell script and remove the CFLAGS tweaks which are not
         longer required.
      
       - Use 'int' type for system call numbers to match the generic code.
      
       - Add more selftests for syscalls
      
      * tag 'x86-entry-2021-06-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/syscalls: Don't adjust CFLAGS for syscall tables
        x86/syscalls: Remove -Wno-override-init for syscall tables
        x86/uml/syscalls: Remove array index from syscall initializers
        x86/syscalls: Clear 'offset' and 'prefix' in case they are set in env
        x86/entry: Use int everywhere for system call numbers
        x86/entry: Treat out of range and gap system calls the same
        x86/entry/64: Sign-extend system calls on entry to int
        selftests/x86/syscall: Add tests under ptrace to syscall_numbering_64
        selftests/x86/syscall: Simplify message reporting in syscall_numbering
        selftests/x86/syscall: Update and extend syscall_numbering_64
        x86/syscalls: Switch to generic syscallhdr.sh
        x86/syscalls: Use __NR_syscalls instead of __NR_syscall_max
        x86/unistd: Define X32_NR_syscalls only for 64-bit kernel
        x86/syscalls: Stop filling syscall arrays with *_sys_ni_syscall
        x86/syscalls: Switch to generic syscalltbl.sh
        x86/entry/x32: Rename __x32_compat_sys_* to __x64_compat_sys_*
      1dfb0f47
    • Linus Torvalds's avatar
      Merge tag 'x86-irq-2021-06-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · a22c3f61
      Linus Torvalds authored
      Pull x86 interrupt related updates from Thomas Gleixner:
      
       - Consolidate the VECTOR defines and the usage sites.
      
       - Cleanup GDT/IDT related code and replace open coded ASM with proper
         native helper functions.
      
      * tag 'x86-irq-2021-06-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/kexec: Set_[gi]dt() -> native_[gi]dt_invalidate() in machine_kexec_*.c
        x86: Add native_[ig]dt_invalidate()
        x86/idt: Remove address argument from idt_invalidate()
        x86/irq: Add and use NR_EXTERNAL_VECTORS and NR_SYSTEM_VECTORS
        x86/irq: Remove unused vectors defines
      a22c3f61
    • Linus Torvalds's avatar
      Merge tag 'timers-core-2021-06-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · a941a034
      Linus Torvalds authored
      Pull timer updates from Thomas Gleixner:
       "Time and clocksource/clockevent related updates:
      
        Core changes:
      
         - Infrastructure to support per CPU "broadcast" devices for per CPU
           clockevent devices which stop in deep idle states. This allows us
           to utilize the more efficient architected timer on certain ARM SoCs
           for normal operation instead of permanentely using the slow to
           access SoC specific clockevent device.
      
         - Print the name of the broadcast/wakeup device in /proc/timer_list
      
         - Make the clocksource watchdog more robust against delays between
           reading the current active clocksource and the watchdog
           clocksource. Such delays can be caused by NMIs, SMIs and vCPU
           preemption.
      
           Handle this by reading the watchdog clocksource twice, i.e. before
           and after reading the current active clocksource. In case that the
           two watchdog reads shows an excessive time delta, the read sequence
           is repeated up to 3 times.
      
         - Improve the debug output and add a test module for the watchdog
           mechanism.
      
         - Reimplementation of the venerable time64_to_tm() function with a
           faster and significantly smaller version. Straight from the source,
           i.e. the author of the related research paper contributed this!
      
        Driver changes:
      
         - No new drivers, not even new device tree bindings!
      
         - Fixes, improvements and cleanups and all over the place"
      
      * tag 'timers-core-2021-06-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (30 commits)
        time/kunit: Add missing MODULE_LICENSE()
        time: Improve performance of time64_to_tm()
        clockevents: Use list_move() instead of list_del()/list_add()
        clocksource: Print deviation in nanoseconds when a clocksource becomes unstable
        clocksource: Provide kernel module to test clocksource watchdog
        clocksource: Reduce clocksource-skew threshold
        clocksource: Limit number of CPUs checked for clock synchronization
        clocksource: Check per-CPU clock synchronization when marked unstable
        clocksource: Retry clock read if long delays detected
        clockevents: Add missing parameter documentation
        clocksource/drivers/timer-ti-dm: Drop unnecessary restore
        clocksource/arm_arch_timer: Improve Allwinner A64 timer workaround
        clocksource/drivers/arm_global_timer: Remove duplicated argument in arm_global_timer
        clocksource/drivers/arm_global_timer: Make symbol 'gt_clk_rate_change_nb' static
        arm: zynq: don't disable CONFIG_ARM_GLOBAL_TIMER due to CONFIG_CPU_FREQ anymore
        clocksource/drivers/arm_global_timer: Implement rate compensation whenever source clock changes
        clocksource/drivers/ingenic: Rename unreasonable array names
        clocksource/drivers/timer-ti-dm: Save and restore timer TIOCP_CFG
        clocksource/drivers/mediatek: Ack and disable interrupts on suspend
        clocksource/drivers/samsung_pwm: Constify source IO memory
        ...
      a941a034
    • Linus Torvalds's avatar
      Merge tag 'irq-core-2021-06-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 21edf509
      Linus Torvalds authored
      Pull irq updates from Thomas Gleixner:
       "Updates for the interrupt subsystem:
      
        Core changes:
      
         - Cleanup and simplification of common code to invoke the low level
           interrupt flow handlers when this invocation requires irqdomain
           resolution. Add the necessary core infrastructure.
      
         - Provide a proper interface for modular PMU drivers to set the
           interrupt affinity.
      
         - Add a request flag which allows to exclude interrupts from spurious
           interrupt detection. Useful especially for IPI handlers which
           always return IRQ_HANDLED which turns the spurious interrupt
           detection into a pointless waste of CPU cycles.
      
        Driver changes:
      
         - Bulk convert interrupt chip drivers to the new irqdomain low level
           flow handler invocation mechanism.
      
         - Add device tree bindings for the Renesas R-Car M3-W+ SoC
      
         - Enable modular build of the Qualcomm PDC driver
      
         - The usual small fixes and improvements"
      
      * tag 'irq-core-2021-06-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (38 commits)
        dt-bindings: interrupt-controller: arm,gic-v3: Describe GICv3 optional properties
        irqchip: gic-pm: Remove redundant error log of clock bulk
        irqchip/sun4i: Remove unnecessary oom message
        irqchip/irq-imx-gpcv2: Remove unnecessary oom message
        irqchip/imgpdc: Remove unnecessary oom message
        irqchip/gic-v3-its: Remove unnecessary oom message
        irqchip/gic-v2m: Remove unnecessary oom message
        irqchip/exynos-combiner: Remove unnecessary oom message
        irqchip: Bulk conversion to generic_handle_domain_irq()
        genirq: Move non-irqdomain handle_domain_irq() handling into ARM's handle_IRQ()
        genirq: Add generic_handle_domain_irq() helper
        irqchip/nvic: Convert from handle_IRQ() to handle_domain_irq()
        irqdesc: Fix __handle_domain_irq() comment
        genirq: Use irq_resolve_mapping() to implement __handle_domain_irq() and co
        irqdomain: Introduce irq_resolve_mapping()
        irqdomain: Protect the linear revmap with RCU
        irqdomain: Cache irq_data instead of a virq number in the revmap
        irqdomain: Use struct_size() helper when allocating irqdomain
        irqdomain: Make normal and nomap irqdomains exclusive
        powerpc: Move the use of irq_domain_add_nomap() behind a config option
        ...
      21edf509
    • Linus Torvalds's avatar
      Merge tag 'smp-urgent-2021-06-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 62180152
      Linus Torvalds authored
      Pull CPU hotplug fix from Thomas Gleixner:
       "A fix for the CPU hotplug and cpusets interaction:
      
        cpusets delegate the hotplug work to a workqueue to prevent a lock
        order inversion vs. the CPU hotplug lock. The work is not flushed
        before the hotplug operation returns which creates user visible
        inconsistent state. Prevent this by flushing the work after dropping
        CPU hotplug lock and before releasing the outer mutex which serializes
        the CPU hotplug related sysfs interface operations"
      
      * tag 'smp-urgent-2021-06-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        cpu/hotplug: Cure the cpusets trainwreck
      62180152
    • Linus Torvalds's avatar
      Merge tag 'smp-core-2021-06-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 371fb854
      Linus Torvalds authored
      Pull CPU hotplug cleanup from Thomas Gleixner:
       "A simple cleanup for the CPU hotplug code to avoid per_cpu_ptr()
        reevaluation"
      
      * tag 'smp-core-2021-06-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        cpu/hotplug: Simplify access to percpu cpuhp_state
      371fb854