1. 15 Oct, 2024 5 commits
  2. 14 Oct, 2024 2 commits
    • Justin Chen's avatar
      firmware: arm_scmi: Queue in scmi layer for mailbox implementation · da1642bc
      Justin Chen authored
      send_message() does not block in the MBOX implementation. This is
      because the mailbox layer has its own queue. However, this confuses
      the per xfer timeouts as they all start their timeout ticks in
      parallel.
      
      Consider a case where the xfer timeout is 30ms and a SCMI transaction
      takes 25ms:
      
        | 0ms: Message #0 is queued in mailbox layer and sent out, then sits
        |      at scmi_wait_for_message_response() with a timeout of 30ms
        | 1ms: Message #1 is queued in mailbox layer but not sent out yet.
        |      Since send_message() doesn't block, it also sits at
        |      scmi_wait_for_message_response() with a timeout of 30ms
        |  ...
        | 25ms: Message #0 is completed, txdone is called and message #1 is sent
        | 31ms: Message #1 times out since the count started at 1ms. Even though
        |       it has only been inflight for 6ms.
      
      Fixes: 5c8a47a5 ("firmware: arm_scmi: Make scmi core independent of the transport type")
      Signed-off-by: default avatarJustin Chen <justin.chen@broadcom.com>
      Message-Id: <20241014160717.1678953-1-justin.chen@broadcom.com>
      Reviewed-by: default avatarCristian Marussi <cristian.marussi@arm.com>
      Tested-by: default avatarCristian Marussi <cristian.marussi@arm.com>
      Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
      da1642bc
    • Arnd Bergmann's avatar
      firmware: arm_ffa: Avoid string-fortify warning in export_uuid() · 629253b2
      Arnd Bergmann authored
      Copying to a 16 byte structure into an 8-byte struct member
      causes a compile-time warning:
      
       | In file included from drivers/firmware/arm_ffa/driver.c:25:
       | In function 'fortify_memcpy_chk',
       |    inlined from 'export_uuid' at include/linux/uuid.h:88:2,
       |    inlined from 'ffa_msg_send_direct_req2' at drivers/firmware/arm_ffa/driver.c:488:2:
       | include/linux/fortify-string.h:571:25: error: call to '__write_overflow_field'
       |   declared with attribute warning: detected write beyond size of field
       |   (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
       |                         __write_overflow_field(p_size_field, size);
      
      Use a union for the conversion instead and make sure the byte order
      is fixed in the process.
      
      Fixes: aaef3bc9 ("firmware: arm_ffa: Add support for FFA_MSG_SEND_DIRECT_{REQ,RESP}2")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Message-Id: <20240909110938.247976-1-arnd@kernel.org>
      Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
      629253b2
  3. 11 Oct, 2024 8 commits
  4. 08 Oct, 2024 1 commit
  5. 07 Oct, 2024 1 commit
  6. 06 Oct, 2024 20 commits
  7. 05 Oct, 2024 3 commits
    • Linus Torvalds's avatar
      Merge tag 'bcachefs-2024-10-05' of git://evilpiepirate.org/bcachefs · 8f602276
      Linus Torvalds authored
      Pull bcachefs fixes from Kent Overstreet:
       "A lot of little fixes, bigger ones include:
      
         - bcachefs's __wait_on_freeing_inode() was broken in rc1 due to vfs
           changes, now fixed along with another lost wakeup
      
         - fragmentation LRU fixes; fsck now repairs successfully (this is the
           data structure copygc uses); along with some nice simplification.
      
         - Rework logged op error handling, so that if logged op replay errors
           (due to another filesystem error) we delete the logged op instead
           of going into an infinite loop)
      
         - Various small filesystem connectivitity repair fixes"
      
      * tag 'bcachefs-2024-10-05' of git://evilpiepirate.org/bcachefs:
        bcachefs: Rework logged op error handling
        bcachefs: Add warn param to subvol_get_snapshot, peek_inode
        bcachefs: Kill snapshot arg to fsck_write_inode()
        bcachefs: Check for unlinked, non-empty dirs in check_inode()
        bcachefs: Check for unlinked inodes with dirents
        bcachefs: Check for directories with no backpointers
        bcachefs: Kill alloc_v4.fragmentation_lru
        bcachefs: minor lru fsck fixes
        bcachefs: Mark more errors AUTOFIX
        bcachefs: Make sure we print error that causes fsck to bail out
        bcachefs: bkey errors are only AUTOFIX during read
        bcachefs: Create lost+found in correct snapshot
        bcachefs: Fix reattach_inode()
        bcachefs: Add missing wakeup to bch2_inode_hash_remove()
        bcachefs: Fix trans_commit disk accounting revert
        bcachefs: Fix bch2_inode_is_open() check
        bcachefs: Fix return type of dirent_points_to_inode_nowarn()
        bcachefs: Fix bad shift in bch2_read_flag_list()
      8f602276
    • Linus Torvalds's avatar
      Merge tag 'for-linus-6.12a-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · fc20a3e5
      Linus Torvalds authored
      Pull xen fix from Juergen Gross:
       "Fix Xen config issue introduced in the merge window"
      
      * tag 'for-linus-6.12a-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        xen: Fix config option reference in XEN_PRIVCMD definition
      fc20a3e5
    • Linus Torvalds's avatar
      Merge tag 'ext4_for_linus-5.12-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 · fdd0a94d
      Linus Torvalds authored
      Pull ext4 fixes from Ted Ts'o:
       "Fix some ext4 bugs and regressions relating to oneline resize and fast
        commits"
      
      * tag 'ext4_for_linus-5.12-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
        ext4: fix off by one issue in alloc_flex_gd()
        ext4: mark fc as ineligible using an handle in ext4_xattr_set()
        ext4: use handle to mark fc as ineligible in __track_dentry_update()
      fdd0a94d