1. 22 Feb, 2024 13 commits
    • Haifeng Xu's avatar
      mm: list_lru: disable memcg_aware when cgroup.memory is set to "nokmem" · 0057db47
      Haifeng Xu authored
      Actually, when using a boot time kernel option "cgroup.memory=nokmem", all
      lru items are inserted to list_lru_node.  But for those users who invoke
      list_lru_init_memcg() to initialize list_lru, list_lru_memcg_aware()
      returns true.  And this brings unneeded operations related to memcg.
      
      To make things more convenient, let's disable memcg_aware when
      cgroup.memory is set to "nokmem".
      
      Link: https://lkml.kernel.org/r/20231228062715.338672-1-haifeng.xu@shopee.comSigned-off-by: default avatarHaifeng Xu <haifeng.xu@shopee.com>
      Acked-by: default avatarRoman Gushchin <roman.gushchin@linux.dev>
      Cc: Johannes Weiner <hannes@cmpxchg.org>
      Cc: Michal Hocko <mhocko@kernel.org>
      Cc: Shakeel Butt <shakeelb@google.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      0057db47
    • Kefeng Wang's avatar
      mm: memory: use nth_page() in clear/copy_subpage() · 21fff064
      Kefeng Wang authored
      The clear and copy of huge gigantic page has converted to use nth_page()
      to handle the possible discontinuous struct page(SPARSEMEM without
      VMEMMAP), but not change for the non-gigantic part, fix it too.
      
      Link: https://lkml.kernel.org/r/20231229082207.60235-1-wangkefeng.wang@huawei.comSigned-off-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
      Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
      Cc: Zi Yan <ziy@nvidia.com>
      Cc: David Hildenbrand <david@redhat.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      21fff064
    • Yajun Deng's avatar
      mm/mmap: simplify vma link and unlink · 30afc8c3
      Yajun Deng authored
      The file parameter in the __remove_shared_vm_struct is no longer used,
      remove it.
      
      These functions vma_link() and mmap_region() have some of the same code,
      introduce vma_link_file() helper function to simplify the code.
      
      Link: https://lkml.kernel.org/r/20240110084622.2425927-1-yajun.deng@linux.devSigned-off-by: default avatarYajun Deng <yajun.deng@linux.dev>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      30afc8c3
    • Kuan-Ying Lee's avatar
      scripts/gdb/vmalloc: fix vmallocinfo error · 0040f2c5
      Kuan-Ying Lee authored
      The patch series "Mitigate a vmap lock contention" removes vmap_area_list,
      which will break the gdb vmallocinfo command:
      
      (gdb) lx-vmallocinfo
      Python Exception <class 'gdb.error'>: No symbol "vmap_area_list" in current context.
      Error occurred in Python: No symbol "vmap_area_list" in current context.
      
      So we can instead use vmap_nodes to iterate all vmallocinfo.
      
      Link: https://lkml.kernel.org/r/20240207085856.11190-1-Kuan-Ying.Lee@mediatek.comSigned-off-by: default avatarKuan-Ying Lee <Kuan-Ying.Lee@mediatek.com>
      Cc: Casper Li <casper.li@mediatek.com>
      Cc: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
      Cc: Chinwen Chang <chinwen.chang@mediatek.com>
      Cc: Jan Kiszka <jan.kiszka@siemens.com>
      Cc: Kieran Bingham <kbingham@kernel.org>
      Cc: Matthias Brugger <matthias.bgg@gmail.com>
      Cc: Qun-Wei Lin <qun-wei.lin@mediatek.com>
      Cc: Uladzislau Rezki (Sony) <urezki@gmail.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      0040f2c5
    • JP Kobryn's avatar
      selftests/mm/ksm_functional: prevent unmapping undefined address · 3956570e
      JP Kobryn authored
      Replace some goto statements with return statements so that unmap() is not
      called on an undefined address.  This change is made so that unmap() can
      only be reached after mmap() is called (and the address mentioned is
      defined).  Returning MAP_FAILED seems acceptable since client code checks
      for this value.
      
      Link: https://lkml.kernel.org/r/20240105202401.28851-1-inwardvessel@gmail.com
      Fixes: 42096aa2 ("selftest/mm: ksm_functional_tests: test in mmap_and_merge_range() if anything got merged")
      Signed-off-by: default avatarJP Kobryn <inwardvessel@gmail.com>
      Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      3956570e
    • Hongbo Li's avatar
      mm/filemap: avoid type conversion · 6212eb4d
      Hongbo Li authored
      The return type of function folio_test_hugetlb is bool type, there is no
      need to assign it to an integer type.
      
      Link: https://lkml.kernel.org/r/20240108044815.3291487-1-lihongbo22@huawei.comSigned-off-by: default avatarHongbo Li <lihongbo22@huawei.com>
      Reviewed-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      6212eb4d
    • Sumanth Korikkar's avatar
      s390: enable MHP_MEMMAP_ON_MEMORY · 9eda317c
      Sumanth Korikkar authored
      Enable MHP_MEMMAP_ON_MEMORY to support "memmap on memory".
      memory_hotplug.memmap_on_memory=true kernel parameter should be set in
      kernel boot option to enable the feature.
      
      Link: https://lkml.kernel.org/r/20240108132747.3238763-6-sumanthk@linux.ibm.comReviewed-by: default avatarGerald Schaefer <gerald.schaefer@linux.ibm.com>
      Signed-off-by: default avatarSumanth Korikkar <sumanthk@linux.ibm.com>
      Cc: Alexander Gordeev <agordeev@linux.ibm.com>
      Cc: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
      Cc: Anshuman Khandual <anshuman.khandual@arm.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: Heiko Carstens <hca@linux.ibm.com>
      Cc: Michal Hocko <mhocko@suse.com>
      Cc: Oscar Salvador <osalvador@suse.de>
      Cc: Vasily Gorbik <gor@linux.ibm.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      9eda317c
    • Sumanth Korikkar's avatar
      s390/mm: implement MEM_PREPARE_ONLINE/MEM_FINISH_OFFLINE notifiers · 890a4212
      Sumanth Korikkar authored
      MEM_PREPARE_ONLINE memory notifier makes memory block physical
      accessible via sclp assign command. The notifier ensures self-contained
      memory maps are accessible and hence enabling the "memmap on memory" on
      s390.
      
      MEM_FINISH_OFFLINE memory notifier shifts the memory block to an
      inaccessible state via sclp unassign command.
      
      Implementation considerations:
      * When MHP_MEMMAP_ON_MEMORY is disabled, the system retains the old
        behavior. This means the memory map is allocated from default memory.
      * If MACHINE_HAS_EDAT1 is unavailable, MHP_MEMMAP_ON_MEMORY is
        automatically disabled. This ensures that vmemmap pagetables do not
        consume additional memory from the default memory allocator.
      * The MEM_GOING_ONLINE notifier has been modified to perform no
        operation, as MEM_PREPARE_ONLINE already executes the sclp assign
        command.
      * The MEM_CANCEL_ONLINE/MEM_OFFLINE notifier now performs no operation, as
        MEM_FINISH_OFFLINE already executes the sclp unassign command.
      
      Link: https://lkml.kernel.org/r/20240108132747.3238763-5-sumanthk@linux.ibm.comReviewed-by: default avatarGerald Schaefer <gerald.schaefer@linux.ibm.com>
      Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
      Signed-off-by: default avatarSumanth Korikkar <sumanthk@linux.ibm.com>
      Cc: Alexander Gordeev <agordeev@linux.ibm.com>
      Cc: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
      Cc: Anshuman Khandual <anshuman.khandual@arm.com>
      Cc: Heiko Carstens <hca@linux.ibm.com>
      Cc: Michal Hocko <mhocko@suse.com>
      Cc: Oscar Salvador <osalvador@suse.de>
      Cc: Vasily Gorbik <gor@linux.ibm.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      890a4212
    • Sumanth Korikkar's avatar
      s390/sclp: remove unhandled memory notifier type · fb6d5eb9
      Sumanth Korikkar authored
      Remove memory notifier types which are unhandled by s390.  Unhandled
      memory notifier types are covered by default case.
      
      Link: https://lkml.kernel.org/r/20240108132747.3238763-4-sumanthk@linux.ibm.comSuggested-by: default avatarAlexander Gordeev <agordeev@linux.ibm.com>
      Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
      Signed-off-by: default avatarSumanth Korikkar <sumanthk@linux.ibm.com>
      Cc: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
      Cc: Anshuman Khandual <anshuman.khandual@arm.com>
      Cc: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
      Cc: Heiko Carstens <hca@linux.ibm.com>
      Cc: Michal Hocko <mhocko@suse.com>
      Cc: Oscar Salvador <osalvador@suse.de>
      Cc: Vasily Gorbik <gor@linux.ibm.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      fb6d5eb9
    • Sumanth Korikkar's avatar
      s390/mm: allocate vmemmap pages from self-contained memory range · 1a65b73a
      Sumanth Korikkar authored
      Allocate memory map (struct pages array) from the hotplugged memory
      range, rather than using system memory. The change addresses the issue
      where standby memory, when configured to be much larger than online
      memory, could potentially lead to ipl failure due to memory map
      allocation from online memory. For example, 16MB of memory map
      allocation is needed for a memory block size of 1GB and when standby
      memory is configured much larger than online memory, this could lead to
      ipl failure.
      
      To address this issue, the solution involves introducing "memmap on
      memory" using the vmem_altmap structure on s390.  Architectures that
      want to implement it should pass the altmap to the vmemmap_populate()
      function and its associated callchain. This enhancement is discussed in
      commit 4b94ffdc ("x86, mm: introduce vmem_altmap to augment
      vmemmap_populate()")
      
      Provide "memmap on memory" support for s390 by passing the altmap in
      vmemmap_populate() and its callchain. The allocation path is described
      as follows:
      * When altmap is NULL in vmemmap_populate(), memory map allocation
        occurs using the existing vmemmap_alloc_block_buf().
      * When altmap is not NULL in vmemmap_populate(), memory map allocation
        still uses vmemmap_alloc_block_buf(), but this function internally
        calls altmap_alloc_block_buf().
      
      For deallocation, the process is outlined as follows:
      * When altmap is NULL in vmemmap_free(), memory map deallocation happens
        through free_pages().
      * When altmap is not NULL in vmemmap_free(), memory map deallocation
        occurs via vmem_altmap_free().
      
      While memory map allocation is primarily handled through the
      self-contained memory map range, there might still be a small amount of
      system memory allocation required for vmemmap pagetables. To mitigate
      this impact, this feature will be limited to machines with EDAT1
      support.
      
      Link: https://lkml.kernel.org/r/20240108132747.3238763-3-sumanthk@linux.ibm.comReviewed-by: default avatarGerald Schaefer <gerald.schaefer@linux.ibm.com>
      Signed-off-by: default avatarSumanth Korikkar <sumanthk@linux.ibm.com>
      Cc: Alexander Gordeev <agordeev@linux.ibm.com>
      Cc: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
      Cc: Anshuman Khandual <anshuman.khandual@arm.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: Heiko Carstens <hca@linux.ibm.com>
      Cc: Michal Hocko <mhocko@suse.com>
      Cc: Oscar Salvador <osalvador@suse.de>
      Cc: Vasily Gorbik <gor@linux.ibm.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      1a65b73a
    • Sumanth Korikkar's avatar
      mm/memory_hotplug: introduce MEM_PREPARE_ONLINE/MEM_FINISH_OFFLINE notifiers · c5f1e2d1
      Sumanth Korikkar authored
      Patch series "implement "memmap on memory" feature on s390".
      
      This series provides "memmap on memory" support on s390 platform.  "memmap
      on memory" allows struct pages array to be allocated from the hotplugged
      memory range instead of allocating it from main system memory.
      
      s390 currently preallocates struct pages array for all potentially
      possible memory, which ensures memory onlining always succeeds, but with
      the cost of significant memory consumption from the available system
      memory during boottime.  In certain extreme configuration, this could lead
      to ipl failure.
      
      "memmap on memory" ensures struct pages array are populated from self
      contained hotplugged memory range instead of depleting the available
      system memory and this could eliminate ipl failure on s390 platform.
      
      On other platforms, system might go OOM when the physically hotplugged
      memory depletes the available memory before it is onlined.  Hence, "memmap
      on memory" feature was introduced as described in commit a08a2ae3
      ("mm,memory_hotplug: allocate memmap from the added memory range").
      
      Unlike other architectures, s390 memory blocks are not physically
      accessible until it is online.  To make it physically accessible two new
      memory notifiers MEM_PREPARE_ONLINE / MEM_FINISH_OFFLINE are added and
      this notifier lets the hypervisor inform that the memory should be made
      physically accessible.  This allows for "memmap on memory" initialization
      during memory hotplug onlining phase, which is performed before calling
      MEM_GOING_ONLINE notifier.
      
      Patch 1 introduces MEM_PREPARE_ONLINE/MEM_FINISH_OFFLINE memory notifiers
      to prepare the transition of memory to and from a physically accessible
      state.  New mhp_flag MHP_OFFLINE_INACCESSIBLE is introduced to ensure
      altmap cannot be written when adding memory - before it is set online. 
      This enhancement is crucial for implementing the "memmap on memory"
      feature for s390 in a subsequent patch.
      
      Patches 2 allocates vmemmap pages from self-contained memory range for
      s390.  It allocates memory map (struct pages array) from the hotplugged
      memory range, rather than using system memory by passing altmap to vmemmap
      functions.
      
      Patch 3 removes unhandled memory notifier types on s390.
      
      Patch 4 implements MEM_PREPARE_ONLINE/MEM_FINISH_OFFLINE memory notifiers
      on s390.  MEM_PREPARE_ONLINE memory notifier makes memory block physical
      accessible via sclp assign command.  The notifier ensures self-contained
      memory maps are accessible and hence enabling the "memmap on memory" on
      s390.  MEM_FINISH_OFFLINE memory notifier shifts the memory block to an
      inaccessible state via sclp unassign command.
      
      Patch 5 finally enables MHP_MEMMAP_ON_MEMORY on s390.
      
      
      This patch (of 5):
      
      Introduce MEM_PREPARE_ONLINE/MEM_FINISH_OFFLINE memory notifiers to
      prepare the transition of memory to and from a physically accessible
      state.  This enhancement is crucial for implementing the "memmap on
      memory" feature for s390 in a subsequent patch.
      
      Platforms such as x86 can support physical memory hotplug via ACPI.  When
      there is physical memory hotplug, ACPI event leads to the memory addition
      with the following callchain:
      
      acpi_memory_device_add()
        -> acpi_memory_enable_device()
           -> __add_memory()
      
      After this, the hotplugged memory is physically accessible, and altmap
      support prepared, before the "memmap on memory" initialization in
      memory_block_online() is called.
      
      On s390, memory hotplug works in a different way.  The available hotplug
      memory has to be defined upfront in the hypervisor, but it is made
      physically accessible only when the user sets it online via sysfs,
      currently in the MEM_GOING_ONLINE notifier.  This is too late and "memmap
      on memory" initialization is performed before calling MEM_GOING_ONLINE
      notifier.
      
      During the memory hotplug addition phase, altmap support is prepared and
      during the memory onlining phase s390 requires memory to be physically
      accessible and then subsequently initiate the "memmap on memory"
      initialization process.
      
      The memory provider will handle new MEM_PREPARE_ONLINE /
      MEM_FINISH_OFFLINE notifications and make the memory accessible.
      
      The mhp_flag MHP_OFFLINE_INACCESSIBLE is introduced and is relevant when
      used along with MHP_MEMMAP_ON_MEMORY, because the altmap cannot be written
      (e.g., poisoned) when adding memory -- before it is set online.  This
      allows for adding memory with an altmap that is not currently made
      available by a hypervisor.  When onlining that memory, the hypervisor can
      be instructed to make that memory accessible via the new notifiers and the
      onlining phase will not require any memory allocations, which is helpful
      in low-memory situations.
      
      All architectures ignore unknown memory notifiers.  Therefore, the
      introduction of these new notifiers does not result in any functional
      modifications across architectures.
      
      Link: https://lkml.kernel.org/r/20240108132747.3238763-1-sumanthk@linux.ibm.com
      Link: https://lkml.kernel.org/r/20240108132747.3238763-2-sumanthk@linux.ibm.comSigned-off-by: default avatarSumanth Korikkar <sumanthk@linux.ibm.com>
      Suggested-by: default avatarGerald Schaefer <gerald.schaefer@linux.ibm.com>
      Suggested-by: default avatarDavid Hildenbrand <david@redhat.com>
      Acked-by: default avatarDavid Hildenbrand <david@redhat.com>
      Cc: Alexander Gordeev <agordeev@linux.ibm.com>
      Cc: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
      Cc: Anshuman Khandual <anshuman.khandual@arm.com>
      Cc: Heiko Carstens <hca@linux.ibm.com>
      Cc: Michal Hocko <mhocko@suse.com>
      Cc: Oscar Salvador <osalvador@suse.de>
      Cc: Vasily Gorbik <gor@linux.ibm.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      c5f1e2d1
    • Sidhartha Kumar's avatar
      maple_tree: fix comment describing mas_node_count_gfp() · e755c43e
      Sidhartha Kumar authored
      The function description comment for mas_node_count_gfp() mistakingly
      refers to the function as mas_node_count().  Change it to refer to the
      correct function.
      
      Link: https://lkml.kernel.org/r/20240109223119.162357-1-sidhartha.kumar@oracle.comSigned-off-by: default avatarSidhartha Kumar <sidhartha.kumar@oracle.com>
      Reviewed-by: default avatarLiam R. Howlett <Liam.Howlett@oracle.com>
      Cc: Peng Zhang <zhangpeng.00@bytedance.com>
      Cc: Sidhartha Kumar <sidhartha.kumar@oracle.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      e755c43e
    • Kalesh Singh's avatar
      mm/cma: fix placement of trace_cma_alloc_start/finish · 51ae3f4a
      Kalesh Singh authored
      The current placement of trace_cma_alloc_start/finish misses the fail
      cases: !cma || !cma->count || !cma->bitmap.
      
      trace_cma_alloc_finish is also not emitted for the failure case
      where bitmap_count > bitmap_maxno.
      
      Fix these missed cases by moving the start event before the failure
      checks and moving the finish event to the out label.
      
      Link: https://lkml.kernel.org/r/20240110012234.3793639-1-kaleshsingh@google.com
      Fixes: 7bc1aec5 ("mm: cma: add trace events for CMA alloc perf testing")
      Signed-off-by: default avatarKalesh Singh <kaleshsingh@google.com>
      Cc: Minchan Kim <minchan@kernel.org>
      Cc: Liam Mark <lmark@codeaurora.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      51ae3f4a
  2. 20 Feb, 2024 14 commits
  3. 18 Feb, 2024 6 commits
    • Linus Torvalds's avatar
      Linux 6.8-rc5 · b401b621
      Linus Torvalds authored
      b401b621
    • Linus Torvalds's avatar
      Merge tag 'kbuild-fixes-v6.8-2' of... · 6c160f16
      Linus Torvalds authored
      Merge tag 'kbuild-fixes-v6.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
      
      Pull Kbuild fixes from Masahiro Yamada:
      
       - Reformat nested if-conditionals in Makefiles with 4 spaces
      
       - Fix CONFIG_DEBUG_INFO_BTF builds for big endian
      
       - Fix modpost for module srcversion
      
       - Fix an escape sequence warning in gen_compile_commands.py
      
       - Fix kallsyms to ignore ARMv4 thunk symbols
      
      * tag 'kbuild-fixes-v6.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        kallsyms: ignore ARMv4 thunks along with others
        modpost: trim leading spaces when processing source files list
        gen_compile_commands: fix invalid escape sequence warning
        kbuild: Fix changing ELF file type for output of gen_btf for big endian
        docs: kconfig: Fix grammar and formatting
        kbuild: use 4-space indentation when followed by conditionals
      6c160f16
    • Linus Torvalds's avatar
      Merge tag 'x86_urgent_for_v6.8_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · ddac3d8b
      Linus Torvalds authored
      Pull x86 fix from Borislav Petkov:
      
       - Use a GB page for identity mapping only when memory of this size is
         requested so that mapping of reserved regions is prevented which
         would otherwise lead to system crashes on UV machines
      
      * tag 'x86_urgent_for_v6.8_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/mm/ident_map: Use gbpages only where full GB page should be mapped.
      ddac3d8b
    • Linus Torvalds's avatar
      Merge tag 'irq_urgent_for_v6.8_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 7cb7c32d
      Linus Torvalds authored
      Pull irq fixes from Borislav Petkov:
      
       - Fix GICv4.1 affinity update
      
       - Restore a quirk for ACPI-based GICv4 systems
      
       - Handle non-coherent GICv4 redistributors properly
      
       - Prevent spurious interrupts on Broadcom devices using GIC v3
         architecture
      
       - Other minor fixes
      
      * tag 'irq_urgent_for_v6.8_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        irqchip/gic-v3-its: Fix GICv4.1 VPE affinity update
        irqchip/gic-v3-its: Restore quirk probing for ACPI-based systems
        irqchip/gic-v3-its: Handle non-coherent GICv4 redistributors
        irqchip/qcom-mpm: Fix IS_ERR() vs NULL check in qcom_mpm_init()
        irqchip/loongson-eiointc: Use correct struct type in eiointc_domain_alloc()
        irqchip/irq-brcmstb-l2: Add write memory barrier before exit
      7cb7c32d
    • Linus Torvalds's avatar
      Merge tag 'i2c-for-6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · 626721ed
      Linus Torvalds authored
      Pull i2c fixes from Wolfram Sang:
       "Two fixes for i801 and qcom-geni devices. Meanwhile, a fix from Arnd
        addresses a compilation error encountered during compile test on
        powerpc"
      
      * tag 'i2c-for-6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
        i2c: i801: Fix block process call transactions
        i2c: pasemi: split driver into two separate modules
        i2c: qcom-geni: Correct I2C TRE sequence
      626721ed
    • Linus Torvalds's avatar
      Merge tag 'powerpc-6.8-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · c02197fc
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
       "This is a bit of a big batch for rc4, but just due to holiday hangover
        and because I didn't send any fixes last week due to a late revert
        request. I think next week should be back to normal.
      
         - Fix ftrace bug on boot caused by exit text sections with
           '-fpatchable-function-entry'
      
         - Fix accuracy of stolen time on pseries since the switch to
           VIRT_CPU_ACCOUNTING_GEN
      
         - Fix a crash in the IOMMU code when doing DLPAR remove
      
         - Set pt_regs->link on scv entry to fix BPF stack unwinding
      
         - Add missing PPC_FEATURE_BOOKE on 64-bit e5500/e6500, which broke
           gdb
      
         - Fix boot on some 6xx platforms with STRICT_KERNEL_RWX enabled
      
         - Fix build failures with KASAN enabled and 32KB stack size
      
         - Some other minor fixes
      
        Thanks to Arnd Bergmann, Benjamin Gray, Christophe Leroy, David
        Engraf, Gaurav Batra, Jason Gunthorpe, Jiangfeng Xiao, Matthias
        Schiffer, Nathan Lynch, Naveen N Rao, Nicholas Piggin, Nysal Jan K.A,
        R Nageswara Sastry, Shivaprasad G Bhat, Shrikanth Hegde, Spoorthy,
        Srikar Dronamraju, and Venkat Rao Bagalkote"
      
      * tag 'powerpc-6.8-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/iommu: Fix the missing iommu_group_put() during platform domain attach
        powerpc/pseries: fix accuracy of stolen time
        powerpc/ftrace: Ignore ftrace locations in exit text sections
        powerpc/cputable: Add missing PPC_FEATURE_BOOKE on PPC64 Book-E
        powerpc/kasan: Limit KASAN thread size increase to 32KB
        Revert "powerpc/pseries/iommu: Fix iommu initialisation during DLPAR add"
        powerpc: 85xx: mark local functions static
        powerpc: udbg_memcons: mark functions static
        powerpc/kasan: Fix addr error caused by page alignment
        powerpc/6xx: set High BAT Enable flag on G2_LE cores
        selftests/powerpc/papr_vpd: Check devfd before get_system_loc_code()
        powerpc/64: Set task pt_regs->link to the LR value on scv entry
        powerpc/pseries/iommu: Fix iommu initialisation during DLPAR add
        powerpc/pseries/papr-sysparm: use u8 arrays for payloads
      c02197fc
  4. 17 Feb, 2024 7 commits
    • Linus Torvalds's avatar
      Merge tag 'bcachefs-2024-02-17' of https://evilpiepirate.org/git/bcachefs · f2667e0c
      Linus Torvalds authored
      Pull bcachefs fixes from Kent Overstreet:
       "Mostly pretty trivial, the user visible ones are:
      
         - don't barf when replicas_required > replicas
      
         - fix check_version_upgrade() so it doesn't do something nonsensical
           when we're downgrading"
      
      * tag 'bcachefs-2024-02-17' of https://evilpiepirate.org/git/bcachefs:
        bcachefs: Fix missing va_end()
        bcachefs: Fix check_version_upgrade()
        bcachefs: Clamp replicas_required to replicas
        bcachefs: fix missing endiannes conversion in sb_members
        bcachefs: fix kmemleak in __bch2_read_super error handling path
        bcachefs: Fix missing bch2_err_class() calls
      f2667e0c
    • Linus Torvalds's avatar
      Merge tag 'driver-core-6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core · ced59052
      Linus Torvalds authored
      Pull driver core fixes from Greg KH:
       "Here are some driver core fixes, a kobject fix, and a documentation
        update for 6.8-rc5. In detail these changes are:
      
         - devlink fixes for reported issues with 6.8-rc1
      
         - topology scheduling regression fix that has been reported by many
      
         - kobject loosening of checks change in -rc1 is now reverted as some
           codepaths seemed to need the checks
      
         - documentation update for the CVE process. Has been reviewed by
           many, the last minute change to the document was to bring the .rst
           format back into the the new style rules, the contents did not
           change.
      
        All of these, except for the documentation update, have been in
        linux-next for over a week. The documentation update has been reviewed
        for weeks by a group of developers, and in public for a week and the
        wording has stabilized for now. If future changes are needed, we can
        do so before 6.8-final is out (or anytime after that)"
      
      * tag 'driver-core-6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
        Documentation: Document the Linux Kernel CVE process
        Revert "kobject: Remove redundant checks for whether ktype is NULL"
        driver core: fw_devlink: Improve logs for cycle detection
        driver core: fw_devlink: Improve detection of overlapping cycles
        driver core: Fix device_link_flag_is_sync_state_only()
        topology: Set capacity_freq_ref in all cases
      ced59052
    • Linus Torvalds's avatar
      Merge tag 'char-misc-6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · 7efc0eb8
      Linus Torvalds authored
      Pull char / miscdriver fixes from Greg KH:
       "Here is a small set of char/misc and IIO driver fixes for 6.8-rc5.
      
        Included in here are:
      
         - lots of iio driver fixes for reported issues
      
         - nvmem device naming fixup for reported problem
      
         - interconnect driver fixes for reported issues
      
        All of these have been in linux-next for a while with no reported the
        issues (the nvmem patch was included in a different branch in
        linux-next before sent to me for inclusion here)"
      
      * tag 'char-misc-6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (21 commits)
        nvmem: include bit index in cell sysfs file name
        iio: adc: ad4130: only set GPIO_CTRL if pin is unused
        iio: adc: ad4130: zero-initialize clock init data
        interconnect: qcom: x1e80100: Add missing ACV enable_mask
        interconnect: qcom: sm8650: Use correct ACV enable_mask
        iio: accel: bma400: Fix a compilation problem
        iio: commom: st_sensors: ensure proper DMA alignment
        iio: hid-sensor-als: Return 0 for HID_USAGE_SENSOR_TIME_TIMESTAMP
        iio: move LIGHT_UVA and LIGHT_UVB to the end of iio_modifier
        staging: iio: ad5933: fix type mismatch regression
        iio: humidity: hdc3020: fix temperature offset
        iio: adc: ad7091r8: Fix error code in ad7091r8_gpio_setup()
        iio: adc: ad_sigma_delta: ensure proper DMA alignment
        iio: imu: adis: ensure proper DMA alignment
        iio: humidity: hdc3020: Add Makefile, Kconfig and MAINTAINERS entry
        iio: imu: bno055: serdev requires REGMAP
        iio: magnetometer: rm3100: add boundary check for the value read from RM3100_REG_TMRC
        iio: pressure: bmp280: Add missing bmp085 to SPI id table
        iio: core: fix memleak in iio_device_register_sysfs
        interconnect: qcom: sm8550: Enable sync_state
        ...
      7efc0eb8
    • Linus Torvalds's avatar
      Merge tag 'tty-6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · 4b2981b2
      Linus Torvalds authored
      Pull tty / serial fixes from Greg KH:
       "Here are three small tty and serial driver fixes for 6.8-rc5:
      
         - revert a 8250_pci1xxxx off-by-one change that was incorrect
      
         - two changes to fix the transmit path of the mxs-auart driver,
           fixing a regression in the 6.2 release
      
        All of these have been in linux-next for over a week with no reported
        issues"
      
      * tag 'tty-6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        serial: mxs-auart: fix tx
        serial: core: introduce uart_port_tx_flags()
        serial: 8250_pci1xxxx: partially revert off by one patch
      4b2981b2
    • Linus Torvalds's avatar
      Merge tag 'usb-6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · a3a7d162
      Linus Torvalds authored
      Pull USB / Thunderbolt fixes from Greg KH:
       "Here are two small fixes for 6.8-rc5:
      
         - thunderbolt to fix a reported issue on many platforms
      
         - dwc3 driver revert of a commit that caused problems in -rc1
      
        Both of these changes have been in linux-next for over a week with no
        reported issues"
      
      * tag 'usb-6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
        Revert "usb: dwc3: Support EBC feature of DWC_usb31"
        thunderbolt: Fix setting the CNS bit in ROUTER_CS_5
      a3a7d162
    • Linus Torvalds's avatar
      Merge tag 'media/v6.8-4' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media · ac00b654
      Linus Torvalds authored
      Pull media fixes from Mauro Carvalho Chehab:
      
       - regression fix for rkisp1 shared IRQ logic
      
       - fix atomisp breakage due to a kAPI change
      
       - permission fix for remote controller BPF support
      
       - memleak fix in ir_toy driver
      
       - Kconfig dependency fix for pwm-ir-rx
      
      * tag 'media/v6.8-4' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
        media: pwm-ir-tx: Depend on CONFIG_HIGH_RES_TIMERS
        media: ir_toy: fix a memleak in irtoy_tx
        media: rc: bpf attach/detach requires write permission
        media: atomisp: Adjust for v4l2_subdev_state handling changes in 6.8
        media: rkisp1: Fix IRQ handling due to shared interrupts
        media: Revert "media: rkisp1: Drop IRQF_SHARED"
      ac00b654
    • Linus Torvalds's avatar
      Merge tag 'pci-v6.8-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci · 4a757148
      Linus Torvalds authored
      Pull pci fixes from Bjorn Helgaas:
      
       - Keep bridges in D0 if we need to poll downstream devices for PME to
         resolve a v6.6 regression where we failed to enumerate devices below
         bridges put in D3hot by runtime PM, e.g., NVMe drives connected via
         Thunderbolt or USB4 docks (Alex Williamson)
      
       - Add Siddharth Vadapalli as PCI TI DRA7XX/J721E reviewer
      
      * tag 'pci-v6.8-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci:
        MAINTAINERS: Add Siddharth Vadapalli as PCI TI DRA7XX/J721E reviewer
        PCI: Fix active state requirement in PME polling
      4a757148