1. 02 Feb, 2024 16 commits
    • Linus Torvalds's avatar
      Merge tag 'input-for-v6.8-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · eab5c86d
      Linus Torvalds authored
      Pull input fixes from Dmitry Torokhov:
      
       - a fix for the fix to deal with newer laptops which get confused by
         the "GET ID" command when probing for PS/2 keyboards
      
       - a couple of tweaks to i8042 to handle Clevo NS70PU and Lifebook U728
         laptops
      
       - a change to bcm5974 to validate that the device has appropriate
         endpoints
      
       - an addition of new product ID to xpad driver to recognize Lenovo
         Legion Go controllers
      
       - a quirk to Goodix controller to deal with extra GPIO described in
         ACPI tables on some devices.
      
      * tag 'input-for-v6.8-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
        Input: i8042 - add Fujitsu Lifebook U728 to i8042 quirk table
        Input: i8042 - fix strange behavior of touchpad on Clevo NS70PU
        Input: atkbd - do not skip atkbd_deactivate() when skipping ATKBD_CMD_GETID
        Input: atkbd - skip ATKBD_CMD_SETLEDS when skipping ATKBD_CMD_GETID
        Input: bcm5974 - check endpoint type before starting traffic
        Input: xpad - add Lenovo Legion Go controllers
        Input: goodix - accept ACPI resources with gpio_count == 3 && gpio_int_idx == 0
      eab5c86d
    • Linus Torvalds's avatar
      Merge tag 'sound-6.8-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 01370ceb
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "A collection of fixes, mostly device-specific ones:
      
         - Minor PCM core fix for name strings
      
         - ASoC Qualcomm fixes, including DAI support extensions
      
         - ASoC AMD platform updates
      
         - ASoC Allwinner platform updates
      
         - Various ASoC codec fixes for WSA, WCD, ES8326 drivers
      
         - Various HD-audio and USB-audio fixes and quirks
      
         - A series of fixes for Cirrus CS35L56 codecs"
      
      * tag 'sound-6.8-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (63 commits)
        ALSA: usb-audio: Ignore clock selector errors for single connection
        ALSA: hda/realtek: Enable headset mic on Vaio VJFE-ADL
        ALSA: hda: cs35l56: Remove unused test stub function
        ALSA: hda: cs35l56: Firmware file must match the version of preloaded firmware
        ALSA: hda: cs35l56: Fix filename string field layout
        ALSA: hda: cs35l56: Fix order of searching for firmware files
        ASoC: cs35l56: Allow more time for firmware to boot
        ASoC: cs35l56: Load tunings for the correct speaker models
        ASoC: cs35l56: Firmware file must match the version of preloaded firmware
        ASoC: cs35l56: Fix misuse of wm_adsp 'part' string for silicon revision
        ASoC: cs35l56: Fix for initializing ASP1 mixer registers
        ALSA: hda: cs35l56: Initialize all ASP1 registers
        ASoC: cs35l56: Fix default SDW TX mixer registers
        ASoC: cs35l56: Fix to ensure ASP1 registers match cache
        ASoC: cs35l56: Remove buggy checks from cs35l56_is_fw_reload_needed()
        ASoC: cs35l56: Don't add the same register patch multiple times
        ASoC: cs35l56: cs35l56_component_remove() must clean up wm_adsp
        ASoC: cs35l56: cs35l56_component_remove() must clear cs35l56->component
        ASoC: wm_adsp: Don't overwrite fwf_name with the default
        ASoC: wm_adsp: Fix firmware file search order
        ...
      01370ceb
    • Linus Torvalds's avatar
      Merge tag 'hwmon-for-v6.8-rc3' of... · 43e7ef64
      Linus Torvalds authored
      Merge tag 'hwmon-for-v6.8-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
      
      Pull hwmon fixes from Guenter Roeck:
      
       - pmbus/mp2975: Fix driver initialization
      
       - gigabyte_waterforce: Add missing unlock in error handling path
      
      * tag 'hwmon-for-v6.8-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
        hwmon: (pmbus/mp2975) Correct comment inside 'mp2975_read_byte_data'
        hwmon: (pmbus/mp2975) Fix driver initialization for MP2975 device
        hwmon: gigabyte_waterforce: Fix locking bug in waterforce_get_status()
      43e7ef64
    • Linus Torvalds's avatar
      Merge tag 'for-v6.8-rc' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply · 79837a7c
      Linus Torvalds authored
      Pull power supply fix from Sebastian Reichel:
      
       - qcom_battmgr: revert broken fix
      
      * tag 'for-v6.8-rc' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply:
        Revert "power: supply: qcom_battmgr: Register the power supplies after PDR is up"
      79837a7c
    • Linus Torvalds's avatar
      Merge tag 'iommu-fixes-v6.8-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu · 4f18d3fd
      Linus Torvalds authored
      Pul iommu fixes from Joerg Roedel:
      
       - Make iommu_ops->default_domain work without CONFIG_IOMMU_DMA to fix
         initialization of FSL-PAMU devices
      
       - Fix for Tegra fbdev initialization failure
      
       - Fix for a VFIO device unbinding failure on PowerPC
      
      * tag 'iommu-fixes-v6.8-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu:
        powerpc: iommu: Bring back table group release_ownership() call
        drm/tegra: Do not assume that a NULL domain means no DMA IOMMU
        iommu: Allow ops->default_domain to work when !CONFIG_IOMMU_DMA
      4f18d3fd
    • Linus Torvalds's avatar
      Merge tag 'for-6.8/dm-fixes' of... · 6897cea7
      Linus Torvalds authored
      Merge tag 'for-6.8/dm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm
      
      Pull device mapper fixes from Mike Snitzer:
      
       - Fix DM ioctl interface to avoid INT_MAX overflow warnings from
         kvmalloc by limiting the number of targets and parameter size area.
      
       - Fix DM stats to avoid INT_MAX overflow warnings from kvmalloc by
         limiting the number of entries supported.
      
       - Fix DM writecache to support mapping devices larger than 1 TiB by
         switching from using kvmalloc_array to vmalloc_array -- which avoids
         INT_MAX overflow in kvmalloc_node and associated warnings.
      
       - Remove the (ab)use of tasklets from both the DM crypt and verity
         targets. They will be converted to use BH workqueue in future.
      
      * tag 'for-6.8/dm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
        dm-crypt, dm-verity: disable tasklets
        dm writecache: allow allocations larger than 2GiB
        dm stats: limit the number of entries
        dm: limit the number of targets and parameter size area
      6897cea7
    • Linus Torvalds's avatar
      Merge tag 'ata-6.8-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux · 03503275
      Linus Torvalds authored
      Pull ata fix from Niklas Cassel:
      
       - Following up on last week's ASMedia ASM1061 43-bit dma_mask quirk, we
         sent an email to ASMedia developers that have previously been active
         on the mailing list, asking exactly which SATA controllers that are
         affected by this hardware limitation.
      
         We got a reply that it affects all the SATA controllers in the
         ASM106x family, thus extend the existing 43-bit dma_mask quirk to
         apply to all the affected ASMedia SATA controllers.
      
      * tag 'ata-6.8-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux:
        ahci: Extend ASM1061 43-bit DMA address quirk to other ASM106x parts
      03503275
    • Szilard Fabian's avatar
      Input: i8042 - add Fujitsu Lifebook U728 to i8042 quirk table · 4255447a
      Szilard Fabian authored
      Another Fujitsu-related patch.
      
      In the initial boot stage the integrated keyboard of Fujitsu Lifebook U728
      refuses to work and it's not possible to type for example a dm-crypt
      passphrase without the help of an external keyboard.
      
      i8042.nomux kernel parameter resolves this issue but using that a PS/2
      mouse is detected. This input device is unused even when the i2c-hid-acpi
      kernel module is blacklisted making the integrated ELAN touchpad
      (04F3:3092) not working at all.
      
      So this notebook uses a hid-over-i2c touchpad which is managed by the
      i2c_designware input driver. Since you can't find a PS/2 mouse port on this
      computer and you can't connect a PS/2 mouse to it even with an official
      port replicator I think it's safe to not use the PS/2 mouse port at all.
      Signed-off-by: default avatarSzilard Fabian <szfabian@bluemarch.art>
      Link: https://lore.kernel.org/r/20240103014717.127307-2-szfabian@bluemarch.artSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      4255447a
    • Linus Torvalds's avatar
      Merge tag 'block-6.8-2024-02-01' of git://git.kernel.dk/linux · 815a76b9
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
      
       - NVMe pull request via Keith:
           - Remove duplicated enums (Guixen)
           - Use appropriate controller state accessors (Keith)
           - Retryable authentication (Hannes)
           - Add missing module descriptions (Chaitanya)
           - Fibre-channel fixes for blktests (Daniel)
           - Various type correctness updates (Caleb)
           - Improve fabrics connection debugging prints (Nitin)
           - Passthrough command verbose error logging (Adam)
      
       - Fix for where we set IO priority in the bio for drivers that use
         fops->submit_bio() to queue IO, like md/dm etc.
      
      * tag 'block-6.8-2024-02-01' of git://git.kernel.dk/linux: (32 commits)
        block: Fix where bio IO priority gets set
        nvme: allow passthru cmd error logging
        nvme-fc: show hostnqn when connecting to fc target
        nvme-rdma: show hostnqn when connecting to rdma target
        nvme-tcp: show hostnqn when connecting to tcp target
        nvmet-fc: use RCU list iterator for assoc_list
        nvmet-fc: take ref count on tgtport before delete assoc
        nvmet-fc: avoid deadlock on delete association path
        nvmet-fc: abort command when there is no binding
        nvmet-fc: do not tack refs on tgtports from assoc
        nvmet-fc: remove null hostport pointer check
        nvmet-fc: hold reference on hostport match
        nvmet-fc: free queue and assoc directly
        nvmet-fc: defer cleanup using RCU properly
        nvmet-fc: release reference on target port
        nvmet-fcloop: swap the list_add_tail arguments
        nvme-fc: do not wait in vain when unloading module
        nvme-fc: log human-readable opcode on timeout
        nvme: split out fabrics version of nvme_opcode_str()
        nvme: take const cmd pointer in read-only helpers
        ...
      815a76b9
    • Linus Torvalds's avatar
      Merge tag 'io_uring-6.8-2024-02-01' of git://git.kernel.dk/linux · 717ca0b8
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
      
       - Fix for missing retry for read multishot.
      
         If we trigger the execution of it and there's more than one buffer to
         be read, then we don't always read more than the first one. As it's
         edge triggered, this can lead to stalls.
      
       - Limit inline receive multishot retries for fairness reasons.
      
         If we have a very bursty socket receiving data, we still need to
         ensure we process other requests as well. This is really two minor
         cleanups, then adding a way for poll reissue to trigger a requeue,
         and then finally having multishot receive utilize that.
      
       - Fix for a weird corner case for non-multishot receive with
         MSG_WAITALL, using provided buffers, and setting the length to
         zero (to let the buffer dictate the receive size).
      
      * tag 'io_uring-6.8-2024-02-01' of git://git.kernel.dk/linux:
        io_uring/net: fix sr->len for IORING_OP_RECV with MSG_WAITALL and buffers
        io_uring/net: limit inline multishot retries
        io_uring/poll: add requeue return code from poll multishot handling
        io_uring/net: un-indent mshot retry path in io_recv_finish()
        io_uring/poll: move poll execution helpers higher up
        io_uring/rw: ensure poll based multishot read retries appropriately
      717ca0b8
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · ec86369c
      Linus Torvalds authored
      Pull arm64 fixes from Will Deacon:
       "Two small fixes.
      
        The first one is an alternative fix for the SCS patching problem we
        thought we'd fixed in -rc1; it turned out not to be robust with all
        toolchains/configs, so this is a revert+retry which has seen some more
        testing.
      
        The other one simply removes an unused header file, but I couldn't
        resist the negative diffstat.
      
         - Really fix shadow call stack patching with LTO=full
      
         - Remove unused (empty) header file generated from the compat vDSO"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: vdso32: Remove unused vdso32-offsets.h
        arm64: scs: Disable LTO for SCS patching code
        arm64: Revert "scs: Work around full LTO issue with dynamic SCS"
      ec86369c
    • Werner Sembach's avatar
      Input: i8042 - fix strange behavior of touchpad on Clevo NS70PU · a60e6c39
      Werner Sembach authored
      When closing the laptop lid with an external screen connected, the mouse
      pointer has a constant movement to the lower right corner. Opening the
      lid again stops this movement, but after that the touchpad does no longer
      register clicks.
      
      The touchpad is connected both via i2c-hid and PS/2, the predecessor of
      this device (NS70MU) has the same layout in this regard and also strange
      behaviour caused by the psmouse and the i2c-hid driver fighting over
      touchpad control. This fix is reusing the same workaround by just
      disabling the PS/2 aux port, that is only used by the touchpad, to give the
      i2c-hid driver the lone control over the touchpad.
      
      v2: Rebased on current master
      Signed-off-by: default avatarWerner Sembach <wse@tuxedocomputers.com>
      Cc: stable@vger.kernel.org
      Link: https://lore.kernel.org/r/20231205163602.16106-1-wse@tuxedocomputers.comSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      a60e6c39
    • Mikulas Patocka's avatar
      dm-crypt, dm-verity: disable tasklets · 0a9bab39
      Mikulas Patocka authored
      Tasklets have an inherent problem with memory corruption. The function
      tasklet_action_common calls tasklet_trylock, then it calls the tasklet
      callback and then it calls tasklet_unlock. If the tasklet callback frees
      the structure that contains the tasklet or if it calls some code that may
      free it, tasklet_unlock will write into free memory.
      
      The commits 8e14f610 and d9a02e01 try to fix it for dm-crypt, but
      it is not a sufficient fix and the data corruption can still happen [1].
      There is no fix for dm-verity and dm-verity will write into free memory
      with every tasklet-processed bio.
      
      There will be atomic workqueues implemented in the kernel 6.9 [2]. They
      will have better interface and they will not suffer from the memory
      corruption problem.
      
      But we need something that stops the memory corruption now and that can be
      backported to the stable kernels. So, I'm proposing this commit that
      disables tasklets in both dm-crypt and dm-verity. This commit doesn't
      remove the tasklet support, because the tasklet code will be reused when
      atomic workqueues will be implemented.
      
      [1] https://lore.kernel.org/all/d390d7ee-f142-44d3-822a-87949e14608b@suse.de/T/
      [2] https://lore.kernel.org/lkml/20240130091300.2968534-1-tj@kernel.org/Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
      Cc: stable@vger.kernel.org
      Fixes: 39d42fa9 ("dm crypt: add flags to optionally bypass kcryptd workqueues")
      Fixes: 5721d4e5 ("dm verity: Add optional "try_verify_in_tasklet" feature")
      Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
      0a9bab39
    • Shivaprasad G Bhat's avatar
      powerpc: iommu: Bring back table group release_ownership() call · d2d00e15
      Shivaprasad G Bhat authored
      The commit 2ad56efa ("powerpc/iommu: Setup a default domain and
      remove set_platform_dma_ops") refactored the code removing the
      set_platform_dma_ops(). It missed out the table group
      release_ownership() call which would have got called otherwise
      during the guest shutdown via vfio_group_detach_container(). On
      PPC64, this particular call actually sets up the 32-bit TCE table,
      and enables the 64-bit DMA bypass etc. Now after guest shutdown,
      the subsequent host driver (e.g megaraid-sas) probe post unbind
      from vfio-pci fails like,
      
      megaraid_sas 0031:01:00.0: Warning: IOMMU dma not supported: mask 0x7fffffffffffffff, table unavailable
      megaraid_sas 0031:01:00.0: Warning: IOMMU dma not supported: mask 0xffffffff, table unavailable
      megaraid_sas 0031:01:00.0: Failed to set DMA mask
      megaraid_sas 0031:01:00.0: Failed from megasas_init_fw 6539
      
      The patch brings back the call to table_group release_ownership()
      call when switching back to PLATFORM domain from BLOCKED, while
      also separates the domain_ops for both.
      
      Fixes: 2ad56efa ("powerpc/iommu: Setup a default domain and remove set_platform_dma_ops")
      Signed-off-by: default avatarShivaprasad G Bhat <sbhat@linux.ibm.com>
      Reviewed-by: default avatarJason Gunthorpe <jgg@nvidia.com>
      Link: https://lore.kernel.org/r/170628173462.3742.18330000394415935845.stgit@ltcd48-lp2.aus.stglab.ibm.comSigned-off-by: default avatarJoerg Roedel <jroedel@suse.de>
      d2d00e15
    • Hans de Goede's avatar
      Input: atkbd - do not skip atkbd_deactivate() when skipping ATKBD_CMD_GETID · 9cf6e24c
      Hans de Goede authored
      After commit 936e4d49 ("Input: atkbd - skip ATKBD_CMD_GETID in
      translated mode") not only the getid command is skipped, but also
      the de-activating of the keyboard at the end of atkbd_probe(), potentially
      re-introducing the problem fixed by commit be2d7e42 ("Input: atkbd -
      fix multi-byte scancode handling on reconnect").
      
      Make sure multi-byte scancode handling on reconnect is still handled
      correctly by not skipping the atkbd_deactivate() call.
      
      Fixes: 936e4d49 ("Input: atkbd - skip ATKBD_CMD_GETID in translated mode")
      Tested-by: default avatarPaul Menzel <pmenzel@molgen.mpg.de>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Link: https://lore.kernel.org/r/20240126160724.13278-3-hdegoede@redhat.comSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      9cf6e24c
    • Hans de Goede's avatar
      Input: atkbd - skip ATKBD_CMD_SETLEDS when skipping ATKBD_CMD_GETID · 683cd825
      Hans de Goede authored
      After commit 936e4d49 ("Input: atkbd - skip ATKBD_CMD_GETID in
      translated mode") the keyboard on Dell XPS 13 9350 / 9360 / 9370 models
      has stopped working after a suspend/resume.
      
      The problem appears to be that atkbd_probe() fails when called
      from atkbd_reconnect() on resume, which on systems where
      ATKBD_CMD_GETID is skipped can only happen by ATKBD_CMD_SETLEDS
      failing. ATKBD_CMD_SETLEDS failing because ATKBD_CMD_GETID was
      skipped is weird, but apparently that is what is happening.
      
      Fix this by also skipping ATKBD_CMD_SETLEDS when skipping
      ATKBD_CMD_GETID.
      
      Fixes: 936e4d49 ("Input: atkbd - skip ATKBD_CMD_GETID in translated mode")
      Reported-by: default avatarPaul Menzel <pmenzel@molgen.mpg.de>
      Closes: https://lore.kernel.org/linux-input/0aa4a61f-c939-46fe-a572-08022e8931c7@molgen.mpg.de/
      Closes: https://bbs.archlinux.org/viewtopic.php?pid=2146300
      Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218424
      Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2260517Tested-by: default avatarPaul Menzel <pmenzel@molgen.mpg.de>
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Link: https://lore.kernel.org/r/20240126160724.13278-2-hdegoede@redhat.comSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      683cd825
  2. 01 Feb, 2024 24 commits