1. 11 Nov, 2021 21 commits
    • Paolo Bonzini's avatar
      Merge branch 'kvm-sev-move-context' into kvm-master · 1f058331
      Paolo Bonzini authored
      Add support for AMD SEV and SEV-ES intra-host migration support.  Intra
      host migration provides a low-cost mechanism for userspace VMM upgrades.
      
      In the common case for intra host migration, we can rely on the normal
      ioctls for passing data from one VMM to the next. SEV, SEV-ES, and other
      confidential compute environments make most of this information opaque, and
      render KVM ioctls such as "KVM_GET_REGS" irrelevant.  As a result, we need
      the ability to pass this opaque metadata from one VMM to the next. The
      easiest way to do this is to leave this data in the kernel, and transfer
      ownership of the metadata from one KVM VM (or vCPU) to the next.  In-kernel
      hand off makes it possible to move any data that would be
      unsafe/impossible for the kernel to hand directly to userspace, and
      cannot be reproduced using data that can be handed to userspace.
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      1f058331
    • Peter Gonda's avatar
      selftest: KVM: Add intra host migration tests · 6a581508
      Peter Gonda authored
      Adds testcases for intra host migration for SEV and SEV-ES. Also adds
      locking test to confirm no deadlock exists.
      Signed-off-by: default avatarPeter Gonda <pgonda@google.com>
      Suggested-by: default avatarSean Christopherson <seanjc@google.com>
      Cc: Marc Orr <marcorr@google.com>
      Cc: Sean Christopherson <seanjc@google.com>
      Cc: David Rientjes <rientjes@google.com>
      Cc: Brijesh Singh <brijesh.singh@amd.com>
      Cc: Tom Lendacky <thomas.lendacky@amd.com>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: kvm@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Message-Id: <20211021174303.385706-6-pgonda@google.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      6a581508
    • Peter Gonda's avatar
      selftest: KVM: Add open sev dev helper · 7a6ab3cf
      Peter Gonda authored
      Refactors out open path support from open_kvm_dev_path_or_exit() and
      adds new helper for SEV device path.
      Signed-off-by: default avatarPeter Gonda <pgonda@google.com>
      Suggested-by: default avatarSean Christopherson <seanjc@google.com>
      Cc: Marc Orr <marcorr@google.com>
      Cc: Sean Christopherson <seanjc@google.com>
      Cc: David Rientjes <rientjes@google.com>
      Cc: Brijesh Singh <brijesh.singh@amd.com>
      Cc: Tom Lendacky <thomas.lendacky@amd.com>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: kvm@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Message-Id: <20211021174303.385706-5-pgonda@google.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      7a6ab3cf
    • Peter Gonda's avatar
      KVM: SEV: Add support for SEV-ES intra host migration · 0b020f5a
      Peter Gonda authored
      For SEV-ES to work with intra host migration the VMSAs, GHCB metadata,
      and other SEV-ES info needs to be preserved along with the guest's
      memory.
      Signed-off-by: default avatarPeter Gonda <pgonda@google.com>
      Reviewed-by: default avatarMarc Orr <marcorr@google.com>
      Cc: Marc Orr <marcorr@google.com>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Sean Christopherson <seanjc@google.com>
      Cc: David Rientjes <rientjes@google.com>
      Cc: Dr. David Alan Gilbert <dgilbert@redhat.com>
      Cc: Brijesh Singh <brijesh.singh@amd.com>
      Cc: Tom Lendacky <thomas.lendacky@amd.com>
      Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
      Cc: Wanpeng Li <wanpengli@tencent.com>
      Cc: Jim Mattson <jmattson@google.com>
      Cc: Joerg Roedel <joro@8bytes.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: kvm@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Message-Id: <20211021174303.385706-4-pgonda@google.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      0b020f5a
    • Peter Gonda's avatar
      KVM: SEV: Add support for SEV intra host migration · b5663931
      Peter Gonda authored
      For SEV to work with intra host migration, contents of the SEV info struct
      such as the ASID (used to index the encryption key in the AMD SP) and
      the list of memory regions need to be transferred to the target VM.
      This change adds a commands for a target VMM to get a source SEV VM's sev
      info.
      Signed-off-by: default avatarPeter Gonda <pgonda@google.com>
      Suggested-by: default avatarSean Christopherson <seanjc@google.com>
      Reviewed-by: default avatarMarc Orr <marcorr@google.com>
      Cc: Marc Orr <marcorr@google.com>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Sean Christopherson <seanjc@google.com>
      Cc: David Rientjes <rientjes@google.com>
      Cc: Dr. David Alan Gilbert <dgilbert@redhat.com>
      Cc: Brijesh Singh <brijesh.singh@amd.com>
      Cc: Tom Lendacky <thomas.lendacky@amd.com>
      Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
      Cc: Wanpeng Li <wanpengli@tencent.com>
      Cc: Jim Mattson <jmattson@google.com>
      Cc: Joerg Roedel <joro@8bytes.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: kvm@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Message-Id: <20211021174303.385706-3-pgonda@google.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      b5663931
    • Paolo Bonzini's avatar
      KVM: SEV: provide helpers to charge/uncharge misc_cg · 91b692a0
      Paolo Bonzini authored
      Avoid code duplication across all callers of misc_cg_try_charge and
      misc_cg_uncharge.  The resource type for KVM is always derived from
      sev->es_active, and the quantity is always 1.
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      91b692a0
    • Paolo Bonzini's avatar
      KVM: generalize "bugged" VM to "dead" VM · f4d31653
      Paolo Bonzini authored
      Generalize KVM_REQ_VM_BUGGED so that it can be called even in cases
      where it is by design that the VM cannot be operated upon.  In this
      case any KVM_BUG_ON should still warn, so introduce a new flag
      kvm->vm_dead that is separate from kvm->vm_bugged.
      Suggested-by: default avatarSean Christopherson <seanjc@google.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      f4d31653
    • Peter Gonda's avatar
      KVM: SEV: Refactor out sev_es_state struct · b67a4cc3
      Peter Gonda authored
      Move SEV-ES vCPU metadata into new sev_es_state struct from vcpu_svm.
      Signed-off-by: default avatarPeter Gonda <pgonda@google.com>
      Suggested-by: default avatarTom Lendacky <thomas.lendacky@amd.com>
      Acked-by: default avatarTom Lendacky <thomas.lendacky@amd.com>
      Reviewed-by: default avatarSean Christopherson <seanjc@google.com>
      Cc: Marc Orr <marcorr@google.com>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: David Rientjes <rientjes@google.com>
      Cc: Dr. David Alan Gilbert <dgilbert@redhat.com>
      Cc: Brijesh Singh <brijesh.singh@amd.com>
      Cc: Tom Lendacky <thomas.lendacky@amd.com>
      Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
      Cc: Wanpeng Li <wanpengli@tencent.com>
      Cc: Jim Mattson <jmattson@google.com>
      Cc: Joerg Roedel <joro@8bytes.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: kvm@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Message-Id: <20211021174303.385706-2-pgonda@google.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      b67a4cc3
    • Paolo Bonzini's avatar
      Merge branch 'kvm-guest-sev-migration' into kvm-master · b9ecb9a9
      Paolo Bonzini authored
      Add guest api and guest kernel support for SEV live migration.
      
      Introduces a new hypercall to notify the host of changes to the page
      encryption status.  If the page is encrypted then it must be migrated
      through the SEV firmware or a helper VM sharing the key.  If page is
      not encrypted then it can be migrated normally by userspace.  This new
      hypercall is invoked using paravirt_ops.
      
      Conflicts: sev_active() replaced by cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT).
      b9ecb9a9
    • Ashish Kalra's avatar
      x86/kvm: Add kexec support for SEV Live Migration. · 73f1b4fe
      Ashish Kalra authored
      Reset the host's shared pages list related to kernel
      specific page encryption status settings before we load a
      new kernel by kexec. We cannot reset the complete
      shared pages list here as we need to retain the
      UEFI/OVMF firmware specific settings.
      
      The host's shared pages list is maintained for the
      guest to keep track of all unencrypted guest memory regions,
      therefore we need to explicitly mark all shared pages as
      encrypted again before rebooting into the new guest kernel.
      Signed-off-by: default avatarAshish Kalra <ashish.kalra@amd.com>
      Reviewed-by: default avatarSteve Rutherford <srutherford@google.com>
      Message-Id: <3e051424ab839ea470f88333273d7a185006754f.1629726117.git.ashish.kalra@amd.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      73f1b4fe
    • Ashish Kalra's avatar
      x86/kvm: Add guest support for detecting and enabling SEV Live Migration feature. · f4495615
      Ashish Kalra authored
      The guest support for detecting and enabling SEV Live migration
      feature uses the following logic :
      
       - kvm_init_plaform() checks if its booted under the EFI
      
         - If not EFI,
      
           i) if kvm_para_has_feature(KVM_FEATURE_MIGRATION_CONTROL), issue a wrmsrl()
               to enable the SEV live migration support
      
         - If EFI,
      
           i) If kvm_para_has_feature(KVM_FEATURE_MIGRATION_CONTROL), read
              the UEFI variable which indicates OVMF support for live migration
      
           ii) the variable indicates live migration is supported, issue a wrmsrl() to
                enable the SEV live migration support
      
      The EFI live migration check is done using a late_initcall() callback.
      
      Also, ensure that _bss_decrypted section is marked as decrypted in the
      hypervisor's guest page encryption status tracking.
      Signed-off-by: default avatarAshish Kalra <ashish.kalra@amd.com>
      Reviewed-by: default avatarSteve Rutherford <srutherford@google.com>
      Message-Id: <b4453e4c87103ebef12217d2505ea99a1c3e0f0f.1629726117.git.ashish.kalra@amd.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      f4495615
    • Ashish Kalra's avatar
      EFI: Introduce the new AMD Memory Encryption GUID. · 2f70ddb1
      Ashish Kalra authored
      Introduce a new AMD Memory Encryption GUID which is currently
      used for defining a new UEFI environment variable which indicates
      UEFI/OVMF support for the SEV live migration feature. This variable
      is setup when UEFI/OVMF detects host/hypervisor support for SEV
      live migration and later this variable is read by the kernel using
      EFI runtime services to verify if OVMF supports the live migration
      feature.
      Signed-off-by: default avatarAshish Kalra <ashish.kalra@amd.com>
      Acked-by: default avatarArd Biesheuvel <ardb@kernel.org>
      Message-Id: <1cea22976d2208f34d47e0c1ce0ecac816c13111.1629726117.git.ashish.kalra@amd.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      2f70ddb1
    • Brijesh Singh's avatar
      mm: x86: Invoke hypercall when page encryption status is changed · 064ce6c5
      Brijesh Singh authored
      Invoke a hypercall when a memory region is changed from encrypted ->
      decrypted and vice versa. Hypervisor needs to know the page encryption
      status during the guest migration.
      
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Joerg Roedel <joro@8bytes.org>
      Cc: Borislav Petkov <bp@suse.de>
      Cc: Tom Lendacky <thomas.lendacky@amd.com>
      Cc: x86@kernel.org
      Cc: kvm@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Reviewed-by: default avatarSteve Rutherford <srutherford@google.com>
      Reviewed-by: default avatarVenu Busireddy <venu.busireddy@oracle.com>
      Signed-off-by: default avatarBrijesh Singh <brijesh.singh@amd.com>
      Signed-off-by: default avatarAshish Kalra <ashish.kalra@amd.com>
      Reviewed-by: default avatarBorislav Petkov <bp@suse.de>
      Message-Id: <0a237d5bb08793916c7790a3e653a2cbe7485761.1629726117.git.ashish.kalra@amd.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      064ce6c5
    • Brijesh Singh's avatar
      x86/kvm: Add AMD SEV specific Hypercall3 · 08c2336d
      Brijesh Singh authored
      KVM hypercall framework relies on alternative framework to patch the
      VMCALL -> VMMCALL on AMD platform. If a hypercall is made before
      apply_alternative() is called then it defaults to VMCALL. The approach
      works fine on non SEV guest. A VMCALL would causes #UD, and hypervisor
      will be able to decode the instruction and do the right things. But
      when SEV is active, guest memory is encrypted with guest key and
      hypervisor will not be able to decode the instruction bytes.
      
      To highlight the need to provide this interface, capturing the
      flow of apply_alternatives() :
      setup_arch() call init_hypervisor_platform() which detects
      the hypervisor platform the kernel is running under and then the
      hypervisor specific initialization code can make early hypercalls.
      For example, KVM specific initialization in case of SEV will try
      to mark the "__bss_decrypted" section's encryption state via early
      page encryption status hypercalls.
      
      Now, apply_alternatives() is called much later when setup_arch()
      calls check_bugs(), so we do need some kind of an early,
      pre-alternatives hypercall interface. Other cases of pre-alternatives
      hypercalls include marking per-cpu GHCB pages as decrypted on SEV-ES
      and per-cpu apf_reason, steal_time and kvm_apic_eoi as decrypted for
      SEV generally.
      
      Add SEV specific hypercall3, it unconditionally uses VMMCALL. The hypercall
      will be used by the SEV guest to notify encrypted pages to the hypervisor.
      
      This kvm_sev_hypercall3() function is abstracted and used as follows :
      All these early hypercalls are made through early_set_memory_XX() interfaces,
      which in turn invoke pv_ops (paravirt_ops).
      
      This early_set_memory_XX() -> pv_ops.mmu.notify_page_enc_status_changed()
      is a generic interface and can easily have SEV, TDX and any other
      future platform specific abstractions added to it.
      
      Currently, pv_ops.mmu.notify_page_enc_status_changed() callback is setup to
      invoke kvm_sev_hypercall3() in case of SEV.
      
      Similarly, in case of TDX, pv_ops.mmu.notify_page_enc_status_changed()
      can be setup to a TDX specific callback.
      
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Joerg Roedel <joro@8bytes.org>
      Cc: Borislav Petkov <bp@suse.de>
      Cc: Tom Lendacky <thomas.lendacky@amd.com>
      Cc: x86@kernel.org
      Cc: kvm@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Reviewed-by: default avatarSteve Rutherford <srutherford@google.com>
      Reviewed-by: default avatarVenu Busireddy <venu.busireddy@oracle.com>
      Signed-off-by: default avatarBrijesh Singh <brijesh.singh@amd.com>
      Signed-off-by: default avatarAshish Kalra <ashish.kalra@amd.com>
      Message-Id: <6fd25c749205dd0b1eb492c60d41b124760cc6ae.1629726117.git.ashish.kalra@amd.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      08c2336d
    • Linus Torvalds's avatar
      Merge tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 · debe436e
      Linus Torvalds authored
      Pull ext4 updates from Ted Ts'o:
       "Only bug fixes and cleanups for ext4 this merge window.
      
        Of note are fixes for the combination of the inline_data and
        fast_commit fixes, and more accurately calculating when to schedule
        additional lazy inode table init, especially when CONFIG_HZ is 100HZ"
      
      * tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
        ext4: fix error code saved on super block during file system abort
        ext4: inline data inode fast commit replay fixes
        ext4: commit inline data during fast commit
        ext4: scope ret locally in ext4_try_to_trim_range()
        ext4: remove an unused variable warning with CONFIG_QUOTA=n
        ext4: fix boolreturn.cocci warnings in fs/ext4/name.c
        ext4: prevent getting empty inode buffer
        ext4: move ext4_fill_raw_inode() related functions
        ext4: factor out ext4_fill_raw_inode()
        ext4: prevent partial update of the extent blocks
        ext4: check for inconsistent extents between index and leaf block
        ext4: check for out-of-order index extents in ext4_valid_extent_entries()
        ext4: convert from atomic_t to refcount_t on ext4_io_end->count
        ext4: refresh the ext4_ext_path struct after dropping i_data_sem.
        ext4: ensure enough credits in ext4_ext_shift_path_extents
        ext4: correct the left/middle/right debug message for binsearch
        ext4: fix lazy initialization next schedule time computation in more granular unit
        Revert "ext4: enforce buffer head state assertion in ext4_da_map_blocks"
      debe436e
    • Linus Torvalds's avatar
      Merge tag 'for-5.16-deadlock-fix-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · 6070dcc8
      Linus Torvalds authored
      Pull btrfs fix from David Sterba:
       "Fix for a deadlock when direct/buffered IO is done on a mmaped file
        and a fault happens (details in the patch). There's a fstest
        generic/647 that triggers the problem and makes testing hard"
      
      * tag 'for-5.16-deadlock-fix-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
        btrfs: fix deadlock due to page faults during direct IO reads and writes
      6070dcc8
    • Linus Torvalds's avatar
      Merge tag 'nfsd-5.16' of git://linux-nfs.org/~bfields/linux · 38764c73
      Linus Torvalds authored
      Pull nfsd updates from Bruce Fields:
       "A slow cycle for nfsd: mainly cleanup, including Neil's patch dropping
        support for a filehandle format deprecated 20 years ago, and further
        xdr-related cleanup from Chuck"
      
      * tag 'nfsd-5.16' of git://linux-nfs.org/~bfields/linux: (26 commits)
        nfsd4: remove obselete comment
        nfsd: document server-to-server-copy parameters
        NFSD:fix boolreturn.cocci warning
        nfsd: update create verifier comment
        SUNRPC: Change return value type of .pc_encode
        SUNRPC: Replace the "__be32 *p" parameter to .pc_encode
        NFSD: Save location of NFSv4 COMPOUND status
        SUNRPC: Change return value type of .pc_decode
        SUNRPC: Replace the "__be32 *p" parameter to .pc_decode
        SUNRPC: De-duplicate .pc_release() call sites
        SUNRPC: Simplify the SVC dispatch code path
        SUNRPC: Capture value of xdr_buf::page_base
        SUNRPC: Add trace event when alloc_pages_bulk() makes no progress
        svcrdma: Split svcrmda_wc_{read,write} tracepoints
        svcrdma: Split the svcrdma_wc_send() tracepoint
        svcrdma: Split the svcrdma_wc_receive() tracepoint
        NFSD: Have legacy NFSD WRITE decoders use xdr_stream_subsegment()
        SUNRPC: xdr_stream_subsegment() must handle non-zero page_bases
        NFSD: Initialize pointer ni with NULL and not plain integer 0
        NFSD: simplify struct nfsfh
        ...
      38764c73
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-5.16-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs · 2ec20f48
      Linus Torvalds authored
      Pull NFS client updates from Trond Myklebust:
       "Highlights include:
      
        Features:
         - NFSv4.1 can always retrieve and cache the ACCESS mode on OPEN
         - Optimisations for READDIR and the 'ls -l' style workload
         - Further replacements of dprintk() with tracepoints and other
           tracing improvements
         - Ensure we re-probe NFSv4 server capabilities when the user does a
           "mount -o remount"
      
        Bugfixes:
         - Fix an Oops in pnfs_mark_request_commit()
         - Fix up deadlocks in the commit code
         - Fix regressions in NFSv2/v3 attribute revalidation due to the
           change_attr_type optimisations
         - Fix some dentry verifier races
         - Fix some missing dentry verifier settings
         - Fix a performance regression in nfs_set_open_stateid_locked()
         - SUNRPC was sending multiple SYN calls when re-establishing a TCP
           connection.
         - Fix multiple NFSv4 issues due to missing sanity checking of server
           return values
         - Fix a potential Oops when FREE_STATEID races with an unmount
      
        Cleanups:
         - Clean up the labelled NFS code
         - Remove unused header <linux/pnfs_osd_xdr.h>"
      
      * tag 'nfs-for-5.16-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs: (84 commits)
        NFSv4: Sanity check the parameters in nfs41_update_target_slotid()
        NFS: Remove the nfs4_label argument from decode_getattr_*() functions
        NFS: Remove the nfs4_label argument from nfs_setsecurity
        NFS: Remove the nfs4_label argument from nfs_fhget()
        NFS: Remove the nfs4_label argument from nfs_add_or_obtain()
        NFS: Remove the nfs4_label argument from nfs_instantiate()
        NFS: Remove the nfs4_label from the nfs_setattrres
        NFS: Remove the nfs4_label from the nfs4_getattr_res
        NFS: Remove the f_label from the nfs4_opendata and nfs_openres
        NFS: Remove the nfs4_label from the nfs4_lookupp_res struct
        NFS: Remove the label from the nfs4_lookup_res struct
        NFS: Remove the nfs4_label from the nfs4_link_res struct
        NFS: Remove the nfs4_label from the nfs4_create_res struct
        NFS: Remove the nfs4_label from the nfs_entry struct
        NFS: Create a new nfs_alloc_fattr_with_label() function
        NFS: Always initialise fattr->label in nfs_fattr_alloc()
        NFSv4.2: alloc_file_pseudo() takes an open flag, not an f_mode
        NFS: Don't allocate nfs_fattr on the stack in __nfs42_ssc_open()
        NFSv4: Remove unnecessary 'minor version' check
        NFSv4: Fix potential Oops in decode_op_map()
        ...
      2ec20f48
    • Linus Torvalds's avatar
      Merge branch 'exit-cleanups-for-v5.16' of... · 5147da90
      Linus Torvalds authored
      Merge branch 'exit-cleanups-for-v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace
      
      Pull exit cleanups from Eric Biederman:
       "While looking at some issues related to the exit path in the kernel I
        found several instances where the code is not using the existing
        abstractions properly.
      
        This set of changes introduces force_fatal_sig a way of sending a
        signal and not allowing it to be caught, and corrects the misuse of
        the existing abstractions that I found.
      
        A lot of the misuse of the existing abstractions are silly things such
        as doing something after calling a no return function, rolling BUG by
        hand, doing more work than necessary to terminate a kernel thread, or
        calling do_exit(SIGKILL) instead of calling force_sig(SIGKILL).
      
        In the review a deficiency in force_fatal_sig and force_sig_seccomp
        where ptrace or sigaction could prevent the delivery of the signal was
        found. I have added a change that adds SA_IMMUTABLE to change that
        makes it impossible to interrupt the delivery of those signals, and
        allows backporting to fix force_sig_seccomp
      
        And Arnd found an issue where a function passed to kthread_run had the
        wrong prototype, and after my cleanup was failing to build."
      
      * 'exit-cleanups-for-v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace: (23 commits)
        soc: ti: fix wkup_m3_rproc_boot_thread return type
        signal: Add SA_IMMUTABLE to ensure forced siganls do not get changed
        signal: Replace force_sigsegv(SIGSEGV) with force_fatal_sig(SIGSEGV)
        exit/r8188eu: Replace the macro thread_exit with a simple return 0
        exit/rtl8712: Replace the macro thread_exit with a simple return 0
        exit/rtl8723bs: Replace the macro thread_exit with a simple return 0
        signal/x86: In emulate_vsyscall force a signal instead of calling do_exit
        signal/sparc32: In setup_rt_frame and setup_fram use force_fatal_sig
        signal/sparc32: Exit with a fatal signal when try_to_clear_window_buffer fails
        exit/syscall_user_dispatch: Send ordinary signals on failure
        signal: Implement force_fatal_sig
        exit/kthread: Have kernel threads return instead of calling do_exit
        signal/s390: Use force_sigsegv in default_trap_handler
        signal/vm86_32: Properly send SIGSEGV when the vm86 state cannot be saved.
        signal/vm86_32: Replace open coded BUG_ON with an actual BUG_ON
        signal/sparc: In setup_tsb_params convert open coded BUG into BUG
        signal/powerpc: On swapcontext failure force SIGSEGV
        signal/sh: Use force_sig(SIGKILL) instead of do_group_exit(SIGKILL)
        signal/mips: Update (_save|_restore)_fp_context to fail with -EFAULT
        signal/sparc32: Remove unreachable do_exit in do_sparc_fault
        ...
      5147da90
    • Linus Torvalds's avatar
      Merge tag 'kernel.sys.v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux · a41b7445
      Linus Torvalds authored
      Pull prctl updates from Christian Brauner:
       "This contains the missing prctl uapi pieces for PR_SCHED_CORE.
      
        In order to activate core scheduling the caller is expected to specify
        the scope of the new core scheduling domain.
      
        For example, passing 2 in the 4th argument of
      
           prctl(PR_SCHED_CORE, PR_SCHED_CORE_CREATE, <pid>,  2, 0);
      
        would indicate that the new core scheduling domain encompasses all
        tasks in the process group of <pid>. Specifying 0 would only create a
        core scheduling domain for the thread identified by <pid> and 2 would
        encompass the whole thread-group of <pid>.
      
        Note, the values 0, 1, and 2 correspond to PIDTYPE_PID, PIDTYPE_TGID,
        and PIDTYPE_PGID. A first version tried to expose those values
        directly to which I objected because:
      
         - PIDTYPE_* is an enum that is kernel internal which we should not
           expose to userspace directly.
      
         - PIDTYPE_* indicates what a given struct pid is used for it doesn't
           express a scope.
      
        But what the 4th argument of PR_SCHED_CORE prctl() expresses is the
        scope of the operation, i.e. the scope of the core scheduling domain
        at creation time. So Eugene's patch now simply introduces three new
        defines PR_SCHED_CORE_SCOPE_THREAD, PR_SCHED_CORE_SCOPE_THREAD_GROUP,
        and PR_SCHED_CORE_SCOPE_PROCESS_GROUP. They simply express what
        happens.
      
        This has been on the mailing list for quite a while with all relevant
        scheduler folks Cced. I announced multiple times that I'd pick this up
        if I don't see or her anyone else doing it. None of this touches
        proper scheduler code but only concerns uapi so I think this is fine.
      
        With core scheduling being quite common now for vm managers (e.g.
        moving individual vcpu threads into their own core scheduling domain)
        and container managers (e.g. moving the init process into its own core
        scheduling domain and letting all created children inherit it) having
        to rely on raw numbers passed as the 4th argument in prctl() is a bit
        annoying and everyone is starting to come up with their own defines"
      
      * tag 'kernel.sys.v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux:
        uapi/linux/prctl: provide macro definitions for the PR_SCHED_CORE type argument
      a41b7445
    • Linus Torvalds's avatar
      Merge tag 'pidfd.v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux · 6752de1a
      Linus Torvalds authored
      Pull pidfd updates from Christian Brauner:
       "Various places in the kernel have picked up pidfds.
      
        The two most recent additions have probably been the ability to use
        pidfds in bpf maps and the usage of pidfds in mm-based syscalls such
        as process_mrelease() and process_madvise().
      
        The same pattern to turn a pidfd into a struct task exists in two
        places. One of those places used PIDTYPE_TGID while the other one used
        PIDTYPE_PID even though it is clearly documented in all pidfd-helpers
        that pidfds __currently__ only refer to thread-group leaders (subject
        to change in the future if need be).
      
        This isn't a bug per se but has the potential to be one if we allow
        pidfds to refer to individual threads. If that happens we want to
        audit all codepaths that make use of them to ensure they can deal with
        pidfds refering to individual threads.
      
        This adds a simple helper to turn a pidfd into a struct task making it
        easy to grep for such places. Plus, it gets rid of code-duplication"
      
      * tag 'pidfd.v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux:
        mm: use pidfd_get_task()
        pid: add pidfd_get_task() helper
      6752de1a
  2. 10 Nov, 2021 18 commits
    • Linus Torvalds's avatar
      Merge tag 'thermal-5.16-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 88100752
      Linus Torvalds authored
      Pull more thermal control updates from Rafael Wysocki:
       "These fix two issues in the thermal core and one in the int340x
        thermal driver.
      
        Specifics:
      
         - Replace pr_warn() with pr_warn_once() in user_space_bind() to
           reduce kernel log noise (Rafael Wysocki).
      
         - Extend the RFIM mailbox interface in the int340x thermal driver to
           return 64 bit values to allow all values returned by the hardware
           to be handled correctly (Srinivas Pandruvada).
      
         - Fix possible NULL pointer dereferences in the of_thermal_ family of
           functions (Subbaraman Narayanamurthy)"
      
      * tag 'thermal-5.16-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        thermal: Replace pr_warn() with pr_warn_once() in user_space_bind()
        thermal: Fix NULL pointer dereferences in of_thermal_ functions
        thermal/drivers/int340x: processor_thermal: Suppot 64 bit RFIM responses
      88100752
    • Linus Torvalds's avatar
      Merge tag 'pm-5.16-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · d422555f
      Linus Torvalds authored
      Pull more power management updates from Rafael Wysocki:
       "These fix three intel_pstate driver regressions, fix locking in the
        core code suspending and resuming devices during system PM
        transitions, fix the handling of cpuidle drivers based on runtime PM
        during system-wide suspend, fix two issues in the operating
        performance points (OPP) framework and resource-managed helpers to it.
      
        Specifics:
      
         - Fix two intel_pstate driver regressions related to the HWP
           interrupt handling added recently (Srinivas Pandruvada).
      
         - Fix intel_pstate driver regression introduced during the 5.11 cycle
           and causing HWP desired performance to be mishandled in some cases
           when switching driver modes and during system suspend and shutdown
           (Rafael Wysocki).
      
         - Fix system-wide device suspend and resume locking to avoid
           deadlocks when device objects are deleted during a system-wide PM
           transition (Rafael Wysocki).
      
         - Modify system-wide suspend of devices to prevent cpuidle drivers
           based on runtime PM from misbehaving during the "no IRQ" phase of
           it (Ulf Hansson).
      
         - Fix return value of _opp_add_static_v2() helper (YueHaibing).
      
         - Fix required-opp handle count (Pavankumar Kondeti).
      
         - Add resource managed OPP helpers, update dev_pm_opp_attach_genpd(),
           update their devfreq users, and make minor DT binding change
           (Dmitry Osipenko)"
      
      * tag 'pm-5.16-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        PM: sleep: Avoid calling put_device() under dpm_list_mtx
        cpufreq: intel_pstate: Clear HWP Status during HWP Interrupt enable
        cpufreq: intel_pstate: Fix unchecked MSR 0x773 access
        cpufreq: intel_pstate: Clear HWP desired on suspend/shutdown and offline
        PM: sleep: Fix runtime PM based cpuidle support
        dt-bindings: opp: Allow multi-worded OPP entry name
        opp: Fix return in _opp_add_static_v2()
        PM / devfreq: tegra30: Check whether clk_round_rate() returns zero rate
        PM / devfreq: tegra30: Use resource-managed helpers
        PM / devfreq: Add devm_devfreq_add_governor()
        opp: Add more resource-managed variants of dev_pm_opp_of_add_table()
        opp: Change type of dev_pm_opp_attach_genpd(names) argument
        opp: Fix required-opps phandle array count check
      d422555f
    • Linus Torvalds's avatar
      Merge tag 'acpi-5.16-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 285fc3db
      Linus Torvalds authored
      Pull more ACPI updates from Rafael Wysocki:
       "These add support for a new ACPI device configuration object called
        _DSC, fix some issues including one recent regression, add two new
        items to quirk lists and clean up assorted pieces of code.
      
        Specifics:
      
         - Add support for new ACPI device configuration object called _DSC
           ("Deepest State for Configuration") to allow certain devices to be
           probed without changing their power states, document it and make
           two drivers use it (Sakari Ailus, Rajmohan Mani).
      
         - Fix device wakeup power reference counting broken recently by
           mistake (Rafael Wysocki).
      
         - Drop unused symbol and macros depending on it from acgcc.h (Rafael
           Wysocki).
      
         - Add HP ZHAN 66 Pro to the "no EC wakeup" quirk list (Binbin Zhou).
      
         - Add Xiaomi Mi Pad 2 to the backlight quirk list and drop an unused
           piece of data from all of the list entries (Hans de Goede).
      
         - Fix register read accesses handling in the Intel PMIC operation
           region driver (Hans de Goede).
      
         - Clean up static variables initialization in the EC driver
           (wangzhitong)"
      
      * tag 'acpi-5.16-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        Documentation: ACPI: Fix non-D0 probe _DSC object example
        ACPI: Drop ACPI_USE_BUILTIN_STDARG ifdef from acgcc.h
        ACPI: PM: Fix device wakeup power reference counting error
        ACPI: video: use platform backlight driver on Xiaomi Mi Pad 2
        ACPI: video: Drop dmi_system_id.ident settings from video_detect_dmi_table[]
        ACPI: PMIC: Fix intel_pmic_regs_handler() read accesses
        ACPI: EC: Remove initialization of static variables to false
        ACPI: EC: Use ec_no_wakeup on HP ZHAN 66 Pro
        at24: Support probing while in non-zero ACPI D state
        media: i2c: imx319: Support device probe in non-zero ACPI D state
        ACPI: Add a convenience function to tell a device is in D0 state
        Documentation: ACPI: Document _DSC object usage for enum power state
        i2c: Allow an ACPI driver to manage the device's power state during probe
        ACPI: scan: Obtain device's desired enumeration power state
      285fc3db
    • Linus Torvalds's avatar
      Merge tag 'dmaengine-5.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine · e68a7d35
      Linus Torvalds authored
      Pull dmaengine updates from Vinod Koul:
       "A bunch of driver updates, no new driver or controller support this
        time though:
      
         - Another pile of idxd updates
      
         - pm routines cleanup for at_xdmac driver
      
         - Correct handling of callback_result for few drivers
      
         - zynqmp_dma driver updates and descriptor management refinement
      
         - Hardware handshaking support for dw-axi-dmac
      
         - Support for remotely powered controllers in Qcom bam dma
      
         - tegra driver updates"
      
      * tag 'dmaengine-5.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine: (69 commits)
        dmaengine: ti: k3-udma: Set r/tchan or rflow to NULL if request fail
        dmaengine: ti: k3-udma: Set bchan to NULL if a channel request fail
        dmaengine: stm32-dma: avoid 64-bit division in stm32_dma_get_max_width
        dmaengine: fsl-edma: support edma memcpy
        dmaengine: idxd: fix resource leak on dmaengine driver disable
        dmaengine: idxd: cleanup completion record allocation
        dmaengine: zynqmp_dma: Correctly handle descriptor callbacks
        dmaengine: xilinx_dma: Correctly handle cyclic descriptor callbacks
        dmaengine: altera-msgdma: Correctly handle descriptor callbacks
        dmaengine: at_xdmac: fix compilation warning
        dmaengine: dw-axi-dmac: Simplify assignment in dma_chan_pause()
        dmaengine: qcom: bam_dma: Add "powered remotely" mode
        dt-bindings: dmaengine: bam_dma: Add "powered remotely" mode
        dmaengine: sa11x0: Mark PM functions as __maybe_unused
        dmaengine: switch from 'pci_' to 'dma_' API
        dmaengine: ioat: switch from 'pci_' to 'dma_' API
        dmaengine: hsu: switch from 'pci_' to 'dma_' API
        dmaengine: hisi_dma: switch from 'pci_' to 'dma_' API
        dmaengine: dw: switch from 'pci_' to 'dma_' API
        dmaengine: dw-edma-pcie: switch from 'pci_' to 'dma_' API
        ...
      e68a7d35
    • Linus Torvalds's avatar
      Merge tag 'tag-chrome-platform-for-v5.16' of... · d4efc0de
      Linus Torvalds authored
      Merge tag 'tag-chrome-platform-for-v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux
      
      Pull chrome platform updates from Benson Leung:
       "cros_ec_typec:
      
         - Clean up use of cros_ec_check_features
      
        cros_ec_*:
      
         - Rename and move cros_ec_pd_command to cros_ec_command, and make
           changes to cros_ec_typec and cros_ec_proto to use the new common
           command, reducing duplication.
      
        sensorhub:
      
         - simplify getting .driver_data in cros_ec_sensors_core and
           cros_ec_sensorhub
      
        misc:
      
         - Maintainership change. Enric Balletbo i Serra has moved on from
           Collabora, so removing him from chrome/platform maintainers. Thanks
           for all of your hard work maintaining this, Enric, and best of luck
           to you in your new role!
      
         - Add Prashant Malani as driver maintainer for cros_ec_typec.c and
           cros_usbpd_notify. He was already principal contributor of these
           drivers"
      
      * tag 'tag-chrome-platform-for-v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux:
        platform/chrome: cros_ec_proto: Use ec_command for check_features
        platform/chrome: cros_ec_proto: Use EC struct for features
        MAINTAINERS: Chrome: Drop Enric Balletbo i Serra
        platform/chrome: cros_ec_typec: Use cros_ec_command()
        platform/chrome: cros_ec_proto: Add version for ec_command
        platform/chrome: cros_ec_proto: Make data pointers void
        platform/chrome: cros_usbpd_notify: Move ec_command()
        platform/chrome: cros_usbpd_notify: Rename cros_ec_pd_command()
        platform/chrome: cros_ec: Fix spelling mistake "responsed" -> "response"
        platform/chrome: cros_ec_sensorhub: simplify getting .driver_data
        iio: common: cros_ec_sensors: simplify getting .driver_data
        platform/chrome: cros-ec-typec: Cleanup use of check_features
        platform/chrome: cros_ec_proto: Fix check_features ret val
        MAINTAINERS: Add Prashant's maintainership of cros_ec drivers
      d4efc0de
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 89fa0be0
      Linus Torvalds authored
      Pull arm64 fixes from Will Deacon:
      
       - Fix double-evaluation of 'pte' macro argument when using 52-bit PAs
      
       - Fix signedness of some MTE prctl PR_* constants
      
       - Fix kmemleak memory usage by skipping early pgtable allocations
      
       - Fix printing of CPU feature register strings
      
       - Remove redundant -nostdlib linker flag for vDSO binaries
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: pgtable: make __pte_to_phys/__phys_to_pte_val inline functions
        arm64: Track no early_pgtable_alloc() for kmemleak
        arm64: mte: change PR_MTE_TCF_NONE back into an unsigned long
        arm64: vdso: remove -nostdlib compiler flag
        arm64: arm64_ftr_reg->name may not be a human-readable string
      89fa0be0
    • Linus Torvalds's avatar
      Merge tag 'arm-fixes-5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · 3f55f177
      Linus Torvalds authored
      Pull ARM SoC fixes from Arnd Bergmann:
       "This is one set of fixes for the NXP/FSL DPAA2 drivers, addressing a
        few minor issues. I received these just after sending out the last
        v5.15 fixes, and nothing in here seemed urgent enough for a quick
        follow-up"
      
      * tag 'arm-fixes-5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc:
        soc: fsl: dpaa2-console: free buffer before returning from dpaa2_console_read
        soc: fsl: dpio: use the combined functions to protect critical zone
        soc: fsl: dpio: replace smp_processor_id with raw_smp_processor_id
      3f55f177
    • Linus Torvalds's avatar
      Merge tag 'asm-generic-5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic · e8f023ca
      Linus Torvalds authored
      Pull asm-generic cleanup from Arnd Bergmann:
       "This is a single cleanup from Peter Collingbourne, removing some dead
        code"
      
      * tag 'asm-generic-5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic:
        arch: remove unused function syscall_set_arguments()
      e8f023ca
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.16b-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · bf98ecbb
      Linus Torvalds authored
      Pull xen updates from Juergen Gross:
      
       - a series to speed up the boot of Xen PV guests
      
       - some cleanups in Xen related code
      
       - replacement of license texts with the appropriate SPDX headers and
         fixing of wrong SPDX headers in Xen header files
      
       - a small series making paravirtualized interrupt masking much simpler
         and at the same time removing complaints of objtool
      
       - a fix for Xen ballooning hogging workqueues for too long
      
       - enablement of the Xen pciback driver for Arm
      
       - some further small fixes/enhancements
      
      * tag 'for-linus-5.16b-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip: (22 commits)
        xen/balloon: fix unused-variable warning
        xen/balloon: rename alloc/free_xenballooned_pages
        xen/balloon: add late_initcall_sync() for initial ballooning done
        x86/xen: remove 32-bit awareness from startup_xen
        xen: remove highmem remnants
        xen: allow pv-only hypercalls only with CONFIG_XEN_PV
        x86/xen: remove 32-bit pv leftovers
        xen-pciback: allow compiling on other archs than x86
        x86/xen: switch initial pvops IRQ functions to dummy ones
        x86/xen: remove xen_have_vcpu_info_placement flag
        x86/pvh: add prototype for xen_pvh_init()
        xen: Fix implicit type conversion
        xen: fix wrong SPDX headers of Xen related headers
        xen/pvcalls-back: Remove redundant 'flush_workqueue()' calls
        x86/xen: Remove redundant irq_enter/exit() invocations
        xen-pciback: Fix return in pm_ctrl_init()
        xen/x86: restrict PV Dom0 identity mapping
        xen/x86: there's no highmem anymore in PV mode
        xen/x86: adjust handling of the L3 user vsyscall special page table
        xen/x86: adjust xen_set_fixmap()
        ...
      bf98ecbb
    • Linus Torvalds's avatar
      Merge tag 'libnvdimm-for-5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm · 4287af35
      Linus Torvalds authored
      Pull libnvdimm update from Dan Williams:
       "A single cleanup that precedes some deeper PMEM/DAX reworks that did
        not settle in time for v5.16:
      
         - Continue the cleanup of the dax api in preparation for a dax-device
           block-device divorce"
      
      * tag 'libnvdimm-for-5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm:
        nvdimm/pmem: move dax_attribute_group from dax to pmem
      4287af35
    • Linus Torvalds's avatar
      Merge tag 'linux-watchdog-5.16-rc1' of git://www.linux-watchdog.org/linux-watchdog · 89d714ab
      Linus Torvalds authored
      Pull watchdog updates from Wim Van Sebroeck:
      
       - f71808e_wdt: convert to watchdog framework
      
       - db8500_wdt: Rename driver (was ux500_wdt.c)
      
       - sunxi: Add compatibles for R329 and D1
      
       - mtk: add disable_wdt_extrst support
      
       - several other small fixes and improvements
      
      * tag 'linux-watchdog-5.16-rc1' of git://www.linux-watchdog.org/linux-watchdog: (30 commits)
        watchdog: db8500_wdt: Rename symbols
        watchdog: db8500_wdt: Rename driver
        watchdog: ux500_wdt: Drop platform data
        watchdog: bcm63xx_wdt: fix fallthrough warning
        watchdog: iTCO_wdt: No need to stop the timer in probe
        watchdog: s3c2410: describe driver in KConfig
        watchdog: sp5100_tco: Add support for get_timeleft
        watchdog: mtk: add disable_wdt_extrst support
        dt-bindings: watchdog: mtk-wdt: add disable_wdt_extrst support
        watchdog: rza_wdt: Use semicolons instead of commas
        watchdog: mlx-wdt: Use regmap_write_bits()
        watchdog: rti-wdt: Make use of the helper function devm_platform_ioremap_resource()
        watchdog: iTCO_wdt: Make use of the helper function devm_platform_ioremap_resource()
        watchdog: ar7_wdt: Make use of the helper function devm_platform_ioremap_resource_byname()
        watchdog: sunxi_wdt: Add support for D1
        dt-bindings: watchdog: sunxi: Add compatibles for D1
        ar7: fix kernel builds for compiler test
        dt-bindings: watchdog: sunxi: Add compatibles for R329
        watchdog: meson_gxbb_wdt: add timeout parameter
        watchdog: meson_gxbb_wdt: add nowayout parameter
        ...
      89d714ab
    • Linus Torvalds's avatar
      Merge tag 'rproc-v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux · bd485d27
      Linus Torvalds authored
      Pull remoteproc updates from Bjorn Andersson:
       "The remoteproc repo is moved to a new path on git.kernel.org, to allow
        Mathieu push access to the branches.
      
        Support for the Mediatek MT8195 SCP was added, the related DeviceTree
        binding was converted to YAML and MT8192 SCP was documented as well.
      
        Amlogic Meson6, Meson8, Meson8b and Meson8m2 has an ARC core to aid in
        resuming the system after suspend, a new remoteproc driver for booting
        this core is introduced.
      
        A new driver to support the DSP processor found on NXP i.MX8QM,
        i.MX8QXP, i.MX8MP and i.MX8ULP is added.
      
        The Qualcomm modem and TrustZone based remoteproc drivers gains
        support for the modem in SC7280 and MSM8996 gains support for a
        missing power-domain.
      
        Throughout the Qualcomm drivers, the support for informing the
        always-on power coprocessor about the state of each remoteproc is
        reworked to avoid complications related to our use of genpd and the
        system suspend state.
      
        Lastly a number of small fixes are found throughout the drivers and
        framework"
      
      * tag 'rproc-v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux: (39 commits)
        remoteproc: Remove vdev_to_rvdev and vdev_to_rproc from remoteproc API
        remoteproc: omap_remoteproc: simplify getting .driver_data
        remoteproc: qcom_q6v5_mss: Use devm_platform_ioremap_resource_byname() to simplify code
        remoteproc: Fix a memory leak in an error handling path in 'rproc_handle_vdev()'
        remoteproc: Fix spelling mistake "atleast" -> "at least"
        remoteproc: imx_dsp_rproc: mark PM functions as __maybe_unused
        remoteproc: imx_dsp_rproc: Correct the comment style of copyright
        dt-bindings: dsp: fsl: Update binding document for remote proc driver
        remoteproc: imx_dsp_rproc: Add remoteproc driver for DSP on i.MX
        remoteproc: imx_rproc: Add IMX_RPROC_SCU_API method
        remoteproc: imx_rproc: Move common structure to header file
        rpmsg: char: Remove useless include
        remoteproc: meson-mx-ao-arc: fix a bit test
        remoteproc: mss: q6v5-mss: Add modem support on SC7280
        dt-bindings: remoteproc: qcom: Update Q6V5 Modem PIL binding
        remoteproc: qcom: pas: Add SC7280 Modem support
        dt-bindings: remoteproc: qcom: pas: Add SC7280 MPSS support
        remoteproc: qcom: pas: Use the same init resources for MSM8996 and MSM8998
        MAINTAINERS: Update remoteproc repo url
        dt-bindings: remoteproc: k3-dsp: Cleanup SoC compatible from DT example
        ...
      bd485d27
    • Linus Torvalds's avatar
      Merge tag 'rpmsg-v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux · becc1fb4
      Linus Torvalds authored
      Pull rpmsg updates from Bjorn Andersson:
       "For the GLINK implementation this adds support for splitting outgoing
        messages that are too large to fit in the fifo, it introduces the use
        of "read notifications", to avoid polling in the case where the
        outgoing fifo is full and a few bugs are squashed.
      
        The return value of rpmsg_create_ept() for when RPMSG is disabled is
        corrected to return a valid error, the Mediatek rpmsg driver is
        updated to match the DT binding and a couple of cleanups are done in
        the virtio rpmsg driver"
      
      * tag 'rpmsg-v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux:
        rpmsg: glink: Send READ_NOTIFY command in FIFO full case
        rpmsg: glink: Remove channel decouple from rpdev release
        rpmsg: glink: Remove the rpmsg dev in close_ack
        rpmsg: glink: Add TX_DATA_CONT command while sending
        rpmsg: virtio_rpmsg_bus: use dev_warn_ratelimited for msg with no recipient
        rpmsg: virtio: Remove unused including <linux/of_device.h>
        rpmsg: Change naming of mediatek rpmsg property
        rpmsg: Fix rpmsg_create_ept return when RPMSG config is not defined
        rpmsg: glink: Replace strncpy() with strscpy_pad()
      becc1fb4
    • Rafael J. Wysocki's avatar
      Merge branch 'thermal-int340x' · 61988e0a
      Rafael J. Wysocki authored
      Merge int340x thermal driver fix for 5.16-rc1.
      
      * thermal-int340x:
        thermal/drivers/int340x: processor_thermal: Suppot 64 bit RFIM responses
      61988e0a
    • Rafael J. Wysocki's avatar
      Merge branches 'pm-opp' and 'pm-cpufreq' · dcc0b6f2
      Rafael J. Wysocki authored
      Merge operating performance points (OPP) framework updates for and
      intel_pstate driver fixes for 5.16-rc1.
      
      * pm-opp:
        dt-bindings: opp: Allow multi-worded OPP entry name
        opp: Fix return in _opp_add_static_v2()
        PM / devfreq: tegra30: Check whether clk_round_rate() returns zero rate
        PM / devfreq: tegra30: Use resource-managed helpers
        PM / devfreq: Add devm_devfreq_add_governor()
        opp: Add more resource-managed variants of dev_pm_opp_of_add_table()
        opp: Change type of dev_pm_opp_attach_genpd(names) argument
        opp: Fix required-opps phandle array count check
      
      * pm-cpufreq:
        cpufreq: intel_pstate: Clear HWP Status during HWP Interrupt enable
        cpufreq: intel_pstate: Fix unchecked MSR 0x773 access
        cpufreq: intel_pstate: Clear HWP desired on suspend/shutdown and offline
      dcc0b6f2
    • Rafael J. Wysocki's avatar
      Merge branches 'acpica', 'acpi-ec', 'acpi-pmic' and 'acpi-video' · 314c6e2b
      Rafael J. Wysocki authored
      Merge assorted fixes and cleanups and one new backlight quirk list
      item for 5.16-rc1.
      
      * acpica:
        ACPI: Drop ACPI_USE_BUILTIN_STDARG ifdef from acgcc.h
      
      * acpi-ec:
        ACPI: EC: Remove initialization of static variables to false
        ACPI: EC: Use ec_no_wakeup on HP ZHAN 66 Pro
      
      * acpi-pmic:
        ACPI: PMIC: Fix intel_pmic_regs_handler() read accesses
      
      * acpi-video:
        ACPI: video: use platform backlight driver on Xiaomi Mi Pad 2
        ACPI: video: Drop dmi_system_id.ident settings from video_detect_dmi_table[]
      314c6e2b
    • Rafael J. Wysocki's avatar
      Merge branch 'acpi-dsc' · 2c49daba
      Rafael J. Wysocki authored
      Merge new ACPI device configuration object _DSC support for 5.16-rc1.
      
      * acpi-dsc:
        Documentation: ACPI: Fix non-D0 probe _DSC object example
        at24: Support probing while in non-zero ACPI D state
        media: i2c: imx319: Support device probe in non-zero ACPI D state
        ACPI: Add a convenience function to tell a device is in D0 state
        Documentation: ACPI: Document _DSC object usage for enum power state
        i2c: Allow an ACPI driver to manage the device's power state during probe
        ACPI: scan: Obtain device's desired enumeration power state
      2c49daba
    • Sakari Ailus's avatar
      Documentation: ACPI: Fix non-D0 probe _DSC object example · dff5acfd
      Sakari Ailus authored
      The original patch adding the example used _DSC Name when Method was
      intended. Fix this.
      
      Also replace spaces used for indentation with tabs in the example.
      
      Fixes: ed66f12b ("Documentation: ACPI: Document _DSC object usage for enum power state")
      Reported-by: default avatarBingbu Cao <bingbu.cao@intel.com>
      Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      dff5acfd
  3. 09 Nov, 2021 1 commit
    • Linus Torvalds's avatar
      Merge tag 'for-5.16/drivers-2021-11-09' of git://git.kernel.dk/linux-block · cb690f52
      Linus Torvalds authored
      Pull more block driver updates from Jens Axboe:
      
       - Last series adding error handling support for add_disk() in drivers.
         After this one, and once the SCSI side has been merged, we can
         finally annotate add_disk() as must_check. (Luis)
      
       - bcache fixes (Coly)
      
       - zram fixes (Ming)
      
       - ataflop locking fix (Tetsuo)
      
       - nbd fixes (Ye, Yu)
      
       - MD merge via Song
            - Cleanup (Yang)
            - sysfs fix (Guoqing)
      
       - Misc fixes (Geert, Wu, luo)
      
      * tag 'for-5.16/drivers-2021-11-09' of git://git.kernel.dk/linux-block: (34 commits)
        bcache: Revert "bcache: use bvec_virt"
        ataflop: Add missing semicolon to return statement
        floppy: address add_disk() error handling on probe
        ataflop: address add_disk() error handling on probe
        block: update __register_blkdev() probe documentation
        ataflop: remove ataflop_probe_lock mutex
        mtd/ubi/block: add error handling support for add_disk()
        block/sunvdc: add error handling support for add_disk()
        z2ram: add error handling support for add_disk()
        nvdimm/pmem: use add_disk() error handling
        nvdimm/pmem: cleanup the disk if pmem_release_disk() is yet assigned
        nvdimm/blk: add error handling support for add_disk()
        nvdimm/blk: avoid calling del_gendisk() on early failures
        nvdimm/btt: add error handling support for add_disk()
        nvdimm/btt: use goto error labels on btt_blk_init()
        loop: Remove duplicate assignments
        drbd: Fix double free problem in drbd_create_device
        nvdimm/btt: do not call del_gendisk() if not needed
        bcache: fix use-after-free problem in bcache_device_free()
        zram: replace fsync_bdev with sync_blockdev
        ...
      cb690f52