1. 14 Feb, 2024 2 commits
    • Arnd Bergmann's avatar
      nvmem: include bit index in cell sysfs file name · e20f378d
      Arnd Bergmann authored
      Creating sysfs files for all Cells caused a boot failure for linux-6.8-rc1 on
      Apple M1, which (in downstream dts files) has multiple nvmem cells that use the
      same byte address. This causes the device probe to fail with
      
      [    0.605336] sysfs: cannot create duplicate filename '/devices/platform/soc@200000000/2922bc000.efuse/apple_efuses_nvmem0/cells/efuse@a10'
      [    0.605347] CPU: 7 PID: 1 Comm: swapper/0 Tainted: G S                 6.8.0-rc1-arnd-5+ #133
      [    0.605355] Hardware name: Apple Mac Studio (M1 Ultra, 2022) (DT)
      [    0.605362] Call trace:
      [    0.605365]  show_stack+0x18/0x2c
      [    0.605374]  dump_stack_lvl+0x60/0x80
      [    0.605383]  dump_stack+0x18/0x24
      [    0.605388]  sysfs_warn_dup+0x64/0x80
      [    0.605395]  sysfs_add_bin_file_mode_ns+0xb0/0xd4
      [    0.605402]  internal_create_group+0x268/0x404
      [    0.605409]  sysfs_create_groups+0x38/0x94
      [    0.605415]  devm_device_add_groups+0x50/0x94
      [    0.605572]  nvmem_populate_sysfs_cells+0x180/0x1b0
      [    0.605682]  nvmem_register+0x38c/0x470
      [    0.605789]  devm_nvmem_register+0x1c/0x6c
      [    0.605895]  apple_efuses_probe+0xe4/0x120
      [    0.606000]  platform_probe+0xa8/0xd0
      
      As far as I can tell, this is a problem for any device with multiple cells on
      different bits of the same address. Avoid the issue by changing the file name
      to include the first bit number.
      
      Fixes: 0331c611 ("nvmem: core: Expose cells through sysfs")
      Link: https://github.com/AsahiLinux/linux/blob/bd0a1a7d4/arch/arm64/boot/dts/apple/t600x-dieX.dtsi#L156
      Cc:  <regressions@lists.linux.dev>
      Cc: Miquel Raynal <miquel.raynal@bootlin.com>
      Cc: Rafał Miłecki <rafal@milecki.pl>
      Cc: Chen-Yu Tsai <wenst@chromium.org>
      Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc:  <asahi@lists.linux.dev>
      Cc: Sven Peter <sven@svenpeter.dev>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
      Reviewed-by: default avatarEric Curtin <ecurtin@redhat.com>
      Reviewed-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Link: https://lore.kernel.org/r/20240209163454.98051-1-srinivas.kandagatla@linaro.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      e20f378d
    • Greg Kroah-Hartman's avatar
      Merge tag 'iio-fixes-for-6.8a' of... · 23d62fb5
      Greg Kroah-Hartman authored
      Merge tag 'iio-fixes-for-6.8a' of http://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into char-misc-linus
      
      Jonathan writes:
      
      IIO: 1st set of fixes for the 6.8 cycle
      
      Usual mixed bag of issues introduced this cycle and fixes for long term
      issues that have been identified recently + one case where I messed up
      a merge resolution and dropped the build file changes.
      
      Most important is the userspace ABI fix for the iio_modifier enum
      where we accidentally added new entries in the middle rather than at
      the end.
      
      IIO Core
       - Close a memory leak in an error path.
       - Move LIGHT_UVA and LIGHT_UVB definitions to end of the iio_modifier
         enum to avoid breaking older userspace. (not yet in a released kernel
         thankfully).
      
      adi,adis
       - Fix a DMA buffer alignment issue that was missing in series that fixed
         these across IIO.
      
      adi,ad-sigma-delta
       - Fix a DMA buffer alignment issue that was missing in series that fixed
         these across IIO.
      
      adi,ad4130
       - Zero init remaining fields of clock init data.
       - Only set GPIO control bits on pins that aren't in use for anything else.
      
      adi,ad5933
       - Fix an old bug due to type mismatch. This is a rare device so good to
         get some new test coverage.
      
      adi,ad7091r
       - Use right variable for an error return code.
      
      bosch,bma400
       - Add missing CONFIG_REGMAP_I2C dependency.
      
      bosch,bmp280:
       - Add missing bmp085 ID to the SPI table to avoid mismatch with the
         of_device_id table.
      
      hid-sensors:
       - Avoid returning an error for timestamp read back that succeeds.
      
      pni,rm3100
       - Check value read from RM31000_REG_TMRC register is valid before using
         it. Hardening  to avoid a real world issue seen on some faulty hardware.
      
      st,st-sensors
       - Fix a DMA buffer alignment issue that was missing in series that fixed
         these across IIO.
      
      ti,hdc3020
       - Add missing Kconfig and Makefile entrees accidentally dropped when patches
         were applied.
       - Fix wrong temperature offset (negated)
      
      * tag 'iio-fixes-for-6.8a' of http://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio:
        iio: adc: ad4130: only set GPIO_CTRL if pin is unused
        iio: adc: ad4130: zero-initialize clock init data
        iio: accel: bma400: Fix a compilation problem
        iio: commom: st_sensors: ensure proper DMA alignment
        iio: hid-sensor-als: Return 0 for HID_USAGE_SENSOR_TIME_TIMESTAMP
        iio: move LIGHT_UVA and LIGHT_UVB to the end of iio_modifier
        staging: iio: ad5933: fix type mismatch regression
        iio: humidity: hdc3020: fix temperature offset
        iio: adc: ad7091r8: Fix error code in ad7091r8_gpio_setup()
        iio: adc: ad_sigma_delta: ensure proper DMA alignment
        iio: imu: adis: ensure proper DMA alignment
        iio: humidity: hdc3020: Add Makefile, Kconfig and MAINTAINERS entry
        iio: imu: bno055: serdev requires REGMAP
        iio: magnetometer: rm3100: add boundary check for the value read from RM3100_REG_TMRC
        iio: pressure: bmp280: Add missing bmp085 to SPI id table
        iio: core: fix memleak in iio_device_register_sysfs
      23d62fb5
  2. 10 Feb, 2024 2 commits
  3. 07 Feb, 2024 1 commit
    • Greg Kroah-Hartman's avatar
      Merge tag 'icc-6.8-rc4' of... · 51c16100
      Greg Kroah-Hartman authored
      Merge tag 'icc-6.8-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/djakov/icc into char-misc-linus
      
      Georgi writes:
      
      interconnect fixes for v6.8-rc
      
      These are tiny fixes for reported issues in driver code for a few
      platforms. One of them sorts out a hang issue, the other improves
      the power consumption and the rest are fixing some bitmasks to make
      sure the hardware does thing right.
      
      -  interconnect: qcom: sc8180x: Mark CO0 BCM keepalive
      -  interconnect: qcom: sm8550: Enable sync_state
      -  interconnect: qcom: sm8650: Use correct ACV enable_mask
      -  interconnect: qcom: x1e80100: Add missing ACV enable_mask
      Signed-off-by: default avatarGeorgi Djakov <djakov@kernel.org>
      
      * tag 'icc-6.8-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/djakov/icc:
        interconnect: qcom: x1e80100: Add missing ACV enable_mask
        interconnect: qcom: sm8650: Use correct ACV enable_mask
        interconnect: qcom: sm8550: Enable sync_state
        interconnect: qcom: sc8180x: Mark CO0 BCM keepalive
      51c16100
  4. 04 Feb, 2024 15 commits
  5. 03 Feb, 2024 2 commits
    • Wolfram Sang's avatar
      Merge tag 'i2c-host-fixes-6.8-rc3' of... · 957bd221
      Wolfram Sang authored
      Merge tag 'i2c-host-fixes-6.8-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux into i2c/for-current
      
      Just a maintenance patch that updates the repository where the
      i2c host and muxes related patches will be collected.
      957bd221
    • Linus Torvalds's avatar
      Merge tag 'perf-tools-fixes-for-v6.8-1-2024-02-01' of... · b555d191
      Linus Torvalds authored
      Merge tag 'perf-tools-fixes-for-v6.8-1-2024-02-01' of git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools
      
      Pull perf tools fixes from Arnaldo Carvalho de Melo:
       "Vendor events:
      
         - Intel Alderlake/Sapphire Rapids metric fixes, the CPU type
           ("cpu_atom", "cpu_core") needs to be used as a prefix to be
           considered on a metric formula, detected via one of the 'perf test'
           entries.
      
        'perf test' fixes:
      
         - Fix the creation of event selector lists on 'perf test' entries, by
           initializing the sample ID flag, which is done by 'perf record', so
           this fix affects only the tests, the common case isn't affected
      
         - Make 'perf list' respect debug settings (-v) to fix its 'perf test'
           entry
      
         - Fix 'perf script' test when python support isn't enabled
      
         - Special case 'perf script' tests on s390, where only DWARF call
           graphs are supported and only on software events
      
         - Make 'perf daemon' signal test less racy
      
        Compiler warnings/errors:
      
         - Remove needless malloc(0) call in 'perf top' that triggers
           -Walloc-size
      
         - Fix calloc() argument order to address error introduced in gcc-14
      
        Build:
      
         - Make minimal shellcheck version to v0.6.0, avoiding the build to
           fail with older versions
      
        Sync kernel header copies:
      
         - stat.h to pick STATX_MNT_ID_UNIQUE
      
         - msr-index.h to pick IA32_MKTME_KEYID_PARTITIONING
      
         - drm.h to pick DRM_IOCTL_MODE_CLOSEFB
      
         - unistd.h to pick {list,stat}mount,
           lsm_{[gs]et_self_attr,list_modules} syscall numbers
      
         - x86 cpufeatures to pick TDX, Zen, APIC MSR fence changes
      
         - x86's mem{cpy,set}_64.S used in 'perf bench'
      
         - Also, without tooling effects: asm-generic/unaligned.h, mount.h,
           fcntl.h, kvm headers"
      
      * tag 'perf-tools-fixes-for-v6.8-1-2024-02-01' of git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools: (21 commits)
        perf tools headers: update the asm-generic/unaligned.h copy with the kernel sources
        tools include UAPI: Sync linux/mount.h copy with the kernel sources
        perf evlist: Fix evlist__new_default() for > 1 core PMU
        tools headers: Update the copy of x86's mem{cpy,set}_64.S used in 'perf bench'
        tools headers x86 cpufeatures: Sync with the kernel sources to pick TDX, Zen, APIC MSR fence changes
        tools headers UAPI: Sync unistd.h to pick {list,stat}mount, lsm_{[gs]et_self_attr,list_modules} syscall numbers
        perf vendor events intel: Alderlake/sapphirerapids metric fixes
        tools headers UAPI: Sync kvm headers with the kernel sources
        perf tools: Fix calloc() arguments to address error introduced in gcc-14
        perf top: Remove needless malloc(0) call that triggers -Walloc-size
        perf build: Make minimal shellcheck version to v0.6.0
        tools headers UAPI: Update tools's copy of drm.h headers to pick DRM_IOCTL_MODE_CLOSEFB
        perf test shell daemon: Make signal test less racy
        perf test shell script: Fix test for python being disabled
        perf test: Workaround debug output in list test
        perf list: Add output file option
        perf list: Switch error message to pr_err() to respect debug settings (-v)
        perf test: Fix 'perf script' tests on s390
        tools headers UAPI: Sync linux/fcntl.h with the kernel sources
        tools arch x86: Sync the msr-index.h copy with the kernel sources to pick IA32_MKTME_KEYID_PARTITIONING
        ...
      b555d191
  6. 02 Feb, 2024 18 commits
    • Linus Torvalds's avatar
      Merge tag 'trace-v6.8-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace · 56897d51
      Linus Torvalds authored
      Pull tracing and eventfs fixes from Steven Rostedt:
      
       - Fix the return code for ring_buffer_poll_wait()
      
         It was returing a -EINVAL instead of EPOLLERR.
      
       - Zero out the tracefs_inode so that all fields are initialized.
      
         The ti->private could have had stale data, but instead of just
         initializing it to NULL, clear out the entire structure when it is
         allocated.
      
       - Fix a crash in timerlat
      
         The hrtimer was initialized at read and not open, but is canceled at
         close. If the file was opened and never read the close will pass a
         NULL pointer to hrtime_cancel().
      
       - Rewrite of eventfs.
      
         Linus wrote a patch series to remove the dentry references in the
         eventfs_inode and to use ref counting and more of proper VFS
         interfaces to make it work.
      
       - Add warning to put_ei() if ei is not set to free. That means
         something is about to free it when it shouldn't.
      
       - Restructure the eventfs_inode to make it more compact, and remove the
         unused llist field.
      
       - Remove the fsnotify*() funtions for when the inodes were being
         created in the lookup code. It doesn't make sense to notify about
         creation just because something is being looked up.
      
       - The inode hard link count was not accurate.
      
         It was being updated when a file was looked up. The inodes of
         directories were updating their parent inode hard link count every
         time the inode was created. That means if memory reclaim cleaned a
         stale directory inode and the inode was lookup up again, it would
         increment the parent inode again as well. Al Viro said to just have
         all eventfs directories have a hard link count of 1. That tells user
         space not to trust it.
      
      * tag 'trace-v6.8-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
        eventfs: Keep all directory links at 1
        eventfs: Remove fsnotify*() functions from lookup()
        eventfs: Restructure eventfs_inode structure to be more condensed
        eventfs: Warn if an eventfs_inode is freed without is_freed being set
        tracing/timerlat: Move hrtimer_init to timerlat_fd open()
        eventfs: Get rid of dentry pointers without refcounts
        eventfs: Clean up dentry ops and add revalidate function
        eventfs: Remove unused d_parent pointer field
        tracefs: dentry lookup crapectomy
        tracefs: Avoid using the ei->dentry pointer unnecessarily
        eventfs: Initialize the tracefs inode properly
        tracefs: Zero out the tracefs_inode when allocating it
        ring-buffer: Clean ring_buffer_poll_wait() error return
      56897d51
    • Linus Torvalds's avatar
      Merge tag 'gfs2-v6.8-rc2-revert' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2 · 6b89b6af
      Linus Torvalds authored
      Pull gfs2 revert from Andreas Gruenbacher:
       "It turns out that the commit to use GL_NOBLOCK flag for non-blocking
        lookups has several issues, and not all of them have a simple fix"
      
      * tag 'gfs2-v6.8-rc2-revert' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2:
        Revert "gfs2: Use GL_NOBLOCK flag for non-blocking lookups"
      6b89b6af
    • Linus Torvalds's avatar
      Merge tag 'pci-v6.8-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci · b1dd6c26
      Linus Torvalds authored
      Pull pci fixes from Bjorn Helgaas:
      
       - Fix a potential deadlock that was reintroduced by an ASPM revert
         merged for v6.8 (Johan Hovold)
      
       - Add Manivannan Sadhasivam as PCI Endpoint maintainer (Lorenzo
         Pieralisi)
      
      * tag 'pci-v6.8-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci:
        MAINTAINERS: Add Manivannan Sadhasivam as PCI Endpoint maintainer
        PCI/ASPM: Fix deadlock when enabling ASPM
      b1dd6c26
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2024-02-03' of git://anongit.freedesktop.org/drm/drm · 9c2f0338
      Linus Torvalds authored
      Pul drm fixes from Dave Airlie:
       "Regular weekly fixes, mostly amdgpu and xe. One nouveau fix is a
        better fix for the deadlock and also helps with a sync race we were
        seeing.
      
        dma-buf:
         - heaps CMA page accounting fix
      
        virtio-gpu:
         - fix segment size
      
        xe:
         - A crash fix
         - A fix for an assert due to missing mem_acces ref
         - Only allow a single user-fence per exec / bind.
         - Some sparse warning fixes
         - Two fixes for compilation failures on various odd combinations of
           gcc / arch pointed out on LKML.
         - Fix a fragile partial allocation pointed out on LKML.
         - A sysfs ABI documentation warning fix
      
        amdgpu:
         - Fix reboot issue seen on some 7000 series dGPUs
         - Fix client init order for KFD
         - Misc display fixes
         - USB-C fix
         - DCN 3.5 fixes
         - Fix issues with GPU scheduler and GPU reset
         - GPU firmware loading fix
         - Misc fixes
         - GC 11.5 fix
         - VCN 4.0.5 fix
         - IH overflow fix
      
        amdkfd:
         - SVM fixes
         - Trap handler fix
         - Fix device permission lookup
         - Properly reserve BO before validating it
      
        nouveau:
         - fence/irq lock deadlock fix (second attempt)
         - gsp command size fix
      
      * tag 'drm-fixes-2024-02-03' of git://anongit.freedesktop.org/drm/drm: (35 commits)
        nouveau: offload fence uevents work to workqueue
        nouveau/gsp: use correct size for registry rpc.
        drm/amdgpu/pm: Use inline function for IP version check
        drm/hwmon: Fix abi doc warnings
        drm/xe: Make all GuC ABI shift values unsigned
        drm/xe/vm: Subclass userptr vmas
        drm/xe: Use LRC prefix rather than CTX prefix in lrc desc defines
        drm/xe: Don't use __user error pointers
        drm/xe: Annotate mcr_[un]lock()
        drm/xe: Only allow 1 ufence per exec / bind IOCTL
        drm/xe: Grab mem_access when disabling C6 on skip_guc_pc platforms
        drm/xe: Fix crash in trace_dma_fence_init()
        drm/amdgpu: Reset IH OVERFLOW_CLEAR bit
        drm/amdgpu: remove asymmetrical irq disabling in vcn 4.0.5 suspend
        drm/amdgpu: drm/amdgpu: remove golden setting for gfx 11.5.0
        drm/amdkfd: reserve the BO before validating it
        drm/amdgpu: Fix missing error code in 'gmc_v6/7/8/9_0_hw_init()'
        drm/amd/display: Fix buffer overflow in 'get_host_router_total_dp_tunnel_bw()'
        drm/amd/display: Add NULL check for kzalloc in 'amdgpu_dm_atomic_commit_tail()'
        drm/amd: Don't init MEC2 firmware when it fails to load
        ...
      9c2f0338
    • 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
    • Greg Kroah-Hartman's avatar
      Merge tag 'usb-serial-6.8-rc3' of... · ad834c7c
      Greg Kroah-Hartman authored
      Merge tag 'usb-serial-6.8-rc3' of https://git.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial into usb-linus
      
      Johan writes:
      
      USB-serial device ids for 6.8-rc3
      
      Here are some new device ids for 6.8-rc3.
      
      All have been in linux-next with no reported issues.
      
      * tag 'usb-serial-6.8-rc3' of https://git.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial:
        USB: serial: option: add Fibocom FM101-GL variant
        USB: serial: qcserial: add new usb-id for Dell Wireless DW5826e
        USB: serial: cp210x: add ID for IMST iM871A-USB
      ad834c7c