1. 14 May, 2024 14 commits
  2. 13 May, 2024 1 commit
    • Linus Torvalds's avatar
      Merge tag 's390-6.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · d65e1a0f
      Linus Torvalds authored
      Pull s390 updates from Alexander Gordeev:
      
       - Store AP Query Configuration Information in a static buffer
      
       - Rework the AP initialization and add missing cleanups to the error
         path
      
       - Swap IRQ and AP bus/device registration to avoid race conditions
      
       - Export prot_virt_guest symbol
      
       - Introduce AP configuration changes notifier interface to facilitate
         modularization of the AP bus
      
       - Add CONFIG_AP kernel configuration option to allow modularization of
         the AP bus
      
       - Rework CONFIG_ZCRYPT_DEBUG kernel configuration option description
         and dependency and rename it to CONFIG_AP_DEBUG
      
       - Convert sprintf() and snprintf() to sysfs_emit() in CIO code
      
       - Adjust indentation of RELOCS command build step
      
       - Make crypto performance counters upward compatible
      
       - Convert make_page_secure() and gmap_make_secure() to use folio
      
       - Rework channel-utilization-block (CUB) handling in preparation of
         introducing additional CUBs
      
       - Use attribute groups to simplify registration, removal and extension
         of measurement-related channel-path sysfs attributes
      
       - Add a per-channel-path binary "ext_measurement" sysfs attribute that
         provides access to extended channel-path measurement data
      
       - Export measurement data for all channel-measurement-groups (CMG), not
         only for a specific ones. This enables support of new CMG data
         formats in userspace without the need for kernel changes
      
       - Add a per-channel-path sysfs attribute "speed_bps" that provides the
         operating speed in bits per second or 0 if the operating speed is not
         available
      
       - The CIO tracepoint subchannel-type field "st" is incorrectly set to
         the value of subchannel-enabled SCHIB "ena" field. Fix that
      
       - Do not forcefully limit vmemmap starting address to MAX_PHYSMEM_BITS
      
       - Consider the maximum physical address available to a DCSS segment
         (512GB) when memory layout is set up
      
       - Simplify the virtual memory layout setup by reducing the size of
         identity mapping vs vmemmap overlap
      
       - Swap vmalloc and Lowcore/Real Memory Copy areas in virtual memory.
         This will allow to place the kernel image next to kernel modules
      
       - Move everyting KASLR related from <asm/setup.h> to <asm/page.h>
      
       - Put virtual memory layout information into a structure to improve
         code generation
      
       - Currently __kaslr_offset is the kernel offset in both physical and
         virtual memory spaces. Uncouple these offsets to allow uncoupling of
         the addresses spaces
      
       - Currently the identity mapping base address is implicit and is always
         set to zero. Make it explicit by putting into __identity_base
         persistent boot variable and use it in proper context
      
       - Introduce .amode31 section start and end macros AMODE31_START and
         AMODE31_END
      
       - Introduce OS_INFO entries that do not reference any data in memory,
         but rather provide only values
      
       - Store virtual memory layout in OS_INFO. It is read out by
         makedumpfile, crash and other tools
      
       - Store virtual memory layout in VMCORE_INFO. It is read out by crash
         and other tools when /proc/kcore device is used
      
       - Create additional PT_LOAD ELF program header that covers kernel image
         only, so that vmcore tools could locate kernel text and data when
         virtual and physical memory spaces are uncoupled
      
       - Uncouple physical and virtual address spaces
      
       - Map kernel at fixed location when KASLR mode is disabled. The
         location is defined by CONFIG_KERNEL_IMAGE_BASE kernel configuration
         value.
      
       - Rework deployment of kernel image for both compressed and
         uncompressed variants as defined by CONFIG_KERNEL_UNCOMPRESSED kernel
         configuration value
      
       - Move .vmlinux.relocs section in front of the compressed kernel. The
         interim section rescue step is avoided as result
      
       - Correct modules thunk offset calculation when branch target is more
         than 2GB away
      
       - Kernel modules contain their own set of expoline thunks. Now that the
         kernel modules area is less than 4GB away from kernel expoline
         thunks, make modules use kernel expolines. Also make EXPOLINE_EXTERN
         the default if the compiler supports it
      
       - userfaultfd can insert shared zeropages into processes running VMs,
         but that is not allowed for s390. Fallback to allocating a fresh
         zeroed anonymous folio and insert that instead
      
       - Re-enable shared zeropages for non-PV and non-skeys KVM guests
      
       - Rename hex2bitmap() to ap_hex2bitmap() and export it for external use
      
       - Add ap_config sysfs attribute to provide the means for setting or
         displaying adapters, domains and control domains assigned to a
         vfio-ap mediated device in a single operation
      
       - Make vfio_ap_mdev_link_queue() ignore duplicate link requests
      
       - Add write support to ap_config sysfs attribute to allow atomic update
         a vfio-ap mediated device state
      
       - Document ap_config sysfs attribute
      
       - Function os_info_old_init() is expected to be called only from a
         regular kdump kernel. Enable it to be called from a stand-alone dump
         kernel
      
       - Address gcc -Warray-bounds warning and fix array size in struct
         os_info
      
       - s390 does not support SMBIOS, so drop unneeded CONFIG_DMI checks
      
       - Use unwinder instead of __builtin_return_address() with ftrace to
         prevent returning of undefined values
      
       - Sections .hash and .gnu.hash are only created when CONFIG_PIE_BUILD
         kernel is enabled. Drop these for the case CONFIG_PIE_BUILD is
         disabled
      
       - Compile kernel with -fPIC and link with -no-pie to allow kpatch
         feature always succeed and drop the whole CONFIG_PIE_BUILD
         option-enabled code
      
       - Add missing virt_to_phys() converter for VSIE facility and crypto
         control blocks
      
      * tag 's390-6.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: (54 commits)
        Revert "s390: Relocate vmlinux ELF data to virtual address space"
        KVM: s390: vsie: Use virt_to_phys for crypto control block
        s390: Relocate vmlinux ELF data to virtual address space
        s390: Compile kernel with -fPIC and link with -no-pie
        s390: vmlinux.lds.S: Drop .hash and .gnu.hash for !CONFIG_PIE_BUILD
        s390/ftrace: Use unwinder instead of __builtin_return_address()
        s390/pci: Drop unneeded reference to CONFIG_DMI
        s390/os_info: Fix array size in struct os_info
        s390/os_info: Initialize old os_info in standalone dump kernel
        docs: Update s390 vfio-ap doc for ap_config sysfs attribute
        s390/vfio-ap: Add write support to sysfs attr ap_config
        s390/vfio-ap: Ignore duplicate link requests in vfio_ap_mdev_link_queue
        s390/vfio-ap: Add sysfs attr, ap_config, to export mdev state
        s390/ap: Externalize AP bus specific bitmap reading function
        s390/mm: Re-enable the shared zeropage for !PV and !skeys KVM guests
        mm/userfaultfd: Do not place zeropages when zeropages are disallowed
        s390/expoline: Make modules use kernel expolines
        s390/nospec: Correct modules thunk offset calculation
        s390/boot: Do not rescue .vmlinux.relocs section
        s390/boot: Rework deployment of the kernel image
        ...
      d65e1a0f
  3. 12 May, 2024 5 commits
  4. 11 May, 2024 10 commits
  5. 10 May, 2024 10 commits
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2024-05-11' of https://gitlab.freedesktop.org/drm/kernel · cf87f46f
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "This should be the last set of fixes for 6.9, i915, xe and amdgpu are
        the bulk here, one of the previous nouveau fixes turned up an issue,
        so reverting it, otherwise one core and a couple of meson fixes.
      
        core:
         - fix connector debugging output
      
        i915:
         - Automate CCS Mode setting during engine resets
         - Fix audio time stamp programming for DP
         - Fix parsing backlight BDB data
      
        xe:
         - Fix use zero-length element array
         - Move more from system wq to ordered private wq
         - Do not ignore return for drmm_mutex_init
      
        amdgpu:
         - DCN 3.5 fix
         - MST DSC fixes
         - S0i3 fix
         - S4 fix
         - HDP MMIO mapping fix
         - Fix a regression in visible vram handling
      
        amdkfd:
         - Spatial partition fix
      
        meson:
         - dw-hdmi: power-up fixes
         - dw-hdmi: add badngap setting for g12
      
        nouveau:
         - revert SG_DEBUG fix that has a side effect"
      
      * tag 'drm-fixes-2024-05-11' of https://gitlab.freedesktop.org/drm/kernel:
        Revert "drm/nouveau/firmware: Fix SG_DEBUG error with nvkm_firmware_ctor()"
        drm/amdgpu: Fix comparison in amdgpu_res_cpu_visible
        drm/amdkfd: don't allow mapping the MMIO HDP page with large pages
        drm/xe: Use ordered WQ for G2H handler
        drm/xe/guc: Check error code when initializing the CT mutex
        drm/xe/ads: Use flexible-array
        Revert "drm/amdkfd: Add partition id field to location_id"
        dm/amd/pm: Fix problems with reboot/shutdown for some SMU 13.0.4/13.0.11 users
        drm/amd/display: MST DSC check for older devices
        drm/amd/display: Fix idle optimization checks for multi-display and dual eDP
        drm/amd/display: Fix DSC-re-computing
        drm/amd/display: Enable urgent latency adjustments for DCN35
        drm/connector: Add \n to message about demoting connector force-probes
        drm/i915/bios: Fix parsing backlight BDB data
        drm/i915/audio: Fix audio time stamp programming for DP
        drm/i915/gt: Automate CCS Mode setting during engine resets
        drm/meson: dw-hdmi: add bandgap setting for g12
        drm/meson: dw-hdmi: power up phy on device init
      cf87f46f
    • Linus Torvalds's avatar
      Merge tag 'mm-hotfixes-stable-2024-05-10-13-14' of... · c22c3e07
      Linus Torvalds authored
      Merge tag 'mm-hotfixes-stable-2024-05-10-13-14' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
      
      Pull MM fixes from Andrew Morton:
       "18 hotfixes, 7 of which are cc:stable.
      
        More fixups for this cycle's page_owner updates. And a few userfaultfd
        fixes. Otherwise, random singletons - see the individual changelogs
        for details"
      
      * tag 'mm-hotfixes-stable-2024-05-10-13-14' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm:
        mailmap: add entry for Barry Song
        selftests/mm: fix powerpc ARCH check
        mailmap: add entry for John Garry
        XArray: set the marks correctly when splitting an entry
        selftests/vDSO: fix runtime errors on LoongArch
        selftests/vDSO: fix building errors on LoongArch
        mm,page_owner: don't remove __GFP_NOLOCKDEP in add_stack_record_to_list
        fs/proc/task_mmu: fix uffd-wp confusion in pagemap_scan_pmd_entry()
        fs/proc/task_mmu: fix loss of young/dirty bits during pagemap scan
        mm/vmalloc: fix return value of vb_alloc if size is 0
        mm: use memalloc_nofs_save() in page_cache_ra_order()
        kmsan: compiler_types: declare __no_sanitize_or_inline
        lib/test_xarray.c: fix error assumptions on check_xa_multi_store_adv_add()
        tools: fix userspace compilation with new test_xarray changes
        MAINTAINERS: update URL's for KEYS/KEYRINGS_INTEGRITY and TPM DEVICE DRIVER
        mm: page_owner: fix wrong information in dump_page_owner
        maple_tree: fix mas_empty_area_rev() null pointer dereference
        mm/userfaultfd: reset ptes when close() for wr-protected ones
      c22c3e07
    • Dave Airlie's avatar
      Revert "drm/nouveau/firmware: Fix SG_DEBUG error with nvkm_firmware_ctor()" · a222a647
      Dave Airlie authored
      This reverts commit 52a6947b.
      
      This causes loading failures in
      [    0.367379] nouveau 0000:01:00.0: NVIDIA GP104 (134000a1)
      [    0.474499] nouveau 0000:01:00.0: bios: version 86.04.50.80.13
      [    0.474620] nouveau 0000:01:00.0: pmu: firmware unavailable
      [    0.474977] nouveau 0000:01:00.0: fb: 8192 MiB GDDR5
      [    0.484371] nouveau 0000:01:00.0: sec2(acr): mbox 00000001 00000000
      [    0.484377] nouveau 0000:01:00.0: sec2(acr):load: boot failed: -5
      [    0.484379] nouveau 0000:01:00.0: acr: init failed, -5
      [    0.484466] nouveau 0000:01:00.0: init failed with -5
      [    0.484468] nouveau: DRM-master:00000000:00000080: init failed with -5
      [    0.484470] nouveau 0000:01:00.0: DRM-master: Device allocation failed: -5
      [    0.485078] nouveau 0000:01:00.0: probe with driver nouveau failed with error -50
      
      I tried tracking it down but ran out of time this week, will revisit next week.
      Reported-by: default avatarDan Moulding <dan@danm.net>
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      a222a647
    • Dave Airlie's avatar
      Merge tag 'drm-misc-fixes-2024-05-10' of... · b61821bb
      Dave Airlie authored
      Merge tag 'drm-misc-fixes-2024-05-10' of https://gitlab.freedesktop.org/drm/misc/kernel into drm-fixes
      
      Short summary of fixes pull:
      
      core:
      - fix connector debugging output
      
      meson:
      - dw-hdmi: power-up fixes
      - dw-hdmi: add badngap setting for g12
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Thomas Zimmermann <tzimmermann@suse.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/20240510072027.GA9131@linux.fritz.box
      b61821bb
    • Linus Torvalds's avatar
      Merge tag 'gpio-fixes-for-v6.9' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux · cfb4be1a
      Linus Torvalds authored
      Pull gpio fixes from Bartosz Golaszewski:
       "Some last-minute fixes for this release from the GPIO subsystem.
      
        The first two address a regression in performance reported to me after
        the conversion to using SRCU in GPIOLIB that was merged during the
        v6.9 merge window. The second patch is not technically a fix but since
        after the first one we no longer need to use a per-descriptor SRCU
        struct, I think it's worth to simplify the code before it gets
        released on Sunday.
      
        The next two commits fix two memory issues: one use-after-free bug and
        one instance of possibly leaking kernel stack memory to user-space.
      
        Summary:
      
         - fix a performance regression in GPIO requesting and releasing after
           the conversion to SRCU
      
         - fix a use-after-free bug due to a race-condition
      
         - fix leaking stack memory to user-space in a GPIO uABI corner case"
      
      * tag 'gpio-fixes-for-v6.9' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
        gpiolib: cdev: fix uninitialised kfifo
        gpiolib: cdev: Fix use after free in lineinfo_changed_notify
        gpiolib: use a single SRCU struct for all GPIO descriptors
        gpiolib: fix the speed of descriptor label setting with SRCU
      cfb4be1a
    • Dave Airlie's avatar
      Merge tag 'amd-drm-fixes-6.9-2024-05-10' of... · 06fbf84f
      Dave Airlie authored
      Merge tag 'amd-drm-fixes-6.9-2024-05-10' of https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
      
      amd-drm-fixes-6.9-2024-05-10:
      
      amdgpu:
      - DCN 3.5 fix
      - MST DSC fixes
      - S0i3 fix
      - S4 fix
      - HDP MMIO mapping fix
      - Fix a regression in visible vram handling
      
      amdkfd:
      - Spatial partition fix
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Alex Deucher <alexander.deucher@amd.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20240510171110.1394940-1-alexander.deucher@amd.com
      06fbf84f
    • Barry Song's avatar
      mailmap: add entry for Barry Song · 672614a3
      Barry Song authored
      Include a .mailmap entry to synchronize with both my past and current
      emails.  Among them, three business mailboxes are dead.
      
      Link: https://lkml.kernel.org/r/20240506042009.10854-1-21cnbao@gmail.comSigned-off-by: default avatarBarry Song <v-songbaohua@oppo.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      672614a3
    • Michael Ellerman's avatar
      selftests/mm: fix powerpc ARCH check · 7e642344
      Michael Ellerman authored
      In commit 0518dbe9 ("selftests/mm: fix cross compilation with LLVM")
      the logic to detect the machine architecture in the Makefile was changed
      to use ARCH, and only fallback to uname -m if ARCH is unset.  However the
      tests of ARCH were not updated to account for the fact that ARCH is
      "powerpc" for powerpc builds, not "ppc64".
      
      Fix it by changing the checks to look for "powerpc", and change the
      uname -m logic to convert "ppc64.*" into "powerpc".
      
      With that fixed the following tests now build for powerpc again:
       * protection_keys
       * va_high_addr_switch
       * virtual_address_range
       * write_to_hugetlbfs
      
      Link: https://lkml.kernel.org/r/20240506115825.66415-1-mpe@ellerman.id.au
      Fixes: 0518dbe9 ("selftests/mm: fix cross compilation with LLVM")
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      Cc: Mark Brown <broonie@kernel.org>
      Cc: <stable@vger.kernel.org>	[6.4+]
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      7e642344
    • Linus Torvalds's avatar
      Merge tag 'block-6.9-20240510' of git://git.kernel.dk/linux · f4345f05
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
      
       - NVMe pull request via Keith:
           - nvme target fixes (Sagi, Dan, Maurizo)
           - new vendor quirk for broken MSI (Sean)
      
       - Virtual boundary fix for a regression in this merge window (Ming)
      
      * tag 'block-6.9-20240510' of git://git.kernel.dk/linux:
        nvmet-rdma: fix possible bad dereference when freeing rsps
        nvmet: prevent sprintf() overflow in nvmet_subsys_nsid_exists()
        nvmet: make nvmet_wq unbound
        nvmet-auth: return the error code to the nvmet_auth_ctrl_hash() callers
        nvme-pci: Add quirk for broken MSIs
        block: set default max segment size in case of virt_boundary
      f4345f05
    • Linus Torvalds's avatar
      Merge tag 'spi-fix-v6.9-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi · ed44935c
      Linus Torvalds authored
      Pull spi fixes from Mark Brown:
       "Two device specific fixes here, one avoiding glitches on chip select
        with the STM32 driver and one for incorrectly configured clocks on the
        Microchip QSPI controller"
      
      * tag 'spi-fix-v6.9-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
        spi: microchip-core-qspi: fix setting spi bus clock rate
        spi: stm32: enable controller before asserting CS
      ed44935c