Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge/sound upstream 20240910 #5172

This pull request is big! We’re only showing the most recent 250 commits.

Commits on Aug 26, 2024

  1. ethtool: check device is present when getting link settings

    A sysfs reader can race with a device reset or removal, attempting to
    read device state when the device is not actually present. eg:
    
         [exception RIP: qed_get_current_link+17]
      thesofproject#8 [ffffb9e4f2907c48] qede_get_link_ksettings at ffffffffc07a994a [qede]
      thesofproject#9 [ffffb9e4f2907cd8] __rh_call_get_link_ksettings at ffffffff992b01a3
     thesofproject#10 [ffffb9e4f2907d38] __ethtool_get_link_ksettings at ffffffff992b04e4
     thesofproject#11 [ffffb9e4f2907d90] duplex_show at ffffffff99260300
     thesofproject#12 [ffffb9e4f2907e38] dev_attr_show at ffffffff9905a01c
     thesofproject#13 [ffffb9e4f2907e50] sysfs_kf_seq_show at ffffffff98e0145b
     thesofproject#14 [ffffb9e4f2907e68] seq_read at ffffffff98d902e3
     thesofproject#15 [ffffb9e4f2907ec8] vfs_read at ffffffff98d657d1
     thesofproject#16 [ffffb9e4f2907f00] ksys_read at ffffffff98d65c3f
     thesofproject#17 [ffffb9e4f2907f38] do_syscall_64 at ffffffff98a052fb
    
     crash> struct net_device.state ffff9a9d21336000
        state = 5,
    
    state 5 is __LINK_STATE_START (0b1) and __LINK_STATE_NOCARRIER (0b100).
    The device is not present, note lack of __LINK_STATE_PRESENT (0b10).
    
    This is the same sort of panic as observed in commit 4224cfd
    ("net-sysfs: add check for netdevice being present to speed_show").
    
    There are many other callers of __ethtool_get_link_ksettings() which
    don't have a device presence check.
    
    Move this check into ethtool to protect all callers.
    
    Fixes: d519e17 ("net: export device speed and duplex via sysfs")
    Fixes: 4224cfd ("net-sysfs: add check for netdevice being present to speed_show")
    Signed-off-by: Jamie Bainbridge <jamie.bainbridge@gmail.com>
    Link: https://patch.msgid.link/8bae218864beaa44ed01628140475b9bf641c5b0.1724393671.git.jamie.bainbridge@gmail.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    superjamie authored and kuba-moo committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    a699781 View commit details
    Browse the repository at this point in the history
  2. net: ti: icssg-prueth: Fix 10M Link issue on AM64x

    Crash is seen on AM64x 10M link when connecting / disconnecting multiple
    times.
    
    The fix for this is to enable quirk_10m_link_issue for AM64x.
    
    Fixes: b256e13 ("net: ti: icssg-prueth: Add AM64x icssg support")
    Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
    Reviewed-by: Roger Quadros <rogerq@kernel.org>
    Link: https://patch.msgid.link/20240823120412.1262536-1-danishanwar@ti.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    danish-ti authored and kuba-moo committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    e846be0 View commit details
    Browse the repository at this point in the history
  3. fs/nfsd: fix update of inode attrs in CB_GETATTR

    Currently, we copy the mtime and ctime to the in-core inode and then
    mark the inode dirty. This is fine for certain types of filesystems, but
    not all. Some require a real setattr to properly change these values
    (e.g. ceph or reexported NFS).
    
    Fix this code to call notify_change() instead, which is the proper way
    to effect a setattr. There is one problem though:
    
    In this case, the client is holding a write delegation and has sent us
    attributes to update our cache. We don't want to break the delegation
    for this since that would defeat the purpose. Add a new ATTR_DELEG flag
    that makes notify_change bypass the try_break_deleg call.
    
    Fixes: c596772 ("NFSD: handle GETATTR conflict with write delegation")
    Reviewed-by: Christian Brauner <brauner@kernel.org>
    Signed-off-by: Jeff Layton <jlayton@kernel.org>
    Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
    jtlayton authored and chucklever committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    7e8ae84 View commit details
    Browse the repository at this point in the history
  4. video/aperture: optionally match the device in sysfb_disable()

    In aperture_remove_conflicting_pci_devices(), we currently only
    call sysfb_disable() on vga class devices.  This leads to the
    following problem when the pimary device is not VGA compatible:
    
    1. A PCI device with a non-VGA class is the boot display
    2. That device is probed first and it is not a VGA device so
       sysfb_disable() is not called, but the device resources
       are freed by aperture_detach_platform_device()
    3. Non-primary GPU has a VGA class and it ends up calling sysfb_disable()
    4. NULL pointer dereference via sysfb_disable() since the resources
       have already been freed by aperture_detach_platform_device() when
       it was called by the other device.
    
    Fix this by passing a device pointer to sysfb_disable() and checking
    the device to determine if we should execute it or not.
    
    v2: Fix build when CONFIG_SCREEN_INFO is not set
    v3: Move device check into the mutex
        Drop primary variable in aperture_remove_conflicting_pci_devices()
        Drop __init on pci sysfb_pci_dev_is_enabled()
    
    Fixes: 5ae3716 ("video/aperture: Only remove sysfb on the default vga pci device")
    Cc: Javier Martinez Canillas <javierm@redhat.com>
    Cc: Thomas Zimmermann <tzimmermann@suse.de>
    Cc: Helge Deller <deller@gmx.de>
    Cc: Sam Ravnborg <sam@ravnborg.org>
    Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Cc: stable@vger.kernel.org
    Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
    Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20240821191135.829765-1-alexander.deucher@amd.com
    alexdeucher committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    b49420d View commit details
    Browse the repository at this point in the history
  5. btrfs: fix a use-after-free when hitting errors inside btrfs_submit_c…

    …hunk()
    
    [BUG]
    There is an internal report that KASAN is reporting use-after-free, with
    the following backtrace:
    
      BUG: KASAN: slab-use-after-free in btrfs_check_read_bio+0xa68/0xb70 [btrfs]
      Read of size 4 at addr ffff8881117cec28 by task kworker/u16:2/45
      CPU: 1 UID: 0 PID: 45 Comm: kworker/u16:2 Not tainted 6.11.0-rc2-next-20240805-default+ thesofproject#76
      Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.2-3-gd478f380-rebuilt.opensuse.org 04/01/2014
      Workqueue: btrfs-endio btrfs_end_bio_work [btrfs]
      Call Trace:
       dump_stack_lvl+0x61/0x80
       print_address_description.constprop.0+0x5e/0x2f0
       print_report+0x118/0x216
       kasan_report+0x11d/0x1f0
       btrfs_check_read_bio+0xa68/0xb70 [btrfs]
       process_one_work+0xce0/0x12a0
       worker_thread+0x717/0x1250
       kthread+0x2e3/0x3c0
       ret_from_fork+0x2d/0x70
       ret_from_fork_asm+0x11/0x20
    
      Allocated by task 20917:
       kasan_save_stack+0x37/0x60
       kasan_save_track+0x10/0x30
       __kasan_slab_alloc+0x7d/0x80
       kmem_cache_alloc_noprof+0x16e/0x3e0
       mempool_alloc_noprof+0x12e/0x310
       bio_alloc_bioset+0x3f0/0x7a0
       btrfs_bio_alloc+0x2e/0x50 [btrfs]
       submit_extent_page+0x4d1/0xdb0 [btrfs]
       btrfs_do_readpage+0x8b4/0x12a0 [btrfs]
       btrfs_readahead+0x29a/0x430 [btrfs]
       read_pages+0x1a7/0xc60
       page_cache_ra_unbounded+0x2ad/0x560
       filemap_get_pages+0x629/0xa20
       filemap_read+0x335/0xbf0
       vfs_read+0x790/0xcb0
       ksys_read+0xfd/0x1d0
       do_syscall_64+0x6d/0x140
       entry_SYSCALL_64_after_hwframe+0x4b/0x53
    
      Freed by task 20917:
       kasan_save_stack+0x37/0x60
       kasan_save_track+0x10/0x30
       kasan_save_free_info+0x37/0x50
       __kasan_slab_free+0x4b/0x60
       kmem_cache_free+0x214/0x5d0
       bio_free+0xed/0x180
       end_bbio_data_read+0x1cc/0x580 [btrfs]
       btrfs_submit_chunk+0x98d/0x1880 [btrfs]
       btrfs_submit_bio+0x33/0x70 [btrfs]
       submit_one_bio+0xd4/0x130 [btrfs]
       submit_extent_page+0x3ea/0xdb0 [btrfs]
       btrfs_do_readpage+0x8b4/0x12a0 [btrfs]
       btrfs_readahead+0x29a/0x430 [btrfs]
       read_pages+0x1a7/0xc60
       page_cache_ra_unbounded+0x2ad/0x560
       filemap_get_pages+0x629/0xa20
       filemap_read+0x335/0xbf0
       vfs_read+0x790/0xcb0
       ksys_read+0xfd/0x1d0
       do_syscall_64+0x6d/0x140
       entry_SYSCALL_64_after_hwframe+0x4b/0x53
    
    [CAUSE]
    Although I cannot reproduce the error, the report itself is good enough
    to pin down the cause.
    
    The call trace is the regular endio workqueue context, but the
    free-by-task trace is showing that during btrfs_submit_chunk() we
    already hit a critical error, and is calling btrfs_bio_end_io() to error
    out.  And the original endio function called bio_put() to free the whole
    bio.
    
    This means a double freeing thus causing use-after-free, e.g.:
    
    1. Enter btrfs_submit_bio() with a read bio
       The read bio length is 128K, crossing two 64K stripes.
    
    2. The first run of btrfs_submit_chunk()
    
    2.1 Call btrfs_map_block(), which returns 64K
    2.2 Call btrfs_split_bio()
        Now there are two bios, one referring to the first 64K, the other
        referring to the second 64K.
    2.3 The first half is submitted.
    
    3. The second run of btrfs_submit_chunk()
    
    3.1 Call btrfs_map_block(), which by somehow failed
        Now we call btrfs_bio_end_io() to handle the error
    
    3.2 btrfs_bio_end_io() calls the original endio function
        Which is end_bbio_data_read(), and it calls bio_put() for the
        original bio.
    
        Now the original bio is freed.
    
    4. The submitted first 64K bio finished
       Now we call into btrfs_check_read_bio() and tries to advance the bio
       iter.
       But since the original bio (thus its iter) is already freed, we
       trigger the above use-after free.
    
       And even if the memory is not poisoned/corrupted, we will later call
       the original endio function, causing a double freeing.
    
    [FIX]
    Instead of calling btrfs_bio_end_io(), call btrfs_orig_bbio_end_io(),
    which has the extra check on split bios and do the proper refcounting
    for cloned bios.
    
    Furthermore there is already one extra btrfs_cleanup_bio() call, but
    that is duplicated to btrfs_orig_bbio_end_io() call, so remove that
    label completely.
    
    Reported-by: David Sterba <dsterba@suse.com>
    Fixes: 852eee6 ("btrfs: allow btrfs_submit_bio to split bios")
    CC: stable@vger.kernel.org # 6.6+
    Reviewed-by: Josef Bacik <josef@toxicpanda.com>
    Signed-off-by: Qu Wenruo <wqu@suse.com>
    Reviewed-by: David Sterba <dsterba@suse.com>
    Signed-off-by: David Sterba <dsterba@suse.com>
    adam900710 authored and kdave committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    10d9d8c View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2024

  1. bcachefs: Fix failure to return error in data_update_index_update()

    This fixes an assertion pop in io_write.c - if we don't return an error
    we're supposed to have completed all the btree updates.
    
    Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
    Kent Overstreet committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    66927b8 View commit details
    Browse the repository at this point in the history
  2. bcachefs: Fix bch2_extents_match() false positive

    This was caught as a very rare nonce inconsistency, on systems with
    encryption and replication (and tiering, or some form of rebalance
    operation running):
    
    [Wed Jul 17 13:30:03 2024] about to insert invalid key in data update path
    [Wed Jul 17 13:30:03 2024] old: u64s 10 type extent 671283510:6392:U32_MAX len 16 ver 106595503: durability: 2 crc: c_size 8 size 16 offset 0 nonce 0 csum chacha20_poly1305_80 compress zstd ptr: 3:355968:104 gen 7 ptr: 4:513244:48 gen 6 rebalance: target hdd compression zstd
    [Wed Jul 17 13:30:03 2024] k:   u64s 10 type extent 671283510:6400:U32_MAX len 16 ver 106595508: durability: 2 crc: c_size 8 size 16 offset 0 nonce 0 csum chacha20_poly1305_80 compress zstd ptr: 3:355968:112 gen 7 ptr: 4:513244:56 gen 6 rebalance: target hdd compression zstd
    [Wed Jul 17 13:30:03 2024] new: u64s 14 type extent 671283510:6392:U32_MAX len 8 ver 106595508: durability: 2 crc: c_size 8 size 16 offset 0 nonce 0 csum chacha20_poly1305_80 compress zstd ptr: 3:355968:112 gen 7 cached ptr: 4:513244:56 gen 6 cached rebalance: target hdd compression zstd crc: c_size 8 size 16 offset 8 nonce 0 csum chacha20_poly1305_80 compress zstd ptr: 1:10860085:32 gen 0 ptr: 0:17285918:408 gen 0
    [Wed Jul 17 13:30:03 2024] bcachefs (cca5bc65-fe77-409d-a9fa-465a6e7f4eae): fatal error - emergency read only
    
    bch2_extents_match() was reporting true for extents that did not
    actually point to the same data.
    
    bch2_extent_match() iterates over pairs of pointers, looking for
    pointers that point to the same location on disk (with matching
    generation numbers). However one or both extents may have been trimmed
    (or merged) and they might not have the same disk offset: it corrects
    for this by subtracting the key offset and the checksum entry offset.
    
    However, this failed when an extent was immediately partially
    overwritten, and the new overwrite was allocated the next adjacent disk
    space.
    
    Normally, with compression off, this would never cause a bug, since the
    new extent would have to be immediately after the old extent for the
    pointer offsets to match, and the rebalance index update path is not
    looking for an extent outside the range of the extent it moved.
    
    However with compression enabled, extents take up less space on disk
    than they do in the btree index space - and spuriously matching after
    partial overwrite is possible.
    
    To fix this, add a secondary check, that strictly checks that the
    regions pointed to on disk overlap.
    
    koverstreet/bcachefs#717
    
    Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
    Kent Overstreet committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    d269356 View commit details
    Browse the repository at this point in the history
  3. hwmon: (pt5161l) Fix invalid temperature reading

    The temperature reading function was using a signed long for the ADC
    code, which could lead to mishandling of invalid codes on 32-bit
    platforms. This allowed out-of-range ADC codes to be incorrectly
    interpreted as valid values and used in temperature calculations.
    
    Change adc_code to u32 to ensure that invalid ADC codes are correctly
    identified on all platforms.
    
    Fixes: 1b2ca93 ("hwmon: Add driver for Astera Labs PT5161L retimer")
    Signed-off-by: Cosmo Chou <chou.cosmo@gmail.com>
    Message-ID: <20240819104630.2375441-1-chou.cosmo@gmail.com>
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    cchoux authored and groeck committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    7bbc079 View commit details
    Browse the repository at this point in the history
  4. Merge tag 'vfs-6.11-rc6.fixes' of gitolite.kernel.org:pub/scm/linux/k…

    …ernel/git/vfs/vfs
    
    Pull vfs fixes from Christian Brauner:
     "VFS:
    
       - Ensure that backing files uses file->f_ops->splice_write() for
         splice
    
      netfs:
    
       - Revert the removal of PG_private_2 from netfs_release_folio() as
         cephfs still relies on this
    
       - When AS_RELEASE_ALWAYS is set on a mapping the folio needs to
         always be invalidated during truncation
    
       - Fix losing untruncated data in a folio by making letting
         netfs_release_folio() return false if the folio is dirty
    
       - Fix trimming of streaming-write folios in netfs_inval_folio()
    
       - Reset iterator before retrying a short read
    
       - Fix interaction of streaming writes with zero-point tracker
    
      afs:
    
       - During truncation afs currently calls truncate_setsize() which sets
         i_size, expands the pagecache and truncates it. The first two
         operations aren't needed because they will have already been done.
         So call truncate_pagecache() instead and skip the redundant parts
    
      overlayfs:
    
       - Fix checking of the number of allowed lower layers so 500 layers
         can actually be used instead of just 499
    
       - Add missing '\n' to pr_err() output
    
       - Pass string to ovl_parse_layer() and thus allow it to be used for
         Opt_lowerdir as well
    
      pidfd:
    
       - Revert blocking the creation of pidfds for kthread as apparently
         userspace relies on this. Specifically, it breaks systemd during
         shutdown
    
      romfs:
    
       - Fix romfs_read_folio() to use the correct offset with
         folio_zero_tail()"
    
    * tag 'vfs-6.11-rc6.fixes' of gitolite.kernel.org:pub/scm/linux/kernel/git/vfs/vfs:
      netfs: Fix interaction of streaming writes with zero-point tracker
      netfs: Fix missing iterator reset on retry of short read
      netfs: Fix trimming of streaming-write folios in netfs_inval_folio()
      netfs: Fix netfs_release_folio() to say no if folio dirty
      afs: Fix post-setattr file edit to do truncation correctly
      mm: Fix missing folio invalidation calls during truncation
      ovl: ovl_parse_param_lowerdir: Add missed '\n' for pr_err
      ovl: fix wrong lowerdir number check for parameter Opt_lowerdir
      ovl: pass string to ovl_parse_layer()
      backing-file: convert to using fops->splice_write
      Revert "pidfd: prevent creation of pidfds for kthreads"
      romfs: fix romfs_read_folio()
      netfs, ceph: Partially revert "netfs: Replace PG_fscache by setting folio->private and marking dirty"
    torvalds committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    3e9bff3 View commit details
    Browse the repository at this point in the history
  5. USB: serial: option: add MeiG Smart SRM825L

    Add support for MeiG Smart SRM825L which is based on Qualcomm 315 chip.
    
    T:  Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=5000 MxCh= 0
    D:  Ver= 3.20 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs=  1
    P:  Vendor=2dee ProdID=4d22 Rev= 4.14
    S:  Manufacturer=MEIG
    S:  Product=LTE-A Module
    S:  SerialNumber=6f345e48
    C:* #Ifs= 6 Cfg#= 1 Atr=80 MxPwr=896mA
    I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=30 Driver=option
    E:  Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
    E:  Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
    I:* If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=40 Driver=option
    E:  Ad=83(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
    E:  Ad=82(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
    E:  Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
    I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=40 Driver=option
    E:  Ad=85(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
    E:  Ad=84(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
    E:  Ad=03(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
    I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=60 Driver=option
    E:  Ad=87(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
    E:  Ad=86(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
    E:  Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
    I:* If#= 4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=(none)
    E:  Ad=05(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
    E:  Ad=88(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
    I:* If#= 5 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=50 Driver=qmi_wwan
    E:  Ad=89(I) Atr=03(Int.) MxPS=   8 Ivl=32ms
    E:  Ad=8e(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
    E:  Ad=0f(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
    
    Signed-off-by: ZHANG Yuntian <yt@radxa.com>
    Link: https://lore.kernel.org/0041DFA5200EFB1B+20240803074619.563116-1-yt@radxa.com/
    Cc: stable@vger.kernel.org
    Signed-off-by: Johan Hovold <johan@kernel.org>
    RadxaYuntian authored and jhovold committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    9a471de View commit details
    Browse the repository at this point in the history
  6. wifi: wfx: repair open network AP mode

    RSN IE missing in beacon is normal in open networks.
    Avoid returning -EINVAL in this case.
    
    Steps to reproduce:
    
    $ cat /etc/wpa_supplicant.conf
    network={
    	ssid="testNet"
    	mode=2
    	key_mgmt=NONE
    }
    
    $ wpa_supplicant -iwlan0 -c /etc/wpa_supplicant.conf
    nl80211: Beacon set failed: -22 (Invalid argument)
    Failed to set beacon parameters
    Interface initialization failed
    wlan0: interface state UNINITIALIZED->DISABLED
    wlan0: AP-DISABLED
    wlan0: Unable to setup interface.
    Failed to initialize AP interface
    
    After the change:
    
    $ wpa_supplicant -iwlan0 -c /etc/wpa_supplicant.conf
    Successfully initialized wpa_supplicant
    wlan0: interface state UNINITIALIZED->ENABLED
    wlan0: AP-ENABLED
    
    Cc: stable@vger.kernel.org
    Fixes: fe0a777 ("wifi: wfx: fix possible NULL pointer dereference in wfx_set_mfp_ap()")
    Signed-off-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
    Reviewed-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
    Signed-off-by: Kalle Valo <kvalo@kernel.org>
    Link: https://patch.msgid.link/20240823131521.3309073-1-alexander.sverdlin@siemens.com
    ccpalex authored and Kalle Valo committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    6d30bb8 View commit details
    Browse the repository at this point in the history
  7. wifi: iwlwifi: clear trans->state earlier upon error

    When the firmware crashes, we first told the op_mode and only then,
    changed the transport's state. This is a problem if the op_mode's
    nic_error() handler needs to send a host command: it'll see that the
    transport's state still reflects that the firmware is alive.
    
    Today, this has no consequences since we set the STATUS_FW_ERROR bit and
    that will prevent sending host commands. iwl_fw_dbg_stop_restart_recording
    looks at this bit to know not to send a host command for example.
    
    To fix the hibernation, we needed to reset the firmware without having
    an error and checking STATUS_FW_ERROR to see whether the firmware is
    alive will no longer hold, so this change is necessary as well.
    
    Change the flow a bit.
    Change trans->state before calling the op_mode's nic_error() method and
    check trans->state instead of STATUS_FW_ERROR. This will keep the
    current behavior of iwl_fw_dbg_stop_restart_recording upon firmware
    error, and it'll allow us to call iwl_fw_dbg_stop_restart_recording
    safely even if STATUS_FW_ERROR is clear, but yet, the firmware is not
    alive.
    
    Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
    Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
    Link: https://patch.msgid.link/20240825191257.9d7427fbdfd7.Ia056ca57029a382c921d6f7b6a6b28fc480f2f22@changeid
    [I missed this was a dependency for the hibernation fix, changed
     the commit message a bit accordingly]
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    egrumbach authored and jmberg-intel committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    094513f View commit details
    Browse the repository at this point in the history
  8. drm/i915/dsi: Make Lenovo Yoga Tab 3 X90F DMI match less strict

    There are 2G and 4G RAM versions of the Lenovo Yoga Tab 3 X90F and it
    turns out that the 2G version has a DMI product name of
    "CHERRYVIEW D1 PLATFORM" where as the 4G version has
    "CHERRYVIEW C0 PLATFORM". The sys-vendor + product-version check are
    unique enough that the product-name check is not necessary.
    
    Drop the product-name check so that the existing DMI match for the 4G
    RAM version also matches the 2G RAM version.
    
    Fixes: f6f4a08 ("drm/i915/vlv_dsi: Add DMI quirk for backlight control issues on Lenovo Yoga Tab 3 (v2)")
    Cc: stable@vger.kernel.org
    Acked-by: Jani Nikula <jani.nikula@intel.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20240823075055.17198-1-hdegoede@redhat.com
    (cherry picked from commit a4dbe45)
    Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
    jwrdegoede authored and jlahtine-intel committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    7d058e6 View commit details
    Browse the repository at this point in the history
  9. drm/i915: ARL requires a newer GSC firmware

    ARL and MTL share a single GSC firmware blob. However, ARL requires a
    newer version of it.
    
    So add differentiate of the PCI ids for ARL from MTL and create ARL as
    a sub-platform of MTL. That way, all the existing workarounds and such
    still treat ARL as MTL exactly as before. However, now the GSC code
    can check for ARL and do an extra version check on the firmware before
    committing to it.
    
    Also, the version extraction code has various ways of failing but the
    return code was being ignore and so the firmware load would attempt to
    continue anyway. Fix that by propagating the return code to the next
    level out.
    
    Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
    Fixes: 213c436 ("drm/i915/mtl: Remove the 'force_probe' requirement for Meteor Lake")
    Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
    Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20240802031051.3816392-1-John.C.Harrison@Intel.com
    Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
    (cherry picked from commit 67733d7)
    Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
    johnharr-intel authored and jlahtine-intel committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    2955ae8 View commit details
    Browse the repository at this point in the history
  10. ionic: Prevent tx_timeout due to frequent doorbell ringing

    With recent work to the doorbell workaround code a small hole was
    introduced that could cause a tx_timeout. This happens if the rx
    dbell_deadline goes beyond the netdev watchdog timeout set by the driver
    (i.e. 2 seconds). Fix this by changing the netdev watchdog timeout to 5
    seconds and reduce the max rx dbell_deadline to 4 seconds.
    
    The test that can reproduce the issue being fixed is a multi-queue send
    test via pktgen with the "burst" setting to 1. This causes the queue's
    doorbell to be rung on every packet sent to the driver, which may result
    in the device missing doorbells due to the high doorbell rate.
    
    Cc: stable@vger.kernel.org
    Fixes: 4ded136 ("ionic: add work item for missed-doorbell check")
    Signed-off-by: Brett Creeley <brett.creeley@amd.com>
    Reviewed-by: Shannon Nelson <shannon.nelson@amd.com>
    Link: https://patch.msgid.link/20240822192557.9089-1-brett.creeley@amd.com
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>
    brettcreeley authored and Paolo Abeni committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    4786fe2 View commit details
    Browse the repository at this point in the history
  11. xfs: use XFS_BUF_DADDR_NULL for daddrs in getfsmap code

    Use XFS_BUF_DADDR_NULL (instead of a magic sentinel value) to mean "this
    field is null" like the rest of xfs.
    
    Cc: wozizhi@huawei.com
    Fixes: e89c041 ("xfs: implement the GETFSMAP ioctl")
    Reviewed-by: Christoph Hellwig <hch@lst.de>
    Signed-off-by: Darrick J. Wong <djwong@kernel.org>
    Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
    Darrick J. Wong authored and Chandan Babu R committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    6b35cc8 View commit details
    Browse the repository at this point in the history
  12. xfs: Fix missing interval for missing_owner in xfs fsmap

    In the fsmap query of xfs, there is an interval missing problem:
    [root@fedora ~]# xfs_io -c 'fsmap -vvvv' /mnt
     EXT: DEV    BLOCK-RANGE           OWNER              FILE-OFFSET      AG AG-OFFSET             TOTAL
       0: 253:16 [0..7]:               static fs metadata                  0  (0..7)                    8
       1: 253:16 [8..23]:              per-AG metadata                     0  (8..23)                  16
       2: 253:16 [24..39]:             inode btree                         0  (24..39)                 16
       3: 253:16 [40..47]:             per-AG metadata                     0  (40..47)                  8
       4: 253:16 [48..55]:             refcount btree                      0  (48..55)                  8
       5: 253:16 [56..103]:            per-AG metadata                     0  (56..103)                48
       6: 253:16 [104..127]:           free space                          0  (104..127)               24
       ......
    
    BUG:
    [root@fedora ~]# xfs_io -c 'fsmap -vvvv -d 104 107' /mnt
    [root@fedora ~]#
    Normally, we should be able to get [104, 107), but we got nothing.
    
    The problem is caused by shifting. The query for the problem-triggered
    scenario is for the missing_owner interval (e.g. freespace in rmapbt/
    unknown space in bnobt), which is obtained by subtraction (gap). For this
    scenario, the interval is obtained by info->last. However, rec_daddr is
    calculated based on the start_block recorded in key[1], which is converted
    by calling XFS_BB_TO_FSBT. Then if rec_daddr does not exceed
    info->next_daddr, which means keys[1].fmr_physical >> (mp)->m_blkbb_log
    <= info->next_daddr, no records will be displayed. In the above example,
    104 >> (mp)->m_blkbb_log = 12 and 107 >> (mp)->m_blkbb_log = 12, so the two
    are reduced to 0 and the gap is ignored:
    
     before calculate ----------------> after shifting
     104(st)  107(ed)		      12(st/ed)
      |---------|				  |
      sector size			      block size
    
    Resolve this issue by introducing the "end_daddr" field in
    xfs_getfsmap_info. This records |key[1].fmr_physical + key[1].length| at
    the granularity of sector. If the current query is the last, the rec_daddr
    is end_daddr to prevent missing interval problems caused by shifting. We
    only need to focus on the last query, because xfs disks are internally
    aligned with disk blocksize that are powers of two and minimum 512, so
    there is no problem with shifting in previous queries.
    
    After applying this patch, the above problem have been solved:
    [root@fedora ~]# xfs_io -c 'fsmap -vvvv -d 104 107' /mnt
     EXT: DEV    BLOCK-RANGE      OWNER            FILE-OFFSET      AG AG-OFFSET        TOTAL
       0: 253:16 [104..106]:      free space                        0  (104..106)           3
    
    Fixes: e89c041 ("xfs: implement the GETFSMAP ioctl")
    Signed-off-by: Zizhi Wo <wozizhi@huawei.com>
    Reviewed-by: Darrick J. Wong <djwong@kernel.org>
    [djwong: limit the range of end_addr correctly]
    Signed-off-by: Darrick J. Wong <djwong@kernel.org>
    Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
    Zizhi Wo authored and Chandan Babu R committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    ca6448a View commit details
    Browse the repository at this point in the history
  13. xfs: take m_growlock when running growfsrt

    Take the grow lock when we're expanding the realtime volume, like we do
    for the other growfs calls.
    
    Reviewed-by: Christoph Hellwig <hch@lst.de>
    Signed-off-by: Darrick J. Wong <djwong@kernel.org>
    Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
    Darrick J. Wong authored and Chandan Babu R committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    16e1fbd View commit details
    Browse the repository at this point in the history
  14. xfs: reset rootdir extent size hint after growfsrt

    If growfsrt is run on a filesystem that doesn't have a rt volume, it's
    possible to change the rt extent size.  If the root directory was
    previously set up with an inherited extent size hint and rtinherit, it's
    possible that the hint is no longer a multiple of the rt extent size.
    Although the verifiers don't complain about this, xfs_repair will, so if
    we detect this situation, log the root directory to clean it up.  This
    is still racy, but it's better than nothing.
    
    Reviewed-by: Christoph Hellwig <hch@lst.de>
    Signed-off-by: Darrick J. Wong <djwong@kernel.org>
    Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
    Darrick J. Wong authored and Chandan Babu R committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    a24cae8 View commit details
    Browse the repository at this point in the history
  15. drm/xe: Invalidate media_gt TLBs

    Testing on LNL has shown media TLBs need to be invalidated via the GuC,
    update xe_vm_invalidate_vma appropriately.
    
    v2: Fix 2 tile case
    v3: Include missing local change
    
    Fixes: 3330361 ("drm/xe/lnl: Add LNL platform definition")
    Signed-off-by: Matthew Brost <matthew.brost@intel.com>
    Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20240820160129.986889-1-matthew.brost@intel.com
    (cherry picked from commit 77cc3f6)
    Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
    mbrost05 authored and rodrigovivi committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    1eb5258 View commit details
    Browse the repository at this point in the history
  16. btrfs: fix uninitialized return value from btrfs_reclaim_sweep()

    The return variable 'ret' at btrfs_reclaim_sweep() is never assigned if
    none of the space infos is reclaimable (for example if periodic reclaim
    is disabled, which is the default), so we return an undefined value.
    
    This can be fixed my making btrfs_reclaim_sweep() not return any value
    as well as do_reclaim_sweep() because:
    
    1) do_reclaim_sweep() always returns 0, so we can make it return void;
    
    2) The only caller of btrfs_reclaim_sweep() (btrfs_reclaim_bgs()) doesn't
       care about its return value, and in its context there's nothing to do
       about any errors anyway.
    
    Therefore remove the return value from btrfs_reclaim_sweep() and
    do_reclaim_sweep().
    
    Fixes: e4ca393 ("btrfs: periodic block_group reclaim")
    Reviewed-by: Josef Bacik <josef@toxicpanda.com>
    Signed-off-by: Filipe Manana <fdmanana@suse.com>
    Reviewed-by: David Sterba <dsterba@suse.com>
    Signed-off-by: David Sterba <dsterba@suse.com>
    fdmanana authored and kdave committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    ecb5427 View commit details
    Browse the repository at this point in the history
  17. net_sched: sch_fq: fix incorrect behavior for small weights

    fq_dequeue() has a complex logic to find packets in one of the 3 bands.
    
    As Neal found out, it is possible that one band has a deficit smaller
    than its weight. fq_dequeue() can return NULL while some packets are
    elligible for immediate transmit.
    
    In this case, more than one iteration is needed to refill pband->credit.
    
    With default parameters (weights 589824 196608 65536) bug can trigger
    if large BIG TCP packets are sent to the lowest priority band.
    
    Bisected-by: John Sperbeck <jsperbeck@google.com>
    Diagnosed-by: Neal Cardwell <ncardwell@google.com>
    Fixes: 29f834a ("net_sched: sch_fq: add 3 bands and WRR scheduling")
    Signed-off-by: Eric Dumazet <edumazet@google.com>
    Reviewed-by: Neal Cardwell <ncardwell@google.com>
    Link: https://patch.msgid.link/20240824181901.953776-1-edumazet@google.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Eric Dumazet authored and kuba-moo committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    bc21000 View commit details
    Browse the repository at this point in the history
  18. netfilter: nf_tables_ipv6: consider network offset in netdev/egress v…

    …alidation
    
    From netdev/egress, skb->len can include the ethernet header, therefore,
    subtract network offset from skb->len when validating IPv6 packet length.
    
    Fixes: 42df6e1 ("netfilter: Introduce egress hook")
    Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
    ummakynes committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    70c261d View commit details
    Browse the repository at this point in the history
  19. tpm: ibmvtpm: Call tpm2_sessions_init() to initialize session support

    Commit d2add27 ("tpm: Add NULL primary creation") introduced
    CONFIG_TCG_TPM2_HMAC. When this option is enabled on ppc64 then the
    following message appears in the kernel log due to a missing call to
    tpm2_sessions_init().
    
    [    2.654549] tpm tpm0: auth session is not active
    
    Add the missing call to tpm2_session_init() to the ibmvtpm driver to
    resolve this issue.
    
    Cc: stable@vger.kernel.org # v6.10+
    Fixes: d2add27 ("tpm: Add NULL primary creation")
    Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
    Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
    Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
    stefanberger authored and jarkkojs committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    08d08e2 View commit details
    Browse the repository at this point in the history
  20. Merge tag 'sound-6.11-rc6' of git://git.kernel.org/pub/scm/linux/kern…

    …el/git/tiwai/sound
    
    Pull sound fixes from Takashi Iwai:
     "It became a bit larger collection of fixes than wished at this time,
      but all changes are small and mostly device-specific fixes that should
      be fairly safe to apply.
    
      Majority of fixes are about ASoC for AMD SOF, Cirrus codecs, lpass,
      etc, in addition to the usual HD-audio quirks / fixes"
    
    * tag 'sound-6.11-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (22 commits)
      ALSA: hda: hda_component: Fix mutex crash if nothing ever binds
      ALSA: hda/realtek: support HP Pavilion Aero 13-bg0xxx Mute LED
      ALSA: hda/realtek: Fix the speaker output on Samsung Galaxy Book3 Ultra
      ASoC: cs-amp-lib: Ignore empty UEFI calibration entries
      ASoC: cs-amp-lib-test: Force test calibration blob entries to be valid
      ALSA: hda/realtek - FIxed ALC285 headphone no sound
      ALSA: hda/realtek - Fixed ALC256 headphone no sound
      ASoC: allow module autoloading for table board_ids
      ASoC: allow module autoloading for table db1200_pids
      ALSA: hda: cs35l56: Don't use the device index as a calibration index
      ALSA: seq: Skip event type filtering for UMP events
      ALSA: hda/realtek: Enable mute/micmute LEDs on HP Laptop 14-ey0xxx
      ASoC: SOF: amd: Fix for acp init sequence
      ASoC: amd: acp: fix module autoloading
      ASoC: mediatek: mt8188: Mark AFE_DAC_CON0 register as volatile
      ASoC: codecs: wcd937x: Fix missing de-assert of reset GPIO
      ASoC: SOF: mediatek: Add missing board compatible
      ASoC: MAINTAINERS: Drop Banajit Goswami from Qualcomm sound drivers
      ASoC: SOF: amd: Fix for incorrect acp error register offsets
      ASoC: SOF: amd: move iram-dram fence register programming sequence
      ...
    torvalds committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    6ace1c7 View commit details
    Browse the repository at this point in the history
  21. Merge tag 'pinctrl-v6.11-2' of git://git.kernel.org/pub/scm/linux/ker…

    …nel/git/linusw/linux-pinctrl
    
    Pull pin control fixes from Linus Walleij:
    
     - Fix the hwirq map and pin offsets in the Qualcomm X1E80100 driver
    
     - Fix the pin range handling in the AT91 driver so it works again
    
     - Fix a NULL-dereference risk in pinctrl single
    
     - Fix a serious biasing bug in the Mediatek driver
    
     - Fix the level trigged IRQ in the StarFive JH7110
    
     - Fix the iomux width in the Rockchip GPIO2-B pin handling
    
    * tag 'pinctrl-v6.11-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl:
      pinctrl: rockchip: correct RK3328 iomux width flag for GPIO2-B pins
      pinctrl: starfive: jh7110: Correct the level trigger configuration of iev register
      pinctrl: qcom: x1e80100: Fix special pin offsets
      pinctrl: mediatek: common-v2: Fix broken bias-disable for PULL_PU_PD_RSEL_TYPE
      pinctrl: single: fix potential NULL dereference in pcs_get_function()
      pinctrl: at91: make it work with current gpiolib
      pinctrl: qcom: x1e80100: Update PDC hwirq map
    torvalds committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    4159466 View commit details
    Browse the repository at this point in the history
  22. Merge tag 'livepatching-for-6.11-rc6' of git://git.kernel.org/pub/scm…

    …/linux/kernel/git/livepatching/livepatching
    
    Pull livepatching fix from Petr Mladek:
     "Selftest regression fix"
    
    * tag 'livepatching-for-6.11-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/livepatching/livepatching:
      selftests/livepatch: wait for atomic replace to occur
    torvalds committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    3ec3f5f View commit details
    Browse the repository at this point in the history
  23. Merge tag 'amd-pstate-v6.11-2024-08-26' of ssh://gitolite.kernel.org/…

    …pub/scm/linux/kernel/git/superm1/linux
    
    Merge amd-pstate driver fixes for 6.11-rc6 from Mario Limonciello:
    
    "amd-pstate fixes for 6.11-rc
     - Fix to unit test coverage
     - Fix bug with enabling CPPC on hetero designs
     - Fix uninitialized variable"
    
    * tag 'amd-pstate-v6.11-2024-08-26' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/superm1/linux:
      cpufreq/amd-pstate-ut: Don't check for highest perf matching on prefcore
      cpufreq/amd-pstate: Use topology_logical_package_id() instead of logical_die_id()
      cpufreq: amd-pstate: Fix uninitialized variable in amd_pstate_cpu_boost_update()
    rafaeljw committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    15d7518 View commit details
    Browse the repository at this point in the history
  24. selftests: forwarding: no_forwarding: Down ports on cleanup

    This test neglects to put ports down on cleanup. Fix it.
    
    Fixes: 476a4f0 ("selftests: forwarding: add a no_forwarding.sh test")
    Signed-off-by: Petr Machata <petrm@nvidia.com>
    Reviewed-by: Simon Horman <horms@kernel.org>
    Link: https://patch.msgid.link/0baf91dc24b95ae0cadfdf5db05b74888e6a228a.1724430120.git.petrm@nvidia.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    pmachata authored and kuba-moo committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    e8497d6 View commit details
    Browse the repository at this point in the history
  25. selftests: forwarding: local_termination: Down ports on cleanup

    This test neglects to put ports down on cleanup. Fix it.
    
    Fixes: 90b9566 ("selftests: forwarding: add a test for local_termination.sh")
    Signed-off-by: Petr Machata <petrm@nvidia.com>
    Link: https://patch.msgid.link/bf9b79f45de378f88344d44550f0a5052b386199.1724692132.git.petrm@nvidia.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    pmachata authored and kuba-moo committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    65a3cce View commit details
    Browse the repository at this point in the history
  26. bonding: implement xdo_dev_state_free and call it after deletion

    Add this implementation for bonding, so hardware resources can be
    freed from the active slave after xfrm state is deleted. The netdev
    used to invoke xdo_dev_state_free callback, is saved in the xfrm state
    (xs->xso.real_dev), which is also the bond's active slave. To prevent
    it from being freed, acquire netdev reference before leaving RCU
    read-side critical section, and release it after callback is done.
    
    And call it when deleting all SAs from old active real interface while
    switching current active slave.
    
    Fixes: 9a56055 ("bonding: Add struct bond_ipesc to manage SA")
    Signed-off-by: Jianbo Liu <jianbol@nvidia.com>
    Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
    Reviewed-by: Hangbin Liu <liuhangbin@gmail.com>
    Acked-by: Jay Vosburgh <jv@jvosburgh.net>
    Link: https://patch.msgid.link/20240823031056.110999-2-jianbol@nvidia.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Jianbo Liu authored and kuba-moo committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    ec13009 View commit details
    Browse the repository at this point in the history
  27. bonding: extract the use of real_device into local variable

    Add a local variable for slave->dev, to prepare for the lock change in
    the next patch. There is no functionality change.
    
    Fixes: 9a56055 ("bonding: Add struct bond_ipesc to manage SA")
    Signed-off-by: Jianbo Liu <jianbol@nvidia.com>
    Reviewed-by: Cosmin Ratiu <cratiu@nvidia.com>
    Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
    Reviewed-by: Hangbin Liu <liuhangbin@gmail.com>
    Acked-by: Jay Vosburgh <jv@jvosburgh.net>
    Link: https://patch.msgid.link/20240823031056.110999-3-jianbol@nvidia.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Jianbo Liu authored and kuba-moo committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    907ed83 View commit details
    Browse the repository at this point in the history
  28. bonding: change ipsec_lock from spin lock to mutex

    In the cited commit, bond->ipsec_lock is added to protect ipsec_list,
    hence xdo_dev_state_add and xdo_dev_state_delete are called inside
    this lock. As ipsec_lock is a spin lock and such xfrmdev ops may sleep,
    "scheduling while atomic" will be triggered when changing bond's
    active slave.
    
    [  101.055189] BUG: scheduling while atomic: bash/902/0x00000200
    [  101.055726] Modules linked in:
    [  101.058211] CPU: 3 PID: 902 Comm: bash Not tainted 6.9.0-rc4+ #1
    [  101.058760] Hardware name:
    [  101.059434] Call Trace:
    [  101.059436]  <TASK>
    [  101.060873]  dump_stack_lvl+0x51/0x60
    [  101.061275]  __schedule_bug+0x4e/0x60
    [  101.061682]  __schedule+0x612/0x7c0
    [  101.062078]  ? __mod_timer+0x25c/0x370
    [  101.062486]  schedule+0x25/0xd0
    [  101.062845]  schedule_timeout+0x77/0xf0
    [  101.063265]  ? asm_common_interrupt+0x22/0x40
    [  101.063724]  ? __bpf_trace_itimer_state+0x10/0x10
    [  101.064215]  __wait_for_common+0x87/0x190
    [  101.064648]  ? usleep_range_state+0x90/0x90
    [  101.065091]  cmd_exec+0x437/0xb20 [mlx5_core]
    [  101.065569]  mlx5_cmd_do+0x1e/0x40 [mlx5_core]
    [  101.066051]  mlx5_cmd_exec+0x18/0x30 [mlx5_core]
    [  101.066552]  mlx5_crypto_create_dek_key+0xea/0x120 [mlx5_core]
    [  101.067163]  ? bonding_sysfs_store_option+0x4d/0x80 [bonding]
    [  101.067738]  ? kmalloc_trace+0x4d/0x350
    [  101.068156]  mlx5_ipsec_create_sa_ctx+0x33/0x100 [mlx5_core]
    [  101.068747]  mlx5e_xfrm_add_state+0x47b/0xaa0 [mlx5_core]
    [  101.069312]  bond_change_active_slave+0x392/0x900 [bonding]
    [  101.069868]  bond_option_active_slave_set+0x1c2/0x240 [bonding]
    [  101.070454]  __bond_opt_set+0xa6/0x430 [bonding]
    [  101.070935]  __bond_opt_set_notify+0x2f/0x90 [bonding]
    [  101.071453]  bond_opt_tryset_rtnl+0x72/0xb0 [bonding]
    [  101.071965]  bonding_sysfs_store_option+0x4d/0x80 [bonding]
    [  101.072567]  kernfs_fop_write_iter+0x10c/0x1a0
    [  101.073033]  vfs_write+0x2d8/0x400
    [  101.073416]  ? alloc_fd+0x48/0x180
    [  101.073798]  ksys_write+0x5f/0xe0
    [  101.074175]  do_syscall_64+0x52/0x110
    [  101.074576]  entry_SYSCALL_64_after_hwframe+0x4b/0x53
    
    As bond_ipsec_add_sa_all and bond_ipsec_del_sa_all are only called
    from bond_change_active_slave, which requires holding the RTNL lock.
    And bond_ipsec_add_sa and bond_ipsec_del_sa are xfrm state
    xdo_dev_state_add and xdo_dev_state_delete APIs, which are in user
    context. So ipsec_lock doesn't have to be spin lock, change it to
    mutex, and thus the above issue can be resolved.
    
    Fixes: 9a56055 ("bonding: Add struct bond_ipesc to manage SA")
    Signed-off-by: Jianbo Liu <jianbol@nvidia.com>
    Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
    Reviewed-by: Hangbin Liu <liuhangbin@gmail.com>
    Acked-by: Jay Vosburgh <jv@jvosburgh.net>
    Link: https://patch.msgid.link/20240823031056.110999-4-jianbol@nvidia.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Jianbo Liu authored and kuba-moo committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    2aeeef9 View commit details
    Browse the repository at this point in the history
  29. Merge branch 'fixes-for-ipsec-over-bonding'

    Jianbo Liu says:
    
    ====================
    Fixes for IPsec over bonding
    
    This patchset provides bug fixes for IPsec over bonding driver.
    
    It adds the missing xdo_dev_state_free API, and fixes "scheduling while
    atomic" by using mutex lock instead.
    
    Series generated against:
    commit c07ff85 ("netem: fix return value if duplicate enqueue fails")
    ====================
    
    Link: https://patch.msgid.link/20240823031056.110999-1-jianbol@nvidia.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    kuba-moo committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    2fecbf7 View commit details
    Browse the repository at this point in the history
  30. gtp: fix a potential NULL pointer dereference

    When sockfd_lookup() fails, gtp_encap_enable_socket() returns a
    NULL pointer, but its callers only check for error pointers thus miss
    the NULL pointer case.
    
    Fix it by returning an error pointer with the error code carried from
    sockfd_lookup().
    
    (I found this bug during code inspection.)
    
    Fixes: 1e3a3ab ("gtp: make GTP sockets in gtp_newlink optional")
    Cc: Andreas Schultz <aschultz@tpip.net>
    Cc: Harald Welte <laforge@gnumonks.org>
    Signed-off-by: Cong Wang <cong.wang@bytedance.com>
    Reviewed-by: Simon Horman <horms@kernel.org>
    Reviewed-by: Pablo Neira Ayuso <pablo@netfilter.org>
    Link: https://patch.msgid.link/20240825191638.146748-1-xiyou.wangcong@gmail.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Cong Wang authored and kuba-moo committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    defd8b3 View commit details
    Browse the repository at this point in the history
  31. tcp: fix forever orphan socket caused by tcp_abort

    We have some problem closing zero-window fin-wait-1 tcp sockets in our
    environment. This patch come from the investigation.
    
    Previously tcp_abort only sends out reset and calls tcp_done when the
    socket is not SOCK_DEAD, aka orphan. For orphan socket, it will only
    purging the write queue, but not close the socket and left it to the
    timer.
    
    While purging the write queue, tp->packets_out and sk->sk_write_queue
    is cleared along the way. However tcp_retransmit_timer have early
    return based on !tp->packets_out and tcp_probe_timer have early
    return based on !sk->sk_write_queue.
    
    This caused ICSK_TIME_RETRANS and ICSK_TIME_PROBE0 not being resched
    and socket not being killed by the timers, converting a zero-windowed
    orphan into a forever orphan.
    
    This patch removes the SOCK_DEAD check in tcp_abort, making it send
    reset to peer and close the socket accordingly. Preventing the
    timer-less orphan from happening.
    
    According to Lorenzo's email in the v1 thread, the check was there to
    prevent force-closing the same socket twice. That situation is handled
    by testing for TCP_CLOSE inside lock, and returning -ENOENT if it is
    already closed.
    
    The -ENOENT code comes from the associate patch Lorenzo made for
    iproute2-ss; link attached below, which also conform to RFC 9293.
    
    At the end of the patch, tcp_write_queue_purge(sk) is removed because it
    was already called in tcp_done_with_error().
    
    p.s. This is the same patch with v2. Resent due to mis-labeled "changes
    requested" on patchwork.kernel.org.
    
    Link: https://patchwork.ozlabs.org/project/netdev/patch/1450773094-7978-3-git-send-email-lorenzo@google.com/
    Fixes: c1e64e2 ("net: diag: Support destroying TCP sockets.")
    Signed-off-by: Xueming Feng <kuro@kuroa.me>
    Tested-by: Lorenzo Colitti <lorenzo@google.com>
    Reviewed-by: Jason Xing <kerneljasonxing@gmail.com>
    Reviewed-by: Eric Dumazet <edumazet@google.com>
    Link: https://patch.msgid.link/20240826102327.1461482-1-kuro@kuroa.me
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    kuroa-me authored and kuba-moo committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    bac76cf View commit details
    Browse the repository at this point in the history
  32. mptcp: close subflow when receiving TCP+FIN

    When a peer decides to close one subflow in the middle of a connection
    having multiple subflows, the receiver of the first FIN should accept
    that, and close the subflow on its side as well. If not, the subflow
    will stay half closed, and would even continue to be used until the end
    of the MPTCP connection or a reset from the network.
    
    The issue has not been seen before, probably because the in-kernel
    path-manager always sends a RM_ADDR before closing the subflow. Upon the
    reception of this RM_ADDR, the other peer will initiate the closure on
    its side as well. On the other hand, if the RM_ADDR is lost, or if the
    path-manager of the other peer only closes the subflow without sending a
    RM_ADDR, the subflow would switch to TCP_CLOSE_WAIT, but that's it,
    leaving the subflow half-closed.
    
    So now, when the subflow switches to the TCP_CLOSE_WAIT state, and if
    the MPTCP connection has not been closed before with a DATA_FIN, the
    kernel owning the subflow schedules its worker to initiate the closure
    on its side as well.
    
    This issue can be easily reproduced with packetdrill, as visible in [1],
    by creating an additional subflow, injecting a FIN+ACK before sending
    the DATA_FIN, and expecting a FIN+ACK in return.
    
    Fixes: 40947e1 ("mptcp: schedule worker when subflow is closed")
    Cc: stable@vger.kernel.org
    Link: multipath-tcp/packetdrill#154 [1]
    Reviewed-by: Mat Martineau <martineau@kernel.org>
    Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
    Link: https://patch.msgid.link/20240826-net-mptcp-close-extra-sf-fin-v1-1-905199fe1172@kernel.org
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    matttbe authored and kuba-moo committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    f09b0ad View commit details
    Browse the repository at this point in the history
  33. selftests: mptcp: join: cannot rm sf if closed

    Thanks to the previous commit, the MPTCP subflows are now closed on both
    directions even when only the MPTCP path-manager of one peer asks for
    their closure.
    
    In the two tests modified here -- "userspace pm add & remove address"
    and "userspace pm create destroy subflow" -- one peer is controlled by
    the userspace PM, and the other one by the in-kernel PM. When the
    userspace PM sends a RM_ADDR notification, the in-kernel PM will
    automatically react by closing all subflows using this address. Now,
    thanks to the previous commit, the subflows are properly closed on both
    directions, the userspace PM can then no longer closes the same
    subflows if they are already closed. Before, it was OK to do that,
    because the subflows were still half-opened, still OK to send a RM_ADDR.
    
    In other words, thanks to the previous commit closing the subflows, an
    error will be returned to the userspace if it tries to close a subflow
    that has already been closed. So no need to run this command, which mean
    that the linked counters will then not be incremented.
    
    These tests are then no longer sending both a RM_ADDR, then closing the
    linked subflow just after. The test with the userspace PM on the server
    side is now removing one subflow linked to one address, then sending
    a RM_ADDR for another address. The test with the userspace PM on the
    client side is now only removing the subflow that was previously
    created.
    
    Fixes: 4369c19 ("selftests: mptcp: test userspace pm out of transfer")
    Cc: stable@vger.kernel.org
    Reviewed-by: Mat Martineau <martineau@kernel.org>
    Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
    Link: https://patch.msgid.link/20240826-net-mptcp-close-extra-sf-fin-v1-2-905199fe1172@kernel.org
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    matttbe authored and kuba-moo committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    e93681a View commit details
    Browse the repository at this point in the history
  34. mptcp: sched: check both backup in retrans

    The 'mptcp_subflow_context' structure has two items related to the
    backup flags:
    
     - 'backup': the subflow has been marked as backup by the other peer
    
     - 'request_bkup': the backup flag has been set by the host
    
    Looking only at the 'backup' flag can make sense in some cases, but it
    is not the behaviour of the default packet scheduler when selecting
    paths.
    
    As explained in the commit b6a66e5 ("mptcp: sched: check both
    directions for backup"), the packet scheduler should look at both flags,
    because that was the behaviour from the beginning: the 'backup' flag was
    set by accident instead of the 'request_bkup' one. Now that the latter
    has been fixed, get_retrans() needs to be adapted as well.
    
    Fixes: b6a66e5 ("mptcp: sched: check both directions for backup")
    Cc: stable@vger.kernel.org
    Reviewed-by: Mat Martineau <martineau@kernel.org>
    Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
    Link: https://patch.msgid.link/20240826-net-mptcp-close-extra-sf-fin-v1-3-905199fe1172@kernel.org
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    matttbe authored and kuba-moo committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    2a1f596 View commit details
    Browse the repository at this point in the history
  35. mptcp: pr_debug: add missing \n at the end

    pr_debug() have been added in various places in MPTCP code to help
    developers to debug some situations. With the dynamic debug feature, it
    is easy to enable all or some of them, and asks users to reproduce
    issues with extra debug.
    
    Many of these pr_debug() don't end with a new line, while no 'pr_cont()'
    are used in MPTCP code. So the goal was not to display multiple debug
    messages on one line: they were then not missing the '\n' on purpose.
    Not having the new line at the end causes these messages to be printed
    with a delay, when something else needs to be printed. This issue is not
    visible when many messages need to be printed, but it is annoying and
    confusing when only specific messages are expected, e.g.
    
      # echo "func mptcp_pm_add_addr_echoed +fmp" \
            > /sys/kernel/debug/dynamic_debug/control
      # ./mptcp_join.sh "signal address"; \
            echo "$(awk '{print $1}' /proc/uptime) - end"; \
            sleep 5s; \
            echo "$(awk '{print $1}' /proc/uptime) - restart"; \
            ./mptcp_join.sh "signal address"
      013 signal address
          (...)
      10.75 - end
      15.76 - restart
      013 signal address
      [  10.367935] mptcp:mptcp_pm_add_addr_echoed: MPTCP: msk=(...)
          (...)
    
      => a delay of 5 seconds: printed with a 10.36 ts, but after 'restart'
         which was printed at the 15.76 ts.
    
    The 'Fixes' tag here below points to the first pr_debug() used without
    '\n' in net/mptcp. This patch could be split in many small ones, with
    different Fixes tag, but it doesn't seem worth it, because it is easy to
    re-generate this patch with this simple 'sed' command:
    
      git grep -l pr_debug -- net/mptcp |
        xargs sed -i "s/\(pr_debug(\".*[^n]\)\(\"[,)]\)/\1\\\n\2/g"
    
    So in case of conflicts, simply drop the modifications, and launch this
    command.
    
    Fixes: f870fa0 ("mptcp: Add MPTCP socket stubs")
    Cc: stable@vger.kernel.org
    Reviewed-by: Geliang Tang <geliang@kernel.org>
    Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
    Link: https://patch.msgid.link/20240826-net-mptcp-close-extra-sf-fin-v1-4-905199fe1172@kernel.org
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    matttbe authored and kuba-moo committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    cb41b19 View commit details
    Browse the repository at this point in the history
  36. Merge branch 'mptcp-close-subflow-when-receiving-tcp-fin-and-misc'

    Matthieu Baerts says:
    
    ====================
    mptcp: close subflow when receiving TCP+FIN and misc.
    
    Here are different fixes:
    
    Patch 1 closes the subflow after having received a FIN, instead
    of leaving it half-closed until the end of the MPTCP connection.
    A fix for v5.12.
    
    Patch 2 validates the previous patch.
    
    Patch 3 is a fix for a recent fix to check both directions for the
    backup flag. It can follow the 'Fixes' commit and be backported up
    to v5.7.
    
    Patch 4 adds a missing \n at the end of pr_debug(), causing debug
    messages to be displayed with a delay, which confuses the debugger.
    A fix for v5.6.
    ====================
    
    Link: https://patch.msgid.link/20240826-net-mptcp-close-extra-sf-fin-v1-0-905199fe1172@kernel.org
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    kuba-moo committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    237c385 View commit details
    Browse the repository at this point in the history
  37. sctp: fix association labeling in the duplicate COOKIE-ECHO case

    sctp_sf_do_5_2_4_dupcook() currently calls security_sctp_assoc_request()
    on new_asoc, but as it turns out, this association is always discarded
    and the LSM labels never get into the final association (asoc).
    
    This can be reproduced by having two SCTP endpoints try to initiate an
    association with each other at approximately the same time and then peel
    off the association into a new socket, which exposes the unitialized
    labels and triggers SELinux denials.
    
    Fix it by calling security_sctp_assoc_request() on asoc instead of
    new_asoc. Xin Long also suggested limit calling the hook only to cases
    A, B, and D, since in cases C and E the COOKIE ECHO chunk is discarded
    and the association doesn't enter the ESTABLISHED state, so rectify that
    as well.
    
    One related caveat with SELinux and peer labeling: When an SCTP
    connection is set up simultaneously in this way, we will end up with an
    association that is initialized with security_sctp_assoc_request() on
    both sides, so the MLS component of the security context of the
    association will get swapped between the peers, instead of just one side
    setting it to the other's MLS component. However, at that point
    security_sctp_assoc_request() had already been called on both sides in
    sctp_sf_do_unexpected_init() (on a temporary association) and thus if
    the exchange didn't fail before due to MLS, it won't fail now either
    (most likely both endpoints have the same MLS range).
    
    Tested by:
     - reproducer from https://src.fedoraproject.org/tests/selinux/pull-request/530
     - selinux-testsuite (https://github.com/SELinuxProject/selinux-testsuite/)
     - sctp-tests (https://github.com/sctp/sctp-tests) - no tests failed
       that wouldn't fail also without the patch applied
    
    Fixes: c081d53 ("security: pass asoc to sctp_assoc_request and sctp_sk_clone")
    Suggested-by: Xin Long <lucien.xin@gmail.com>
    Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
    Acked-by: Xin Long <lucien.xin@gmail.com>
    Acked-by: Paul Moore <paul@paul-moore.com> (LSM/SELinux)
    Link: https://patch.msgid.link/20240826130711.141271-1-omosnace@redhat.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    WOnder93 authored and kuba-moo committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    3a0504d View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2024

  1. Merge tag 'tpmdd-next-6.11-rc6' of git://git.kernel.org/pub/scm/linux…

    …/kernel/git/jarkko/linux-tpmdd
    
    Pull TPM fix from Jarkko Sakkinen:
     "A bug fix for tpm_ibmvtpm driver so that it will take the bus
      encryption into use"
    
    * tag 'tpmdd-next-6.11-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd:
      tpm: ibmvtpm: Call tpm2_sessions_init() to initialize session support
    torvalds committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    46d22bf View commit details
    Browse the repository at this point in the history
  2. Merge tag 'v6.11-rc5-client-fixes' of git://git.samba.org/sfrench/cif…

    …s-2.6
    
    Pull smb client fixes from Steve French:
    
     - two RDMA/smbdirect fixes and a minor cleanup
    
     - punch hole fix
    
    * tag 'v6.11-rc5-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
      cifs: Fix FALLOC_FL_PUNCH_HOLE support
      smb/client: fix rdma usage in smb2_async_writev()
      smb/client: remove unused rq_iter_size from struct smb_rqst
      smb/client: avoid dereferencing rdata=NULL in smb2_new_read_req()
    torvalds committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    86987d8 View commit details
    Browse the repository at this point in the history
  3. drm/i915/dp_mst: Fix MST state after a sink reset

    In some cases the sink can reset itself after it was configured into MST
    mode, without the driver noticing the disconnected state. For instance
    the reset may happen in the middle of a modeset, or the (long) HPD pulse
    generated may be not long enough for the encoder detect handler to
    observe the HPD's deasserted state. In this case the sink's DPCD
    register programmed to enable MST will be reset, while the driver still
    assumes MST is still enabled. Detect this condition, which will tear
    down and recreate/re-enable the MST topology.
    
    v2:
    - Add a code comment about adjusting the expected DP_MSTM_CTRL register
      value for SST + SideBand. (Suraj, Jani)
    - Print a debug message about detecting the link reset. (Jani)
    - Verify the DPCD MST state only if it wasn't already determined that
      the sink is disconnected.
    
    Cc: stable@vger.kernel.org
    Cc: Jani Nikula <jani.nikula@intel.com>
    Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11195
    Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com> (v1)
    Signed-off-by: Imre Deak <imre.deak@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20240823162918.1211875-1-imre.deak@intel.com
    (cherry picked from commit 594cf78)
    Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
    ideak authored and jlahtine-intel committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    a2ccc33 View commit details
    Browse the repository at this point in the history
  4. cifs: Fix lack of credit renegotiation on read retry

    When netfslib asks cifs to issue a read operation, it prefaces this with a
    call to ->clamp_length() which cifs uses to negotiate credits, providing
    receive capacity on the server; however, in the event that a read op needs
    reissuing, netfslib doesn't call ->clamp_length() again as that could
    shorten the subrequest, leaving a gap.
    
    This causes the retried read to be done with zero credits which causes the
    server to reject it with STATUS_INVALID_PARAMETER.  This is a problem for a
    DIO read that is requested that would go over the EOF.  The short read will
    be retried, causing EINVAL to be returned to the user when it fails.
    
    Fix this by making cifs_req_issue_read() negotiate new credits if retrying
    (NETFS_SREQ_RETRYING now gets set in the read side as well as the write
    side in this instance).
    
    This isn't sufficient, however: the new credits might not be sufficient to
    complete the remainder of the read, so also add an additional field,
    rreq->actual_len, that holds the actual size of the op we want to perform
    without having to alter subreq->len.
    
    We then rely on repeated short reads being retried until we finish the read
    or reach the end of file and make a zero-length read.
    
    Also fix a couple of places where the subrequest start and length need to
    be altered by the amount so far transferred when being used.
    
    Fixes: 69c3c02 ("cifs: Implement netfslib hooks")
    Signed-off-by: David Howells <dhowells@redhat.com>
    cc: Steve French <sfrench@samba.org>
    cc: Paulo Alcantara <pc@manguebit.com>
    cc: Jeff Layton <jlayton@kernel.org>
    cc: linux-cifs@vger.kernel.org
    cc: netfs@lists.linux.dev
    cc: linux-fsdevel@vger.kernel.org
    Signed-off-by: Steve French <stfrench@microsoft.com>
    dhowells authored and Steve French committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    6a5dcd4 View commit details
    Browse the repository at this point in the history
  5. netfs, cifs: Fix handling of short DIO read

    Short DIO reads, particularly in relation to cifs, are not being handled
    correctly by cifs and netfslib.  This can be tested by doing a DIO read of
    a file where the size of read is larger than the size of the file.  When it
    crosses the EOF, it gets a short read and this gets retried, and in the
    case of cifs, the retry read fails, with the failure being translated to
    ENODATA.
    
    Fix this by the following means:
    
     (1) Add a flag, NETFS_SREQ_HIT_EOF, for the filesystem to set when it
         detects that the read did hit the EOF.
    
     (2) Make the netfslib read assessment stop processing subrequests when it
         encounters one with that flag set.
    
     (3) Return rreq->transferred, the accumulated contiguous amount read to
         that point, to userspace for a DIO read.
    
     (4) Make cifs set the flag and clear the error if the read RPC returned
         ENODATA.
    
     (5) Make cifs set the flag and clear the error if a short read occurred
         without error and the read-to file position is now at the remote inode
         size.
    
    Fixes: 69c3c02 ("cifs: Implement netfslib hooks")
    Signed-off-by: David Howells <dhowells@redhat.com>
    cc: Steve French <sfrench@samba.org>
    cc: Paulo Alcantara <pc@manguebit.com>
    cc: Jeff Layton <jlayton@kernel.org>
    cc: linux-cifs@vger.kernel.org
    cc: netfs@lists.linux.dev
    cc: linux-fsdevel@vger.kernel.org
    Signed-off-by: Steve French <stfrench@microsoft.com>
    dhowells authored and Steve French committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    1da29f2 View commit details
    Browse the repository at this point in the history
  6. cifs: Fix copy offload to flush destination region

    Fix cifs_file_copychunk_range() to flush the destination region before
    invalidating it to avoid potential loss of data should the copy fail, in
    whole or in part, in some way.
    
    Fixes: 7b2404a ("cifs: Fix flushing, invalidation and file size with copy_file_range()")
    Signed-off-by: David Howells <dhowells@redhat.com>
    cc: Steve French <stfrench@microsoft.com>
    cc: Paulo Alcantara <pc@manguebit.com>
    cc: Shyam Prasad N <nspmangalore@gmail.com>
    cc: Rohith Surabattula <rohiths.msft@gmail.com>
    cc: Matthew Wilcox <willy@infradead.org>
    cc: Jeff Layton <jlayton@kernel.org>
    cc: linux-cifs@vger.kernel.org
    cc: linux-mm@kvack.org
    cc: linux-fsdevel@vger.kernel.org
    Signed-off-by: Steve French <stfrench@microsoft.com>
    dhowells authored and Steve French committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    8101d6e View commit details
    Browse the repository at this point in the history
  7. dmaengine: dw-edma: Fix unmasking STOP and ABORT interrupts for HDMA

    The current logic is enabling both STOP_INT_MASK and ABORT_INT_MASK
    bit. This is apparently masking those particular interrupts rather than
    unmasking the same. If the interrupts are masked, they would never get
    triggered.
    
    So fix the issue by unmasking the STOP and ABORT interrupts properly.
    
    Fixes: e74c395 ("dmaengine: dw-edma: Add support for native HDMA")
    cc: stable@vger.kernel.org
    Signed-off-by: Mrinmay Sarkar <quic_msarkar@quicinc.com>
    Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
    Link: https://lore.kernel.org/r/1724674261-3144-2-git-send-email-quic_msarkar@quicinc.com
    Signed-off-by: Vinod Koul <vkoul@kernel.org>
    Mrinmay Sarkar authored and vinodkoul committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    383baf5 View commit details
    Browse the repository at this point in the history
  8. dmaengine: dw-edma: Do not enable watermark interrupts for HDMA

    DW_HDMA_V0_LIE and DW_HDMA_V0_RIE are initialized as BIT(3) and BIT(4)
    respectively in dw_hdma_control enum. But as per HDMA register these
    bits are corresponds to LWIE and RWIE bit i.e local watermark interrupt
    enable and remote watermarek interrupt enable. In linked list mode LWIE
    and RWIE bits only enable the local and remote watermark interrupt.
    
    Since the watermark interrupts are not used but enabled, this leads to
    spurious interrupts getting generated. So remove the code that enables
    them to avoid generating spurious watermark interrupts.
    
    And also rename DW_HDMA_V0_LIE to DW_HDMA_V0_LWIE and DW_HDMA_V0_RIE to
    DW_HDMA_V0_RWIE as there is no LIE and RIE bits in HDMA and those bits
    are corresponds to LWIE and RWIE bits.
    
    Fixes: e74c395 ("dmaengine: dw-edma: Add support for native HDMA")
    cc: stable@vger.kernel.org
    Signed-off-by: Mrinmay Sarkar <quic_msarkar@quicinc.com>
    Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
    Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
    Link: https://lore.kernel.org/r/1724674261-3144-3-git-send-email-quic_msarkar@quicinc.com
    Signed-off-by: Vinod Koul <vkoul@kernel.org>
    Mrinmay Sarkar authored and vinodkoul committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    9f646ff View commit details
    Browse the repository at this point in the history
  9. drm/amdgpu: align pp_power_profile_mode with kernel docs

    The kernel doc says you need to select manual mode to
    adjust this, but the code only allows you to adjust it when
    manual mode is not selected.  Remove the manual mode check.
    
    Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    (cherry picked from commit bbb05f8)
    Cc: stable@vger.kernel.org
    alexdeucher committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    8f61446 View commit details
    Browse the repository at this point in the history
  10. drm/amdgpu/smu13.0.7: print index for profiles

    Print the index for the profiles.
    
    Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3543
    Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    (cherry picked from commit b86a6a5)
    alexdeucher committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    948f279 View commit details
    Browse the repository at this point in the history
  11. drm/amdgpu/swsmu: always force a state reprogram on init

    Always reprogram the hardware state on init.  This ensures
    the PMFW state is explicitly programmed and we are not relying
    on the default PMFW state.
    
    Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3131
    Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    (cherry picked from commit c50fe28)
    Cc: stable@vger.kernel.org
    alexdeucher committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    d420c85 View commit details
    Browse the repository at this point in the history
  12. drm/amd/pm: update message interface for smu v14.0.2/3

    update message interface for smu v14.0.2/3
    
    Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
    Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    (cherry picked from commit 01bfabc)
    Kenneth Feng authored and alexdeucher committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    37a45fb View commit details
    Browse the repository at this point in the history
  13. drm/amdgpu/gfx12: set UNORD_DISPATCH in compute MQDs

    This needs to be set to 1 to avoid a potential deadlock in
    the GC 10.x and newer.  On GC 9.x and older, this needs
    to be set to 0. This can lead to hangs in some mixed
    graphics and compute workloads.
    
    Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3575
    Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    (cherry picked from commit 40318a2)
    alexdeucher committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    959fc10 View commit details
    Browse the repository at this point in the history
  14. drm/amd/display: avoid using null object of framebuffer

    Instead of using state->fb->obj[0] directly, get object from framebuffer
    by calling drm_gem_fb_get_obj() and return error code when object is
    null to avoid using null object of framebuffer.
    
    Fixes: 5d945cb ("drm/amd/display: Create a file dedicated to planes")
    Signed-off-by: Ma Ke <make24@iscas.ac.cn>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    (cherry picked from commit 73dd0ad)
    Ma Ke authored and alexdeucher committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    3b9a332 View commit details
    Browse the repository at this point in the history
  15. drm/amdgpu: support for gc_info table v1.3

    Add gc_info table v1.3 for IP discovery.
    
    Signed-off-by: Likun Gao <Likun.Gao@amd.com>
    Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    (cherry picked from commit 875ff9a)
    Likun Gao authored and alexdeucher committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    6d5064c View commit details
    Browse the repository at this point in the history
  16. drm/amd/pm: Add support for new P2S table revision

    Add p2s table support for a new revision of SMUv13.0.6.
    
    Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
    Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
    Reviewed-by: Asad Kamal <asad.kamal@amd.com>
    Acked-by: Alex Deucher <alexander.deucher@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    (cherry picked from commit 010cc73)
    Lijo Lazar authored and alexdeucher committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    badfdc6 View commit details
    Browse the repository at this point in the history
  17. drm/amd/pm: Drop unsupported features on smu v14_0_2

    Drop unsupported features on smu v14_0_2.
    
    Signed-off-by: Candice Li <candice.li@amd.com>
    Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
    Acked-by: Alex Deucher <alexander.deucher@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    (cherry picked from commit 3376f92)
    candicelicy authored and alexdeucher committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    849f0d5 View commit details
    Browse the repository at this point in the history
  18. drm/v3d: Disable preemption while updating GPU stats

    We forgot to disable preemption around the write_seqcount_begin/end() pair
    while updating GPU stats:
    
      [ ] WARNING: CPU: 2 PID: 12 at include/linux/seqlock.h:221 __seqprop_assert.isra.0+0x128/0x150 [v3d]
      [ ] Workqueue: v3d_bin drm_sched_run_job_work [gpu_sched]
     <...snip...>
      [ ] Call trace:
      [ ]  __seqprop_assert.isra.0+0x128/0x150 [v3d]
      [ ]  v3d_job_start_stats.isra.0+0x90/0x218 [v3d]
      [ ]  v3d_bin_job_run+0x23c/0x388 [v3d]
      [ ]  drm_sched_run_job_work+0x520/0x6d0 [gpu_sched]
      [ ]  process_one_work+0x62c/0xb48
      [ ]  worker_thread+0x468/0x5b0
      [ ]  kthread+0x1c4/0x1e0
      [ ]  ret_from_fork+0x10/0x20
    
    Fix it.
    
    Cc: Maíra Canal <mcanal@igalia.com>
    Cc: stable@vger.kernel.org # v6.10+
    Fixes: 6abe93b ("drm/v3d: Fix race-condition between sysfs/fdinfo and interrupt handler")
    Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
    Acked-by: Maíra Canal <mcanal@igalia.com>
    Signed-off-by: Maíra Canal <mcanal@igalia.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20240813102505.80512-1-tursulin@igalia.com
    Tvrtko Ursulin authored and mairacanal committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    9d824c7 View commit details
    Browse the repository at this point in the history
  19. block: fix detection of unsupported WRITE SAME in blkdev_issue_write_…

    …zeroes
    
    On error, blkdev_issue_write_zeroes used to recheck the block device's
    WRITE SAME queue limits after submitting WRITE SAME bios.  As stated in
    the comment, the purpose of this was to collapse all IO errors to
    EOPNOTSUPP if the effect of issuing bios was that WRITE SAME got turned
    off in the queue limits.  Therefore, it does not make sense to reuse the
    zeroes limit that was read earlier in the function because we only care
    about the queue limit *now*, not what it was at the start of the
    function.
    
    Found by running generic/351 from fstests.
    
    Fixes: 64b582c ("block: Read max write zeroes once for __blkdev_issue_write_zeroes()")
    Signed-off-by: Darrick J. Wong <djwong@kernel.org>
    Reviewed-by: Christoph Hellwig <hch@lst.de>
    Reviewed-by: John Garry <john.g.garry@oracle.com>
    Link: https://lore.kernel.org/r/20240827175340.GB1977952@frogsfrogsfrogs
    Signed-off-by: Jens Axboe <axboe@kernel.dk>
    Darrick J. Wong authored and axboe committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    e33a97a View commit details
    Browse the repository at this point in the history
  20. ASoC: dt-bindings: amlogic,axg-sound-card: document clocks property

    The sound card design is based on reference PLL frequencies that
    are the root of all clock rates calculations.
    
    Today, those frequencies are currently specified in DT via assigned-clocks,
    because they correspond to the basic audio use-case.
    
    It makes no sense to setup clock rates for a sound card without
    referencing the clocks for the sound card, mainly because at
    some point more complex audio use cases will be supported
    and those root rates would need to change.
    
    To solve this situation, let's legitimize the presence of assigned-clocks
    in the sound card by documenting those clocks, as it describes a true
    dependency of the sound card and paths the way of more complex
    audio uses-cases involving those root frequencies.
    
    Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
    Acked-by: Conor Dooley <conor.dooley@microchip.com>
    Link: https://patch.msgid.link/20240828-topic-amlogic-upstream-bindings-fixes-audio-snd-card-v2-1-58159abf0779@linaro.org
    Signed-off-by: Mark Brown <broonie@kernel.org>
    superna9999 authored and broonie committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    4b1d901 View commit details
    Browse the repository at this point in the history
  21. ASoC: dt-bindings: amlogic,gx-sound-card: document clocks property

    The sound card design is based on reference PLL frequencies that
    are the root of all clock rates calculations.
    
    Today, those frequencies are currently specified in DT via assigned-clocks,
    because they correspond to the basic audio use-case.
    
    It makes no sense to setup clock rates for a sound card without
    referencing the clocks for the sound card, mainly because at
    some point more complex audio use cases will be supported
    and those root rates would need to change.
    
    To solve this situation, let's legitimize the presence of assigned-clocks
    in the sound card by documenting those clocks, as it describes a true
    dependency of the sound card and paths the way of more complex
    audio uses-cases involving those root frequencies.
    
    Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
    Acked-by: Conor Dooley <conor.dooley@microchip.com>
    Link: https://patch.msgid.link/20240828-topic-amlogic-upstream-bindings-fixes-audio-snd-card-v2-2-58159abf0779@linaro.org
    Signed-off-by: Mark Brown <broonie@kernel.org>
    superna9999 authored and broonie committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    f189c97 View commit details
    Browse the repository at this point in the history
  22. Merge tag 'for-6.11-rc5-tag' of git://git.kernel.org/pub/scm/linux/ke…

    …rnel/git/kdave/linux
    
    Pull btrfs fixes from David Sterba:
    
     - fix use-after-free when submitting bios for read, after an error and
       partially submitted bio the original one is freed while it can be
       still be accessed again
    
     - fix fstests case btrfs/301, with enabled quotas wait for delayed
       iputs when flushing delalloc
    
     - fix periodic block group reclaim, an unitialized value can be
       returned if there are no block groups to reclaim
    
     - fix build warning (-Wmaybe-uninitialized)
    
    * tag 'for-6.11-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
      btrfs: fix uninitialized return value from btrfs_reclaim_sweep()
      btrfs: fix a use-after-free when hitting errors inside btrfs_submit_chunk()
      btrfs: initialize last_extent_end to fix -Wmaybe-uninitialized warning in extent_fiemap()
      btrfs: run delayed iputs when flushing delalloc
    torvalds committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    2840526 View commit details
    Browse the repository at this point in the history
  23. Merge tag 'nfsd-6.11-2' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/cel/linux
    
    Pull nfsd fixes from Chuck Lever:
    
     - Fix a number of crashers
    
     - Update email address for an NFSD reviewer
    
    * tag 'nfsd-6.11-2' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux:
      fs/nfsd: fix update of inode attrs in CB_GETATTR
      nfsd: fix potential UAF in nfsd4_cb_getattr_release
      nfsd: hold reference to delegation when updating it for cb_getattr
      MAINTAINERS: Update Olga Kornievskaia's email address
      nfsd: prevent panic for nfsv4.0 closed files in nfs4_show_open
      nfsd: ensure that nfsd4_fattr_args.context is zeroed out
    torvalds committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    a18093a View commit details
    Browse the repository at this point in the history
  24. Merge tag 'platform-drivers-x86-v6.11-5' of git://git.kernel.org/pub/…

    …scm/linux/kernel/git/pdx86/platform-drivers-x86
    
    Pull x86 platform drivers fixes from Ilpo Järvinen:
    
     - platform/x86/amd/pmc: AMD 1Ah model 60h series support (2nd attempt)
    
     - asus-wmi: Prevent spurious rfkill on Asus Zenbook Duo
    
     - x86-android-tablets: Relax DMI match to cover another model
    
    * tag 'platform-drivers-x86-v6.11-5' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86:
      platform/x86: x86-android-tablets: Make Lenovo Yoga Tab 3 X90F DMI match less strict
      platform/x86: asus-wmi: Fix spurious rfkill on UX8406MA
      platform/x86/amd/pmc: Extend support for PMC features on new AMD platform
      platform/x86/amd/pmc: Fix SMU command submission path on new AMD platform
    torvalds committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    f9a59dd View commit details
    Browse the repository at this point in the history
  25. Merge tag 'loongarch-fixes-6.11-2' of git://git.kernel.org/pub/scm/li…

    …nux/kernel/git/chenhuacai/linux-loongson
    
    Pull LoongArch fixes from Huacai Chen:
     "Remove the unused dma-direct.h, and some bug & warning fixes"
    
    * tag 'loongarch-fixes-6.11-2' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson:
      LoongArch: KVM: Invalidate guest steal time address on vCPU reset
      LoongArch: Add ifdefs to fix LSX and LASX related warnings
      LoongArch: Define ARCH_IRQ_INIT_FLAGS as IRQ_NOPROBE
      LoongArch: Remove the unused dma-direct.h
    torvalds committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    928f79a View commit details
    Browse the repository at this point in the history
  26. Merge tag 'omap-for-v6.11/fixes-signed' of https://git.kernel.org/pub…

    …/scm/linux/kernel/git/khilman/linux-omap into arm/fixes
    
    OMAP fixes for v6.11-rc
    
    - omap3-n900: fix accelerometer orientation
    
    * tag 'omap-for-v6.11/fixes-signed' of https://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap:
      ARM: dts: omap3-n900: correct the accelerometer orientation
    
    Link: https://lore.kernel.org/r/7h4j7eyhyh.fsf@baylibre.com
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>
    arndb committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    0351a98 View commit details
    Browse the repository at this point in the history
  27. Merge tag 'imx-fixes-6.11' of https://git.kernel.org/pub/scm/linux/ke…

    …rnel/git/shawnguo/linux into arm/fixes
    
    i.MX fixes for 6.11:
    
    - One imx8mp-beacon-kit change from Adam Ford to fix the broken WM8962
      audio support
    - One pinctrl property typo fix for imx8mm-phygate
    - One layerscape fix from Krzysztof Kozlowski to get thermal nodes
      correct name length
    - A couple of imx93-tqma9352 fixes from Markus Niebel, one on CMA
      alloc-ranges and the other on SD-Card cd-gpios typo
    - One change from Michal Vokáč to fix imx6dl-yapp43 LED current to match
      the HW design
    - A couple of imx95 fixes from Peng Fan, one to correct a55 power
      domains and the other to correct L3Cache cache-sets
    - One tqma9352 watchdog reset fix from Sascha Hauer
    - One imx93 change from Shenwei Wang to fix the default value for STMMAC
      EQOS snps,clk-csr
    
    * tag 'imx-fixes-6.11' of https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux:
      arm64: dts: imx8mm-phygate: fix typo pinctrcl-0
      arm64: dts: imx95: correct L3Cache cache-sets
      arm64: dts: imx95: correct a55 power-domains
      arm64: dts: freescale: imx93-tqma9352-mba93xxla: fix typo
      arm64: dts: freescale: imx93-tqma9352: fix CMA alloc-ranges
      ARM: dts: imx6dl-yapp43: Increase LED current to match the yapp4 HW design
      arm64: dts: imx93: update default value for snps,clk-csr
      arm64: dts: freescale: tqma9352: Fix watchdog reset
      arm64: dts: imx8mp-beacon-kit: Fix Stereo Audio on WM8962
      arm64: dts: layerscape: fix thermal node names length
    
    Link: https://lore.kernel.org/r/ZrtsTO1+jXhJ6GSM@dragon
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>
    arndb committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    27795c5 View commit details
    Browse the repository at this point in the history
  28. Merge tag 'qcom-drivers-fixes-for-6.11' of https://git.kernel.org/pub…

    …/scm/linux/kernel/git/qcom/linux into arm/fixes
    
    Qualcomm driver fixes for v6.11
    
    This corrects the tzmem virt-to-phys conversion, which caused issues for
    the uefisecapp implementation of EFI variable access. SDM670 is excluded
    from tzmem usage due to reported issues.
    
    The SCM get wait queue context call is corrected to be marked ATOMIC and
    some dead code in qseecom, following the tzmem conversion, is removed.
    
    The memory backing command DB is remapped writecombined, to avoid XPU
    violations when Linux runs without the Qualcomm hypervisor.
    
    Two compile fixes are added for pd-mapper, and the broken reference
    count is corrected, to make pd-mapper deal with remoteprocs going away.
    
    In pmic_glink a race condition where the client callbacks might be
    called before we returned the client handle is corrected. The broken conditions
    for when to signal that the firmware is going down is also corrected.
    
    In the pmic_glink UCSI driver, the ucsi_unregister() is moved out of the
    pdr callback, as this is being invoked in atomic context.
    
    Konrad's email address is updated in MAINTAINERS, and related mailmap
    entries are added.
    
    * tag 'qcom-drivers-fixes-for-6.11' of https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux:
      soc: qcom: pd-mapper: Fix singleton refcount
      firmware: qcom: tzmem: disable sdm670 platform
      soc: qcom: pmic_glink: Actually communicate when remote goes down
      usb: typec: ucsi: Move unregister out of atomic section
      soc: qcom: pmic_glink: Fix race during initialization
      firmware: qcom: qseecom: remove unused functions
      firmware: qcom: tzmem: fix virtual-to-physical address conversion
      firmware: qcom: scm: Mark get_wq_ctx() as atomic call
      MAINTAINERS: Update Konrad Dybcio's email address
      mailmap: Add an entry for Konrad Dybcio
      soc: qcom: pd-mapper: mark qcom_pdm_domains as __maybe_unused
      soc: qcom: cmd-db: Map shared memory as WC, not WB
      soc: qcom: pd-mapper: Depend on ARCH_QCOM || COMPILE_TEST
    
    Link: https://lore.kernel.org/r/20240826145209.1646159-1-andersson@kernel.org
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>
    arndb committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    d8f2638 View commit details
    Browse the repository at this point in the history
  29. Merge tag 'qcom-arm64-defconfig-fixes-for-6.11' of https://git.kernel…

    ….org/pub/scm/linux/kernel/git/qcom/linux into arm/fixes
    
    Qualcomm Arm64 defconfig fix for 6.11
    
    Enable the Samsung ATNA33XC20 display panel driver, as we switched from
    the generic EDP panel for some of the X1E devices in v6.11.
    
    * tag 'qcom-arm64-defconfig-fixes-for-6.11' of https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux:
      arm64: defconfig: Add CONFIG_DRM_PANEL_SAMSUNG_ATNA33XC20
    
    Link: https://lore.kernel.org/r/20240826145736.1646729-1-andersson@kernel.org
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>
    arndb committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    015a00e View commit details
    Browse the repository at this point in the history
  30. Merge tag 'qcom-arm64-fixes-for-6.11' of https://git.kernel.org/pub/s…

    …cm/linux/kernel/git/qcom/linux into arm/fixes
    
    Qualcomm Arm64 DeviceTree fixes for v6.11
    
    On X1E the GPU node is disabled by default, to be enabled in the
    individual devices once the developers install the required firmware.
    
    The generic EDP panel driver used on the X1E CRD is replaced with the
    Samsung ATNA45AF01 driver, in order to ensure backlight is brought back
    up after being turned off.
    
    The pin configuration for PCIe-related pins are corrected across all the
    X1E targets. The PCIe controllers gain a minimum OPP vote, and PCIe
    domain numbers are corrected.
    
    WiFi calibration variant information is added to the Lenovo Yoga Slim
    7x, to pick the right data from the firmware packages.
    
    The incorrect Adreno SMMU global interrupt is corrected.
    
    For IPQ5332, the IRQ triggers for the USB controller are corrected.
    
    * tag 'qcom-arm64-fixes-for-6.11' of https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux: (23 commits)
      arm64: dts: qcom: x1e80100: Fix Adreno SMMU global interrupt
      arm64: dts: qcom: disable GPU on x1e80100 by default
      arm64: dts: qcom: x1e80100-crd: Fix backlight
      arm64: dts: qcom: x1e80100-yoga-slim7x: fix missing PCIe4 gpios
      arm64: dts: qcom: x1e80100-yoga-slim7x: disable PCIe6a perst pull down
      arm64: dts: qcom: x1e80100-yoga-slim7x: fix up PCIe6a pinctrl node
      arm64: dts: qcom: x1e80100-yoga-slim7x: fix PCIe4 PHY supply
      arm64: dts: qcom: x1e80100-vivobook-s15: fix missing PCIe4 gpios
      arm64: dts: qcom: x1e80100-vivobook-s15: disable PCIe6a perst pull down
      arm64: dts: qcom: x1e80100-vivobook-s15: fix up PCIe6a pinctrl node
      arm64: dts: qcom: x1e80100-vivobook-s15: fix PCIe4 PHY supply
      arm64: dts: qcom: x1e80100-qcp: fix missing PCIe4 gpios
      arm64: dts: qcom: x1e80100-qcp: disable PCIe6a perst pull down
      arm64: dts: qcom: x1e80100-qcp: fix up PCIe6a pinctrl node
      arm64: dts: qcom: x1e80100-qcp: fix PCIe4 PHY supply
      arm64: dts: qcom: x1e80100-crd: fix missing PCIe4 gpios
      arm64: dts: qcom: x1e80100-crd: disable PCIe6a perst pull down
      arm64: dts: qcom: x1e80100-crd: fix up PCIe6a pinctrl node
      arm64: dts: qcom: x1e80100: add missing PCIe minimum OPP
      arm64: dts: qcom: x1e80100: fix PCIe domain numbers
      ...
    
    Link: https://lore.kernel.org/r/20240826152426.1648383-1-andersson@kernel.org
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>
    arndb committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    ec57571 View commit details
    Browse the repository at this point in the history
  31. Merge tag 'riscv-soc-fixes-for-v6.11-rc6' of https://git.kernel.org/p…

    …ub/scm/linux/kernel/git/conor/linux into arm/fixes
    
    RISC-V soc fixes for v6.11-rc6
    
    Prevent an erroneous unconditional report of a timeout during firmware
    upload in the mpfs-auto-update driver.
    
    Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
    
    * tag 'riscv-soc-fixes-for-v6.11-rc6' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux:
      firmware: microchip: fix incorrect error report of programming:timeout on success
    
    Link: https://lore.kernel.org/r/20240828-fidelity-almighty-18d5434aaef0@spud
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>
    arndb committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    3536c01 View commit details
    Browse the repository at this point in the history
  32. cifs: Fix FALLOC_FL_ZERO_RANGE to preflush buffered part of target re…

    …gion
    
    Under certain conditions, the range to be cleared by FALLOC_FL_ZERO_RANGE
    may only be buffered locally and not yet have been flushed to the server.
    For example:
    
    	xfs_io -f -t -c "pwrite -S 0x41 0 4k" \
    		     -c "pwrite -S 0x42 4k 4k" \
    		     -c "fzero 0 4k" \
    		     -c "pread -v 0 8k" /xfstest.test/foo
    
    will write two 4KiB blocks of data, which get buffered in the pagecache,
    and then fallocate() is used to clear the first 4KiB block on the server -
    but we don't flush the data first, which means the EOF position on the
    server is wrong, and so the FSCTL_SET_ZERO_DATA RPC fails (and xfs_io
    ignores the error), but then when we try to read it, we see the old data.
    
    Fix this by preflushing any part of the target region that above the
    server's idea of the EOF position to force the server to update its EOF
    position.
    
    Note, however, that we don't want to simply expand the file by moving the
    EOF before doing the FSCTL_SET_ZERO_DATA[*] because someone else might see
    the zeroed region or if the RPC fails we then have to try to clean it up or
    risk getting corruption.
    
    [*] And we have to move the EOF first otherwise FSCTL_SET_ZERO_DATA won't
    do what we want.
    
    This fixes the generic/008 xfstest.
    
    [!] Note: A better way to do this might be to split the operation into two
    parts: we only do FSCTL_SET_ZERO_DATA for the part of the range below the
    server's EOF and then, if that worked, invalidate the buffered pages for the
    part above the range.
    
    Fixes: 6b69040 ("cifs/smb3: Fix data inconsistent when zero file range")
    Signed-off-by: David Howells <dhowells@redhat.com>
    cc: Steve French <stfrench@microsoft.com>
    cc: Zhang Xiaoxu <zhangxiaoxu5@huawei.com>
    cc: Pavel Shilovsky <pshilov@microsoft.com>
    cc: Paulo Alcantara <pc@manguebit.com>
    cc: Shyam Prasad N <nspmangalore@gmail.com>
    cc: Rohith Surabattula <rohiths.msft@gmail.com>
    cc: Jeff Layton <jlayton@kernel.org>
    cc: linux-cifs@vger.kernel.org
    cc: linux-mm@kvack.org
    Signed-off-by: Steve French <stfrench@microsoft.com>
    dhowells authored and Steve French committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    91d1dfa View commit details
    Browse the repository at this point in the history
  33. selinux,smack: don't bypass permissions check in inode_setsecctx hook

    Marek Gresko reports that the root user on an NFS client is able to
    change the security labels on files on an NFS filesystem that is
    exported with root squashing enabled.
    
    The end of the kerneldoc comment for __vfs_setxattr_noperm() states:
    
     *  This function requires the caller to lock the inode's i_mutex before it
     *  is executed. It also assumes that the caller will make the appropriate
     *  permission checks.
    
    nfsd_setattr() does do permissions checking via fh_verify() and
    nfsd_permission(), but those don't do all the same permissions checks
    that are done by security_inode_setxattr() and its related LSM hooks do.
    
    Since nfsd_setattr() is the only consumer of security_inode_setsecctx(),
    simplest solution appears to be to replace the call to
    __vfs_setxattr_noperm() with a call to __vfs_setxattr_locked().  This
    fixes the above issue and has the added benefit of causing nfsd to
    recall conflicting delegations on a file when a client tries to change
    its security label.
    
    Cc: stable@kernel.org
    Reported-by: Marek Gresko <marek.gresko@protonmail.com>
    Link: https://bugzilla.kernel.org/show_bug.cgi?id=218809
    Signed-off-by: Scott Mayhew <smayhew@redhat.com>
    Tested-by: Stephen Smalley <stephen.smalley.work@gmail.com>
    Reviewed-by: Stephen Smalley <stephen.smalley.work@gmail.com>
    Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
    Reviewed-by: Jeff Layton <jlayton@kernel.org>
    Acked-by: Casey Schaufler <casey@schaufler-ca.com>
    Signed-off-by: Paul Moore <paul@paul-moore.com>
    scottmayhew authored and pcmoore committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    76a0e79 View commit details
    Browse the repository at this point in the history
  34. Merge tag 'wireless-2024-08-28' of git://git.kernel.org/pub/scm/linux…

    …/kernel/git/wireless/wireless
    
    Johannes Berg says:
    
    ====================
    Regressions:
     * wfx: fix for open network connection
     * iwlwifi: fix for hibernate (due to fast resume feature)
     * iwlwifi: fix for a few warnings that were recently added
       (had previously been messages not warnings)
    
    Previously broken:
     * mwifiex: fix static structures used for per-device data
     * iwlwifi: some harmless FW related messages were tagged
       too high priority
     * iwlwifi: scan buffers weren't checked correctly
     * mac80211: SKB leak on beacon error path
     * iwlwifi: fix ACPI table interop with certain BIOSes
     * iwlwifi: fix locking for link selection
     * mac80211: fix SSID comparison in beacon validation
    
    * tag 'wireless-2024-08-28' of git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless:
      wifi: iwlwifi: clear trans->state earlier upon error
      wifi: wfx: repair open network AP mode
      wifi: mac80211: free skb on error path in ieee80211_beacon_get_ap()
      wifi: iwlwifi: mvm: don't wait for tx queues if firmware is dead
      wifi: iwlwifi: mvm: allow 6 GHz channels in MLO scan
      wifi: iwlwifi: mvm: pause TCM when the firmware is stopped
      wifi: iwlwifi: fw: fix wgds rev 3 exact size
      wifi: iwlwifi: mvm: take the mutex before running link selection
      wifi: iwlwifi: mvm: fix iwl_mvm_max_scan_ie_fw_cmd_room()
      wifi: iwlwifi: mvm: fix iwl_mvm_scan_fits() calculation
      wifi: iwlwifi: lower message level for FW buffer destination
      wifi: iwlwifi: mvm: fix hibernation
      wifi: mac80211: fix beacon SSID mismatch handling
      wifi: mwifiex: duplicate static structs used in driver instances
    ====================
    
    Link: https://patch.msgid.link/20240828100151.23662-3-johannes@sipsolutions.net
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    kuba-moo committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    41901c2 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2024

  1. net: busy-poll: use ktime_get_ns() instead of local_clock()

    Typically, busy-polling durations are below 100 usec.
    
    When/if the busy-poller thread migrates to another cpu,
    local_clock() can be off by +/-2msec or more for small
    values of HZ, depending on the platform.
    
    Use ktimer_get_ns() to ensure deterministic behavior,
    which is the whole point of busy-polling.
    
    Fixes: 0602129 ("net: add low latency socket poll")
    Fixes: 9a3c71a ("net: convert low latency sockets to sched_clock()")
    Fixes: 3708983 ("sched, net: Fixup busy_loop_us_clock()")
    Signed-off-by: Eric Dumazet <edumazet@google.com>
    Cc: Mina Almasry <almasrymina@google.com>
    Cc: Willem de Bruijn <willemb@google.com>
    Reviewed-by: Joe Damato <jdamato@fastly.com>
    Link: https://patch.msgid.link/20240827114916.223377-1-edumazet@google.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Eric Dumazet authored and kuba-moo committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    0870b0d View commit details
    Browse the repository at this point in the history
  2. Merge tag 'random-6.11-rc6-for-linus' of git://git.kernel.org/pub/scm…

    …/linux/kernel/git/crng/random
    
    Pull random number generator fix from Jason Donenfeld:
     "Reject invalid flags passed to vgetrandom() in the same way that
      getrandom() does, so that the behavior is the same, from Yann.
    
      The flags argument to getrandom() only has a behavioral effect on the
      function if the RNG isn't initialized yet, so vgetrandom() falls back
      to the syscall in that case. But if the RNG is initialized, all of the
      flags behave the same way, so vgetrandom() didn't bother checking
      them, and just ignored them entirely.
    
      But that doesn't account for invalid flags passed in, which need to be
      rejected so we can use them later"
    
    * tag 'random-6.11-rc6-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/crng/random:
      random: vDSO: reject unknown getrandom() flags
    torvalds committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    d5d547a View commit details
    Browse the repository at this point in the history
  3. Merge tag 'amd-drm-fixes-6.11-2024-08-28' of https://gitlab.freedeskt…

    …op.org/agd5f/linux into drm-fixes
    
    amd-drm-fixes-6.11-2024-08-28:
    
    amdgpu:
    - SWSMU gaming stability fix
    - SMU 13.0.7 fix
    - SWSMU documentation alignment fix
    - SMU 14.0.x fixes
    - GC 12.x fix
    - Display fix
    - IP discovery fix
    - SMU 13.0.6 fix
    
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    
    From: Alex Deucher <alexander.deucher@amd.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20240828184908.125387-1-alexander.deucher@amd.com
    airlied committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    bd3755c View commit details
    Browse the repository at this point in the history
  4. mptcp: pm: reuse ID 0 after delete and re-add

    When the endpoint used by the initial subflow is removed and re-added
    later, the PM has to force the ID 0, it is a special case imposed by the
    MPTCP specs.
    
    Note that the endpoint should then need to be re-added reusing the same
    ID.
    
    Fixes: 3ad14f5 ("mptcp: more accurate MPC endpoint tracking")
    Cc: stable@vger.kernel.org
    Reviewed-by: Mat Martineau <martineau@kernel.org>
    Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>
    matttbe authored and Paolo Abeni committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    8b8ed1b View commit details
    Browse the repository at this point in the history
  5. mptcp: pm: fix RM_ADDR ID for the initial subflow

    The initial subflow has a special local ID: 0. When an endpoint is being
    deleted, it is then important to check if its address is not linked to
    the initial subflow to send the right ID.
    
    If there was an endpoint linked to the initial subflow, msk's
    mpc_endpoint_id field will be set. We can then use this info when an
    endpoint is being removed to see if it is linked to the initial subflow.
    
    So now, the correct IDs are passed to mptcp_pm_nl_rm_addr_or_subflow(),
    it is no longer needed to use mptcp_local_id_match().
    
    Fixes: 3ad14f5 ("mptcp: more accurate MPC endpoint tracking")
    Cc: stable@vger.kernel.org
    Reviewed-by: Mat Martineau <martineau@kernel.org>
    Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>
    matttbe authored and Paolo Abeni committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    87b5896 View commit details
    Browse the repository at this point in the history
  6. selftests: mptcp: join: check removing ID 0 endpoint

    Removing the endpoint linked to the initial subflow should trigger a
    RM_ADDR for the right ID, and the removal of the subflow. That's what is
    now being verified in the "delete and re-add" test.
    
    Note that removing the initial subflow will not decrement the 'subflows'
    counters, which corresponds to the *additional* subflows. On the other
    hand, when the same endpoint is re-added, it will increment this
    counter, as it will be seen as an additional subflow this time.
    
    The 'Fixes' tag here below is the same as the one from the previous
    commit: this patch here is not fixing anything wrong in the selftests,
    but it validates the previous fix for an issue introduced by this commit
    ID.
    
    Fixes: 3ad14f5 ("mptcp: more accurate MPC endpoint tracking")
    Cc: stable@vger.kernel.org
    Reviewed-by: Mat Martineau <martineau@kernel.org>
    Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>
    matttbe authored and Paolo Abeni committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    5f94b08 View commit details
    Browse the repository at this point in the history
  7. mptcp: pm: send ACK on an active subflow

    Taking the first one on the list doesn't work in some cases, e.g. if the
    initial subflow is being removed. Pick another one instead of not
    sending anything.
    
    Fixes: 84dfe36 ("mptcp: send out dedicated ADD_ADDR packet")
    Cc: stable@vger.kernel.org
    Reviewed-by: Mat Martineau <martineau@kernel.org>
    Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>
    matttbe authored and Paolo Abeni committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    c07cc3e View commit details
    Browse the repository at this point in the history
  8. mptcp: pm: skip connecting to already established sf

    The lookup_subflow_by_daddr() helper checks if there is already a
    subflow connected to this address. But there could be a subflow that is
    closing, but taking time due to some reasons: latency, losses, data to
    process, etc.
    
    If an ADD_ADDR is received while the endpoint is being closed, it is
    better to try connecting to it, instead of rejecting it: the peer which
    has sent the ADD_ADDR will not be notified that the ADD_ADDR has been
    rejected for this reason, and the expected subflow will not be created
    at the end.
    
    This helper should then only look for subflows that are established, or
    going to be, but not the ones being closed.
    
    Fixes: d84ad04 ("mptcp: skip connecting the connected address")
    Cc: stable@vger.kernel.org
    Reviewed-by: Mat Martineau <martineau@kernel.org>
    Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>
    matttbe authored and Paolo Abeni committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    bc19ff5 View commit details
    Browse the repository at this point in the history
  9. mptcp: pm: reset MPC endp ID when re-added

    The initial subflow has a special local ID: 0. It is specific per
    connection.
    
    When a global endpoint is deleted and re-added later, it can have a
    different ID -- most services managing the endpoints automatically don't
    force the ID to be the same as before. It is then important to track
    these modifications to be consistent with the ID being used for the
    address used by the initial subflow, not to confuse the other peer or to
    send the ID 0 for the wrong address.
    
    Now when removing an endpoint, msk->mpc_endpoint_id is reset if it
    corresponds to this endpoint. When adding a new endpoint, the same
    variable is updated if the address match the one of the initial subflow.
    
    Fixes: 3ad14f5 ("mptcp: more accurate MPC endpoint tracking")
    Cc: stable@vger.kernel.org
    Reviewed-by: Mat Martineau <martineau@kernel.org>
    Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>
    matttbe authored and Paolo Abeni committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    dce1c6d View commit details
    Browse the repository at this point in the history
  10. selftests: mptcp: join: check re-adding init endp with != id

    The initial subflow has a special local ID: 0. It is specific per
    connection.
    
    When a global endpoint is deleted and re-added later, it can have a
    different ID, but the kernel should still use the ID 0 if it corresponds
    to the initial address.
    
    This test validates this behaviour: the endpoint linked to the initial
    subflow is removed, and re-added with a different ID.
    
    Note that removing the initial subflow will not decrement the 'subflows'
    counters, which corresponds to the *additional* subflows. On the other
    hand, when the same endpoint is re-added, it will increment this
    counter, as it will be seen as an additional subflow this time.
    
    The 'Fixes' tag here below is the same as the one from the previous
    commit: this patch here is not fixing anything wrong in the selftests,
    but it validates the previous fix for an issue introduced by this commit
    ID.
    
    Fixes: 3ad14f5 ("mptcp: more accurate MPC endpoint tracking")
    Cc: stable@vger.kernel.org
    Reviewed-by: Mat Martineau <martineau@kernel.org>
    Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>
    matttbe authored and Paolo Abeni committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    1c2326f View commit details
    Browse the repository at this point in the history
  11. selftests: mptcp: join: no extra msg if no counter

    The checksum and fail counters might not be available. Then no need to
    display an extra message with missing info.
    
    While at it, fix the indentation around, which is wrong since the same
    commit.
    
    Fixes: 47867f0 ("selftests: mptcp: join: skip check if MIB counter not supported")
    Cc: stable@vger.kernel.org
    Reviewed-by: Geliang Tang <geliang@kernel.org>
    Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>
    matttbe authored and Paolo Abeni committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    76a2d83 View commit details
    Browse the repository at this point in the history
  12. mptcp: pm: do not remove already closed subflows

    It is possible to have in the list already closed subflows, e.g. the
    initial subflow has been already closed, but still in the list. No need
    to try to close it again, and increments the related counters again.
    
    Fixes: 0ee4261 ("mptcp: implement mptcp_pm_remove_subflow")
    Cc: stable@vger.kernel.org
    Reviewed-by: Mat Martineau <martineau@kernel.org>
    Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>
    matttbe authored and Paolo Abeni committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    58e1b66 View commit details
    Browse the repository at this point in the history
  13. mptcp: pm: fix ID 0 endp usage after multiple re-creations

    'local_addr_used' and 'add_addr_accepted' are decremented for addresses
    not related to the initial subflow (ID0), because the source and
    destination addresses of the initial subflows are known from the
    beginning: they don't count as "additional local address being used" or
    "ADD_ADDR being accepted".
    
    It is then required not to increment them when the entrypoint used by
    the initial subflow is removed and re-added during a connection. Without
    this modification, this entrypoint cannot be removed and re-added more
    than once.
    
    Reported-by: Arınç ÜNAL <arinc.unal@arinc9.com>
    Closes: multipath-tcp/mptcp_net-next#512
    Fixes: 3ad14f5 ("mptcp: more accurate MPC endpoint tracking")
    Reported-by: syzbot+455d38ecd5f655fc45cf@syzkaller.appspotmail.com
    Closes: https://lore.kernel.org/00000000000049861306209237f4@google.com
    Cc: stable@vger.kernel.org
    Tested-by: Arınç ÜNAL <arinc.unal@arinc9.com>
    Reviewed-by: Mat Martineau <martineau@kernel.org>
    Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>
    matttbe authored and Paolo Abeni committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    9366922 View commit details
    Browse the repository at this point in the history
  14. selftests: mptcp: join: check re-re-adding ID 0 endp

    This test extends "delete and re-add" to validate the previous commit:
    when the endpoint linked to the initial subflow (ID 0) is re-added
    multiple times, it was no longer being used, because the internal linked
    counters are not decremented for this special endpoint: it is not an
    additional endpoint.
    
    Here, the "del/add id 0" steps are done 3 times to unsure this case is
    validated.
    
    The 'Fixes' tag here below is the same as the one from the previous
    commit: this patch here is not fixing anything wrong in the selftests,
    but it validates the previous fix for an issue introduced by this commit
    ID.
    
    Fixes: 3ad14f5 ("mptcp: more accurate MPC endpoint tracking")
    Cc: stable@vger.kernel.org
    Reviewed-by: Mat Martineau <martineau@kernel.org>
    Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>
    matttbe authored and Paolo Abeni committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    d397d72 View commit details
    Browse the repository at this point in the history
  15. mptcp: avoid duplicated SUB_CLOSED events

    The initial subflow might have already been closed, but still in the
    connection list. When the worker is instructed to close the subflows
    that have been marked as closed, it might then try to close the initial
    subflow again.
    
     A consequence of that is that the SUB_CLOSED event can be seen twice:
    
      # ip mptcp endpoint
      1.1.1.1 id 1 subflow dev eth0
      2.2.2.2 id 2 subflow dev eth1
    
      # ip mptcp monitor &
      [         CREATED] remid=0 locid=0 saddr4=1.1.1.1 daddr4=9.9.9.9
      [     ESTABLISHED] remid=0 locid=0 saddr4=1.1.1.1 daddr4=9.9.9.9
      [  SF_ESTABLISHED] remid=0 locid=2 saddr4=2.2.2.2 daddr4=9.9.9.9
    
      # ip mptcp endpoint delete id 1
      [       SF_CLOSED] remid=0 locid=0 saddr4=1.1.1.1 daddr4=9.9.9.9
      [       SF_CLOSED] remid=0 locid=0 saddr4=1.1.1.1 daddr4=9.9.9.9
    
    The first one is coming from mptcp_pm_nl_rm_subflow_received(), and the
    second one from __mptcp_close_subflow().
    
    To avoid doing the post-closed processing twice, the subflow is now
    marked as closed the first time.
    
    Note that it is not enough to check if we are dealing with the first
    subflow and check its sk_state: the subflow might have been reset or
    closed before calling mptcp_close_ssk().
    
    Fixes: b911c97 ("mptcp: add netlink event support")
    Cc: stable@vger.kernel.org
    Tested-by: Arınç ÜNAL <arinc.unal@arinc9.com>
    Reviewed-by: Mat Martineau <martineau@kernel.org>
    Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>
    matttbe authored and Paolo Abeni committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    d82809b View commit details
    Browse the repository at this point in the history
  16. selftests: mptcp: join: validate event numbers

    This test extends "delete and re-add" and "delete re-add signal" to
    validate the previous commit: the number of MPTCP events are checked to
    make sure there are no duplicated or unexpected ones.
    
    A new helper has been introduced to easily check these events. The
    missing events have been added to the lib.
    
    The 'Fixes' tag here below is the same as the one from the previous
    commit: this patch here is not fixing anything wrong in the selftests,
    but it validates the previous fix for an issue introduced by this commit
    ID.
    
    Fixes: b911c97 ("mptcp: add netlink event support")
    Cc: stable@vger.kernel.org
    Reviewed-by: Mat Martineau <martineau@kernel.org>
    Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>
    matttbe authored and Paolo Abeni committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    20ccc7c View commit details
    Browse the repository at this point in the history
  17. mptcp: pm: ADD_ADDR 0 is not a new address

    The ADD_ADDR 0 with the address from the initial subflow should not be
    considered as a new address: this is not something new. If the host
    receives it, it simply means that the address is available again.
    
    When receiving an ADD_ADDR for the ID 0, the PM already doesn't consider
    it as new by not incrementing the 'add_addr_accepted' counter. But the
    'accept_addr' might not be set if the limit has already been reached:
    this can be bypassed in this case. But before, it is important to check
    that this ADD_ADDR for the ID 0 is for the same address as the initial
    subflow. If not, it is not something that should happen, and the
    ADD_ADDR can be ignored.
    
    Note that if an ADD_ADDR is received while there is already a subflow
    opened using the same address, this ADD_ADDR is ignored as well. It
    means that if multiple ADD_ADDR for ID 0 are received, there will not be
    any duplicated subflows created by the client.
    
    Fixes: d0876b2 ("mptcp: add the incoming RM_ADDR support")
    Cc: stable@vger.kernel.org
    Reviewed-by: Mat Martineau <martineau@kernel.org>
    Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>
    matttbe authored and Paolo Abeni committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    57f8620 View commit details
    Browse the repository at this point in the history
  18. selftests: mptcp: join: check re-re-adding ID 0 signal

    This test extends "delete re-add signal" to validate the previous
    commit: when the 'signal' endpoint linked to the initial subflow (ID 0)
    is re-added multiple times, it will re-send the ADD_ADDR with id 0. The
    client should still be able to re-create this subflow, even if the
    add_addr_accepted limit has been reached as this special address is not
    considered as a new address.
    
    The 'Fixes' tag here below is the same as the one from the previous
    commit: this patch here is not fixing anything wrong in the selftests,
    but it validates the previous fix for an issue introduced by this commit
    ID.
    
    Fixes: d0876b2 ("mptcp: add the incoming RM_ADDR support")
    Cc: stable@vger.kernel.org
    Reviewed-by: Mat Martineau <martineau@kernel.org>
    Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>
    matttbe authored and Paolo Abeni committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    f18fa2a View commit details
    Browse the repository at this point in the history
  19. Merge branch 'mptcp-more-fixes-for-the-in-kernel-pm'

    Matthieu Baerts says:
    
    ====================
    mptcp: more fixes for the in-kernel PM
    
    Here is a new batch of fixes for the MPTCP in-kernel path-manager:
    
    Patch 1 ensures the address ID is set to 0 when the path-manager sends
    an ADD_ADDR for the address of the initial subflow. The same fix is
    applied when a new subflow is created re-using this special address. A
    fix for v6.0.
    
    Patch 2 is similar, but for the case where an endpoint is removed: if
    this endpoint was used for the initial address, it is important to send
    a RM_ADDR with this ID set to 0, and look for existing subflows with the
    ID set to 0. A fix for v6.0 as well.
    
    Patch 3 validates the two previous patches.
    
    Patch 4 makes the PM selecting an "active" path to send an address
    notification in an ACK, instead of taking the first path in the list. A
    fix for v5.11.
    
    Patch 5 fixes skipping the establishment of a new subflow if a previous
    subflow using the same pair of addresses is being closed. A fix for
    v5.13.
    
    Patch 6 resets the ID linked to the initial subflow when the linked
    endpoint is re-added, possibly with a different ID. A fix for v6.0.
    
    Patch 7 validates the three previous patches.
    
    Patch 8 is a small fix for the MPTCP Join selftest, when being used with
    older subflows not supporting all MIB counters. A fix for a commit
    introduced in v6.4, but backported up to v5.10.
    
    Patch 9 avoids the PM to try to close the initial subflow multiple
    times, and increment counters while nothing happened. A fix for v5.10.
    
    Patch 10 stops incrementing local_addr_used and add_addr_accepted
    counters when dealing with the address ID 0, because these counters are
    not taking into account the initial subflow, and are then not
    decremented when the linked addresses are removed. A fix for v6.0.
    
    Patch 11 validates the previous patch.
    
    Patch 12 avoids the PM to send multiple SUB_CLOSED events for the
    initial subflow. A fix for v5.12.
    
    Patch 13 validates the previous patch.
    
    Patch 14 stops treating the ADD_ADDR 0 as a new address, and accepts it
    in order to re-create the initial subflow if it has been closed, even if
    the limit for *new* addresses -- not taking into account the address of
    the initial subflow -- has been reached. A fix for v5.10.
    
    Patch 15 validates the previous patch.
    
    Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
    ---
    Matthieu Baerts (NGI0) (15):
          mptcp: pm: reuse ID 0 after delete and re-add
          mptcp: pm: fix RM_ADDR ID for the initial subflow
          selftests: mptcp: join: check removing ID 0 endpoint
          mptcp: pm: send ACK on an active subflow
          mptcp: pm: skip connecting to already established sf
          mptcp: pm: reset MPC endp ID when re-added
          selftests: mptcp: join: check re-adding init endp with != id
          selftests: mptcp: join: no extra msg if no counter
          mptcp: pm: do not remove already closed subflows
          mptcp: pm: fix ID 0 endp usage after multiple re-creations
          selftests: mptcp: join: check re-re-adding ID 0 endp
          mptcp: avoid duplicated SUB_CLOSED events
          selftests: mptcp: join: validate event numbers
          mptcp: pm: ADD_ADDR 0 is not a new address
          selftests: mptcp: join: check re-re-adding ID 0 signal
    
     net/mptcp/pm.c                                  |   4 +-
     net/mptcp/pm_netlink.c                          |  87 ++++++++++----
     net/mptcp/protocol.c                            |   6 +
     net/mptcp/protocol.h                            |   5 +-
     tools/testing/selftests/net/mptcp/mptcp_join.sh | 153 ++++++++++++++++++++----
     tools/testing/selftests/net/mptcp/mptcp_lib.sh  |   4 +
     6 files changed, 209 insertions(+), 50 deletions(-)
    ---
    base-commit: 3a0504d
    change-id: 20240826-net-mptcp-more-pm-fix-ffa61a36f817
    
    Best regards,
    ====================
    
    Link: https://patch.msgid.link/20240828-net-mptcp-more-pm-fix-v2-0-7f11b283fff7@kernel.org
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>
    Paolo Abeni committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    b666a65 View commit details
    Browse the repository at this point in the history
  20. mailmap: update entry for Sriram Yagnaraman

    Link my old est.tech address to my active mail address
    
    Signed-off-by: Sriram Yagnaraman <sriram.yagnaraman@ericsson.com>
    Reviewed-by: Kurt Kanzenbach <kurt@linutronix.de>
    Link: https://patch.msgid.link/20240828072417.4111996-1-sriram.yagnaraman@ericsson.com
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>
    sriramy authored and Paolo Abeni committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    6213dcc View commit details
    Browse the repository at this point in the history
  21. Merge tag 'nf-24-08-28' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/netfilter/nf
    
    Pablo Neira Ayuso says:
    
    ====================
    Netfilter fixes for net
    
    The following patchset contains Netfilter fixes for net:
    
    Patch #1 sets on NFT_PKTINFO_L4PROTO for UDP packets less than 4 bytes
    payload from netdev/egress by subtracting skb_network_offset() when
    validating IPv4 packet length, otherwise 'meta l4proto udp' never
    matches.
    
    Patch #2 subtracts skb_network_offset() when validating IPv6 packet
    length for netdev/egress.
    
    netfilter pull request 24-08-28
    
    * tag 'nf-24-08-28' of git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf:
      netfilter: nf_tables_ipv6: consider network offset in netdev/egress validation
      netfilter: nf_tables: restore IP sanity checks for netdev/egress
    ====================
    
    Link: https://patch.msgid.link/20240828214708.619261-1-pablo@netfilter.org
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>
    Paolo Abeni committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    0240bce View commit details
    Browse the repository at this point in the history
  22. nfc: pn533: Add poll mod list filling check

    In case of im_protocols value is 1 and tm_protocols value is 0 this
    combination successfully passes the check
    'if (!im_protocols && !tm_protocols)' in the nfc_start_poll().
    But then after pn533_poll_create_mod_list() call in pn533_start_poll()
    poll mod list will remain empty and dev->poll_mod_count will remain 0
    which lead to division by zero.
    
    Normally no im protocol has value 1 in the mask, so this combination is
    not expected by driver. But these protocol values actually come from
    userspace via Netlink interface (NFC_CMD_START_POLL operation). So a
    broken or malicious program may pass a message containing a "bad"
    combination of protocol parameter values so that dev->poll_mod_count
    is not incremented inside pn533_poll_create_mod_list(), thus leading
    to division by zero.
    Call trace looks like:
    nfc_genl_start_poll()
      nfc_start_poll()
        ->start_poll()
        pn533_start_poll()
    
    Add poll mod list filling check.
    
    Found by Linux Verification Center (linuxtesting.org) with SVACE.
    
    Fixes: dfccd0f ("NFC: pn533: Add some polling entropy")
    Signed-off-by: Aleksandr Mishin <amishin@t-argos.ru>
    Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
    Link: https://patch.msgid.link/20240827084822.18785-1-amishin@t-argos.ru
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>
    Aleksandr Mishin authored and Paolo Abeni committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    febccb3 View commit details
    Browse the repository at this point in the history
  23. drm/xe/hwmon: Fix WRITE_I1 param from u32 to u16

    WRITE_I1 sub-command of the POWER_SETUP pcode command accepts a u16
    parameter instead of u32. This change prevents potential illegal
    sub-command errors.
    
    v2: Mask uval instead of changing the prototype. (Badal)
    
    v3: Rephrase commit message. (Badal)
    
    Signed-off-by: Karthik Poosa <karthik.poosa@intel.com>
    Fixes: 92d44a4 ("drm/xe/hwmon: Expose card reactive critical power")
    Reviewed-by: Badal Nilawar <badal.nilawar@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20240827155301.183383-1-karthik.poosa@intel.com
    Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
    (cherry picked from commit a7f6570)
    Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
    kpoosa authored and rodrigovivi committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    59d237c View commit details
    Browse the repository at this point in the history
  24. Input: cypress_ps2 - fix waiting for command response

    Commit 8bccf66 ("Input: cypress_ps2 - report timeouts when reading
    command status") uncovered an existing problem with cypress_ps2 driver:
    it tries waiting on a PS/2 device waitqueue without using the rest of
    libps2. Unfortunately without it nobody signals wakeup for the
    waiting process, and each "extended" command was timing out. But the
    rest of the code simply did not notice it.
    
    Fix this by switching from homegrown way of sending request to get
    command response and reading it to standard ps2_command() which does
    the right thing.
    
    Reported-by: Woody Suwalski <terraluna977@gmail.com>
    Tested-by: Woody Suwalski <terraluna977@gmail.com>
    Fixes: 8bccf66 ("Input: cypress_ps2 - report timeouts when reading command status")
    Link: https://lore.kernel.org/r/a8252e0f-dab4-ef5e-2aa1-407a6f4c7204@gmail.com
    Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
    dtor committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    c472d33 View commit details
    Browse the repository at this point in the history
  25. ASoC: dt-bindings: amlogic-sound-cards: document

    Merge series from Neil Armstrong <neil.armstrong@linaro.org>:
    
    Following an off-list discution with Jerome about fixing the following
    DTBs check errors:
        sound: Unevaluated properties are not allowed ('assigned-clock-parents', 'assigned-clock-rates', 'assigned-clocks' were unexpected)
            from schema $id: http://devicetree.org/schemas/sound/amlogic,axg-sound-card.yaml#
        sound: Unevaluated properties are not allowed ('assigned-clock-parents', 'assigned-clock-rates', 'assigned-clocks' were unexpected)
            from schema $id: http://devicetree.org/schemas/sound/amlogic,gx-sound-card.yaml#
        sound: 'anyOf' conditional failed, one must be fixed:
            'clocks' is a required property
            '#clock-cells' is a required property
            from schema $id: http://devicetree.org/schemas/clock/clock.yaml#
    
    It has been agreed documenting the clock in the sound card is a better solution
    than moving them to a random clock controller or consumer node which is not
    related to the actual meaning of those root frequencies.
    
    The patchset adds the clocks proprty to the bindings and finally adds the
    properties to the DT files.
    broonie committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    03515f9 View commit details
    Browse the repository at this point in the history
  26. Merge tag 'net-6.11-rc6' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/netdev/net
    
    Pull networking fixes from Paolo Abeni:
     "Including fixes from bluetooth, wireless and netfilter.
    
      No known outstanding regressions.
    
      Current release - regressions:
    
       - wifi: iwlwifi: fix hibernation
    
       - eth: ionic: prevent tx_timeout due to frequent doorbell ringing
    
      Previous releases - regressions:
    
       - sched: fix sch_fq incorrect behavior for small weights
    
       - wifi:
          - iwlwifi: take the mutex before running link selection
          - wfx: repair open network AP mode
    
       - netfilter: restore IP sanity checks for netdev/egress
    
       - tcp: fix forever orphan socket caused by tcp_abort
    
       - mptcp: close subflow when receiving TCP+FIN
    
       - bluetooth: fix random crash seen while removing btnxpuart driver
    
      Previous releases - always broken:
    
       - mptcp: more fixes for the in-kernel PM
    
       - eth: bonding: change ipsec_lock from spin lock to mutex
    
       - eth: mana: fix race of mana_hwc_post_rx_wqe and new hwc response
    
      Misc:
    
       - documentation: drop special comment style for net code"
    
    * tag 'net-6.11-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (57 commits)
      nfc: pn533: Add poll mod list filling check
      mailmap: update entry for Sriram Yagnaraman
      selftests: mptcp: join: check re-re-adding ID 0 signal
      mptcp: pm: ADD_ADDR 0 is not a new address
      selftests: mptcp: join: validate event numbers
      mptcp: avoid duplicated SUB_CLOSED events
      selftests: mptcp: join: check re-re-adding ID 0 endp
      mptcp: pm: fix ID 0 endp usage after multiple re-creations
      mptcp: pm: do not remove already closed subflows
      selftests: mptcp: join: no extra msg if no counter
      selftests: mptcp: join: check re-adding init endp with != id
      mptcp: pm: reset MPC endp ID when re-added
      mptcp: pm: skip connecting to already established sf
      mptcp: pm: send ACK on an active subflow
      selftests: mptcp: join: check removing ID 0 endpoint
      mptcp: pm: fix RM_ADDR ID for the initial subflow
      mptcp: pm: reuse ID 0 after delete and re-add
      net: busy-poll: use ktime_get_ns() instead of local_clock()
      sctp: fix association labeling in the duplicate COOKIE-ECHO case
      mptcp: pr_debug: add missing \n at the end
      ...
    torvalds committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    0dd5dd6 View commit details
    Browse the repository at this point in the history
  27. Merge tag 'hwmon-for-v6.11-rc6' of git://git.kernel.org/pub/scm/linux…

    …/kernel/git/groeck/linux-staging
    
    Pull hwmon fixes from Guenter Roeck:
    
     - pt5161l: Fix invalid temperature reading of bad ADC values
    
     - asus-ec-sensors: Remove unsupported VRM temperature from X570-E
       GAMING
    
    * tag 'hwmon-for-v6.11-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
      hwmon: (pt5161l) Fix invalid temperature reading
      hwmon: (asus-ec-sensors) remove VRM temp X570-E GAMING
    torvalds committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    3b9dfd9 View commit details
    Browse the repository at this point in the history
  28. Merge tag 'drm-intel-fixes-2024-08-29' of https://gitlab.freedesktop.…

    …org/drm/i915/kernel into drm-fixes
    
    - Fix #11195: The external display connect via USB type-C dock stays blank after re-connect the dock
    - Make DSI backlight work for 2G version of Lenovo Yoga Tab 3 X90F
    . Move ARL GuC firmware to correct version
    -
    
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    From: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/ZtAd8WTw1xiSu_TS@jlahtine-mobl.ger.corp.intel.com
    airlied committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    9941b5b View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2024

  1. dcache: keep dentry_hashtable or d_hash_shift even when not used

    The runtime constant feature removes all the users of these variables,
    allowing the compiler to optimize them away.  It's quite difficult to
    extract their values from the kernel text, and the memory saved by
    removing them is tiny, and it was never the point of this optimization.
    
    Since the dentry_hashtable is a core data structure, it's valuable for
    debugging tools to be able to read it easily.  For instance, scripts
    built on drgn, like the dentrycache script[1], rely on it to be able to
    perform diagnostics on the contents of the dcache.  Annotate it as used,
    so the compiler doesn't discard it.
    
    Link: https://github.com/oracle-samples/drgn-tools/blob/3afc56146f54d09dfd1f6d3c1b7436eda7e638be/drgn_tools/dentry.py#L325-L355 [1]
    Fixes: e3c92e8 ("runtime constants: add x86 architecture support")
    Signed-off-by: Stephen Brennan <stephen.s.brennan@oracle.com>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    brenns10 authored and torvalds committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    04c8aba View commit details
    Browse the repository at this point in the history
  2. Merge tag 'execve-v6.11-rc6' of git://git.kernel.org/pub/scm/linux/ke…

    …rnel/git/kees/linux
    
    Pull execve fix from Kees Cook:
    
     - binfmt_elf_fdpic: fix AUXV size with ELF_HWCAP2 (Max Filippov)
    
    * tag 'execve-v6.11-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
      binfmt_elf_fdpic: fix AUXV size calculation when ELF_HWCAP2 is defined
    torvalds committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    1b5fe53 View commit details
    Browse the repository at this point in the history
  3. Merge tag 'drm-xe-fixes-2024-08-29' of https://gitlab.freedesktop.org…

    …/drm/xe/kernel into drm-fixes
    
    - Invalidate media_gt TLBs (Brost)
    - Fix HWMON i1 power setup write command (Karthik)
    
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    
    From: Rodrigo Vivi <rodrigo.vivi@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/ZtB-t5f4uXMrKgnV@intel.com
    airlied committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    dde72a5 View commit details
    Browse the repository at this point in the history
  4. Merge tag 'drm-misc-fixes-2024-08-29' of https://gitlab.freedesktop.o…

    …rg/drm/misc/kernel into drm-fixes
    
    A revert for a previous TTM commit causing stuttering, 3 fixes for
    vmwgfx related to buffer operations, a fix for video/aperture with
    non-VGA primary devices, and a preemption status fix for v3d
    
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    
    From: Maxime Ripard <mripard@redhat.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20240829-efficient-swift-from-lemuria-f60c05@houat
    airlied committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    27f5b72 View commit details
    Browse the repository at this point in the history
  5. Merge tag 'drm-fixes-2024-08-30' of https://gitlab.freedesktop.org/dr…

    …m/kernel
    
    Pull drm fixes from Dave Airlie:
     "Another week, another set of GPU fixes. amdgpu and vmwgfx leading the
      charge, then i915 and xe changes along with v3d and some other bits.
      The TTM revert is due to some stuttering graphical apps probably due
      to longer stalls while prefaulting.
    
      Seems pretty much where I'd expect things,
    
      ttm:
       - revert prefault change, caused stutters
    
      aperture:
       - handle non-VGA devices bettter
    
      amdgpu:
       - SWSMU gaming stability fix
       - SMU 13.0.7 fix
       - SWSMU documentation alignment fix
       - SMU 14.0.x fixes
       - GC 12.x fix
       - Display fix
       - IP discovery fix
       - SMU 13.0.6 fix
    
      i915:
       - Fix #11195: The external display connect via USB type-C dock stays
         blank after re-connect the dock
       - Make DSI backlight work for 2G version of Lenovo Yoga Tab 3 X90F
       - Move ARL GuC firmware to correct version
    
      xe:
       - Invalidate media_gt TLBs
       - Fix HWMON i1 power setup write command
    
      vmwgfx:
       - prevent unmapping active read buffers
       - fix prime with external buffers
       - disable coherent dumb buffers without 3d
    
      v3d:
       - disable preemption while updating GPU stats"
    
    * tag 'drm-fixes-2024-08-30' of https://gitlab.freedesktop.org/drm/kernel:
      drm/xe/hwmon: Fix WRITE_I1 param from u32 to u16
      drm/v3d: Disable preemption while updating GPU stats
      drm/amd/pm: Drop unsupported features on smu v14_0_2
      drm/amd/pm: Add support for new P2S table revision
      drm/amdgpu: support for gc_info table v1.3
      drm/amd/display: avoid using null object of framebuffer
      drm/amdgpu/gfx12: set UNORD_DISPATCH in compute MQDs
      drm/amd/pm: update message interface for smu v14.0.2/3
      drm/amdgpu/swsmu: always force a state reprogram on init
      drm/amdgpu/smu13.0.7: print index for profiles
      drm/amdgpu: align pp_power_profile_mode with kernel docs
      drm/i915/dp_mst: Fix MST state after a sink reset
      drm/xe: Invalidate media_gt TLBs
      drm/i915: ARL requires a newer GSC firmware
      drm/i915/dsi: Make Lenovo Yoga Tab 3 X90F DMI match less strict
      video/aperture: optionally match the device in sysfb_disable()
      drm/vmwgfx: Disable coherent dumb buffers without 3d
      drm/vmwgfx: Fix prime with external buffers
      drm/vmwgfx: Prevent unmapping active read buffers
      Revert "drm/ttm: increase ttm pre-fault value to PMD size"
    torvalds committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    20371ba View commit details
    Browse the repository at this point in the history
  6. ALSA: hda/realtek: add patch for internal mic in Lenovo V145

    Lenovo V145 is having phase inverted dmic but simply applying inverted
    dmic fixups does not work. Chaining up verb fixes for ALC283 enables
    inverting dmic fixup to work properly.
    
    Signed-off-by: Terry Cheong <htcheong@chromium.org>
    Cc: <stable@vger.kernel.org>
    Link: https://patch.msgid.link/20240830-lenovo-v145-fixes-v3-1-f7b7265068fa@chromium.org
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    terry182 authored and tiwai committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    ef27e89 View commit details
    Browse the repository at this point in the history
  7. ALSA: hda: add HDMI codec ID for Intel PTL

    Add HDMI codec ID for Intel Panther Lake platform.
    
    Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
    Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
    Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
    Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
    Link: https://patch.msgid.link/20240830072458.110831-1-yung-chuan.liao@linux.intel.com
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    kv2019i authored and tiwai committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    e9481d9 View commit details
    Browse the repository at this point in the history
  8. ASoC: codecs: lpass-va-macro: set the default codec version for sm8250

    sm8250 and sc7280 have lpass codec version 1.0, as these are very old
    platforms, they do not have a reliable way to get the codec version
    from core_id registers.
    
    On codec versions below 2.0, even though the core_id registers are
    available to read, the values of these registers are not unique to be
    able to determine the version of the codec dynamically.
    
    Add the version info into of_data, so that driver does not need to use
    core_id registers to get version number for such situations.
    
    Fixes: 378918d ("ASoC: codecs: lpass-macro: add helpers to get codec version")
    Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
    Tested-by: Amit Pundir <amit.pundir@linaro.org>
    Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
    Tested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
    Link: https://patch.msgid.link/20240816091210.50172-1-srinivas.kandagatla@linaro.org
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Srinivas-Kandagatla authored and broonie committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    77212f3 View commit details
    Browse the repository at this point in the history
  9. Merge tag 'usb-serial-6.11-rc6' of ssh://gitolite.kernel.org/pub/scm/…

    …linux/kernel/git/johan/usb-serial into usb-linus
    
    Johan writes:
    
    USB-serial device id for 6.11-rc6
    
    Here's a new modem device id.
    
    This one has been in linux-next with no reported issues.
    
    * tag 'usb-serial-6.11-rc6' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial:
      USB: serial: option: add MeiG Smart SRM825L
    gregkh committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    58c2fa5 View commit details
    Browse the repository at this point in the history
  10. io_uring/rsrc: ensure compat iovecs are copied correctly

    For buffer registration (or updates), a userspace iovec is copied in
    and updated. If the application is within a compat syscall, then the
    iovec type is compat_iovec rather than iovec. However, the type used
    in __io_sqe_buffers_update() and io_sqe_buffers_register() is always
    struct iovec, and hence the source is incremented by the size of a
    non-compat iovec in the loop. This misses every other iovec in the
    source, and will run into garbage half way through the copies and
    return -EFAULT to the application.
    
    Maintain the source address separately and assign to our user vec
    pointer, so that copies always happen from the right source address.
    
    While in there, correct a bad placement of __user which triggered
    the following sparse warning prior to this fix:
    
    io_uring/rsrc.c:981:33: warning: cast removes address space '__user' of expression
    io_uring/rsrc.c:981:30: warning: incorrect type in assignment (different address spaces)
    io_uring/rsrc.c:981:30:    expected struct iovec const [noderef] __user *uvec
    io_uring/rsrc.c:981:30:    got struct iovec *[noderef] __user
    
    Fixes: f4eaf8e ("io_uring/rsrc: Drop io_copy_iov in favor of iovec API")
    Reviewed-by: Gabriel Krisman Bertazi <krisman@suse.de>
    Signed-off-by: Jens Axboe <axboe@kernel.dk>
    axboe committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    1c47c0d View commit details
    Browse the repository at this point in the history
  11. nfsd: fix nfsd4_deleg_getattr_conflict in presence of third party lease

    It is not safe to dereference fl->c.flc_owner without first confirming
    fl->fl_lmops is the expected manager.  nfsd4_deleg_getattr_conflict()
    tests fl_lmops but largely ignores the result and assumes that flc_owner
    is an nfs4_delegation anyway.  This is wrong.
    
    With this patch we restore the "!= &nfsd_lease_mng_ops" case to behave
    as it did before the change mentioned below.  This is the same as the
    current code, but without any reference to a possible delegation.
    
    Fixes: c596772 ("NFSD: handle GETATTR conflict with write delegation")
    Signed-off-by: NeilBrown <neilb@suse.de>
    Reviewed-by: Jeff Layton <jlayton@kernel.org>
    Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
    neilbrown authored and chucklever committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    40927f3 View commit details
    Browse the repository at this point in the history
  12. ASoC: cs-amp-lib: Add KUnit test case for empty calibration entries

    Add a test case for commit bb44855 ("ASoC: cs-amp-lib: Ignore
    empty UEFI calibration entries").
    
    Any entries in the calibration blob that have calTime==0 are empty
    entries. So they must not be returned by a lookup.
    
    Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
    Link: https://patch.msgid.link/20240830144819.118362-1-rf@opensource.cirrus.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    rfvirgil authored and broonie committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    99c9767 View commit details
    Browse the repository at this point in the history
  13. io_uring/kbuf: return correct iovec count from classic buffer peek

    io_provided_buffers_select() returns 0 to indicate success, but it should
    be returning 1 to indicate that 1 vec was mapped. This causes peeking
    to fail with classic provided buffers, and while that's not a use case
    that anyone should use, it should still work correctly.
    
    The end result is that no buffer will be selected, and hence a completion
    with '0' as the result will be posted, without a buffer attached.
    
    Fixes: 35c8711 ("io_uring/kbuf: add helpers for getting/peeking multiple buffers")
    Signed-off-by: Jens Axboe <axboe@kernel.dk>
    axboe committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    f274495 View commit details
    Browse the repository at this point in the history
  14. MAINTAINERS: PCI: Add NXP PCI controller mailing list imx@lists.linux…

    ….dev
    
    Add imx mailing list imx@lists.linux.dev for PCI controller of NXP chips
    (Layerscape and iMX).
    
    Link: https://lore.kernel.org/r/20240826202740.970015-1-Frank.Li@nxp.com
    Signed-off-by: Frank Li <Frank.Li@nxp.com>
    Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
    Acked-by: Richard Zhu <hongxing.zhu@nxp.com>
    nxpfrankli authored and bjorn-helgaas committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    150b572 View commit details
    Browse the repository at this point in the history
  15. Merge tag 'iommu-fixes-v6.11-rc5' of git://git.kernel.org/pub/scm/lin…

    …ux/kernel/git/iommu/linux
    
    Pull iommu fixes from Joerg Roedel:
    
     - Fix a device-stall problem in bad io-page-fault setups (faults
       received from devices with no supporting domain attached).
    
     - Context flush fix for Intel VT-d.
    
     - Do not allow non-read+non-write mapping through iommufd as most
       implementations can not handle that.
    
     - Fix a possible infinite-loop issue in map_pages() path.
    
     - Add Jean-Philippe as reviewer for SMMUv3 SVA support
    
    * tag 'iommu-fixes-v6.11-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/iommu/linux:
      MAINTAINERS: Add Jean-Philippe as SMMUv3 SVA reviewer
      iommu: Do not return 0 from map_pages if it doesn't do anything
      iommufd: Do not allow creating areas without READ or WRITE
      iommu/vt-d: Fix incorrect domain ID in context flush helper
      iommu: Handle iommu faults for a bad iopf setup
    torvalds committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    13c6bba View commit details
    Browse the repository at this point in the history
  16. Merge tag 'soundwire-6.11-fixes' of git://git.kernel.org/pub/scm/linu…

    …x/kernel/git/vkoul/soundwire
    
    Pull soundwire fix from Vinod Koul:
    
     - Single fix for non-continous port map programming
    
    * tag 'soundwire-6.11-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/soundwire:
      soundwire: stream: fix programming slave ports for non-continous port maps
    torvalds committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    8d80c99 View commit details
    Browse the repository at this point in the history
  17. Merge tag 'phy-fixes-6.11' of git://git.kernel.org/pub/scm/linux/kern…

    …el/git/phy/linux-phy
    
    Pull phy fixes from Vinod Koul:
    
     - Qualcomm QMP X1E80100 PCIe Gen4 PHY initialisation fix
    
     - Freescale imx8mq tuning parameter name fix
    
     - Samsung exynos5 fir for error code in probe()
    
     - Xilinx Zynqmp SGMII linkup failure fix
    
    * tag 'phy-fixes-6.11' of git://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy:
      phy: xilinx: phy-zynqmp: Fix SGMII linkup failure on resume
      phy: exynos5-usbdrd: fix error code in probe()
      phy: fsl-imx8mq-usb: fix tuning parameter name
      phy: qcom: qmp-pcie: Fix X1E80100 PCIe Gen4 PHY initialisation
    torvalds committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    32fafaf View commit details
    Browse the repository at this point in the history
  18. Merge tag 'dmaengine-fix-6.11' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/vkoul/dmaengine
    
    Pull dmaengine fixes from Vinod Koul:
    
     - A bunch of dw driver changes to fix the src/dst addr width config
    
     - Omap driver fix for sglen initialization
    
     - stm32-dma3 driver lli_size init fix
    
     - dw edma driver fixes for watermark interrupts and unmasking STOP and
       ABORT interrupts
    
    * tag 'dmaengine-fix-6.11' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine:
      dmaengine: dw-edma: Do not enable watermark interrupts for HDMA
      dmaengine: dw-edma: Fix unmasking STOP and ABORT interrupts for HDMA
      dmaengine: stm32-dma3: Set lli_size after allocation
      dmaengine: ti: omap-dma: Initialize sglen after allocation
      dmaengine: dw: Unify ret-val local variables naming
      dmaengine: dw: Simplify max-burst calculation procedure
      dmaengine: dw: Define encode_maxburst() above prepare_ctllo() callbacks
      dmaengine: dw: Simplify prepare CTL_LO methods
      dmaengine: dw: Add memory bus width verification
      dmaengine: dw: Add peripheral bus width verification
    torvalds committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    922842a View commit details
    Browse the repository at this point in the history
  19. Merge tag 'pm-6.11-rc6' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/rafael/linux-pm
    
    Pull power management fixes from Rafael Wysocki:
     "These fix three issues in the amd-pstate cpufreq driver.
    
      Specifics:
    
       - Remove checks for highest performance match on preferred cores when
         updating preferred core ranking in amd-pstate (Mario Limonciello)
    
       - Make amd-pstate call topology_logical_package_id() instead of
         logical_die_id() to get a socked ID for a CPU (Gautham Shenoy)
    
       - Fix uninitialized variable in amd_pstate_cpu_boost_update() (Dan
         Carpenter)"
    
    * tag 'pm-6.11-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
      cpufreq/amd-pstate-ut: Don't check for highest perf matching on prefcore
      cpufreq/amd-pstate: Use topology_logical_package_id() instead of logical_die_id()
      cpufreq: amd-pstate: Fix uninitialized variable in amd_pstate_cpu_boost_update()
    torvalds committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    fb1a804 View commit details
    Browse the repository at this point in the history
  20. Merge tag 'lsm-pr-20240830' of git://git.kernel.org/pub/scm/linux/ker…

    …nel/git/pcmoore/lsm
    
    Pull lsm fix from Paul Moore:
     "One small patch to correct a NFS permissions problem with SELinux and
      Smack"
    
    * tag 'lsm-pr-20240830' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/lsm:
      selinux,smack: don't bypass permissions check in inode_setsecctx hook
    torvalds committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    fb24560 View commit details
    Browse the repository at this point in the history
  21. Merge tag 'at91-fixes-6.11' of https://git.kernel.org/pub/scm/linux/k…

    …ernel/git/at91/linux into arm/fixes
    
    Microchip AT91 fixes for v6.11
    
    It contains:
    - DTS directory update to match all entries not only those starting with
      at91 or sama
    arndb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    9cc7b17 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2024

  1. Merge tag 'io_uring-6.11-20240830' of git://git.kernel.dk/linux

    Pull io_uring fixes from Jens Axboe:
    
     - A fix for a regression that happened in 6.11 merge window, where the
       copying of iovecs for compat mode applications got broken for certain
       cases.
    
     - Fix for a bug introduced in 6.10, where if using recv/send bundles
       with classic provided buffers, the recv/send would fail to set the
       right iovec count. This caused 0 byte send/recv results. Found via
       code coverage testing and writing a test case to exercise it.
    
    * tag 'io_uring-6.11-20240830' of git://git.kernel.dk/linux:
      io_uring/kbuf: return correct iovec count from classic buffer peek
      io_uring/rsrc: ensure compat iovecs are copied correctly
    torvalds committed Aug 31, 2024
    Configuration menu
    Copy the full SHA
    ad246d9 View commit details
    Browse the repository at this point in the history
  2. Merge tag 'block-6.11-20240830' of git://git.kernel.dk/linux

    Pull block fix from Jens Axboe:
     "Fix for a single regression for WRITE_SAME introduced in the 6.11
      merge window"
    
    * tag 'block-6.11-20240830' of git://git.kernel.dk/linux:
      block: fix detection of unsupported WRITE SAME in blkdev_issue_write_zeroes
    torvalds committed Aug 31, 2024
    Configuration menu
    Copy the full SHA
    216d163 View commit details
    Browse the repository at this point in the history
  3. Merge tag 'pci-v6.11-fixes-2' of git://git.kernel.org/pub/scm/linux/k…

    …ernel/git/pci/pci
    
    Pull pci fixes from Bjorn Helgaas:
    
     - Add Manivannan Sadhasivam as PCI native host bridge and endpoint
       driver reviewer (Manivannan Sadhasivam)
    
     - Disable MHI RAM data parity error interrupt for qcom SA8775P SoC to
       work around hardware erratum that causes a constant stream of
       interrupts (Manivannan Sadhasivam)
    
     - Don't try to fall back to qcom Operating Performance Points (OPP)
       support unless the platform actually supports OPP (Manivannan
       Sadhasivam)
    
     - Add imx@lists.linux.dev mailing list to MAINTAINERS for NXP
       layerscape and imx6 PCI controller drivers (Frank Li)
    
    * tag 'pci-v6.11-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci:
      MAINTAINERS: PCI: Add NXP PCI controller mailing list imx@lists.linux.dev
      PCI: qcom: Use OPP only if the platform supports it
      PCI: qcom-ep: Disable MHI RAM data parity error interrupt for SA8775P SoC
      MAINTAINERS: Add Manivannan Sadhasivam as Reviewer for PCI native host bridge and endpoint drivers
    torvalds committed Aug 31, 2024
    Configuration menu
    Copy the full SHA
    8101b27 View commit details
    Browse the repository at this point in the history
  4. Merge tag 'input-for-v6.11-rc5' of git://git.kernel.org/pub/scm/linux…

    …/kernel/git/dtor/input
    
    Pull input fix from Dmitry Torokhov:
    
     - a fix for Cypress PS/2 touchpad for regression introduced in 6.11
       merge window where a timeout condition is incorrectly reported for
       all extended Cypress commands
    
    * tag 'input-for-v6.11-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
      Input: cypress_ps2 - fix waiting for command response
    torvalds committed Aug 31, 2024
    Configuration menu
    Copy the full SHA
    1934261 View commit details
    Browse the repository at this point in the history
  5. ALSA: pcm: replace simple_strtoul to kstrtoul

    As mentioned in [1], "...simple_strtol(), simple_strtoll(),
    simple_strtoul(), and simple_strtoull() functions explicitly
    ignore overflows, which may lead to unexpected results in callers."
    Hence, the use of those functions is discouraged.
    
    This patch replace the use of the simple_strtoul with the safer
    alternatives kstrtoul.
    
    [1] https://www.kernel.org/doc/html/latest/process/deprecated.html#simple-strtol-simple-strtoll-simple-strtoul-simple-strtoull
    
    Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
    Link: https://patch.msgid.link/20240831080639.3985143-1-lihongbo22@huawei.com
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Hongbo Li authored and tiwai committed Aug 31, 2024
    Configuration menu
    Copy the full SHA
    61bc4de View commit details
    Browse the repository at this point in the history
  6. Merge tag 'arm-fixes-6.11-2' of git://git.kernel.org/pub/scm/linux/ke…

    …rnel/git/soc/soc
    
    Pull ARM SoC fixes from Arnd Bergmann:
     "There is a fairly large number of bug fixes for Qualcomm platforms,
      most of them addressing issues with the devicetree files for the newly
      added Snapdragon X1 based laptops to make them more reliable.
    
      The Qualcomm driver changes address a few build-time issues as well as
      runtime problems in the tzmem and scm firmware, the USB Type-C driver,
      and the cmd-db and pmic_glink soc drivers.
    
      The NXP i.MX usually gets a bunch of devicetree fixes that is
      proportional to the number of supported machines. This includes both
      warning fixes and correctness for the 64-bit i.MX9, i.MX8 and
      layerscape platforms, as well as a single fix for a 32-bit i.MX6 based
      board.
    
      The other changes are the usual minor changes, including an update to
      the MAINTAINERS file, an omap3 dts file and a SoC driver for mpfs
      (risc-v)"
    
    * tag 'arm-fixes-6.11-2' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (50 commits)
      firmware: microchip: fix incorrect error report of programming:timeout on success
      soc: qcom: pd-mapper: Fix singleton refcount
      firmware: qcom: tzmem: disable sdm670 platform
      soc: qcom: pmic_glink: Actually communicate when remote goes down
      usb: typec: ucsi: Move unregister out of atomic section
      soc: qcom: pmic_glink: Fix race during initialization
      firmware: qcom: qseecom: remove unused functions
      firmware: qcom: tzmem: fix virtual-to-physical address conversion
      firmware: qcom: scm: Mark get_wq_ctx() as atomic call
      arm64: dts: qcom: x1e80100: Fix Adreno SMMU global interrupt
      arm64: dts: qcom: disable GPU on x1e80100 by default
      arm64: dts: imx8mm-phygate: fix typo pinctrcl-0
      arm64: dts: imx95: correct L3Cache cache-sets
      arm64: dts: imx95: correct a55 power-domains
      arm64: dts: freescale: imx93-tqma9352-mba93xxla: fix typo
      arm64: dts: freescale: imx93-tqma9352: fix CMA alloc-ranges
      ARM: dts: imx6dl-yapp43: Increase LED current to match the yapp4 HW design
      arm64: dts: imx93: update default value for snps,clk-csr
      arm64: dts: freescale: tqma9352: Fix watchdog reset
      arm64: dts: imx8mp-beacon-kit: Fix Stereo Audio on WM8962
      ...
    torvalds committed Aug 31, 2024
    Configuration menu
    Copy the full SHA
    35667a2 View commit details
    Browse the repository at this point in the history
  7. Merge tag 'xfs-6.11-fixes-4' of git://git.kernel.org/pub/scm/fs/xfs/x…

    …fs-linux
    
    Pull xfs fixes from Chandan Babu:
    
     - Do not call out v1 inodes with non-zero di_nlink field as being
       corrupt
    
     - Change xfs_finobt_count_blocks() to count "free inode btree" blocks
       rather than "inode btree" blocks
    
     - Don't report the number of trimmed bytes via FITRIM because the
       underlying storage isn't required to do anything and failed discard
       IOs aren't reported to the caller anyway
    
     - Fix incorrect setting of rm_owner field in an rmap query
    
     - Report missing disk offset range in an fsmap query
    
     - Obtain m_growlock when extending realtime section of the filesystem
    
     - Reset rootdir extent size hint after extending realtime section of
       the filesystem
    
    * tag 'xfs-6.11-fixes-4' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
      xfs: reset rootdir extent size hint after growfsrt
      xfs: take m_growlock when running growfsrt
      xfs: Fix missing interval for missing_owner in xfs fsmap
      xfs: use XFS_BUF_DADDR_NULL for daddrs in getfsmap code
      xfs: Fix the owner setting issue for rmap query in xfs fsmap
      xfs: don't bother reporting blocks trimmed via FITRIM
      xfs: xfs_finobt_count_blocks() walks the wrong btree
      xfs: fix folio dirtying for XFILE_ALLOC callers
      xfs: fix di_onlink checking for V1/V2 inodes
    torvalds committed Aug 31, 2024
    Configuration menu
    Copy the full SHA
    0efdc09 View commit details
    Browse the repository at this point in the history
  8. Merge tag 'nfsd-6.11-3' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/cel/linux
    
    Pull nfsd fix from Chuck Lever:
    
     - One more write delegation fix
    
    * tag 'nfsd-6.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux:
      nfsd: fix nfsd4_deleg_getattr_conflict in presence of third party lease
    torvalds committed Aug 31, 2024
    Configuration menu
    Copy the full SHA
    6a2fcc5 View commit details
    Browse the repository at this point in the history
  9. Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/g…

    …it/jejb/scsi
    
    Pull SCSI fixes from James Bottomley:
     "Minor fixes only.
    
      The sd.c one ignores a sync cache request if format is in progress
      which can happen if formatting a drive across suspend/resume"
    
    * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
      scsi: sd: Ignore command SYNCHRONIZE CACHE error if format in progress
      scsi: aacraid: Fix double-free on probe failure
      scsi: lpfc: Fix overflow build issue
    torvalds committed Aug 31, 2024
    Configuration menu
    Copy the full SHA
    770b0ff View commit details
    Browse the repository at this point in the history
  10. Merge tag 'usb-6.11-rc6' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/gregkh/usb
    
    Pull USB fixes from Greg KH:
     "Here are some small USB fixes for 6.11-rc6.  Included in here are:
    
       - dwc3 driver fixes for reported issues
    
       - MAINTAINER file update, marking a driver as unsupported :(
    
       - cdnsp driver fixes
    
       - USB gadget driver fix
    
       - USB sysfs fix
    
       - other tiny fixes
    
       - new device ids for usb serial driver
    
      All of these have been in linux-next this week with no reported
      issues"
    
    * tag 'usb-6.11-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
      USB: serial: option: add MeiG Smart SRM825L
      usb: cdnsp: fix for Link TRB with TC
      usb: dwc3: st: add missing depopulate in probe error path
      usb: dwc3: st: fix probed platform device ref count on probe error path
      usb: dwc3: ep0: Don't reset resource alloc flag (including ep0)
      usb: core: sysfs: Unmerge @usb3_hardware_lpm_attr_group in remove_power_attributes()
      usb: typec: fsa4480: Relax CHIP_ID check
      usb: dwc3: xilinx: add missing depopulate in probe error path
      usb: dwc3: omap: add missing depopulate in probe error path
      dt-bindings: usb: microchip,usb2514: Fix reference USB device schema
      usb: gadget: uvc: queue pump work in uvcg_video_enable()
      cdc-acm: Add DISABLE_ECHO quirk for GE HealthCare UI Controller
      usb: cdnsp: fix incorrect index in cdnsp_get_hw_deq function
      usb: dwc3: core: Prevent USB core invalid event buffer address access
      MAINTAINERS: Mark UVC gadget driver as orphan
    torvalds committed Aug 31, 2024
    Configuration menu
    Copy the full SHA
    e8784b0 View commit details
    Browse the repository at this point in the history
  11. power: sequencing: qcom-wcn: set the wlan-enable GPIO to output

    Commit a9aaf1f ("power: sequencing: request the WLAN enable GPIO
    as-is") broke WLAN on boards on which the wlan-enable GPIO enabling the
    wifi module isn't in output mode by default. We need to set direction to
    output while retaining the value that was already set to keep the ath
    module on if it's already started.
    
    Fixes: a9aaf1f ("power: sequencing: request the WLAN enable GPIO as-is")
    Link: https://lore.kernel.org/r/20240823115500.37280-1-brgl@bgdev.pl
    Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
    Bartosz Golaszewski committed Aug 31, 2024
    Configuration menu
    Copy the full SHA
    d8b7620 View commit details
    Browse the repository at this point in the history
  12. Merge tag 'pwrseq-fixes-for-v6.11-rc6' of git://git.kernel.org/pub/sc…

    …m/linux/kernel/git/brgl/linux
    
    Pull power sequencing fix from Bartosz Golaszewski:
     "A follow-up fix for the power sequencing subsystem. It turned out the
      previous fix for this driver was incomplete and broke the WLAN support
      on some platforms. This addresses the issue.
    
       - set the direction of the wlan-enable GPIO to output after
         requesting it as-is"
    
    * tag 'pwrseq-fixes-for-v6.11-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
      power: sequencing: qcom-wcn: set the wlan-enable GPIO to output
    torvalds committed Aug 31, 2024
    Configuration menu
    Copy the full SHA
    8463be8 View commit details
    Browse the repository at this point in the history
  13. Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git…

    …/groeck/linux-staging
    
    Pull misc fixes from Guenter Roeck.
    
    These are fixes for regressions that Guenther has been reporting, and
    the maintainers haven't picked up and sent in. With rc6 fairly imminent,
    I'm taking them directly from Guenter.
    
    * 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
      apparmor: fix policy_unpack_test on big endian systems
      Revert "MIPS: csrc-r4k: Apply verification clocksource flags"
      microblaze: don't treat zero reserved memory regions as error
    torvalds committed Aug 31, 2024
    Configuration menu
    Copy the full SHA
    6cd90e5 View commit details
    Browse the repository at this point in the history
  14. bcachefs: Revert lockless buffered IO path

    We had a report of data corruption on nixos when building installer
    images.
    
    NixOS/nixpkgs#321055 (comment)
    
    It seems that writes are being dropped, but only when issued by QEMU,
    and possibly only in snapshot mode. It's undetermined if it's write
    calls are being dropped or dirty folios.
    
    Further testing, via minimizing the original patch to just the change
    that skips the inode lock on non appends/truncates, reveals that it
    really is just not taking the inode lock that causes the corruption: it
    has nothing to do with the other logic changes for preserving write
    atomicity in corner cases.
    
    It's also kernel config dependent: it doesn't reproduce with the minimal
    kernel config that ktest uses, but it does reproduce with nixos's distro
    config. Bisection the kernel config initially pointer the finger at page
    migration or compaction, but it appears that was erroneous; we haven't
    yet determined what kernel config option actually triggers it.
    
    Sadly it appears this will have to be reverted since we're getting too
    close to release and my plate is full, but we'd _really_ like to fully
    debug it.
    
    My suspicion is that this patch is exposing a preexisting bug - the
    inode lock actually covers very little in IO paths, and we have a
    different lock (the pagecache add lock) that guards against races with
    truncate here.
    
    Fixes: 7e64c86 ("bcachefs: Buffered write path now can avoid the inode lock")
    Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
    Kent Overstreet committed Aug 31, 2024
    Configuration menu
    Copy the full SHA
    e3e6940 View commit details
    Browse the repository at this point in the history
  15. bcachefs: Mark more errors as autofix

    errors that are known to always be safe to fix should be autofix: this
    should be most errors even at this point, but that will need some
    thorough review.
    
    note that errors are still logged in the superblock, so we'll still know
    that they happened.
    
    Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
    Kent Overstreet committed Aug 31, 2024
    Configuration menu
    Copy the full SHA
    3d3020c View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2024

  1. Merge tag 'bcachefs-2024-08-21' of https://github.com/koverstreet/bca…

    …chefs
    
    Push bcachefs fixes from Kent Overstreet:
     "The data corruption in the buffered write path is troubling; inode
      lock should not have been able to cause that...
    
       - Fix a rare data corruption in the rebalance path, caught as a nonce
         inconsistency on encrypted filesystems
    
       - Revert lockless buffered write path
    
       - Mark more errors as autofix"
    
    * tag 'bcachefs-2024-08-21' of https://github.com/koverstreet/bcachefs:
      bcachefs: Mark more errors as autofix
      bcachefs: Revert lockless buffered IO path
      bcachefs: Fix bch2_extents_match() false positive
      bcachefs: Fix failure to return error in data_update_index_update()
    torvalds committed Sep 1, 2024
    Configuration menu
    Copy the full SHA
    a4c7631 View commit details
    Browse the repository at this point in the history
  2. Merge tag 'v6.11-rc5-smb-client-fixes' of git://git.samba.org/sfrench…

    …/cifs-2.6
    
    Pull smb client fixes from Steve French:
    
     - copy_file_range fix
    
     - two read fixes including read past end of file rc fix and read retry
       crediting fix
    
     - falloc zero range fix
    
    * tag 'v6.11-rc5-smb-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
      cifs: Fix FALLOC_FL_ZERO_RANGE to preflush buffered part of target region
      cifs: Fix copy offload to flush destination region
      netfs, cifs: Fix handling of short DIO read
      cifs: Fix lack of credit renegotiation on read retry
    torvalds committed Sep 1, 2024
    Configuration menu
    Copy the full SHA
    6b9ffc4 View commit details
    Browse the repository at this point in the history
  3. Linux 6.11-rc6

    torvalds committed Sep 1, 2024
    Configuration menu
    Copy the full SHA
    431c164 View commit details
    Browse the repository at this point in the history
  4. ALSA: pcm: Fix the previous conversion to kstrtoul()

    The previous replacement from simple_strtoul() to kstrtoul() forgot
    that the passed pointer must be an unsigned long int pointer, while
    the value used there is a sized_t pointer.  Fix it.
    
    Fixes: 61bc4de ("ALSA: pcm: replace simple_strtoul to kstrtoul")
    Reported-by: kernel test robot <lkp@intel.com>
    Closes: https://lore.kernel.org/oe-kbuild-all/202409010425.YPS7cWeJ-lkp@intel.com/
    Link: https://patch.msgid.link/20240901134524.27107-1-tiwai@suse.de
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    tiwai committed Sep 1, 2024
    Configuration menu
    Copy the full SHA
    43b42ed View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2024

  1. ALSA: ali5451: Remove trailing space after \n newline

    There is a extraneous space after a newline in a dev_dbg message.
    Remove it.
    
    Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
    Link: https://patch.msgid.link/20240901162125.144069-1-colin.i.king@gmail.com
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    ColinIanKing authored and tiwai committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    2657539 View commit details
    Browse the repository at this point in the history
  2. ALSA: pcm: Fix yet more compile warning at replacement with kstrtoul()

    The previous fix brought yet another compile warning at pr_debug()
    call with the changed size.
    
    Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
    Closes: https://lore.kernel.org/20240902132904.5ee173f3@canb.auug.org.au
    Fixes: 43b42ed ("ALSA: pcm: Fix the previous conversion to kstrtoul()")
    Tested-by: Stephen Rothwell <sfr@canb.auug.org.au>
    Link: https://patch.msgid.link/20240902062217.9777-1-tiwai@suse.de
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    tiwai committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    3606f92 View commit details
    Browse the repository at this point in the history
  3. ALSA: core: timer: Use NSEC_PER_SEC macro

    1000000000L is number of ns per second, use NSEC_PER_SEC macro to replace
    it to make it more readable
    
    Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
    Link: https://patch.msgid.link/20240902071622.3519787-1-ruanjinjie@huawei.com
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Jinjie Ruan authored and tiwai committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    f48bd50 View commit details
    Browse the repository at this point in the history
  4. ALSA: core: Drop superfluous no_free_ptr() for memdup_user() errors

    We used to wrap with no_free_ptr() for the return value from
    memdup_user() with errors where the auto cleanup is applied.  This was
    a workaround because the initial implementation of kfree auto-cleanup
    checked only NULL pointers.
    
    Since recently, though, the kfree auto-cleanup checks with
    IS_ERR_OR_NULL() (by the commit cd7eb8f ("mm/slab: make
    __free(kfree) accept error pointers")), hence those workarounds became
    superfluous.  Let's drop them now.
    
    Link: https://patch.msgid.link/20240902075246.3743-1-tiwai@suse.de
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    tiwai committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    40a024b View commit details
    Browse the repository at this point in the history
  5. regmap: kunit: Add coverage of spinlocked regmaps

    By default regmap uses a mutex to protect the regmap but we also support
    other kinds of locking, including spinlocks, which can have an impact
    especially around allocations. Ensure that we are covering the spinlock
    case by running tests configured using fast I/O, this causes the core to
    use a spinlock instead of a mutex. Running every single test would be
    redundant but cover most of them.
    
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Link: https://patch.msgid.link/20240901-regmap-test-fast-io-v1-1-aad83a871bcc@kernel.org
    Signed-off-by: Mark Brown <broonie@kernel.org>
    broonie committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    c7edb7a View commit details
    Browse the repository at this point in the history
  6. ASoC: rt1320: Add support for version C

    This patch added the support for version C.
    
    Signed-off-by: Shuming Fan <shumingf@realtek.com>
    Link: https://patch.msgid.link/20240902090845.1862354-1-shumingf@realtek.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    shumingfan authored and broonie committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    f465d10 View commit details
    Browse the repository at this point in the history
  7. ASoC: adi: Use str_enabled_disabled() helper

    Use str_enabled_disabled() helper instead of open
    coding the same.
    
    Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
    Link: https://patch.msgid.link/20240831095149.4161729-1-lihongbo22@huawei.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Hongbo Li authored and broonie committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    dc70fd0 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    10a6501 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    7da49f4 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2024

  1. ASoC: loongson: remove unnecessary assignment in i2s_resume()

    In this function, the assignment ret is unnecessary,
    thus remove it.
    
    Signed-off-by: tangbin <tangbin@cmss.chinamobile.com>
    Link: https://patch.msgid.link/20240903090301.6192-1-tangbin@cmss.chinamobile.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    tangbin authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    a14e932 View commit details
    Browse the repository at this point in the history
  2. ASoC: dt-bindings: realtek,rt5616: document mclk clock

    Both devicetrees and driver implementation already use the specified mclk
    in the field, so at least document the clock too, similarly to other
    Realtek codec.
    
    This has the nice additional effect of getting rid of dtbscheck warning.
    
    Signed-off-by: Heiko Stuebner <heiko@sntech.de>
    Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
    Link: https://patch.msgid.link/20240830203819.1972536-2-heiko@sntech.de
    Signed-off-by: Mark Brown <broonie@kernel.org>
    mmind authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    ea8f615 View commit details
    Browse the repository at this point in the history
  3. ASoC: dt-bindings: realtek,rt5616: Document audio graph port

    The codec can be used in conjunction with an audio-graph-card to provide
    an endpoint for binding with the other side of the audio link.
    
    Document the 'port' property that is used for this to prevent
    dtbscheck errors like:
    
        rockchip/rk3588-nanopc-t6-lts.dtb: codec@1b: Unevaluated properties are not allowed ('port' was unexpected)
            from schema $id: http://devicetree.org/schemas/sound/realtek,rt5616.yaml#
    
    Signed-off-by: Heiko Stuebner <heiko@sntech.de>
    Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
    Link: https://patch.msgid.link/20240830203819.1972536-3-heiko@sntech.de
    Signed-off-by: Mark Brown <broonie@kernel.org>
    mmind authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    92ff90c View commit details
    Browse the repository at this point in the history
  4. ASoC: amd: acp: Refactor TDM slots selction based on acp revision id

    Refactor TDM slots selection based on acp revision id.
    
    Signed-off-by: Venkata Prasad Potturu <venkataprasad.potturu@amd.com>
    Link: https://patch.msgid.link/20240903113427.182997-2-venkataprasad.potturu@amd.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Venkata-Prasad-Potturu authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    cd60dec View commit details
    Browse the repository at this point in the history
  5. ASoC: amd: acp: Refactor I2S dai driver

    All I2S instances are connected to different powertile form acp6.0
    onwards, refactor dai driver to support all I2S instances for all acp
    platforms.
    
    Signed-off-by: Venkata Prasad Potturu <venkataprasad.potturu@amd.com>
    Link: https://patch.msgid.link/20240903113427.182997-3-venkataprasad.potturu@amd.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Venkata-Prasad-Potturu authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    093184a View commit details
    Browse the repository at this point in the history
  6. ASoC: amd: acp: Update pcm hardware capabilities for acp6.3 platform

    Update pcm hardware capabilities based on acp revision id.
    
    Signed-off-by: Venkata Prasad Potturu <venkataprasad.potturu@amd.com>
    Link: https://patch.msgid.link/20240903113427.182997-4-venkataprasad.potturu@amd.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Venkata-Prasad-Potturu authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    973e9ed View commit details
    Browse the repository at this point in the history
  7. ASoC: amd: acp: Add I2S TDM support for acp6.3 platform

    Add slots selection and 32-channels TDM support for
    acp6.3 platform.
    
    Signed-off-by: Venkata Prasad Potturu <venkataprasad.potturu@amd.com>
    Link: https://patch.msgid.link/20240903113427.182997-5-venkataprasad.potturu@amd.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Venkata-Prasad-Potturu authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    13aeb56 View commit details
    Browse the repository at this point in the history
  8. ASoC: amd: acp: Update pcm hardware capabilities for acp7.0 platform

    Update pcm hardware capabilities for acp7.0 platform.
    
    Signed-off-by: Venkata Prasad Potturu <venkataprasad.potturu@amd.com>
    Link: https://patch.msgid.link/20240903113427.182997-6-venkataprasad.potturu@amd.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Venkata-Prasad-Potturu authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    7a040cc View commit details
    Browse the repository at this point in the history
  9. ASoC: amd: acp: Add I2S master clock generation support for acp7.0 pl…

    …atform
    
    Add I2S master clock generation support for acp7.0 platforms.
    
    Signed-off-by: Venkata Prasad Potturu <venkataprasad.potturu@amd.com>
    Link: https://patch.msgid.link/20240903113427.182997-7-venkataprasad.potturu@amd.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Venkata-Prasad-Potturu authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    fb2eaec View commit details
    Browse the repository at this point in the history
  10. ASoC: amd: acp: Set i2s clock for acp7.0 platform

    Set i2s bclk and lrclk for acp7.0 platform.
    
    Signed-off-by: Venkata Prasad Potturu <venkataprasad.potturu@amd.com>
    Link: https://patch.msgid.link/20240903113427.182997-8-venkataprasad.potturu@amd.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Venkata-Prasad-Potturu authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    13073ed View commit details
    Browse the repository at this point in the history
  11. ASoC: amd: acp: Modify max channels and sample rate support for acp70…

    … dai driver
    
    Modify max channels and max sample rate support in the dai driver for
    acp7.0 platform.
    
    Signed-off-by: Venkata Prasad Potturu <venkataprasad.potturu@amd.com>
    Link: https://patch.msgid.link/20240903113427.182997-9-venkataprasad.potturu@amd.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Venkata-Prasad-Potturu authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    b24df4f View commit details
    Browse the repository at this point in the history
  12. ASoC: amd: acp: Add I2S TDM support for acp7.0 platform

    Add acp70 revision id to support I2S TDM.
    
    Signed-off-by: Venkata Prasad Potturu <venkataprasad.potturu@amd.com>
    Link: https://patch.msgid.link/20240903113427.182997-10-venkataprasad.potturu@amd.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Venkata-Prasad-Potturu authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    b80d5a0 View commit details
    Browse the repository at this point in the history
  13. ASoC: amd: acp: Add pte configuration for ACP7.0 platform

    Add page table entry configurations to support higher sample rate
    streams with multiple channels for ACP7.0 platforms.
    
    Signed-off-by: Venkata Prasad Potturu <venkataprasad.potturu@amd.com>
    Link: https://patch.msgid.link/20240903113427.182997-11-venkataprasad.potturu@amd.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Venkata-Prasad-Potturu authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    f6f7d25 View commit details
    Browse the repository at this point in the history
  14. ASoC: amd: acp: Add i2s master clock generation support for acp7.1 pl…

    …atform
    
    Add i2s master generation support for acp7.1 platform based on pci device
    id.
    
    Signed-off-by: Venkata Prasad Potturu <venkataprasad.potturu@amd.com>
    Link: https://patch.msgid.link/20240903113427.182997-12-venkataprasad.potturu@amd.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Venkata-Prasad-Potturu authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    1150c18 View commit details
    Browse the repository at this point in the history
  15. ASoC: amd: acp: Add I2S TDM support for acp7.1 platform

    Add acp71 revision id to support i2s/tdm mode.
    
    Signed-off-by: Venkata Prasad Potturu <venkataprasad.potturu@amd.com>
    Link: https://patch.msgid.link/20240903113427.182997-13-venkataprasad.potturu@amd.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Venkata-Prasad-Potturu authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    3f60059 View commit details
    Browse the repository at this point in the history
  16. ALSA: hda/realtek: extend quirks for Clevo V5[46]0

    The mic in those laptops suffers too high gain resulting in mostly (fan
    or else) noise being recorded. In addition to the existing fixup about
    mic detection, apply also limiting its boost. While at it, extend the
    quirk to also V5[46]0TNE models, which have the same issue.
    
    Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
    Cc: <stable@vger.kernel.org>
    Link: https://patch.msgid.link/20240903124939.6213-1-marmarek@invisiblethingslab.com
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    marmarek authored and tiwai committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    5627555 View commit details
    Browse the repository at this point in the history
  17. ALSA: usb-audio: Add quirk for RME Digiface USB

    Add trivial support for audio streaming on the RME Digiface USB. Binds
    only to the first interface to allow userspace to directly drive the
    complex I/O and matrix mixer controls.
    
    Signed-off-by: Cyan Nyan <cyan.vtb@gmail.com>
    [Lina: Added 2x/4x sample rate support & boot/format quirks]
    Co-developed-by: Asahi Lina <lina@asahilina.net>
    Signed-off-by: Asahi Lina <lina@asahilina.net>
    Link: https://patch.msgid.link/20240903-rme-digiface-v2-1-71b06c912e97@asahilina.net
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    CyanNyan authored and tiwai committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    c032044 View commit details
    Browse the repository at this point in the history
  18. ALSA: usb-audio: Add mixer quirk for RME Digiface USB

    Implement sync, output format, and input status mixer controls, to allow
    the interface to be used as a straight ADAT/SPDIF (+ Headphones) I/O
    interface.
    
    This does not implement the matrix mixer, output gain controls, or input
    level meter feedback. The full mixer interface is only really usable
    using a dedicated userspace control app (there are too many mixer nodes
    for alsamixer to be usable), so for now we leave it up to userspace to
    directly control these features using raw USB control messages. This is
    similar to how it's done with some FireWire interfaces (ffado-mixer).
    
    Signed-off-by: Asahi Lina <lina@asahilina.net>
    Link: https://patch.msgid.link/20240903-rme-digiface-v2-2-71b06c912e97@asahilina.net
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    asahilina authored and tiwai committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    611a96f View commit details
    Browse the repository at this point in the history
  19. Merge branch 'for-linus' into for-next

    Pull 6.11 devel branch.  The conflicts in HD-audio Realtek codec driver
    got resolved.
    
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    tiwai committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    2994586 View commit details
    Browse the repository at this point in the history
  20. ASoC: dt-bindings: mediatek,mt8365-afe: Add audio afe document

    Add MT8365 audio front-end bindings
    
    Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
    Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
    Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
    Link: https://patch.msgid.link/20240226-audio-i350-v7-1-6518d953a141@baylibre.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    amergnat authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    ceb3ca2 View commit details
    Browse the repository at this point in the history
  21. ASoC: dt-bindings: mediatek,mt8365-mt6357: Add audio sound card document

    Add soundcard bindings for the MT8365 SoC with the MT6357 audio codec.
    
    Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
    Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
    Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
    Link: https://patch.msgid.link/20240226-audio-i350-v7-2-6518d953a141@baylibre.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    amergnat authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    76d80dc View commit details
    Browse the repository at this point in the history
  22. dt-bindings: mfd: mediatek: Add codec property for MT6357 PMIC

    Add the audio codec sub-device. This sub-device is used to set the
    optional voltage values according to the hardware.
    The properties are:
      - Setup of microphone bias voltage.
      - Setup of the speaker pin pull-down.
    
    Also, add the audio power supply property which is dedicated for
    the audio codec sub-device.
    
    Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
    Link: https://patch.msgid.link/20240226-audio-i350-v7-3-6518d953a141@baylibre.com
    Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
    Signed-off-by: Mark Brown <broonie@kernel.org>
    amergnat authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    761cab6 View commit details
    Browse the repository at this point in the history
  23. ASoC: mediatek: mt8365: Add common header

    Add header files for register definition and structure.
    
    Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
    Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
    Link: https://patch.msgid.link/20240226-audio-i350-v7-4-6518d953a141@baylibre.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    amergnat authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    38c7c9d View commit details
    Browse the repository at this point in the history
  24. ASoC: mediatek: mt8365: Add audio clock control support

    Add audio clock wrapper and audio tuner control.
    
    Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
    Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
    Link: https://patch.msgid.link/20240226-audio-i350-v7-5-6518d953a141@baylibre.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    amergnat authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    ef307b4 View commit details
    Browse the repository at this point in the history
  25. ASoC: mediatek: mt8365: Add I2S DAI support

    Add I2S Device Audio Interface support for MT8365 SoC.
    
    Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
    Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
    Link: https://patch.msgid.link/20240226-audio-i350-v7-6-6518d953a141@baylibre.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    amergnat authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    402bbb1 View commit details
    Browse the repository at this point in the history
  26. ASoC: mediatek: mt8365: Add ADDA DAI support

    Add ADDA Device Audio Interface support for MT8365 SoC.
    
    Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
    Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
    Link: https://patch.msgid.link/20240226-audio-i350-v7-7-6518d953a141@baylibre.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    amergnat authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    7c58c88 View commit details
    Browse the repository at this point in the history
  27. ASoC: mediatek: mt8365: Add DMIC DAI support

    Add Digital Micro Device Audio Interface support for MT8365 SoC.
    
    Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
    Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
    Link: https://patch.msgid.link/20240226-audio-i350-v7-8-6518d953a141@baylibre.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    amergnat authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    1c50ec7 View commit details
    Browse the repository at this point in the history
  28. ASoC: mediatek: mt8365: Add PCM DAI support

    Add Pulse Code Modulation Device Audio Interface support for MT8365 SoC.
    
    Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
    Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
    Link: https://patch.msgid.link/20240226-audio-i350-v7-9-6518d953a141@baylibre.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    amergnat authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    5097c0c View commit details
    Browse the repository at this point in the history
  29. ASoc: mediatek: mt8365: Add a specific soundcard for EVK

    Add a specific soundcard for mt8365-evk. It supports audio jack
    in/out, dmics, the amic and lineout.
    
    Signed-off-by: Nicolas Belin <nbelin@baylibre.com>
    Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
    Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
    Link: https://patch.msgid.link/20240226-audio-i350-v7-10-6518d953a141@baylibre.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    nkbelin authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    1bf6dbd View commit details
    Browse the repository at this point in the history
  30. ASoC: mediatek: mt8365: Add the AFE driver support

    Add a driver for the Audio Front End (AFE) PCM to provide Audio
    Uplink (UL) and Downlink (DL) paths.
    Use the ALSA SoC Dynamic Audio Power Management to add widget and
    kcontrol supports.
    
    Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
    Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
    Link: https://patch.msgid.link/20240226-audio-i350-v7-11-6518d953a141@baylibre.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    amergnat authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    e1991d1 View commit details
    Browse the repository at this point in the history
  31. ASoC: rt5682: Return devm_of_clk_add_hw_provider to transfer the error

    Return devm_of_clk_add_hw_provider() in order to transfer the error, if it
    fails due to resource allocation failure or device tree clock provider
    registration failure.
    
    Cc: stable@vger.kernel.org
    Fixes: ebbfabc ("ASoC: rt5682: Add CCF usage for providing I2S clks")
    Signed-off-by: Ma Ke <make24@iscas.ac.cn>
    Link: https://patch.msgid.link/20240830143154.3448004-1-make24@iscas.ac.cn
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Ma Ke authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    fcca6d0 View commit details
    Browse the repository at this point in the history
  32. ASoC: tlv320aic32x4: Add multi endpoint support

    Support multiple endpoints on TLV320AIC32x4 codec port when
    used in of_graph context.
    
    This patch allows to share the codec port between two CPU DAIs.
    
    Example:
    
    Custom STM32MP157C board uses TLV320AIC32x4 audio codec. This codec
    is connected to two serial audio interfaces, which are configured
    either as rx or tx.
    
    >From AsoC point of view the topolgy is the following:
    // 2 CPU DAIs (SAI2A/B), 1 Codec (TLV320AIC32x4)
    Playback: CPU-A-DAI(slave) -> (master)CODEC-DAI/port0
    Record:   CPU-B-DAI(slave) <- (master)CODEC-DAI/port0
    
    In the DT two endpoints have to be associated to the codec port:
    tlv320aic32x4_port: port {
        tlv320aic32x4_tx_endpoint: endpoint@0 {
                remote-endpoint = <&sai2a_endpoint>;
        };
        tlv320aic32x4_rx_endpoint: endpoint@1 {
                remote-endpoint = <&sai2b_endpoint>;
        };
    };
    
    However, when the audio graph card parses the codec nodes, it expects
    to find DAI interface indexes matching the endpoints indexes.
    
    The current patch forces the use of DAI id 0 for both endpoints,
    which allows to share the codec DAI between the two CPU DAIs
    for playback and capture streams respectively.
    
    Signed-off-by: Marek Vasut <marex@denx.de>
    Link: https://patch.msgid.link/20240830231007.205707-1-marex@denx.de
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Marek Vasut authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    568dc2f View commit details
    Browse the repository at this point in the history
  33. ASoC: loongson: fix error release

    In function loongson_card_parse_of(), when get device_node
    'codec' failed, the function of_node_put(codec) should not
    be invoked, thus fix error release.
    
    Fixes: d240286 ("ASoC: loongson: Add Loongson ASoC Sound Card Support")
    Signed-off-by: tangbin <tangbin@cmss.chinamobile.com>
    Link: https://patch.msgid.link/20240903090620.6276-1-tangbin@cmss.chinamobile.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    tangbin authored and broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    97688a9 View commit details
    Browse the repository at this point in the history
  34. Add audio support for the MediaTek Genio 350-evk

    Merge series from Alexandre Mergnat <amergnat@baylibre.com>:
    
    This serie aim to add the following audio support for the Genio 350-evk:
    - Playback
      - 2ch Headset Jack (Earphone)
      - 1ch Line-out Jack (Speaker)
      - 8ch HDMI Tx
    - Capture
      - 1ch DMIC (On-board Digital Microphone)
      - 1ch AMIC (On-board Analogic Microphone)
      - 1ch Headset Jack (External Analogic Microphone)
    
    Of course, HDMI playback need the MT8365 display patches [1] and a DTS
    change documented in "mediatek,mt8365-mt6357.yaml".
    
    Applied patch:
    - mfd: mt6397-core: register mt6357 sound codec
    
    Test passed:
    - mixer-test log: [3]
    - pcm-test log: [4]
    
    [1]: https://lore.kernel.org/all/20231023-display-support-v1-0-5c860ed5c33b@baylibre.com/
    [2]: https://lore.kernel.org/all/20240313110147.1267793-1-angelogioacchino.delregno@collabora.com/
    [3]: https://pastebin.com/pc43AVrT
    [4]: https://pastebin.com/cCtGhDpg
    [5]: https://gitlab.baylibre.com/baylibre/mediatek/bsp/linux/-/commits/sound/for-next/add-i350-audio-support
    broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    9a02954 View commit details
    Browse the repository at this point in the history
  35. Fixes for the audio setup on the rk3588-nanopc-t6

    Merge series from Heiko Stuebner <heiko@sntech.de>:
    
    The Nanopc-T6 board does contain some devicetree errors, that came to
    light with recent changes to the board.
    broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    56f97d4 View commit details
    Browse the repository at this point in the history
  36. Add i2s/tdm support for acp7.0 and acp7.1 platforms

    Merge series from Venkata Prasad Potturu <venkataprasad.potturu@amd.com>:
    
    1. Refactor acp generic driver to support all platforms.
    2. Add i2s/tdm and support for acp7.0  and acp7.1 platforms.
    broonie committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    1324e5f View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2024

  1. ASoC: mediatek: mt2701-cs42448: Optimize redundant code in mt2701_cs4…

    …2448_machine_probe
    
    Utilize the defined parameter 'dev' to make the code cleaner.
    
    Signed-off-by: Liu Jing <liujing@cmss.chinamobile.com>
    Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
    Link: https://patch.msgid.link/20240903093623.7120-1-liujing@cmss.chinamobile.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Liu Jing authored and broonie committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    77e6a5e View commit details
    Browse the repository at this point in the history
  2. ASoC: audio-graph-card: Use for_each_child_of_node_scoped() to simpli…

    …fy code
    
    for_each_child_of_node_scoped() can put the device_node automatically.
    So, using it to make the code logic more simple and remove the device_node
    clean up code.
    
    Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com>
    Reviewed-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
    Link: https://patch.msgid.link/20240827070650.11424-2-zhangzekun11@huawei.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Zhang Zekun authored and broonie committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    de84924 View commit details
    Browse the repository at this point in the history
  3. ASoC: audio-graph-card2: Use helper function of_get_child_count()

    of_get_child_count() can help to get the num of child directly and we
    don't need to manually count the child num. No functional change with
    this conversion.
    
    Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com>
    Reviewed-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
    Link: https://patch.msgid.link/20240827070650.11424-3-zhangzekun11@huawei.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Zhang Zekun authored and broonie committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    815f1fc View commit details
    Browse the repository at this point in the history
  4. Some clean up with helper fucntion

    Merge series from Zhang Zekun <zhangzekun11@huawei.com>:
    
    There are some helper functions which can be used to simplify the code.
    So, let's use these functions to make code more simple.
    broonie committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    e328ab3 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2024

  1. ASoC: codecs: add MT6357 support

    Add the support of MT6357 PMIC audio codec.
    
    Signed-off-by: Nicolas Belin <nbelin@baylibre.com>
    Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
    Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
    Link: https://patch.msgid.link/20240226-audio-i350-v8-1-e80a57d026ce@baylibre.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    nkbelin authored and broonie committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    5e24044 View commit details
    Browse the repository at this point in the history
  2. ASoC: mediatek: Add MT8365 support

    - Add specific config to enable:
      - MT8365 sound support
      - MT6357 audio codec support
    - Add the mt8365 directory and all drivers under it.
    
    Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
    Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
    Link: https://patch.msgid.link/20240226-audio-i350-v8-2-e80a57d026ce@baylibre.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    amergnat authored and broonie committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    5bbfdad View commit details
    Browse the repository at this point in the history
  3. ASoC: atmel: mchp-i2s-mcc: Improve maxburst calculation for better pe…

    …rformance
    
    The period size represents the size of the DMA descriptor. To ensure all
    DMA descriptors start from a well-aligned address, the period size must
    be divided by (sample size * maxburst), not just by maxburst.
    This adjustment allows for computing a higher maxburst value, thereby
    increasing the performance of the DMA transfer.
    Previously, snd_pcm_lib_period_bytes() returned 0 because the runtime HW
    parameters are computed after the hw_params() callbacks are used.
    To address this, we now use params_*() functions to compute the period
    size accurately. This change optimizes the DMA transfer performance by
    ensuring proper alignment and efficient use of maxburst values.
    
    [andrei.simion@microchip.com: Reword commit message and commit title.
    Add macros with values for maximum DMA chunk size allowed.
    Add DMA_BURST_ALIGNED preprocessor function to check the alignment of the
    DMA burst]
    
    Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
    Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
    Link: https://patch.msgid.link/20240905095633.113784-1-andrei.simion@microchip.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    codrin989 authored and broonie committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    03667e3 View commit details
    Browse the repository at this point in the history
  4. Add audio support for the MediaTek Genio 350-evk

    Merge series from amergnat@baylibre.com:
    
    This serie aim to add the following audio support for the Genio 350-evk:
    - Playback
      - 2ch Headset Jack (Earphone)
      - 1ch Line-out Jack (Speaker)
      - 8ch HDMI Tx
    - Capture
      - 1ch DMIC (On-board Digital Microphone)
      - 1ch AMIC (On-board Analogic Microphone)
      - 1ch Headset Jack (External Analogic Microphone)
    
    Of course, HDMI playback need the MT8365 display patches [1] and a DTS
    change documented in "mediatek,mt8365-mt6357.yaml".
    broonie committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    d39b510 View commit details
    Browse the repository at this point in the history
  5. ASoC: topology-test: Convert comma to semicolon

    Replace comma between expressions with semicolons.
    
    Using a ',' in place of a ';' can have unintended side effects.
    Although that is not the case here, it is seems best to use ';'
    unless ',' is intended.
    
    Found by inspection.
    No functional change intended.
    Compile tested only.
    
    Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
    Link: https://patch.msgid.link/20240905032148.1929393-1-nichen@iscas.ac.cn
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Chen Ni authored and broonie committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    5469484 View commit details
    Browse the repository at this point in the history
  6. ASoC: Intel: skl_hda_dsp_generic: convert comma to semicolon

    Replace comma between expressions with semicolons.
    
    Using a ',' in place of a ';' can have unintended side effects.
    Although that is not the case here, it is seems best to use ';'
    unless ',' is intended.
    
    Found by inspection.
    No functional change intended.
    Compile tested only.
    
    Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
    Link: https://patch.msgid.link/20240905022017.1642550-1-nichen@iscas.ac.cn
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Chen Ni authored and broonie committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    813751e View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2024

  1. ALSA: pcm: add more sample rate definitions

    This adds a sample rate definition for 12kHz, 24kHz and 128kHz.
    
    Admittedly, just a few drivers are currently using these sample
    rates but there is enough of a recurrence to justify adding a definition
    for them and remove some custom rate constraint code while at it.
    
    The new definitions are not added to the interval definitions, such as
    SNDRV_PCM_RATE_8000_44100, because it would silently add new supported
    rates to drivers that may or may not support them. For sure the drivers
    have not been tested for these new rates so it is better to leave them out
    of interval definitions.
    
    That being said, the added rates are multiples of well know rates families,
    it is very likely that a lot of devices out there actually supports them.
    
    Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
    Reviewed-by: David Rhodes <drhodes@opensource.cirrus.com>
    Acked-by: Mark Brown <broonie@kernel.org>
    Reviewed-by: Jaroslav Kysela <perex@perex.cz>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Link: https://patch.msgid.link/20240905-alsa-12-24-128-v1-1-8371948d3921@baylibre.com
    jbrun3t authored and tiwai committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    090624b View commit details
    Browse the repository at this point in the history
  2. ALSA: cmipci: drop SNDRV_PCM_RATE_KNOT

    The custom rate constraint list was necessary to support 128kHz.
    This rate is now available through SNDRV_PCM_RATE_128000.
    
    Use it and drop the custom rate constraint rule.
    
    Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
    Reviewed-by: David Rhodes <drhodes@opensource.cirrus.com>
    Acked-by: Mark Brown <broonie@kernel.org>
    Reviewed-by: Jaroslav Kysela <perex@perex.cz>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Link: https://patch.msgid.link/20240905-alsa-12-24-128-v1-2-8371948d3921@baylibre.com
    jbrun3t authored and tiwai committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    91dd20d View commit details
    Browse the repository at this point in the history
  3. ALSA: emu10k1: drop SNDRV_PCM_RATE_KNOT

    The custom rate constraint lists were necessary to support 12kHz and 24kHz.
    These rates are now available through SNDRV_PCM_RATE_12000 and
    SNDRV_PCM_RATE_24000.
    
    Use them and drop the custom rate constraint rules.
    
    Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
    Reviewed-by: David Rhodes <drhodes@opensource.cirrus.com>
    Acked-by: Mark Brown <broonie@kernel.org>
    Reviewed-by: Jaroslav Kysela <perex@perex.cz>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Link: https://patch.msgid.link/20240905-alsa-12-24-128-v1-3-8371948d3921@baylibre.com
    jbrun3t authored and tiwai committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    1f40410 View commit details
    Browse the repository at this point in the history
  4. ALSA: hdsp: drop SNDRV_PCM_RATE_KNOT

    The custom rate constraint list was necessary to support 128kHz.
    This rate is now available through SNDRV_PCM_RATE_128000.
    
    Use it and drop the custom rate constraint rule.
    
    Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
    Reviewed-by: David Rhodes <drhodes@opensource.cirrus.com>
    Acked-by: Mark Brown <broonie@kernel.org>
    Reviewed-by: Jaroslav Kysela <perex@perex.cz>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Link: https://patch.msgid.link/20240905-alsa-12-24-128-v1-4-8371948d3921@baylibre.com
    jbrun3t authored and tiwai committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    3cc1e94 View commit details
    Browse the repository at this point in the history
  5. ALSA: hdspm: drop SNDRV_PCM_RATE_KNOT

    The custom rate constraint list was necessary to support 128kHz.
    This rate is now available through SNDRV_PCM_RATE_128000.
    
    Use it and drop the custom rate constraint rule.
    
    Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
    Reviewed-by: David Rhodes <drhodes@opensource.cirrus.com>
    Acked-by: Mark Brown <broonie@kernel.org>
    Reviewed-by: Jaroslav Kysela <perex@perex.cz>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Link: https://patch.msgid.link/20240905-alsa-12-24-128-v1-5-8371948d3921@baylibre.com
    jbrun3t authored and tiwai committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    151d82f View commit details
    Browse the repository at this point in the history
  6. ASoC: cs35l36: drop SNDRV_PCM_RATE_KNOT

    The custom rate constraint list was necessary to support 12kHz and 24kHz.
    These rates are now available through SNDRV_PCM_RATE_12000 and
    SNDRV_PCM_RATE_24000.
    
    Use them and drop the custom rate constraint rule.
    
    Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
    Reviewed-by: David Rhodes <drhodes@opensource.cirrus.com>
    Acked-by: Mark Brown <broonie@kernel.org>
    Reviewed-by: Jaroslav Kysela <perex@perex.cz>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Link: https://patch.msgid.link/20240905-alsa-12-24-128-v1-6-8371948d3921@baylibre.com
    jbrun3t authored and tiwai committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    7067e81 View commit details
    Browse the repository at this point in the history
  7. ASoC: cs35l41: drop SNDRV_PCM_RATE_KNOT

    The custom rate constraint list was necessary to support 12kHz and 24kHz.
    These rates are now available through SNDRV_PCM_RATE_12000 and
    SNDRV_PCM_RATE_24000.
    
    Use them and drop the custom rate constraint rule.
    
    Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
    Reviewed-by: David Rhodes <drhodes@opensource.cirrus.com>
    Acked-by: Mark Brown <broonie@kernel.org>
    Reviewed-by: Jaroslav Kysela <perex@perex.cz>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Link: https://patch.msgid.link/20240905-alsa-12-24-128-v1-7-8371948d3921@baylibre.com
    jbrun3t authored and tiwai committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    79acb4c View commit details
    Browse the repository at this point in the history
  8. ASoC: cs53l30: drop SNDRV_PCM_RATE_KNOT

    The custom rate constraint list was necessary to support 12kHz and 24kHz.
    These rates are now available through SNDRV_PCM_RATE_12000 and
    SNDRV_PCM_RATE_24000.
    
    Use them and drop the custom rate constraint rule.
    
    Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
    Reviewed-by: David Rhodes <drhodes@opensource.cirrus.com>
    Acked-by: Mark Brown <broonie@kernel.org>
    Reviewed-by: Jaroslav Kysela <perex@perex.cz>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Link: https://patch.msgid.link/20240905-alsa-12-24-128-v1-8-8371948d3921@baylibre.com
    jbrun3t authored and tiwai committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    eab3464 View commit details
    Browse the repository at this point in the history
  9. ASoC: Intel: avs: drop SNDRV_PCM_RATE_KNOT

    The custom rate constraint list was necessary to support 12kHz, 24kHz and
    128kHz. These rates are now available through SNDRV_PCM_RATE_12000,
    SNDRV_PCM_RATE_24000 and SNDRV_PCM_RATE_128000.
    
    Use them and drop the custom rate constraint rule.
    
    Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
    Reviewed-by: David Rhodes <drhodes@opensource.cirrus.com>
    Acked-by: Mark Brown <broonie@kernel.org>
    Reviewed-by: Jaroslav Kysela <perex@perex.cz>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Link: https://patch.msgid.link/20240905-alsa-12-24-128-v1-9-8371948d3921@baylibre.com
    jbrun3t authored and tiwai committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    9469cf5 View commit details
    Browse the repository at this point in the history
  10. ASoC: qcom: q6asm-dai: drop SNDRV_PCM_RATE_KNOT

    The custom rate constraint list was necessary to support 12kHz and 24kHz.
    These rates are now available through SNDRV_PCM_RATE_12000 and
    SNDRV_PCM_RATE_24000.
    
    Use them and drop the custom rate constraint rule.
    
    Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
    Reviewed-by: David Rhodes <drhodes@opensource.cirrus.com>
    Acked-by: Mark Brown <broonie@kernel.org>
    Reviewed-by: Jaroslav Kysela <perex@perex.cz>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Link: https://patch.msgid.link/20240905-alsa-12-24-128-v1-10-8371948d3921@baylibre.com
    jbrun3t authored and tiwai committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    c061d1e View commit details
    Browse the repository at this point in the history
  11. ASoC: sunxi: sun4i-codec: drop SNDRV_PCM_RATE_KNOT

    The custom rate constraint lists was necessary to support 12kHz and 24kHz.
    These rates are now available through SNDRV_PCM_RATE_12000 and
    SNDRV_PCM_RATE_24000.
    
    Use them and drop the custom rate constraint rule.
    
    Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
    Reviewed-by: David Rhodes <drhodes@opensource.cirrus.com>
    Acked-by: Mark Brown <broonie@kernel.org>
    Reviewed-by: Jaroslav Kysela <perex@perex.cz>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Link: https://patch.msgid.link/20240905-alsa-12-24-128-v1-11-8371948d3921@baylibre.com
    jbrun3t authored and tiwai committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    9dc03a1 View commit details
    Browse the repository at this point in the history
  12. ASoC: cs35l34: drop useless rate contraint

    The cs35l34 adds a useless rate constraint on startup.
    It does not set SNDRV_PCM_RATE_KNOT and the rates set are already a subset
    of the ones provided in the constraint list, so it is a no-op.
    
    >From the rest of the code, it is likely HW supports more than the 32, 44.1
    and 48kHz listed in CS35L34_RATES but there is no way to know for sure
    without proper documentation.
    
    Keep the driver as it is for now and just drop the useless constraint.
    
    Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
    Reviewed-by: David Rhodes <drhodes@opensource.cirrus.com>
    Acked-by: Mark Brown <broonie@kernel.org>
    Reviewed-by: Jaroslav Kysela <perex@perex.cz>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Link: https://patch.msgid.link/20240905-alsa-12-24-128-v1-12-8371948d3921@baylibre.com
    jbrun3t authored and tiwai committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    7bc09f7 View commit details
    Browse the repository at this point in the history
  13. ASoC: spdif: extend supported rates to 768kHz

    IEC958-3 defines sampling rate up to 768 kHz.
    Such rates maybe used with high bandwidth IEC958 links, such as eARC.
    
    Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
    Acked-by: Mark Brown <broonie@kernel.org>
    Reviewed-by: David Rhodes <drhodes@opensource.cirrus.com>
    Reviewed-by: Jaroslav Kysela <perex@perex.cz>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Link: https://patch.msgid.link/20240905-alsa-12-24-128-v1-13-8371948d3921@baylibre.com
    jbrun3t authored and tiwai committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    8055c0c View commit details
    Browse the repository at this point in the history
  14. ASoC: Intel: soc-acpi-intel-lnl-match: add missing empty item

    There is no links_num in struct snd_soc_acpi_mach {}, and we test
    !link->num_adr as a condition to end the loop in hda_sdw_machine_select().
    So an empty item in struct snd_soc_acpi_link_adr array is required.
    
    Fixes: dd3bd9d ("ASoC: Intel: soc-acpi-intel-lnl-match: add cs42l43 only support")
    Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
    Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
    Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
    Link: https://patch.msgid.link/20240906060224.2241212-2-yung-chuan.liao@linux.intel.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    bardliao authored and broonie committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    c4246f1 View commit details
    Browse the repository at this point in the history
  15. ASoC: Intel: soc-acpi-intel-mtl-match: add missing empty item

    There is no links_num in struct snd_soc_acpi_mach {}, and we test
    !link->num_adr as a condition to end the loop in hda_sdw_machine_select().
    So an empty item in struct snd_soc_acpi_link_adr array is required.
    
    Fixes: f77ae7f ("ASoC: Intel: soc-acpi-intel-mtl-match: add cs42l43 only support")
    Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
    Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
    Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
    Link: https://patch.msgid.link/20240906060224.2241212-3-yung-chuan.liao@linux.intel.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    bardliao authored and broonie committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    bf6d7a4 View commit details
    Browse the repository at this point in the history
  16. ASoC: loongson: remove redundant variable assignments

    In the function loongson_asoc_card_probe, it is simpler
    to return the value of function devm_snd_soc_register_card
    directly.
    
    Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
    Link: https://patch.msgid.link/20240906100523.2142-1-tangbin@cmss.chinamobile.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Tang Bin authored and broonie committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    1798ace View commit details
    Browse the repository at this point in the history
  17. ASoC: amd: acp: Return in-case of error

    Return when error occurs instead of proceeding to for loop which will
    use val uninitialized.
    
    Fixes: f6f7d25 ("ASoC: amd: acp: Add pte configuration for ACP7.0 platform")
    Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
    Link: https://patch.msgid.link/20240906103727.222749-1-usama.anjum@collabora.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    musamaanjum authored and broonie committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    3c5a18a View commit details
    Browse the repository at this point in the history
  18. ASoC: makes rtd->initialized bit field

    rtd->initialized is used to know whether soc_init_pcm_runtime()
    was correctly fined, and used to call snd_soc_link_exit().
    We don't need to have it as bool, let's make it bit-field same as
    other flags.
    
    Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
    Cc: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
    Cc: Cezary Rojewski <cezary.rojewski@intel.com>
    Link: https://patch.msgid.link/87o752k7gq.wl-kuninori.morimoto.gx@renesas.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    morimoto authored and broonie committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    4849b2f View commit details
    Browse the repository at this point in the history
  19. ASoC: codecs: Use devm_clk_get_enabled() helpers

    The devm_clk_get_enabled() helpers:
        - call devm_clk_get()
        - call clk_prepare_enable() and register what is needed in order to
         call clk_disable_unprepare() when needed, as a managed resource.
    
    This simplifies the code and avoids the calls to clk_disable_unprepare().
    
    Signed-off-by: ying zuxin <11154159@vivo.com>
    Link: https://patch.msgid.link/20240906084841.19248-1-yingzuxin@vivo.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    ying zuxin authored and broonie committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    241c044 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2024

  1. ALSA: hda: Allow the default preallocation for x86 again

    Since there are a few corner cases where the S/G buffer allocation
    isn't performed (e.g. depending on IOMMU implementations), it'd be
    better to allow the default buffer preallocation size for x86, too.
    
    The default for x86 is still kept to 0, as it should work in most
    cases.
    
    Link: https://patch.msgid.link/20240907084129.28802-1-tiwai@suse.de
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    tiwai committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    63e38d0 View commit details
    Browse the repository at this point in the history
  2. ALSA: IEC958 definition for consumer status channel update

    Add 128kHz, 352.4kHz, 384kHz and 705.6kHz.
    These definitions have been found working on eARC using a Murideo
    Seven Generator.
    
    Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
    Link: https://patch.msgid.link/20240906093422.2976550-1-jbrunet@baylibre.com
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    jbrun3t authored and tiwai committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    b12891c View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2024

  1. ALSA: rme9652: remove unused parameter in macro

    Parameter xindex is not used in macro HDSPM_TCO_LTC_FRAMES and
    HDSPM_TCO_VIDEO_INPUT_FORMAT,so just remove it to simplify the code.
    
    Signed-off-by: He Lugang <helugang@uniontech.com>
    Link: https://patch.msgid.link/F53E9F10DA24705D+20240907142854.17627-1-helugang@uniontech.com
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    matrix-wsk authored and tiwai committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    0a131eb View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2024

  1. ASoC: tas2781: fix to save the dsp bin file name into the correct arr…

    …ay in case name_prefix is not NULL
    
    fix to save the dsp bin file name into the correct array, coef_binaryname,
    instead of rca_binaryname, in case name_prefix is not NULL.
    
    Signed-off-by: Shenghao Ding <shenghao-ding@ti.com>
    Link: https://patch.msgid.link/20240907001540.944-1-shenghao-ding@ti.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Shenghao-Ding authored and broonie committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    af5e317 View commit details
    Browse the repository at this point in the history
  2. ASoC: tlv320aic31xx: Add support for loading filter coefficients

    The TLV320DAC3100 Audio DAC has 25 built-in digital audio processing blocks
    (PRBs). Each of these PRBs has a static filter structure with programmable
    coefficients. Once a PRB is selected for use by the DAC, its filter
    coefficients can be configured via a dedicated set of registers.
    
    Define a new optional firmware which can be loaded by the TLV320DAC driver.
    This firmware describes a full set of filter coefficients for all blocks
    used by the various PRBs.
    
    The firmware's binary format is heavily inspired by the one used in the
    peb2466 driver. It includes a version marker to allow for potential
    evolutions of the format.
    
    Note that adaptive filtering is not supported i.e. filter coefficients are
    loaded once before power-on and then cannot be changed while the DAC is
    powered. This is why only page A coefficients are modified. Page B
    coefficients are only used for adaptive filtering.
    
    Signed-off-by: Romain Gantois <romain.gantois@bootlin.com>
    Link: https://patch.msgid.link/20240906-tlv320-filter-v1-1-6955f53ff435@bootlin.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    rgantois authored and broonie committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    77b696f View commit details
    Browse the repository at this point in the history
  3. ASoC: mediatek: mt8365: include linux/bitfield.h

    On x86, the header is not already included implicitly,
    breaking compile-testing:
    
    In file included from sound/soc/mediatek/mt8365/mt8365-afe-common.h:19,
                     from sound/soc/mediatek/mt8365/mt8365-afe-pcm.c:18:
    sound/soc/mediatek/mt8365/mt8365-afe-pcm.c: In function 'mt8365_afe_cm2_mux_conn':
    sound/soc/mediatek/mt8365/mt8365-reg.h:952:41: error: implicit declaration of function 'FIELD_PREP' [-Wimplicit-function-declaration]
      952 | #define CM2_AFE_CM2_CONN_CFG1(x)        FIELD_PREP(CM2_AFE_CM2_CONN_CFG1_MASK, (x))
          |                                         ^~~~~~~~~~
    
    Included it ahead of the field definitions.
    
    Fixes: 38c7c9d ("ASoC: mediatek: mt8365: Add common header")
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>
    Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
    Link: https://patch.msgid.link/20240908221754.2210857-1-arnd@kernel.org
    Signed-off-by: Mark Brown <broonie@kernel.org>
    arndb authored and broonie committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    6b31d6a View commit details
    Browse the repository at this point in the history
  4. ASoC: mediatek: mt8365: remove unused mt8365_i2s_hd_str

    The mt8365_i2s_enum and mt8365_i2s_hd_str variables are not
    used anywhere, but cause a warning when building with C=1
    or when enabling -Wunused-const-variable:
    
    sound/soc/mediatek/mt8365/mt8365-dai-i2s.c:781:27: error: 'mt8365_i2s_hd_str' defined but not used [-Werror=unused-const-variable=]
      781 | static const char * const mt8365_i2s_hd_str[] = {
          |                           ^~~~~~~~~~~~~~~~~
    
    Remove these for the moment, they can be added back if a
    user comes up.
    
    Fixes: 402bbb1 ("ASoC: mediatek: mt8365: Add I2S DAI support")
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>
    Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
    Link: https://patch.msgid.link/20240907200053.3027553-1-arnd@kernel.org
    Signed-off-by: Mark Brown <broonie@kernel.org>
    arndb authored and broonie committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    876dec0 View commit details
    Browse the repository at this point in the history
  5. ALSA: hda: Use non-SG allocation for the communication buffers

    The azx_bus->dma_type is referred only for allocating the
    communication buffers like CORB/RIRB, and the allocation size is
    small.  Hence it doesn't have to be S/G buffer allocation, which is an
    obvious overkill.  Use the standard SNDRV_DMA_TYPE_DEV_WC instead.
    
    This was changed to SNDRV_DMA_TYPE_DEV_WC_SG in the commit
    37137ec ("ALSA: hda: Once again fix regression of page
    allocations with IOMMU") as a workaround for IOMMU-backed
    allocations.  But this is no longer needed since the allocation with
    SNDRV_DMA_TYPE_DEV_WC itself was fixed in the commit 9c27301
    ("ALSA: memalloc: Use DMA API for x86 WC page allocations, too").
    
    So this patch reverts the previous workaround in this piece of code.
    
    Link: https://patch.msgid.link/20240909134744.25426-1-tiwai@suse.de
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    tiwai committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    28fbfaf View commit details
    Browse the repository at this point in the history
  6. ASoC: loongson: Use BIT() macro

    Where applicable, use BIT() macro instead of shift operation to improve
    readability.
    
    Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
    Link: https://patch.msgid.link/ccca555c96f18c0ecf5f1544c82945ba651d105f.1725844530.git.zhoubinbin@loongson.cn
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Binbin Zhou authored and broonie committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    f2bd6f5 View commit details
    Browse the repository at this point in the history
  7. ASoC: loongson: Simplify probe() with local dev variable

    Simplify the probe() function by using local 'dev' instead of
    &pdev->dev.
    
    Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
    Link: https://patch.msgid.link/1984a20930da515e2a478b02159f83c02498f6be.1725844530.git.zhoubinbin@loongson.cn
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Binbin Zhou authored and broonie committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    ce3997a View commit details
    Browse the repository at this point in the history
  8. ASoC: loongson: Simplify with dev_err_probe()

    Error handling in probe() can be a bit simpler with dev_err_probe().
    
    Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
    Link: https://patch.msgid.link/07855aa6c290ec826d63e68b898e7f4afac5e30d.1725844530.git.zhoubinbin@loongson.cn
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Binbin Zhou authored and broonie committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    3d2528d View commit details
    Browse the repository at this point in the history
  9. ASoC: loongson: Simplify if statment in loongson_card_hw_params()

    Deal with illegal conditions first and put the normal process code
    outside the if condition to improve code readability.
    
    Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
    Link: https://patch.msgid.link/98b71f9643970f11bc500c01599c7aeb77ff2a58.1725844530.git.zhoubinbin@loongson.cn
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Binbin Zhou authored and broonie committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    e28ee1b View commit details
    Browse the repository at this point in the history
  10. ASoC: loongson: Replace if with ternary operator

    Replace an if statement with a ternary operator, making the code a tiny
    bit shorter.
    
    Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
    Link: https://patch.msgid.link/94ec2ac178610f50af4815ef5b719695915bba31.1725844530.git.zhoubinbin@loongson.cn
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Binbin Zhou authored and broonie committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    c7b626a View commit details
    Browse the repository at this point in the history
  11. ASoC: loongson: Factor out loongson_card_acpi_find_device() function

    The operations for reading the cpu and codec nodes in
    loongson_card_parse_acpi() are similar, so we convert them into a simple
    helper function called loongson_card_acpi_find_device().
    
    Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
    Link: https://patch.msgid.link/3b7da05e5fd4326e7944aa749bf06dd44e964f6c.1725844530.git.zhoubinbin@loongson.cn
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Binbin Zhou authored and broonie committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    ddb538a View commit details
    Browse the repository at this point in the history
  12. ASoC: loongson: Factor out loongson i2s enable clock functions

    There are a few i2s clock enable operations in loongson_i2s_set_fmt(),
    convert them to simple helper functions called
    loongson_i2s_enable_mclk() and loongson_i2s_enable_bclk().
    
    Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
    Link: https://patch.msgid.link/d6f6c818b0ecee87277f704b6a801cbbf5e712ce.1725844530.git.zhoubinbin@loongson.cn
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Binbin Zhou authored and broonie committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    4c22b04 View commit details
    Browse the repository at this point in the history
  13. ASoC: mt8365: Open code BIT() to avoid spurious warnings

    The mt8365 driver uses bits.h to define bitfields but BIT() uses unsigned
    long constants so does not play well with being bitwise negated and
    converted to an unsigned int, the compiler complains about width reduction
    on a number of architectures. Just open code the shifting to avoid the
    issue.
    
    Generated with s/BIT(/(1U << /
    
    Reported-by: Nathan Chancellor <nathan@kernel.org>
    Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com>
    Tested-by: Nathan Chancellor <nathan@kernel.org> # build
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Link: https://patch.msgid.link/20240907-asoc-fix-mt8365-build-v1-1-7ad0bac20161@kernel.org
    Signed-off-by: Mark Brown <broonie@kernel.org>
    broonie committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    d01c6a3 View commit details
    Browse the repository at this point in the history
  14. ASoC: mt8365: Remove spurious unsigned long casts

    The regmap APIs take unsigned ints not unsigned longs so casting their
    arguments to unsigned longs is not a good choice, the constants being
    cast here are all unsigned ints anyway.
    
    Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com>
    Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
    Tested-by: Nathan Chancellor <nathan@kernel.org> # build
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Link: https://patch.msgid.link/20240907-asoc-fix-mt8365-build-v1-2-7ad0bac20161@kernel.org
    Signed-off-by: Mark Brown <broonie@kernel.org>
    broonie committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    1b084d8 View commit details
    Browse the repository at this point in the history
  15. ASoC: mt8365: Remove unused prototype for mt8365_afe_clk_group_48k()

    The function is not used outside of the file it is defined and the
    equivalent function for 44.1kHz is not prototyped so remove the prototype
    for this function.
    
    Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
    Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com>
    Tested-by: Nathan Chancellor <nathan@kernel.org> # build
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Link: https://patch.msgid.link/20240907-asoc-fix-mt8365-build-v1-3-7ad0bac20161@kernel.org
    Signed-off-by: Mark Brown <broonie@kernel.org>
    broonie committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    3e61df7 View commit details
    Browse the repository at this point in the history
  16. ASoC: mt8365: Make non-exported functions static

    The compilers warn if functions without a prototype are not static so add
    appropriate static declarations.
    
    Reported-by: Nathan Chancellor <nathan@kernel.org>
    Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com>
    Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
    Tested-by: Nathan Chancellor <nathan@kernel.org> # build
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Link: https://patch.msgid.link/20240907-asoc-fix-mt8365-build-v1-4-7ad0bac20161@kernel.org
    Signed-off-by: Mark Brown <broonie@kernel.org>
    broonie committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    63157d9 View commit details
    Browse the repository at this point in the history
  17. ASoC: mt8365: Remove unused variables

    Silence compiler warnings by removing unused variables.
    
    Reported-by: Nathan Chancellor <nathan@kernel.org>
    Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com>
    Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
    Tested-by: Nathan Chancellor <nathan@kernel.org> # build
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Link: https://patch.msgid.link/20240907-asoc-fix-mt8365-build-v1-5-7ad0bac20161@kernel.org
    Signed-off-by: Mark Brown <broonie@kernel.org>
    broonie committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    067d832 View commit details
    Browse the repository at this point in the history
  18. ASoC: mt8365: Remove unused DMIC IIR coefficient configuration

    Nothing ever calls mt8365_dai_load_dmic_iirc_coeff_table() so the compiler
    warns about an unused static function. While it seems likely that something
    should be calling the function I don't know what and this is breaking
    -Werror builds like allmodconfig so let's just remove it. It can be added
    again along with the user.
    
    Reported-by: Nathan Chancellor <nathan@kernel.org>
    Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
    Tested-by: Nathan Chancellor <nathan@kernel.org> # build
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Link: https://patch.msgid.link/20240907-asoc-fix-mt8365-build-v1-6-7ad0bac20161@kernel.org
    Signed-off-by: Mark Brown <broonie@kernel.org>
    broonie committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    d70ce6d View commit details
    Browse the repository at this point in the history
  19. ASoC: mt8365: Allow build coverage

    There is no build time dependency on anything specific to ARCH_MEDIATEK so
    enable COMPILE_TEST builds.
    
    Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
    Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com>
    Tested-by: Nathan Chancellor <nathan@kernel.org> # build
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Link: https://patch.msgid.link/20240907-asoc-fix-mt8365-build-v1-7-7ad0bac20161@kernel.org
    Signed-off-by: Mark Brown <broonie@kernel.org>
    broonie committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    36fa259 View commit details
    Browse the repository at this point in the history
  20. ASoC: codecs: fix the right check and simplify code

    In the file drivers/base/platform.c, the return description of
    platform_get_irq is 'non-zero IRQ number on success, negative
    error number on failure.', so the check is wrong, fix it. And
    when get irq failed, the function platform_get_irq logs an error
    message.
    
    Fixes: 5e24044 ("ASoC: codecs: add MT6357 support")
    Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
    Link: https://patch.msgid.link/20240908134604.3652-1-tangbin@cmss.chinamobile.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Tang Bin authored and broonie committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    130eb72 View commit details
    Browse the repository at this point in the history
  21. ASoC: atmel: mchp-i2s-mcc: Remove interface name from stream_name

    Remove the interface name from the stream_name. The interface name (and the
    index of the interface) can be set in DT using the sound-name-prefix string
    property.
    
    [andrei.simion@microchip: Adjust the commit title]
    
    Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
    Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
    Link: https://patch.msgid.link/20240909083530.14695-2-andrei.simion@microchip.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    codrin989 authored and broonie committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    b09c71f View commit details
    Browse the repository at this point in the history
  22. ASoC: Switch back to struct platform_driver::remove()

    After commit 0edb555 ("platform: Make platform_driver::remove()
    return void") .remove() is (again) the right callback to implement for
    platform drivers.
    
    Convert all drivers below sound/soc to use .remove(), with the eventual
    goal to drop struct platform_driver::remove_new(). As .remove() and
    .remove_new() have the same prototypes, conversion is done by just
    changing the structure member name in the driver initializer.
    
    Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
    Link: https://patch.msgid.link/20240909151230.909818-2-u.kleine-koenig@baylibre.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Uwe Kleine-König authored and broonie committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    130af75 View commit details
    Browse the repository at this point in the history
  23. ASoC: loongson: Simplify code formatting

    Merge series from Binbin Zhou <zhoubinbin@loongson.cn>:
    
    This patchset attempts to improve code readability by simplifying code
    formatting.
    No functional changes.
    broonie committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    43fbb2c View commit details
    Browse the repository at this point in the history
  24. ASoC: mt8365: Fix -Werror builds

    Merge series from Mark Brown <broonie@kernel.org>:
    
    Nathan reported that the newly added mt8365 drivers were causing a
    number of warnings which break -Werror builds, these were only visible
    on arm64 since the drivers did not have COMPILE_TEST enabled.  Fix this
    and some other minor stuff I noticed while doing so.
    broonie committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    16faf8c View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    f213ec0 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2024

  1. Configuration menu
    Copy the full SHA
    fb7a133 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    797001c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0fc2154 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    dd9437a View commit details
    Browse the repository at this point in the history