1. 31 Dec, 2022 2 commits
  2. 30 Dec, 2022 13 commits
    • Linus Torvalds's avatar
      Merge tag 'acpi-6.2-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · c8451c14
      Linus Torvalds authored
      Pull ACPI fixes from Rafael Wysocki:
       "These are new ACPI IRQ override quirks, low-power S0 idle (S0ix)
        support adjustments and ACPI backlight handling fixes, mostly for
        platforms using AMD chips.
      
        Specifics:
      
         - Add ACPI IRQ override quirks for Asus ExpertBook B2502, Lenovo
           14ALC7, and XMG Core 15 (Hans de Goede, Adrian Freund, Erik
           Schumacher).
      
         - Adjust ACPI video detection fallback path to prevent
           non-operational ACPI backlight devices from being created on
           systems where the native driver does not detect a suitable panel
           (Mario Limonciello).
      
         - Fix Apple GMUX backlight detection (Hans de Goede).
      
         - Add a low-power S0 idle (S0ix) handling quirk for HP Elitebook 865
           and stop using AMD-specific low-power S0 idle code path for systems
           with Rembrandt chips and newer (Mario Limonciello)"
      
      * tag 'acpi-6.2-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: x86: s2idle: Stop using AMD specific codepath for Rembrandt+
        ACPI: x86: s2idle: Force AMD GUID/_REV 2 on HP Elitebook 865
        ACPI: video: Fix Apple GMUX backlight detection
        ACPI: resource: Add Asus ExpertBook B2502 to Asus quirks
        ACPI: resource: do IRQ override on Lenovo 14ALC7
        ACPI: resource: do IRQ override on XMG Core 15
        ACPI: video: Don't enable fallback path for creating ACPI backlight by default
        drm/amd/display: Report to ACPI video if no panels were found
        ACPI: video: Allow GPU drivers to report no panels
      c8451c14
    • Linus Torvalds's avatar
      Merge tag 'sound-6.2-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 262eef26
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "Just a few small fixes:
      
         - A regression fix for HDMI audio on HD-audio AMD codecs
      
         - Fixes for LINE6 MIDI handling
      
         - HD-audio quirk for Dell laptops"
      
      * tag 'sound-6.2-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ALSA: hda/hdmi: Static PCM mapping again with AMD HDMI codecs
        ALSA: hda/realtek: Apply dual codec fixup for Dell Latitude laptops
        ALSA: line6: fix stack overflow in line6_midi_transmit
        ALSA: line6: correct midi status byte when receiving data from podxt
      262eef26
    • Rafael J. Wysocki's avatar
      Merge branches 'acpi-resource' and 'acpi-video' · 0948a9ef
      Rafael J. Wysocki authored
      Merge ACPI resource handling quirks and ACPI backlight handling fixes
      for 6.2-rc2:
      
       - Add ACPI IRQ override quirks for Asus ExpertBook B2502, Lenovo
         14ALC7, and XMG Core 15 (Hans de Goede, Adrian Freund,  Erik
         Schumacher).
      
       - Adjust ACPI video detection fallback path to prevent non-operational
         ACPI backlight devices from being created on systems where the native
         driver does not detect a suitable panel (Mario Limonciello).
      
       - Fix Apple GMUX backlight detection (Hans de Goede).
      
      * acpi-resource:
        ACPI: resource: Add Asus ExpertBook B2502 to Asus quirks
        ACPI: resource: do IRQ override on Lenovo 14ALC7
        ACPI: resource: do IRQ override on XMG Core 15
      
      * acpi-video:
        ACPI: video: Fix Apple GMUX backlight detection
        ACPI: video: Don't enable fallback path for creating ACPI backlight by default
        drm/amd/display: Report to ACPI video if no panels were found
        ACPI: video: Allow GPU drivers to report no panels
      0948a9ef
    • Masahiro Yamada's avatar
      fixdep: remove unneeded <stdarg.h> inclusion · 6a5e25fc
      Masahiro Yamada authored
      This is unneeded since commit 69304379 ("fixdep: use fflush() and
      ferror() to ensure successful write to files").
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      6a5e25fc
    • Masahiro Yamada's avatar
      kbuild: sort single-targets alphabetically again · aa4847db
      Masahiro Yamada authored
      This was previously alphabetically sorted. Sort it again.
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Reviewed-by: default avatarMiguel Ojeda <ojeda@kernel.org>
      Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
      aa4847db
    • Masahiro Yamada's avatar
      kbuild: rpm-pkg: add libelf-devel as alternative for BuildRequires · 02a893bc
      Masahiro Yamada authored
      Guoqing Jiang reports that openSUSE cannot compile the kernel rpm due
      to "BuildRequires: elfutils-libelf-devel" added by commit 8818039f
      ("kbuild: add ability to make source rpm buildable using koji").
      The relevant package name in openSUSE is libelf-devel.
      
      Add it as an alternative package.
      
      BTW, if it is impossible to solve the build requirement, the final
      resort would be:
      
          $ make RPMOPTS=--nodeps rpm-pkg
      
      This passes --nodeps to the rpmbuild command so it will not verify
      build dependencies. This is useful to test rpm builds on non-rpm
      system. On Debian/Ubuntu, for example, you can install rpmbuild by
      'apt-get install rpm'.
      
      NOTE1:
        Likewise, it is possible to bypass the build dependency check for
        debian package builds:
      
          $ make DPKG_FLAGS=-d deb-pkg
      
      NOTE2:
        The 'or' operator is supported since RPM 4.13. So, old distros such
        as CentOS 7 will break. I suggest installing newer rpmbuild in such
        cases.
      
      Link: https://lore.kernel.org/linux-kbuild/ee227d24-9c94-bfa3-166a-4ee6b5dfea09@linux.dev/T/#u
      Fixes: 8818039f ("kbuild: add ability to make source rpm buildable using koji")
      Reported-by: default avatarGuoqing Jiang <guoqing.jiang@linux.dev>
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
      Tested-by: default avatarGuoqing Jiang <guoqing.jiang@linux.dev>
      Acked-by: default avatarJonathan Toppins <jtoppins@redhat.com>
      02a893bc
    • Samuel Holland's avatar
      kbuild: Fix running modpost with musl libc · 63ffe00d
      Samuel Holland authored
      commit 3d57e1b7 ("kbuild: refactor the prerequisites of the modpost
      rule") moved 'vmlinux.o' inside modpost-args, possibly before some of
      the other options. However, getopt() in musl libc follows POSIX and
      stops looking for options upon reaching the first non-option argument.
      As a result, the '-T' option is misinterpreted as a positional argument,
      and the build fails:
      
        make -f ./scripts/Makefile.modpost
           scripts/mod/modpost   -E   -o Module.symvers vmlinux.o -T modules.order
        -T: No such file or directory
        make[1]: *** [scripts/Makefile.modpost:137: Module.symvers] Error 1
        make: *** [Makefile:1960: modpost] Error 2
      
      The fix is to move all options before 'vmlinux.o' in modpost-args.
      
      Fixes: 3d57e1b7 ("kbuild: refactor the prerequisites of the modpost rule")
      Signed-off-by: default avatarSamuel Holland <samuel@sholland.org>
      Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      63ffe00d
    • Jun ASAKA's avatar
      kbuild: add a missing line for help message · 9c9b55a5
      Jun ASAKA authored
      The help message line for building the source RPM package was missing.
      Added it.
      Signed-off-by: default avatarJun ASAKA <JunASAKA@zzy040330.moe>
      Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      9c9b55a5
    • Masahiro Yamada's avatar
      .gitignore: ignore *.rpm · 924d28b3
      Masahiro Yamada authored
      Previously, *.rpm files were created under $HOME/rpmbuild/, but since
      commit 8818039f ("kbuild: add ability to make source rpm buildable
      using koji"), srcrpm-pkg creates the source rpm in the kernel tree
      because it sets '_srcrpmdir'.
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      924d28b3
    • Masahiro Yamada's avatar
      arch: fix broken BuildID for arm64 and riscv · 99cb0d91
      Masahiro Yamada authored
      Dennis Gilmore reports that the BuildID is missing in the arm64 vmlinux
      since commit 994b7ac1 ("arm64: remove special treatment for the
      link order of head.o").
      
      The issue is that the type of .notes section, which contains the BuildID,
      changed from NOTES to PROGBITS.
      
      Ard Biesheuvel figured out that whichever object gets linked first gets
      to decide the type of a section. The PROGBITS type is the result of the
      compiler emitting .note.GNU-stack as PROGBITS rather than NOTE.
      
      While Ard provided a fix for arm64, I want to fix this globally because
      the same issue is happening on riscv since commit 2348e6bf ("riscv:
      remove special treatment for the link order of head.o"). This problem
      will happen in general for other architectures if they start to drop
      unneeded entries from scripts/head-object-list.txt.
      
      Discard .note.GNU-stack in include/asm-generic/vmlinux.lds.h.
      
      Link: https://lore.kernel.org/lkml/CAABkxwuQoz1CTbyb57n0ZX65eSYiTonFCU8-LCQc=74D=xE=rA@mail.gmail.com/
      Fixes: 994b7ac1 ("arm64: remove special treatment for the link order of head.o")
      Fixes: 2348e6bf ("riscv: remove special treatment for the link order of head.o")
      Reported-by: default avatarDennis Gilmore <dennis@ausil.us>
      Suggested-by: default avatarArd Biesheuvel <ardb@kernel.org>
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Acked-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
      99cb0d91
    • Linus Torvalds's avatar
      Merge tag 'block-6.2-2022-12-29' of git://git.kernel.dk/linux · bff687b3
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
       "Mostly just NVMe, but also a single fixup for BFQ for a regression
        that happened during the merge window. In detail:
      
         - NVMe pull requests via Christoph:
            - Fix doorbell buffer value endianness (Klaus Jensen)
            - Fix Linux vs NVMe page size mismatch (Keith Busch)
            - Fix a potential use memory access beyong the allocation limit
              (Keith Busch)
            - Fix a multipath vs blktrace NULL pointer dereference (Yanjun
              Zhang)
            - Fix various problems in handling the Command Supported and
              Effects log (Christoph Hellwig)
            - Don't allow unprivileged passthrough of commands that don't
              transfer data but modify logical block content (Christoph
              Hellwig)
            - Add a features and quirks policy document (Christoph Hellwig)
            - Fix some really nasty code that was correct but made smatch
              complain (Sagi Grimberg)
      
         - Use-after-free regression in BFQ from this merge window (Yu)"
      
      * tag 'block-6.2-2022-12-29' of git://git.kernel.dk/linux:
        nvme-auth: fix smatch warning complaints
        nvme: consult the CSE log page for unprivileged passthrough
        nvme: also return I/O command effects from nvme_command_effects
        nvmet: don't defer passthrough commands with trivial effects to the workqueue
        nvmet: set the LBCC bit for commands that modify data
        nvmet: use NVME_CMD_EFFECTS_CSUPP instead of open coding it
        nvme: fix the NVME_CMD_EFFECTS_CSE_MASK definition
        docs, nvme: add a feature and quirk policy document
        nvme-pci: update sqsize when adjusting the queue depth
        nvme: fix setting the queue depth in nvme_alloc_io_tag_set
        block, bfq: fix uaf for bfqq in bfq_exit_icq_bfqq
        nvme: fix multipath crash caused by flush request when blktrace is enabled
        nvme-pci: fix page size checks
        nvme-pci: fix mempool alloc size
        nvme-pci: fix doorbell buffer value endianness
      bff687b3
    • Linus Torvalds's avatar
      Merge tag 'io_uring-6.2-2022-12-29' of git://git.kernel.dk/linux · ac787ffa
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
      
       - Two fixes for mutex grabbing when the task state is != TASK_RUNNING
         (me)
      
       - Check for invalid opcode in io_uring_register() a bit earlier, to
         avoid going through the quiesce machinery just to return -EINVAL
         later in the process (me)
      
       - Fix for the uapi io_uring header, skipping including time_types.h
         when necessary (Stefan)
      
      * tag 'io_uring-6.2-2022-12-29' of git://git.kernel.dk/linux:
        uapi:io_uring.h: allow linux/time_types.h to be skipped
        io_uring: check for valid register opcode earlier
        io_uring/cancel: re-grab ctx mutex after finishing wait
        io_uring: finish waiting before flushing overflow entries
      ac787ffa
    • Linus Torvalds's avatar
      Merge tag 'linux-kselftest-kunit-fixes-6.2-rc2' of... · 69fb073b
      Linus Torvalds authored
      Merge tag 'linux-kselftest-kunit-fixes-6.2-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
      
      Pull KUnit fix from Shuah Khan:
      
       - alloc_string_stream_fragment() error path fix to free before
         returning a failure.
      
      * tag 'linux-kselftest-kunit-fixes-6.2-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
        kunit: alloc_string_stream_fragment error handling bug fix
      69fb073b
  3. 29 Dec, 2022 3 commits
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 2258c2dc
      Linus Torvalds authored
      Pull kvm fixes from Paolo Bonzini:
       "Changes that were posted too late for 6.1, or after the release.
      
        x86:
      
         - several fixes to nested VMX execution controls
      
         - fixes and clarification to the documentation for Xen emulation
      
         - do not unnecessarily release a pmu event with zero period
      
         - MMU fixes
      
         - fix Coverity warning in kvm_hv_flush_tlb()
      
        selftests:
      
         - fixes for the ucall mechanism in selftests
      
         - other fixes mostly related to compilation with clang"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (41 commits)
        KVM: selftests: restore special vmmcall code layout needed by the harness
        Documentation: kvm: clarify SRCU locking order
        KVM: x86: fix deadlock for KVM_XEN_EVTCHN_RESET
        KVM: x86/xen: Documentation updates and clarifications
        KVM: x86/xen: Add KVM_XEN_INVALID_GPA and KVM_XEN_INVALID_GFN to uapi
        KVM: x86/xen: Simplify eventfd IOCTLs
        KVM: x86/xen: Fix SRCU/RCU usage in readers of evtchn_ports
        KVM: x86/xen: Use kvm_read_guest_virt() instead of open-coding it badly
        KVM: x86/xen: Fix memory leak in kvm_xen_write_hypercall_page()
        KVM: Delete extra block of "};" in the KVM API documentation
        kvm: x86/mmu: Remove duplicated "be split" in spte.h
        kvm: Remove the unused macro KVM_MMU_READ_{,UN}LOCK()
        MAINTAINERS: adjust entry after renaming the vmx hyperv files
        KVM: selftests: Mark correct page as mapped in virt_map()
        KVM: arm64: selftests: Don't identity map the ucall MMIO hole
        KVM: selftests: document the default implementation of vm_vaddr_populate_bitmap
        KVM: selftests: Use magic value to signal ucall_alloc() failure
        KVM: selftests: Disable "gnu-variable-sized-type-not-at-end" warning
        KVM: selftests: Include lib.mk before consuming $(CC)
        KVM: selftests: Explicitly disable builtins for mem*() overrides
        ...
      2258c2dc
    • Jens Axboe's avatar
      Merge tag 'nvme-6.2-2022-12-29' of git://git.infradead.org/nvme into block-6.2 · 1551ed5a
      Jens Axboe authored
      Pull NVMe fixes from Christoph:
      
      "nvme fixes for Linux 6.2
      
       - fix various problems in handling the Command Supported and Effects log
         (Christoph Hellwig)
       - don't allow unprivileged passthrough of commands that don't transfer
         data but modify logical block content (Christoph Hellwig)
       - add a features and quirks policy document (Christoph Hellwig)
       - fix some really nasty code that was correct but made smatch complain
         (Sagi Grimberg)"
      
      * tag 'nvme-6.2-2022-12-29' of git://git.infradead.org/nvme:
        nvme-auth: fix smatch warning complaints
        nvme: consult the CSE log page for unprivileged passthrough
        nvme: also return I/O command effects from nvme_command_effects
        nvmet: don't defer passthrough commands with trivial effects to the workqueue
        nvmet: set the LBCC bit for commands that modify data
        nvmet: use NVME_CMD_EFFECTS_CSUPP instead of open coding it
        nvme: fix the NVME_CMD_EFFECTS_CSE_MASK definition
        docs, nvme: add a feature and quirk policy document
      1551ed5a
    • Bhaskar Chowdhury's avatar
      kconfig: Add static text for search information in help menu · da8daff9
      Bhaskar Chowdhury authored
      Add few static text to explain how one can bring up the search dialog
      box by pressing the forward slash key anywhere on this interface.
      Signed-off-by: default avatarBhaskar Chowdhury <unixbhaskar@gmail.com>
      Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      da8daff9
  4. 28 Dec, 2022 13 commits
  5. 27 Dec, 2022 9 commits