1. 22 May, 2024 7 commits
    • Emil Renner Berthing's avatar
      riscv: make image compression configurable · e79dfcbf
      Emil Renner Berthing authored
      Previously the build process would always set KBUILD_IMAGE to the
      uncompressed Image file (unless XIP_KERNEL or EFI_ZBOOT was enabled) and
      unconditionally compress it into Image.gz. However there are already
      build targets for Image.bz2, Image.lz4, Image.lzma, Image.lzo and
      Image.zstd, so let's make use of those, make the compression method
      configurable and set KBUILD_IMAGE accordingly so that targets like
      'make install' and 'make bindeb-pkg' will use the chosen image.
      Tested-by: default avatarBjörn Töpel <bjorn@rivosinc.com>
      Signed-off-by: default avatarEmil Renner Berthing <emil.renner.berthing@canonical.com>
      Reviewed-by: default avatarNicolas Schier <n.schier@avm.de>
      Reviewed-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Link: https://lore.kernel.org/r/20240504193446.196886-2-emil.renner.berthing@canonical.comSigned-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
      e79dfcbf
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-6.10-mw1' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · 0bfbc914
      Linus Torvalds authored
      Pull RISC-V updates from Palmer Dabbelt:
      
       - Add byte/half-word compare-and-exchange, emulated via LR/SC loops
      
       - Support for Rust
      
       - Support for Zihintpause in hwprobe
      
       - Add PR_RISCV_SET_ICACHE_FLUSH_CTX prctl()
      
       - Support lockless lockrefs
      
      * tag 'riscv-for-linus-6.10-mw1' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux: (42 commits)
        riscv: defconfig: Enable CONFIG_CLK_SOPHGO_CV1800
        riscv: select ARCH_HAS_FAST_MULTIPLIER
        riscv: mm: still create swiotlb buffer for kmalloc() bouncing if required
        riscv: Annotate pgtable_l{4,5}_enabled with __ro_after_init
        riscv: Remove redundant CONFIG_64BIT from pgtable_l{4,5}_enabled
        riscv: mm: Always use an ASID to flush mm contexts
        riscv: mm: Preserve global TLB entries when switching contexts
        riscv: mm: Make asid_bits a local variable
        riscv: mm: Use a fixed layout for the MM context ID
        riscv: mm: Introduce cntx2asid/cntx2version helper macros
        riscv: Avoid TLB flush loops when affected by SiFive CIP-1200
        riscv: Apply SiFive CIP-1200 workaround to single-ASID sfence.vma
        riscv: mm: Combine the SMP and UP TLB flush code
        riscv: Only send remote fences when some other CPU is online
        riscv: mm: Broadcast kernel TLB flushes only when needed
        riscv: Use IPIs for remote cache/TLB flushes by default
        riscv: Factor out page table TLB synchronization
        riscv: Flush the instruction cache during SMP bringup
        riscv: hwprobe: export Zihintpause ISA extension
        riscv: misaligned: remove CONFIG_RISCV_M_MODE specific code
        ...
      0bfbc914
    • Linus Torvalds's avatar
      Merge tag 'loongarch-6.10' of... · 4f05e820
      Linus Torvalds authored
      Merge tag 'loongarch-6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
      
      Pull LoongArch updates from Huacai Chen:
      
       - Select some options in Kconfig
      
       - Give a chance to build with !CONFIG_SMP
      
       - Switch to use built-in rustc target
      
       - Add new supported device nodes to dts
      
       - Some bug fixes and other small changes
      
       - Update the default config file
      
      * tag 'loongarch-6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson:
        LoongArch: Update Loongson-3 default config file
        LoongArch: dts: Add new supported device nodes to Loongson-2K2000
        LoongArch: dts: Add new supported device nodes to Loongson-2K0500
        LoongArch: dts: Remove "disabled" state of clock controller node
        LoongArch: rust: Switch to use built-in rustc target
        LoongArch: Fix callchain parse error with kernel tracepoint events again
        LoongArch: Give a chance to build with !CONFIG_SMP
        LoongArch: Select THP_SWAP if HAVE_ARCH_TRANSPARENT_HUGEPAGE
        LoongArch: Select ARCH_WANT_DEFAULT_BPF_JIT
        LoongArch: Select ARCH_SUPPORTS_INT128 if CC_HAS_INT128
        LoongArch: Select ARCH_HAS_FAST_MULTIPLIER
      4f05e820
    • Linus Torvalds's avatar
      Merge tag 'microblaze-v6.10' of git://git.monstr.eu/linux-2.6-microblaze · f33fda22
      Linus Torvalds authored
      Pull microblaze updates from Michal Simek:
      
       - Cleanup code around removed early_printk
      
      * tag 'microblaze-v6.10' of git://git.monstr.eu/linux-2.6-microblaze:
        microblaze: Remove early printk call from cpuinfo-static.c
        microblaze: Remove gcc flag for non existing early_printk.c file
      f33fda22
    • Linus Torvalds's avatar
      Merge tag 'ovl-update-6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/overlayfs/vfs · 0e22bedd
      Linus Torvalds authored
      Pull overlayfs updates from Miklos Szeredi:
      
       - Add tmpfile support
      
       - Clean up include
      
      * tag 'ovl-update-6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/overlayfs/vfs:
        ovl: remove duplicate included header
        ovl: remove upper umask handling from ovl_create_upper()
        ovl: implement tmpfile
      0e22bedd
    • Linus Torvalds's avatar
      Merge tag 'fuse-update-6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse · 4f2d34b6
      Linus Torvalds authored
      Pull fuse updates from Miklos Szeredi:
      
       - Add fs-verity support (Richard Fung)
      
       - Add multi-queue support to virtio-fs (Peter-Jan Gootzen)
      
       - Fix a bug in NOTIFY_RESEND handling (Hou Tao)
      
       - page -> folio cleanup (Matthew Wilcox)
      
      * tag 'fuse-update-6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse:
        virtio-fs: add multi-queue support
        virtio-fs: limit number of request queues
        fuse: clear FR_SENT when re-adding requests into pending list
        fuse: set FR_PENDING atomically in fuse_resend()
        fuse: Add initial support for fs-verity
        fuse: Convert fuse_readpages_end() to use folio_end_read()
      4f2d34b6
    • Yafang Shao's avatar
      vfs: Delete the associated dentry when deleting a file · 681ce862
      Yafang Shao authored
      Our applications, built on Elasticsearch[0], frequently create and
      delete files.  These applications operate within containers, some with a
      memory limit exceeding 100GB.  Over prolonged periods, the accumulation
      of negative dentries within these containers can amount to tens of
      gigabytes.
      
      Upon container exit, directories are deleted.  However, due to the
      numerous associated dentries, this process can be time-consuming.  Our
      users have expressed frustration with this prolonged exit duration,
      which constitutes our first issue.
      
      Simultaneously, other processes may attempt to access the parent
      directory of the Elasticsearch directories.  Since the task responsible
      for deleting the dentries holds the inode lock, processes attempting
      directory lookup experience significant delays.  This issue, our second
      problem, is easily demonstrated:
      
        - Task 1 generates negative dentries:
        $ pwd
        ~/test
        $ mkdir es && cd es/ && ./create_and_delete_files.sh
      
        [ After generating tens of GB dentries ]
      
        $ cd ~/test && rm -rf es
      
        [ It will take a long duration to finish ]
      
        - Task 2 attempts to lookup the 'test/' directory
        $ pwd
        ~/test
        $ ls
      
        The 'ls' command in Task 2 experiences prolonged execution as Task 1
        is deleting the dentries.
      
      We've devised a solution to address both issues by deleting associated
      dentry when removing a file.  Interestingly, we've noted that a similar
      patch was proposed years ago[1], although it was rejected citing the
      absence of tangible issues caused by negative dentries.  Given our
      current challenges, we're resubmitting the proposal.  All relevant
      stakeholders from previous discussions have been included for reference.
      
      Some alternative solutions are also under discussion[2][3], such as
      shrinking child dentries outside of the parent inode lock or even
      asynchronously shrinking child dentries.  However, given the
      straightforward nature of the current solution, I believe this approach
      is still necessary.
      
      [ NOTE! This is a pretty fundamental change in how we deal with
        unlinking dentries, and it doesn't change the fact that you can have
        lots of negative dentries from just doing negative lookups.
      
        But the kernel test robot is at least initially happy with this from a
        performance angle, so I'm applying this ASAP just to get more testing
        and as a "known fix for an issue people hit in real life".
      
        Put another way: we should still look at the alternatives, and this
        patch may get reverted if somebody finds a performance regression on
        some other load.       - Linus ]
      Suggested-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: default avatarYafang Shao <laoar.shao@gmail.com>
      Link: https://github.com/elastic/elasticsearch [0]
      Link: https://patchwork.kernel.org/project/linux-fsdevel/patch/1502099673-31620-1-git-send-email-wangkai86@huawei.com [1]
      Link: https://lore.kernel.org/linux-fsdevel/20240511200240.6354-2-torvalds@linux-foundation.org/ [2]
      Link: https://lore.kernel.org/linux-fsdevel/CAHk-=wjEMf8Du4UFzxuToGDnF3yLaMcrYeyNAaH1NJWa6fwcNQ@mail.gmail.com/ [3]
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Cc: Christian Brauner <brauner@kernel.org>
      Cc: Jan Kara <jack@suse.cz>
      Cc: Waiman Long <longman@redhat.com>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Wangkai <wangkai86@huawei.com>
      Cc: Colin Walters <walters@verbum.org>
      Tested-by: default avatarkernel test robot <oliver.sang@intel.com>
      Link: https://lore.kernel.org/all/202405221518.ecea2810-oliver.sang@intel.com/Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      681ce862
  2. 21 May, 2024 26 commits
    • Linus Torvalds's avatar
      Merge tag 'perf-tools-for-v6.10-1-2024-05-21' of... · 29c73fc7
      Linus Torvalds authored
      Merge tag 'perf-tools-for-v6.10-1-2024-05-21' of git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools
      
      Pull perf tools updates from Arnaldo Carvalho de Melo:
       "General:
      
         - Integrate the shellcheck utility with the build of perf to allow
           catching shell problems early in areas such as 'perf test', 'perf
           trace' scrape scripts, etc
      
         - Add 'uretprobe' variant in the 'perf bench uprobe' tool
      
         - Add script to run instances of 'perf script' in parallel
      
         - Allow parsing tracepoint names that start with digits, such as
           9p/9p_client_req, etc. Make sure 'perf test' tests it even on
           systems where those tracepoints aren't available
      
         - Add Kan Liang to MAINTAINERS as a perf tools reviewer
      
         - Add support for using the 'capstone' disassembler library in
           various tools, such as 'perf script' and 'perf annotate'. This is
           an alternative for the use of the 'xed' and 'objdump' disassemblers
      
        Data-type profiling improvements:
      
         - Resolve types for a->b->c by backtracking the assignments until it
           finds DWARF info for one of those members
      
         - Support for global variables, keeping a cache to speed up lookups
      
         - Handle the 'call' instruction, dealing with effects on registers
           and handling its return when tracking register data types
      
         - Handle x86's segment based addressing like %gs:0x28, to support
           things like per CPU variables, the stack canary, etc
      
         - Data-type profiling got big speedups when using capstone for
           disassembling. The objdump outoput parsing method is left as a
           fallback when capstone fails or isn't available. There are patches
           posted for 6.11 that to use a LLVM disassembler
      
         - Support event group display in the TUI when annotating types with
           --data-type, for instance to show memory load and store events for
           the data type fields
      
         - Optimize the 'perf annotate' data structures, reducing memory usage
      
         - Add a initial 'perf test' for 'perf annotate', checking that a
           target symbol appears on the output, specifying objdump via the
           command line, etc
      
        Vendor Events:
      
         - Update Intel JSON files for Cascade Lake X, Emerald Rapids, Grand
           Ridge, Ice Lake X, Lunar Lake, Meteor Lake, Sapphire Rapids, Sierra
           Forest, Sky Lake X, Sky Lake and Snow Ridge X. Remove info metrics
           erroneously in TopdownL1
      
         - Add AMD's Zen 5 core and uncore events and metrics. Those come from
           the "Performance Monitor Counters for AMD Family 1Ah Model 00h- 0Fh
           Processors" document, with events that capture information on op
           dispatch, execution and retirement, branch prediction, L1 and L2
           cache activity, TLB activity, etc
      
         - Mark L1D_CACHE_INVAL impacted by errata for ARM64's AmpereOne/
           AmpereOneX
      
        Miscellaneous:
      
         - Sync header copies with the kernel sources
      
         - Move some header copies used only for generating translation string
           tables for ioctl cmds and other syscall integer arguments to a new
           directory under tools/perf/beauty/, to separate from copies in
           tools/include/ that are used to build the tools
      
         - Introduce scrape script for several syscall 'flags'/'mask'
           arguments
      
         - Improve cpumap utilization, fixing up pairing of refcounts, using
           the right iterators (perf_cpu_map__for_each_cpu), etc
      
         - Give more details about raw event encodings in 'perf list', show
           tracepoint encoding in the detailed output
      
         - Refactor the DSOs handling code, reducing memory usage
      
         - Document the BPF event modifier and add a 'perf test' for it
      
         - Improve the event parser, better error messages and add further
           'perf test's for it
      
         - Add reference count checking to 'struct comm_str' and 'struct
           mem_info'
      
         - Make ARM64's 'perf test' entries for the Neoverse N1 more robust
      
         - Tweak the ARM64's Coresight 'perf test's
      
         - Improve ARM64's CoreSight ETM version detection and error reporting
      
         - Fix handling of symbols when using kcore
      
         - Fix PAI (Processor Activity Instrumentation) counter names for s390
           virtual machines in 'perf report'
      
         - Fix -g/--call-graph option failure in 'perf sched timehist'
      
         - Add LIBTRACEEVENT_DIR build option to allow building with
           libtraceevent installed in non-standard directories, such as when
           doing cross builds
      
         - Various 'perf test' and 'perf bench' fixes
      
         - Improve 'perf probe' error message for long C++ probe names"
      
      * tag 'perf-tools-for-v6.10-1-2024-05-21' of git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools: (260 commits)
        tools lib subcmd: Show parent options in help
        perf pmu: Count sys and cpuid JSON events separately
        perf stat: Don't display metric header for non-leader uncore events
        perf annotate-data: Ensure the number of type histograms
        perf annotate: Fix segfault on sample histogram
        perf daemon: Fix file leak in daemon_session__control
        libsubcmd: Fix parse-options memory leak
        perf lock: Avoid memory leaks from strdup()
        perf sched: Rename 'switches' column header to 'count' and add usage description, options for latency
        perf tools: Ignore deleted cgroups
        perf parse: Allow tracepoint names to start with digits
        perf parse-events: Add new 'fake_tp' parameter for tests
        perf parse-events: pass parse_state to add_tracepoint
        perf symbols: Fix ownership of string in dso__load_vmlinux()
        perf symbols: Update kcore map before merging in remaining symbols
        perf maps: Re-use __maps__free_maps_by_name()
        perf symbols: Remove map from list before updating addresses
        perf tracepoint: Don't scan all tracepoints to test if one exists
        perf dwarf-aux: Fix build with HAVE_DWARF_CFI_SUPPORT
        perf thread: Fixes to thread__new() related to initializing comm
        ...
      29c73fc7
    • Linus Torvalds's avatar
      Merge tag 'bitmap-for-6.10v2' of https://github.com/norov/linux · 4865a27c
      Linus Torvalds authored
      Pull bitmap updates from Yury Norov:
      
       - topology_span_sane() optimization from Kyle Meyer
      
       - fns() rework from Kuan-Wei Chiu (used in cpumask_local_spread() and
         other places)
      
       - headers cleanup from Andy
      
       - add a MAINTAINERS record for bitops API
      
      * tag 'bitmap-for-6.10v2' of https://github.com/norov/linux:
        usercopy: Don't use "proxy" headers
        bitops: Move aligned_byte_mask() to wordpart.h
        MAINTAINERS: add BITOPS API record
        bitmap: relax find_nth_bit() limitation on return value
        lib: make test_bitops compilable into the kernel image
        bitops: Optimize fns() for improved performance
        lib/test_bitops: Add benchmark test for fns()
        Compiler Attributes: Add __always_used macro
        sched/topology: Optimize topology_span_sane()
        cpumask: Add for_each_cpu_from()
      4865a27c
    • Linus Torvalds's avatar
      Merge tag 'pull-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · b6394d6f
      Linus Torvalds authored
      Pull misc vfs updates from Al Viro:
       "Assorted commits that had missed the last merge window..."
      
      * tag 'pull-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        remove call_{read,write}_iter() functions
        do_dentry_open(): kill inode argument
        kernel_file_open(): get rid of inode argument
        get_file_rcu(): no need to check for NULL separately
        fd_is_open(): move to fs/file.c
        close_on_exec(): pass files_struct instead of fdtable
      b6394d6f
    • Linus Torvalds's avatar
      Merge tag 'pull-bd_flags-2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 3413efa8
      Linus Torvalds authored
      Pull bdev flags update from Al Viro:
       "Compactifying bdev flags.
      
        We can easily have up to 24 flags with sane atomicity, _without_
        pushing anything out of the first cacheline of struct block_device"
      
      * tag 'pull-bd_flags-2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        bdev: move ->bd_make_it_fail to ->__bd_flags
        bdev: move ->bd_ro_warned to ->__bd_flags
        bdev: move ->bd_has_subit_bio to ->__bd_flags
        bdev: move ->bd_write_holder into ->__bd_flags
        bdev: move ->bd_read_only to ->__bd_flags
        bdev: infrastructure for flags
        wrapper for access to ->bd_partno
        Use bdev_is_paritition() instead of open-coding it
      3413efa8
    • Linus Torvalds's avatar
      Merge tag 's390-6.10-2' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · 2a8120d7
      Linus Torvalds authored
      Pull more s390 updates from Alexander Gordeev:
      
       - Switch read and write software bits for PUDs
      
       - Add missing hardware bits for PUDs and PMDs
      
       - Generate unwind information for C modules to fix GDB unwind error for
         vDSO functions
      
       - Create .build-id links for unstripped vDSO files to enable vDSO
         debugging with symbols
      
       - Use standard stack frame layout for vDSO generated stack frames to
         manually walk stack frames without DWARF information
      
       - Rework perf_callchain_user() and arch_stack_walk_user() functions to
         reduce code duplication
      
       - Skip first stack frame when walking user stack
      
       - Add basic checks to identify invalid instruction pointers when
         walking stack frames
      
       - Introduce and use struct stack_frame_vdso_wrapper within vDSO user
         wrapper code to automatically generate an asm-offset define. Also use
         STACK_FRAME_USER_OVERHEAD instead of STACK_FRAME_OVERHEAD to document
         that the code works with user space stack
      
       - Clear the backchain of the extra stack frame added by the vDSO user
         wrapper code. This allows the user stack walker to detect and skip
         the non-standard stack frame. Without this an incorrect instruction
         pointer would be added to stack traces.
      
       - Rewrite psw_idle() function in C to ease maintenance and further
         enhancements
      
       - Remove get_vtimer() function and use get_cpu_timer() instead
      
       - Mark psw variable in __load_psw_mask() as __unitialized to avoid
         superfluous clearing of PSW
      
       - Remove obsolete and superfluous comment about removed TIF_FPU flag
      
       - Replace memzero_explicit() and kfree() with kfree_sensitive() to fix
         warnings reported by Coccinelle
      
       - Wipe sensitive data and all copies of protected- or secure-keys from
         stack when an IOCTL fails
      
       - Both do_airq_interrupt() and do_io_interrupt() functions set
         CIF_NOHZ_DELAY flag. Move it in do_io_irq() to simplify the code
      
       - Provide iucv_alloc_device() and iucv_release_device() helpers, which
         can be used to deduplicate more or less identical IUCV device
         allocation and release code in four different drivers
      
       - Make use of iucv_alloc_device() and iucv_release_device() helpers to
         get rid of quite some code and also remove a cast to an incompatible
         function (clang W=1)
      
       - There is no user of iucv_root outside of the core IUCV code left.
         Therefore remove the EXPORT_SYMBOL
      
       - __apply_alternatives() contains a runtime check which verifies that
         the size of the to be patched code area is even. Convert this to a
         compile time check
      
       - Increase size of buffers for sending z/VM CP DIAGNOSE X'008' commands
         from 128 to 240
      
       - Do not accept z/VM CP DIAGNOSE X'008' commands longer than maximally
         allowed
      
       - Use correct defines IPL_BP_NVME_LEN and IPL_BP0_NVME_LEN instead of
         IPL_BP_FCP_LEN and IPL_BP0_FCP_LEN ones to initialize NVMe reIPL
         block on 'scp_data' sysfs attribute update
      
       - Initialize the correct fields of the NVMe dump block, which were
         confused with FCP fields
      
       - Refactor macros for 'scp_data' (re-)IPL sysfs attribute to reduce
         code duplication
      
       - Introduce 'scp_data' sysfs attribute for dump IPL to allow tools such
         as dumpconf passing additional kernel command line parameters to a
         stand-alone dumper
      
       - Rework the CPACF query functions to use the correct RRE or RRF
         instruction formats and set instruction register fields correctly
      
       - Instead of calling BUG() at runtime force a link error during compile
         when a unsupported opcode is used with __cpacf_query() or
         __cpacf_check_opcode() functions
      
       - Fix a crash in ap_parse_bitmap_str() function on /sys/bus/ap/apmask
         or /sys/bus/ap/aqmask sysfs file update with a relative mask value
      
       - Fix "bindings complete" udev event which should be sent once all AP
         devices have been bound to device drivers and again when unbind/bind
         actions take place and all AP devices are bound again
      
       - Facility list alt_stfle_fac_list is nowhere used in the decompressor,
         therefore remove it there
      
       - Remove custom kprobes insn slot allocator in favour of the standard
         module_alloc() one, since kernel image and module areas are located
         within 4GB
      
       - Use kvcalloc() instead of kvmalloc_array() in zcrypt driver to avoid
         calling memset() with a large byte count and get rid of the sparse
         warning as result
      
      * tag 's390-6.10-2' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: (39 commits)
        s390/zcrypt: Use kvcalloc() instead of kvmalloc_array()
        s390/kprobes: Remove custom insn slot allocator
        s390/boot: Remove alt_stfle_fac_list from decompressor
        s390/ap: Fix bind complete udev event sent after each AP bus scan
        s390/ap: Fix crash in AP internal function modify_bitmap()
        s390/cpacf: Make use of invalid opcode produce a link error
        s390/cpacf: Split and rework cpacf query functions
        s390/ipl: Introduce sysfs attribute 'scp_data' for dump ipl
        s390/ipl: Introduce macros for (re)ipl sysfs attribute 'scp_data'
        s390/ipl: Fix incorrect initialization of nvme dump block
        s390/ipl: Fix incorrect initialization of len fields in nvme reipl block
        s390/ipl: Do not accept z/VM CP diag X'008' cmds longer than max length
        s390/ipl: Fix size of vmcmd buffers for sending z/VM CP diag X'008' cmds
        s390/alternatives: Convert runtime sanity check into compile time check
        s390/iucv: Unexport iucv_root
        tty: hvc-iucv: Make use of iucv_alloc_device()
        s390/smsgiucv_app: Make use of iucv_alloc_device()
        s390/netiucv: Make use of iucv_alloc_device()
        s390/vmlogrdr: Make use of iucv_alloc_device()
        s390/iucv: Provide iucv_alloc_device() / iucv_release_device()
        ...
      2a8120d7
    • Linus Torvalds's avatar
      Merge tag 'm68knommu-for-v6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu · 334e5639
      Linus Torvalds authored
      Pull m68knommu update from Greg Ungerer:
      
       . remove use of kernel config option from uapi header
      
      * tag 'm68knommu-for-v6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu:
        m68k: Avoid CONFIG_COLDFIRE switch in uapi header
      334e5639
    • Linus Torvalds's avatar
      Merge tag 'efi-fixes-for-v6.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi · 54993156
      Linus Torvalds authored
      Pull EFI fix from Ard Biesheuvel:
      
       - Followup fix for the EFI boot sequence refactor, which may result in
         physical KASLR putting the kernel in a region which is being used for
         a special purpose via a command line argument.
      
      * tag 'efi-fixes-for-v6.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi:
        x86/efistub: Omit physical KASLR when memory reservations exist
      54993156
    • Linus Torvalds's avatar
      Merge tag 'for-6.10/dm-fixes' of... · 85672639
      Linus Torvalds authored
      Merge tag 'for-6.10/dm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm
      
      Pull device mapper fixes from Mike Snitzer:
      
       - Fix DM discard regressions due to DM core switching over to using
         queue_limits_set() without DM core and targets first being updated to
         set (and stack) discard limits in terms of max_hw_discard_sectors and
         not max_discard_sectors
      
       - Fix stable@ DM integrity discard support to set device's
         discard_granularity limit to the device's logical block size
      
      * tag 'for-6.10/dm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
        dm: always manage discard support in terms of max_hw_discard_sectors
        dm-integrity: set discard_granularity to logical block size
      85672639
    • Linus Torvalds's avatar
      Merge tag 'pm-6.10-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 98f312bc
      Linus Torvalds authored
      Pull power management fixes from Rafael Wysocki:
       "These fix the amd-pstate driver and the operating performance point
        (OPP) handling related to generic PM domains.
      
        Specifics:
      
         - Fix a memory leak in the exit path of amd-pstate (Peng Ma)
      
         - Fix required_opp_tables handling in the cases when multiple generic
           PM domains share one OPP table (Viresh Kumar)"
      
      * tag 'pm-6.10-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        OPP: Fix required_opp_tables for multiple genpds using same table
        cpufreq: amd-pstate: fix memory leak on CPU EPP exit
      98f312bc
    • Linus Torvalds's avatar
      Merge tag 'acpi-6.10-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 62a12816
      Linus Torvalds authored
      Pull ACPI fixes from Rafael Wysocki:
       "These make the ACPI EC driver always install the EC address space
        handler at the root of the ACPI namespace which causes it to take care
        of all EC operation regions everywhere.
      
        This means that the custom EC address space handler in the WMI driver
        is not needed any more and accordingly it gets removed altogether"
      
      * tag 'acpi-6.10-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        platform/x86: wmi: Remove custom EC address space handler
        ACPI: EC: Install address space handler at the namespace root
      62a12816
    • Linus Torvalds's avatar
      Merge tag 'thermal-6.10-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 5b5a5ad5
      Linus Torvalds authored
      Pull thermal control fixes from Rafael Wysocki:
       "These fix the MediaTek lvts_thermal driver and the handling of trip
        points that start as invalid and are adjusted later by user space via
        sysfs.
      
        Specifics:
      
         - Fix and clean up the MediaTek lvts_thermal driver (Julien Panis)
      
         - Prevent invalid trip point handling from triggering spurious trip
           point crossing events and allow passive polling to stop when a
           passive trip point involved in it becomes invalid (Rafael Wysocki)"
      
      * tag 'thermal-6.10-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        thermal: core: Fix the handling of invalid trip points
        thermal/drivers/mediatek/lvts_thermal: Fix wrong lvts_ctrl index
        thermal/drivers/mediatek/lvts_thermal: Remove unused members from struct lvts_ctrl_data
        thermal/drivers/mediatek/lvts_thermal: Check NULL ptr on lvts_data
      5b5a5ad5
    • Linus Torvalds's avatar
      Merge tag 'intel-gpio-v6.10-2' of... · 3b144038
      Linus Torvalds authored
      Merge tag 'intel-gpio-v6.10-2' of git://git.kernel.org/pub/scm/linux/kernel/git/andy/linux-gpio-intel
      
      Pull intel-gpio fixes from Andy Shevchenko:
      
       - NULL pointer dereference fix in GPIO APCI library
      
       - Restore ACPI handle matching for GPIO devices represented in banks
      
      * tag 'intel-gpio-v6.10-2' of git://git.kernel.org/pub/scm/linux/kernel/git/andy/linux-gpio-intel:
        gpiolib: acpi: Fix failed in acpi_gpiochip_find() by adding parent node match
        gpiolib: acpi: Move ACPI device NULL check to acpi_can_fallback_to_crs()
      3b144038
    • Linus Torvalds's avatar
      Merge tag 'soundwire-6.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/soundwire · b9dd56e8
      Linus Torvalds authored
      Pull soundwire updates from Vinod Koul:
      
       - cleanup and conversion for soundwire sysfs groups
      
       - intel support for ace2x bits, auxdevice pm improvements
      
       - qcom multi link device support
      
      * tag 'soundwire-6.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/soundwire: (33 commits)
        soundwire: intel_ace2.x: add support for DOAISE property
        soundwire: intel_ace2.x: add support for DODSE property
        soundwire: intel_ace2x: use DOAIS and DODS settings from firmware
        soundwire: intel_ace2x: cleanup DOAIS/DODS settings
        soundwire: intel_ace2x: simplify check_wake()
        soundwire: intel_ace2x: fix wakeup handling
        soundwire: intel_init: resume all devices on exit.
        soundwire: intel: export intel_resume_child_device
        soundwire: intel_auxdevice: use pm_runtime_resume() instead of pm_request_resume()
        ASoC: SOF: Intel: hda: disable SoundWire interrupt later
        soundwire: qcom: allow multi-link on newer devices
        soundwire: intel_ace2x: use legacy formula for intel_alh_id
        soundwire: reconcile dp0_prop and dpn_prop
        soundwire: intel_ace2x: set the clock source
        soundwire: intel_ace2.x: power-up first before setting SYNCPRD
        soundwire: intel_ace2x: move and extend clock selection
        soundwire: intel: add support for MeteorLake additional clocks
        soundwire: intel: add more values for SYNCPRD
        soundwire: bus: extend base clock checks to 96 MHz
        soundwire: cadence: show the bus frequency and frame shape
        ...
      b9dd56e8
    • Linus Torvalds's avatar
      Merge tag 'phy-for-6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy · 8053d2ff
      Linus Torvalds authored
      Pull generic phy updates from Vinod Koul:
       "New HW Support:
         - Support for Embedded DisplayPort and DisplayPort submodes and
           driver support on Qualcomm X1E80100 edp driver
         - Qualcomm QMP UFS PHY for SM8475, QMP USB phy for QDU1000/QRU1000
           and eusb2-repeater for SMB2360
         - Samsung HDMI PHY for i.MX8MP, gs101 UFS phy
         - Mediatek XFI T-PHY support for mt7988
         - Rockchip usbdp combo phy driver
      
        Updates:
         - Qualcomm x4 lane EP support for sa8775p, v4 ad v6 support for
           X1E80100, SM8650 tables for UFS Gear 4 & 5 and correct voltage
           swing tables
         - Freescale imx8m-pci pcie link-up updates
         - Rockchip rx-common-refclk-mode support
         - More platform remove callback returning void conversions"
      
      * tag 'phy-for-6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy: (43 commits)
        dt-bindings: phy: qcom,usb-snps-femto-v2: use correct fallback for sc8180x
        dt-bindings: phy: qcom,sc8280xp-qmp-ufs-phy: fix msm899[68] power-domains
        dt-bindings: phy: qcom,sc8280xp-qmp-pcie-phy: fix x1e80100-gen3x2 schema
        phy: qcpm-qmp-usb: Add support for QDU1000/QRU1000
        dt-bindings: phy: qcom,qmp-usb: Add QDU1000 USB3 PHY
        dt-bindings: phy: qcom,usb-snps-femto-v2: Add bindings for QDU1000
        phy: qcom-qmp-pcie: add x4 lane EP support for sa8775p
        phy: samsung-ufs: ufs: exit on first reported error
        phy: samsung-ufs: ufs: remove superfluous mfd/syscon.h header
        phy: rockchip: fix CONFIG_TYPEC dependency
        phy: rockchip: usbdp: fix uninitialized variable
        phy: rockchip-snps-pcie3: add support for rockchip,rx-common-refclk-mode
        dt-bindings: phy: rockchip,pcie3-phy: add rockchip,rx-common-refclk-mode
        phy: rockchip: add usbdp combo phy driver
        dt-bindings: phy: add rockchip usbdp combo phy document
        phy: add driver for MediaTek XFI T-PHY
        dt-bindings: phy: mediatek,mt7988-xfi-tphy: add new bindings
        phy: freescale: fsl-samsung-hdmi: Convert to platform remove callback returning void
        phy: qcom: qmp-ufs: update SM8650 tables for Gear 4 & 5
        MAINTAINERS: Add phy-gs101-ufs file to Tensor GS101.
        ...
      8053d2ff
    • Linus Torvalds's avatar
      Merge tag 'dmaengine-6.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine · d4e034b4
      Linus Torvalds authored
      Pull dmaengine updates from Vinod Koul:
       "New HW support:
         - Freescale i.MX8ULP edma support in edma driver
         - StarFive JH8100 DMA support in Synopsis axi-dmac driver
      
        Updates:
         - Tracing support for freescale edma driver, updates to dpaa2 driver
         - Remove unused QCom hidma DT support
         - Support for i2c dma in imx-sdma
         - Maintainers update for idxd and edma drivers"
      
      * tag 'dmaengine-6.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine: (42 commits)
        MAINTAINERS: Update role for IDXD driver
        dmaengine: fsl-edma: use _Generic to handle difference type
        dmaengine: fsl-edma: add trace event support
        dmaengine: idxd: Avoid unnecessary destruction of file_ida
        dmaengine: xilinx: xdma: fix module autoloading
        dt-bindings: dma: fsl-edma: allow 'power-domains' property
        dt-bindings: dma: fsl-edma: remove 'clocks' from required
        dmaengine: fsl-dpaa2-qdma: Fix kernel-doc check warning
        dmaengine: imx-sdma: Add i2c dma support
        dmaengine: imx-sdma: utilize compiler to calculate ADDRS_ARRAY_SIZE_V<n>
        dt-bindings: fsl-imx-sdma: Add I2C peripheral types ID
        dt-bindings: fsl-dma: fsl-edma: clean up unused "fsl,imx8qm-adma" compatible string
        dmaengine: fsl-edma: clean up unused "fsl,imx8qm-adma" compatible string
        dt-bindings: dma: Drop unused QCom hidma binding
        dmaengine: qcom: Drop hidma DT support
        dmaengine: pl08x: Use kcalloc() instead of kzalloc()
        dmaengine: fsl-dpaa2-qdma: Update DPDMAI interfaces to version 3
        dmaengine: fsl-edma: fix miss mutex unlock at an error return path
        dmaengine: pch_dma: remove unused function chan2parent
        dmaengine: fsl-dpaa2-qdma: Add dpdmai_cmd_open
        ...
      d4e034b4
    • Linus Torvalds's avatar
      Merge tag 'mailbox-v6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/jassibrar/mailbox · 34dcc466
      Linus Torvalds authored
      Pull mailbox updates from Jassi Brar:
      
       - redo the omap driver from legacy to mailbox api
      
       - enable bufferless IPI for zynqmp
      
       - add mhu-v3 driver
      
       - convert from tasklet to BH workqueue
      
       - add qcom MSM8974 APCS compatible IDs
      
      * tag 'mailbox-v6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/jassibrar/mailbox: (24 commits)
        dt-bindings: mailbox: qcom-ipcc: Document the SDX75 IPCC
        dt-bindings: mailbox: qcom: Add MSM8974 APCS compatible
        mailbox: Convert from tasklet to BH workqueue
        mailbox: mtk-cmdq: Fix pm_runtime_get_sync() warning in mbox shutdown
        mailbox: mtk-cmdq-mailbox: fix module autoloading
        mailbox: zynqmp: handle SGI for shared IPI
        mailbox: arm_mhuv3: Add driver
        dt-bindings: mailbox: arm,mhuv3: Add bindings
        mailbox: omap: Remove kernel FIFO message queuing
        mailbox: omap: Reverse FIFO busy check logic
        mailbox: omap: Remove mbox_chan_to_omap_mbox()
        mailbox: omap: Use mbox_controller channel list directly
        mailbox: omap: Use function local struct mbox_controller
        mailbox: omap: Merge mailbox child node setup loops
        mailbox: omap: Use devm_pm_runtime_enable() helper
        mailbox: omap: Remove device class
        mailbox: omap: Remove unneeded header omap-mailbox.h
        mailbox: omap: Move fifo size check to point of use
        mailbox: omap: Move omap_mbox_irq_t into driver
        mailbox: omap: Remove unused omap_mbox_request_channel() function
        ...
      34dcc466
    • Linus Torvalds's avatar
      Merge tag 'rproc-v6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux · ab7b884a
      Linus Torvalds authored
      Pull remoteproc updates from Bjorn Andersson:
       "This makes the remoteproc core rproc_class const.
      
        DeviceTree bindings for a few different Qualcomm remoteprocs are
        updated to remove a range of validation warnings/errors. The Qualcomm
        SMD binding marks qcom,ipc deprecated, in favor or the mailbox
        interface.
      
        The TI K3 R5 remoteproc driver is updated to ensure that cores are
        powered up in the appropriate order. The driver also see a couple of
        fixes related to cleanups in error paths during probe.
      
        The Mediatek remoteproc driver is extended to support the MT8188 SCP
        core 1. Support for varying DRAM and IPI shared buffer sizes are
        introduced. This together with a couple of bug fixes and improvements
        to the driver.
      
        Support for the AMD-Xilinx Versal and Versal-NET platforms are added.
        Coredump support and support for parsing TCM information from
        DeviceTree is added to the Xilinx R5F remoteproc driver"
      
      * tag 'rproc-v6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux: (22 commits)
        dt-bindings: remoteproc: qcom,sdm845-adsp-pil: Fix qcom,halt-regs definition
        dt-bindings: remoteproc: qcom,sc7280-wpss-pil: Fix qcom,halt-regs definition
        dt-bindings: remoteproc: qcom,qcs404-cdsp-pil: Fix qcom,halt-regs definition
        dt-bindings: remoteproc: qcom,msm8996-mss-pil: allow glink-edge on msm8996
        dt-bindings: remoteproc: qcom,smd-edge: Mark qcom,ipc as deprecated
        remoteproc: k3-r5: Jump to error handling labels in start/stop errors
        remoteproc: mediatek: Fix error code in scp_rproc_init()
        remoteproc: k3-r5: Do not allow core1 to power up before core0 via sysfs
        remoteproc: k3-r5: Wait for core0 power-up before powering up core1
        remoteproc: mediatek: Add IMGSYS IPI command
        remoteproc: mediatek: Support setting DRAM and IPI shared buffer sizes
        remoteproc: mediatek: Support MT8188 SCP core 1
        dt-bindings: remoteproc: mediatek: Support MT8188 dual-core SCP
        drivers: remoteproc: xlnx: Fix uninitialized tcm mode
        drivers: remoteproc: xlnx: Fix uninitialized variable use
        drivers: remoteproc: xlnx: Add Versal and Versal-NET support
        remoteproc: zynqmp: parse TCM from device tree
        dt-bindings: remoteproc: Add Tightly Coupled Memory (TCM) bindings
        remoteproc: zynqmp: fix lockstep mode memory region
        remoteproc: zynqmp: Add coredump support
        ...
      ab7b884a
    • Linus Torvalds's avatar
      Merge tag 'rpmsg-v6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux · e66128fa
      Linus Torvalds authored
      Pull rpmsg updates from Bjorn Andersson:
       "This makes core rpmsg_class const and ensures that the automatic
        module loading of the Qualcomm glink_ssr driver happens"
      
      * tag 'rpmsg-v6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux:
        rpmsg: qcom_glink_ssr: fix module autoloading
        rpmsg: core: Make rpmsg_class constant
      e66128fa
    • Linus Torvalds's avatar
      Merge tag 'pci-v6.10-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci · f0bae243
      Linus Torvalds authored
      Pull pci updates from Bjorn Helgaas:
       "Enumeration:
      
         - Skip E820 checks for MCFG ECAM regions for new (2016+) machines,
           since there's no requirement to describe them in E820 and some
           platforms require ECAM to work (Bjorn Helgaas)
      
         - Rename PCI_IRQ_LEGACY to PCI_IRQ_INTX to be more specific (Damien
           Le Moal)
      
         - Remove last user and pci_enable_device_io() (Heiner Kallweit)
      
         - Wait for Link Training==0 to avoid possible race (Ilpo Järvinen)
      
         - Skip waiting for devices that have been disconnected while
           suspended (Ilpo Järvinen)
      
         - Clear Secondary Status errors after enumeration since Master Aborts
           and Unsupported Request errors are an expected part of enumeration
           (Vidya Sagar)
      
        MSI:
      
         - Remove unused IMS (Interrupt Message Store) support (Bjorn Helgaas)
      
        Error handling:
      
         - Mask Genesys GL975x SD host controller Replay Timer Timeout
           correctable errors caused by a hardware defect; the errors cause
           interrupts that prevent system suspend (Kai-Heng Feng)
      
         - Fix EDR-related _DSM support, which previously evaluated revision 5
           but assumed revision 6 behavior (Kuppuswamy Sathyanarayanan)
      
        ASPM:
      
         - Simplify link state definitions and mask calculation (Ilpo
           Järvinen)
      
        Power management:
      
         - Avoid D3cold for HP Pavilion 17 PC/1972 PCIe Ports, where BIOS
           apparently doesn't know how to put them back in D0 (Mario
           Limonciello)
      
        CXL:
      
         - Support resetting CXL devices; special handling required because
           CXL Ports mask Secondary Bus Reset by default (Dave Jiang)
      
        DOE:
      
         - Support DOE Discovery Version 2 (Alexey Kardashevskiy)
      
        Endpoint framework:
      
         - Set endpoint BAR to be 64-bit if the driver says that's all the
           device supports, in addition to doing so if the size is >2GB
           (Niklas Cassel)
      
         - Simplify endpoint BAR allocation and setting interfaces (Niklas
           Cassel)
      
        Cadence PCIe controller driver:
      
         - Drop DT binding redundant msi-parent and pci-bus.yaml (Krzysztof
           Kozlowski)
      
        Cadence PCIe endpoint driver:
      
         - Configure endpoint BARs to be 64-bit based on the BAR type, not the
           BAR value (Niklas Cassel)
      
        Freescale Layerscape PCIe controller driver:
      
         - Convert DT binding to YAML (Frank Li)
      
        MediaTek MT7621 PCIe controller driver:
      
         - Add DT binding missing 'reg' property for child Root Ports
           (Krzysztof Kozlowski)
      
         - Fix theoretical string truncation in PHY name (Sergio Paracuellos)
      
        NVIDIA Tegra194 PCIe controller driver:
      
         - Return success for endpoint probe instead of falling through to the
           failure path (Vidya Sagar)
      
        Renesas R-Car PCIe controller driver:
      
         - Add DT binding missing IOMMU properties (Geert Uytterhoeven)
      
         - Add DT binding R-Car V4H compatible for host and endpoint mode
           (Yoshihiro Shimoda)
      
        Rockchip PCIe controller driver:
      
         - Configure endpoint BARs to be 64-bit based on the BAR type, not the
           BAR value (Niklas Cassel)
      
         - Add DT binding missing maxItems to ep-gpios (Krzysztof Kozlowski)
      
         - Set the Subsystem Vendor ID, which was previously zero because it
           was masked incorrectly (Rick Wertenbroek)
      
        Synopsys DesignWare PCIe controller driver:
      
         - Restructure DBI register access to accommodate devices where this
           requires Refclk to be active (Manivannan Sadhasivam)
      
         - Remove the deinit() callback, which was only need by the
           pcie-rcar-gen4, and do it directly in that driver (Manivannan
           Sadhasivam)
      
         - Add dw_pcie_ep_cleanup() so drivers that support PERST# can clean
           up things like eDMA (Manivannan Sadhasivam)
      
         - Rename dw_pcie_ep_exit() to dw_pcie_ep_deinit() to make it parallel
           to dw_pcie_ep_init() (Manivannan Sadhasivam)
      
         - Rename dw_pcie_ep_init_complete() to dw_pcie_ep_init_registers() to
           reflect the actual functionality (Manivannan Sadhasivam)
      
         - Call dw_pcie_ep_init_registers() directly from all the glue
           drivers, not just those that require active Refclk from the host
           (Manivannan Sadhasivam)
      
         - Remove the "core_init_notifier" flag, which was an obscure way for
           glue drivers to indicate that they depend on Refclk from the host
           (Manivannan Sadhasivam)
      
        TI J721E PCIe driver:
      
         - Add DT binding J784S4 SoC Device ID (Siddharth Vadapalli)
      
         - Add DT binding J722S SoC support (Siddharth Vadapalli)
      
        TI Keystone PCIe controller driver:
      
         - Add DT binding missing num-viewport, phys and phy-name properties
           (Jan Kiszka)
      
        Miscellaneous:
      
         - Constify and annotate with __ro_after_init (Heiner Kallweit)
      
         - Convert DT bindings to YAML (Krzysztof Kozlowski)
      
         - Check for kcalloc() failure in of_pci_prop_intr_map() (Duoming
           Zhou)"
      
      * tag 'pci-v6.10-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci: (97 commits)
        PCI: Do not wait for disconnected devices when resuming
        x86/pci: Skip early E820 check for ECAM region
        PCI: Remove unused pci_enable_device_io()
        ata: pata_cs5520: Remove unnecessary call to pci_enable_device_io()
        PCI: Update pci_find_capability() stub return types
        PCI: Remove PCI_IRQ_LEGACY
        scsi: vmw_pvscsi: Do not use PCI_IRQ_LEGACY instead of PCI_IRQ_LEGACY
        scsi: pmcraid: Use PCI_IRQ_INTX instead of PCI_IRQ_LEGACY
        scsi: mpt3sas: Use PCI_IRQ_INTX instead of PCI_IRQ_LEGACY
        scsi: megaraid_sas: Use PCI_IRQ_INTX instead of PCI_IRQ_LEGACY
        scsi: ipr: Use PCI_IRQ_INTX instead of PCI_IRQ_LEGACY
        scsi: hpsa: Use PCI_IRQ_INTX instead of PCI_IRQ_LEGACY
        scsi: arcmsr: Use PCI_IRQ_INTX instead of PCI_IRQ_LEGACY
        wifi: rtw89: Use PCI_IRQ_INTX instead of PCI_IRQ_LEGACY
        dt-bindings: PCI: rockchip,rk3399-pcie: Add missing maxItems to ep-gpios
        Revert "genirq/msi: Provide constants for PCI/IMS support"
        Revert "x86/apic/msi: Enable PCI/IMS"
        Revert "iommu/vt-d: Enable PCI/IMS"
        Revert "iommu/amd: Enable PCI/IMS"
        Revert "PCI/MSI: Provide IMS (Interrupt Message Store) support"
        ...
      f0bae243
    • Linus Torvalds's avatar
      Merge tag 'keys-trusted-next-6.10-rc1-part2' of... · fa8151ca
      Linus Torvalds authored
      Merge tag 'keys-trusted-next-6.10-rc1-part2' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd
      
      Pull trusted keys fixes from Jarkko Sakkinen:
       "These are two bugs I found from trusted keys while working on a new
        RSA key type for TPM2. Both originate form v5.13.
      
        The memory leak is more crucial but I don't think it is either good
        idea if kernel throws WARN when ASN.1 parser fails, even if it is
        related to programming error, as it is not that mature code yet.
      
        There's at least two WARN's in that code but I picked just the one
        more likely to trigger. Planning to fix the other one too over time"
      
      * tag 'keys-trusted-next-6.10-rc1-part2' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd:
        KEYS: trusted: Do not use WARN when encode fails
        KEYS: trusted: Fix memory leak in tpm2_key_encode()
      fa8151ca
    • Linus Torvalds's avatar
      Merge tag 'pull-bd_inode-1' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 38da32ee
      Linus Torvalds authored
      Pull bdev bd_inode updates from Al Viro:
       "Replacement of bdev->bd_inode with sane(r) set of primitives by me and
        Yu Kuai"
      
      * tag 'pull-bd_inode-1' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        RIP ->bd_inode
        dasd_format(): killing the last remaining user of ->bd_inode
        nilfs_attach_log_writer(): use ->bd_mapping->host instead of ->bd_inode
        block/bdev.c: use the knowledge of inode/bdev coallocation
        gfs2: more obvious initializations of mapping->host
        fs/buffer.c: massage the remaining users of ->bd_inode to ->bd_mapping
        blk_ioctl_{discard,zeroout}(): we only want ->bd_inode->i_mapping here...
        grow_dev_folio(): we only want ->bd_inode->i_mapping there
        use ->bd_mapping instead of ->bd_inode->i_mapping
        block_device: add a pointer to struct address_space (page cache of bdev)
        missing helpers: bdev_unhash(), bdev_drop()
        block: move two helpers into bdev.c
        block2mtd: prevent direct access of bd_inode
        dm-vdo: use bdev_nr_bytes(bdev) instead of i_size_read(bdev->bd_inode)
        blkdev_write_iter(): saner way to get inode and bdev
        bcachefs: remove dead function bdev_sectors()
        ext4: remove block_device_ejected()
        erofs_buf: store address_space instead of inode
        erofs: switch erofs_bread() to passing offset instead of block number
      38da32ee
    • Devyn Liu's avatar
      gpiolib: acpi: Fix failed in acpi_gpiochip_find() by adding parent node match · adbc49a5
      Devyn Liu authored
      Previous patch modified the standard used by acpi_gpiochip_find()
      to match device nodes. Using the device node set in gc->gpiodev->d-
      ev instead of gc->parent.
      
      However, there is a situation in gpio-dwapb where the GPIO device
      driver will set gc->fwnode for each port corresponding to a child
      node under a GPIO device, so gc->gpiodev->dev will be assigned the
      value of each child node in gpiochip_add_data().
      
      gpio-dwapb.c:
      128,31 static int dwapb_gpio_add_port(struct dwapb_gpio *gpio,
      			       struct dwapb_port_property *pp,
      			       unsigned int offs);
      port->gc.fwnode = pp->fwnode;
      
      693,39 static int dwapb_gpio_probe;
      err = dwapb_gpio_add_port(gpio, &pdata->properties[i], i);
      
      When other drivers request GPIO pin resources through the GPIO device
      node provided by ACPI (corresponding to the parent node), the change
      of the matching object to gc->gpiodev->dev in acpi_gpiochip_find()
      only allows finding the value of each port (child node), resulting
      in a failed request.
      
      Reapply the condition of using gc->parent for match in acpi_gpio-
      chip_find() in the code can compatible with the problem of gpio-dwapb,
      and will not affect the two cases mentioned in the patch:
      1. There is no setting for gc->fwnode.
      2. The case that depends on using gc->fwnode for match.
      
      Fixes: 5062e4c1 ("gpiolib: acpi: use the fwnode in acpi_gpiochip_find()")
      Fixes: 067dbc1e ("gpiolib: acpi: Don't use GPIO chip fwnode in acpi_gpiochip_find()")
      Signed-off-by: default avatarDevyn Liu <liudingyuan@huawei.com>
      Reviewed-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
      Tested-by: default avatarBenjamin Tissoires <bentiss@kernel.org>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      adbc49a5
    • Linus Torvalds's avatar
      Merge tag 'pull-set_blocksize' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 5ad8b6ad
      Linus Torvalds authored
      Pull vfs blocksize updates from Al Viro:
       "This gets rid of bogus set_blocksize() uses, switches it over
        to be based on a 'struct file *' and verifies that the caller
        has the device opened exclusively"
      
      * tag 'pull-set_blocksize' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        make set_blocksize() fail unless block device is opened exclusive
        set_blocksize(): switch to passing struct file *
        btrfs_get_bdev_and_sb(): call set_blocksize() only for exclusive opens
        swsusp: don't bother with setting block size
        zram: don't bother with reopening - just use O_EXCL for open
        swapon(2): open swap with O_EXCL
        swapon(2)/swapoff(2): don't bother with block size
        pktcdvd: sort set_blocksize() calls out
        bcache_register(): don't bother with set_blocksize()
      5ad8b6ad
    • Laura Nao's avatar
      gpiolib: acpi: Move ACPI device NULL check to acpi_can_fallback_to_crs() · 4bcc9bba
      Laura Nao authored
      Following the relocation of the function call outside of
      __acpi_find_gpio(), move the ACPI device NULL check to
      acpi_can_fallback_to_crs().
      Signed-off-by: default avatarLaura Nao <laura.nao@collabora.com>
      Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
      Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Reported-by: default avatarkernelci.org bot <bot@kernelci.org>
      Closes: https://lore.kernel.org/all/20240426154208.81894-1-laura.nao@collabora.com/
      Fixes: 49c02f6e ("gpiolib: acpi: Move acpi_can_fallback_to_crs() out of __acpi_find_gpio()")
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      4bcc9bba
    • Linus Torvalds's avatar
      fs/pidfs: make 'lsof' happy with our inode changes · db3d841a
      Linus Torvalds authored
      pidfs started using much saner inodes in commit b28ddcc3 ("pidfs:
      convert to path_from_stashed() helper"), but that exposed the fact that
      lsof had some knowledge of just how odd our old anon_inode usage was.
      
      For example, legacy anon_inodes hadn't even initialized the inode type
      in the inode mode, so everything had a type of zero.
      
      So sane tools like 'stat' would report these files as "weird file", but
      'lsof' instead used that (together with the name of the link in proc) to
      notice that it's an anonymous inode, and used it to detect pidfd files.
      
      Let's keep our internal new sane inode model, but mask the file type
      bits at 'stat()' time in the getattr() function we already have, and by
      making the dentry name match what lsof expects too.
      
      This keeps our internal models sane, but should make user space see the
      same old odd behavior.
      Reported-by: default avatarJiri Slaby <jirislaby@kernel.org>
      Link: https://lore.kernel.org/all/a15b1050-4b52-4740-a122-a4d055c17f11@kernel.org/
      Link: https://github.com/lsof-org/lsof/issues/317
      Cc: Alexander Viro <viro@zeniv.linux.org.uk>
      Cc: Seth Forshee <sforshee@kernel.org>
      Cc: Tycho Andersen <tycho@tycho.pizza>
      Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      db3d841a
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-cpufreq' · dee8f20e
      Rafael J. Wysocki authored
      Merge an amd-pstate driver fix for 6.10-rc1:
      
       - Fix a memory leak in the exit path of amd-pstate (Peng Ma).
      
      * pm-cpufreq:
        cpufreq: amd-pstate: fix memory leak on CPU EPP exit
      dee8f20e
  3. 20 May, 2024 7 commits
    • Jarkko Sakkinen's avatar
      KEYS: trusted: Do not use WARN when encode fails · 050bf3c7
      Jarkko Sakkinen authored
      When asn1_encode_sequence() fails, WARN is not the correct solution.
      
      1. asn1_encode_sequence() is not an internal function (located
         in lib/asn1_encode.c).
      2. Location is known, which makes the stack trace useless.
      3. Results a crash if panic_on_warn is set.
      
      It is also noteworthy that the use of WARN is undocumented, and it
      should be avoided unless there is a carefully considered rationale to
      use it.
      
      Replace WARN with pr_err, and print the return value instead, which is
      only useful piece of information.
      
      Cc: stable@vger.kernel.org # v5.13+
      Fixes: f2219745 ("security: keys: trusted: use ASN.1 TPM2 key format for the blobs")
      Signed-off-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
      050bf3c7
    • Jarkko Sakkinen's avatar
      KEYS: trusted: Fix memory leak in tpm2_key_encode() · ffcaa217
      Jarkko Sakkinen authored
      'scratch' is never freed. Fix this by calling kfree() in the success, and
      in the error case.
      
      Cc: stable@vger.kernel.org # +v5.13
      Fixes: f2219745 ("security: keys: trusted: use ASN.1 TPM2 key format for the blobs")
      Signed-off-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
      ffcaa217
    • Linus Torvalds's avatar
      Merge tag 'cocci-for-6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux · 8f6a15f0
      Linus Torvalds authored
      Pull coccinelle updates from Julia Lawall:
       "One patch slightly improves the text in a comment.
      
        The other patch (on minmax.cocci) removes a report about ? being used
        in return statements that has been generating not very useful
        suggestions to change idiomatic code"
      
      * tag 'cocci-for-6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux:
        Coccinelle: pm_runtime: Fix grammar in comment
        coccinelle: misc: minmax: Suppress reports for err returns
      8f6a15f0
    • Linus Torvalds's avatar
      Merge tag 'asm-generic-6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic · 3eb3c33c
      Linus Torvalds authored
      Pull asm-generic cleanups from Arnd Bergmann:
       "These are a few cross-architecture cleanup patches:
      
         - separate out fbdev support from the asm/video.h contents that may
           be used by either the old fbdev drivers or the newer drm display
           code (Thomas Zimmermann)
      
         - cleanups for the generic bitops code and asm-generic/bug.h
           (Thorsten Blum)
      
         - remove the orphaned include/asm-generic/page.h header that used to
           be included by long-removed mmu-less architectures (me)"
      
      * tag 'asm-generic-6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic:
        arch: Fix name collision with ACPI's video.o
        bug: Improve comment
        asm-generic: remove unused asm-generic/page.h
        arch: Rename fbdev header and source files
        arch: Remove struct fb_info from video helpers
        arch: Select fbdev helpers with CONFIG_VIDEO
        bitops: Change function return types from long to int
      3eb3c33c
    • Linus Torvalds's avatar
      Merge tag 'soc-dt-late-6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · 1b036162
      Linus Torvalds authored
      Pull more SoC devicetree updates from Arnd Bergmann:
       "This is a follow-up to an earlier pull request for device tree
        changes, as three platform maintainers sent their contents too late to
        be included in the main set, but had not caused any further problems
        since then:
      
         - The Amlogic platform now containts support for two new SoC types,
           the A4 and A5 chips for audio applications. Both come with a
           reference board, and one more dts file gets addded for the
           combination of the MNT Reform Laptop with the BPI-CM4 CPU module
      
         - The ASpeed platform adds support for six addititional server
           platforms that use ast2500 or ast2600 as their BMC, while another
           one gets removed
      
         - The RISC-V platforms from Microchip, Starfive and and T-HEAD get
           additional features for existing hardware, plus the addition of the
           Milk-V Mars based on the StarFive VisionFive v2 board"
      
      * tag 'soc-dt-late-6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (76 commits)
        riscv: dts: microchip: add pac1934 power-monitor to icicle
        riscv: dts: thead: Fix node ordering in TH1520 device tree
        ARM: dts: aspeed: Add ASRock E3C256D4I BMC
        dt-bindings: arm: aspeed: document ASRock E3C256D4I
        dt-bindings: trivial-devices: add isil,isl69269
        ARM: dts: aspeed: x4tf: Add dts for asus x4tf project
        dt-bindings: arm: aspeed: add ASUS X4TF board
        ARM: dts: aspeed: Remove Facebook Cloudripper dts
        ARM: dts: aspeed: drop unused ref_voltage ADC property
        ARM: dts: aspeed: harma: correct Mellanox multi-host property
        ARM: dts: aspeed: yosemitev2: correct Mellanox multi-host property
        ARM: dts: aspeed: yosemite4: correct Mellanox multi-host property
        ARM: dts: aspeed: greatlakes: correct Mellanox multi-host property
        ARM: dts: aspeed: Modify I2C bus configuration
        ARM: dts: aspeed: Disable unused ADC channels for Asrock X570D4U BMC
        ARM: dts: aspeed: Modify GPIO table for Asrock X570D4U BMC
        ARM: dts: aspeed: yosemite4: set bus13 frequency to 100k
        ARM: dts: Aspeed: Bonnell: Fix NVMe LED labels
        ARM: dts: aspeed: yosemite4: Enable ipmb device for OCP debug card
        ARM: dts: aspeed: ahe50dc: Update lm25066 regulator name
        ...
      1b036162
    • Linus Torvalds's avatar
      Merge tag 'vfio-v6.10-rc1' of https://github.com/awilliam/linux-vfio · 30aec6e1
      Linus Torvalds authored
      Pull vfio updates from Alex Williamson:
      
       - The vfio fsl-mc bus driver has become orphaned. We'll consider
         removing it in future releases if a new maintainer isn't found (Alex
         Williamson)
      
       - Improved usage of opaque data in vfio-pci INTx handling, avoiding
         lookups of the eventfd through the interrupt and irqfd runtime paths
         (Alex Williamson)
      
       - Resolve an error path memory leak introduced in vfio-pci interrupt
         code (Ye Bin)
      
       - Addition of interrupt support for vfio devices exposed on the CDX
         bus, including a new MSI allocation helper and export of existing
         helpers for MSI alloc and free (Nipun Gupta)
      
       - A new vfio-pci variant driver supporting migration of Intel QAT VF
         devices for the GEN4 PFs (Xin Zeng & Yahui Cao)
      
       - Resolve a possibly circular locking dependency in vfio-pci by
         avoiding copy_to_user() from a PCI bus walk callback (Alex
         Williamson)
      
       - Trivial docs update to remove a duplicate semicolon (Foryun Ma)
      
      * tag 'vfio-v6.10-rc1' of https://github.com/awilliam/linux-vfio:
        vfio/pci: Restore zero affected bus reset devices warning
        vfio: remove an extra semicolon
        vfio/pci: Collect hot-reset devices to local buffer
        vfio/qat: Add vfio_pci driver for Intel QAT SR-IOV VF devices
        vfio/cdx: add interrupt support
        genirq/msi: Add MSI allocation helper and export MSI functions
        vfio/pci: fix potential memory leak in vfio_intx_enable()
        vfio/pci: Pass eventfd context object through irqfd
        vfio/pci: Pass eventfd context to IRQ handler
        MAINTAINERS: Orphan vfio fsl-mc bus driver
      30aec6e1
    • Linus Torvalds's avatar
      Merge tag 'linux_kselftest-next-6.10-rc1-fixes' of... · 70ec81c2
      Linus Torvalds authored
      Merge tag 'linux_kselftest-next-6.10-rc1-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
      
      Pull kselftest fixes from Shuah Khan:
       "Revert framework change to add D_GNU_SOURCE to KHDR_INCLUDES to
        Makefile, lib.mk, and kselftest_harness.h and follow-on changes to
        cgroup and sgx test as they are causing build failures and warnings"
      
      * tag 'linux_kselftest-next-6.10-rc1-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
        Revert "selftests/cgroup: Drop define _GNU_SOURCE"
        Revert "selftests/sgx: Include KHDR_INCLUDES in Makefile"
        Revert "selftests: Compile kselftest headers with -D_GNU_SOURCE"
      70ec81c2