Skip to content
Snippets Groups Projects
  1. Mar 29, 2023
  2. Mar 24, 2023
  3. Mar 21, 2023
    • Tao Zhang's avatar
      coresight-tpdm: Add nodes for dsb msr support · b8bfe6d1
      Tao Zhang authored
      
      Add the nodes for DSB subunit MSR(mux select register) support.
      The TPDM MSR (mux select register) interface is an optional
      interface and associated bank of registers per TPDM subunit.
      The intent of mux select registers is to control muxing structures
      driving the TPDM’s’ various subunit interfaces.
      
      Signed-off-by: default avatarTao Zhang <quic_taozha@quicinc.com>
      b8bfe6d1
    • Tao Zhang's avatar
      dt-bindings: arm: Add support for DSB MSR register · e41a9ea1
      Tao Zhang authored
      
      Add property "qcom,dsb_msr_num" to support DSB(Discrete Single
      Bit) MSR(mux select register) for TPDM. It specifies the number
      of MSR registers supported by the DSB TDPM.
      
      Signed-off-by: default avatarTao Zhang <quic_taozha@quicinc.com>
      e41a9ea1
    • Tao Zhang's avatar
      coresight-tpdm: Add nodes for timestamp request · 4e3c8284
      Tao Zhang authored
      
      Add nodes to configure the timestamp request based on input
      pattern match. Each TPDM that support DSB subunit has maximum of
      n(n<7) TPR registers to configure value for timestamp request
      based on input pattern match. Eight 32 bit registers providing
      DSB interface timestamp request  pattern match comparison. And
      each TPDM that support DSB subunit has maximum of m(m<7) TPMR
      registers to configure pattern mask for timestamp request. Eight
      32 bit registers providing DSB interface timestamp request
      pattern match mask generation. Add nodes to enable/disable
      pattern timestamp and set pattern timestamp type.
      
      Signed-off-by: default avatarTao Zhang <quic_taozha@quicinc.com>
      4e3c8284
    • Tao Zhang's avatar
      coresight-tpdm: Add nodes to configure pattern match output · 03b3f10d
      Tao Zhang authored
      
      Add nodes to configure trigger pattern and trigger pattern mask.
      Each DSB subunit TPDM has maximum of n(n<7) XPR registers to
      configure trigger pattern match output. Eight 32 bit registers
      providing DSB interface trigger output pattern match comparison.
      And each DSB subunit TPDM has maximum of m(m<7) XPMR registers to
      configure trigger pattern mask match output. Eight 32 bit
      registers providing DSB interface trigger output pattern match
      mask.
      
      Signed-off-by: default avatarTao Zhang <quic_taozha@quicinc.com>
      03b3f10d
    • Tao Zhang's avatar
      coresight-tpdm: Add nodes for dsb edge control · 48824710
      Tao Zhang authored
      
      Add the nodes to set value for DSB edge control and DSB edge
      control mask. Each DSB subunit TPDM has maximum of n(n<16) EDCR
      resgisters to configure edge control. DSB edge detection control
      00: Rising edge detection
      01: Falling edge detection
      10: Rising and falling edge detection (toggle detection)
      And each DSB subunit TPDM has maximum of m(m<8) ECDMR registers to
      configure mask. Eight 32 bit registers providing DSB interface
      edge detection mask control.
      
      Signed-off-by: default avatarTao Zhang <quic_taozha@quicinc.com>
      48824710
    • Tao Zhang's avatar
      coresight-tpdm: Add node to set dsb programming mode · ec50ede8
      Tao Zhang authored
      
      Add node to set and show programming mode for TPDM DSB subunit.
      Once the DSB programming mode is set, it will be written to the
      register DSB_CR. Bit[10:9] of the DSB_CR register is used to set
      the DSB test mode.
      
      Signed-off-by: default avatarTao Zhang <quic_taozha@quicinc.com>
      ec50ede8
    • Tao Zhang's avatar
      coresight-tpdm: Add nodes to set trigger timestamp and type · 9961736e
      Tao Zhang authored
      
      The nodes are needed to set or show the trigger timestamp and
      trigger type. This change is to add these nodes to achieve these
      function.
      
      Signed-off-by: default avatarTao Zhang <quic_taozha@quicinc.com>
      9961736e
    • Tao Zhang's avatar
      coresight-tpdm: Initialize DSB subunit configuration · 3e2dd12d
      Tao Zhang authored
      
      DSB is used for monitoring “events”. Events are something that
      occurs at some point in time. It could be a state decode, the
      act of writing/reading a particular address, a FIFO being empty,
      etc. This decoding of the event desired is done outside TPDM.
      DSB subunit need to be configured in enablement and disablement.
      A struct that specifics associated to dsb dataset is needed. It
      saves the configuration and parameters of the dsb datasets. This
      change is to add this struct and initialize the configuration of
      DSB subunit.
      
      Signed-off-by: default avatarTao Zhang <quic_taozha@quicinc.com>
      3e2dd12d
    • Tao Zhang's avatar
      coresight-tpda: Add DSB dataset support · 70444856
      Tao Zhang authored
      
      Read the DSB element size from the device tree. Set the register
      bit that controls the DSB element size of the corresponding port.
      
      Signed-off-by: default avatarTao Zhang <quic_taozha@quicinc.com>
      70444856
    • Tao Zhang's avatar
      dt-bindings: arm: Add support for DSB element size · 6a724ac6
      Tao Zhang authored
      
      Add property "qcom,dsb-elem-size" to support DSB(Discrete Single
      Bit) element for TPDM. The associated aggregator will read this
      size before it is enabled. DSB element size currently only
      supports 32-bit and 64-bit.
      
      Signed-off-by: default avatarTao Zhang <quic_taozha@quicinc.com>
      6a724ac6
  4. Mar 17, 2023
  5. Mar 16, 2023
    • Linus Torvalds's avatar
      Merge tag '6.3-rc2-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6 · 38e04b3e
      Linus Torvalds authored
      Pull cifs client fixes from Steve French:
       "Seven cifs/smb3 client fixes, all also for stable:
      
         - four DFS fixes
      
         - multichannel reconnect fix
      
         - fix smb1 stats for cancel command
      
         - fix for set file size error path"
      
      * tag '6.3-rc2-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: use DFS root session instead of tcon ses
        cifs: return DFS root session id in DebugData
        cifs: fix use-after-free bug in refresh_cache_worker()
        cifs: set DFS root session in cifs_get_smb_ses()
        cifs: generate signkey for the channel that's reconnecting
        cifs: Fix smb2_set_path_size()
        cifs: Move the in_send statistic to __smb_send_rqst()
      38e04b3e
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 0ddc84d2
      Linus Torvalds authored
      Pull kvm fixes from Paolo Bonzini:
       "ARM64:
      
         - Address a rather annoying bug w.r.t. guest timer offsetting. The
           synchronization of timer offsets between vCPUs was broken, leading
           to inconsistent timer reads within the VM.
      
        x86:
      
         - New tests for the slow path of the EVTCHNOP_send Xen hypercall
      
         - Add missing nVMX consistency checks for CR0 and CR4
      
         - Fix bug that broke AMD GATag on 512 vCPU machines
      
        Selftests:
      
         - Skip hugetlb tests if huge pages are not available
      
         - Sync KVM exit reasons"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
        KVM: selftests: Sync KVM exit reasons in selftests
        KVM: selftests: Add macro to generate KVM exit reason strings
        KVM: selftests: Print expected and actual exit reason in KVM exit reason assert
        KVM: selftests: Make vCPU exit reason test assertion common
        KVM: selftests: Add EVTCHNOP_send slow path test to xen_shinfo_test
        KVM: selftests: Use enum for test numbers in xen_shinfo_test
        KVM: selftests: Add helpers to make Xen-style VMCALL/VMMCALL hypercalls
        KVM: selftests: Move the guts of kvm_hypercall() to a separate macro
        KVM: SVM: WARN if GATag generation drops VM or vCPU ID information
        KVM: SVM: Modify AVIC GATag to support max number of 512 vCPUs
        KVM: SVM: Fix a benign off-by-one bug in AVIC physical table mask
        selftests: KVM: skip hugetlb tests if huge pages are not available
        KVM: VMX: Use tabs instead of spaces for indentation
        KVM: VMX: Fix indentation coding style issue
        KVM: nVMX: remove unnecessary #ifdef
        KVM: nVMX: add missing consistency checks for CR0 and CR4
        KVM: arm64: timers: Convert per-vcpu virtual offset to a global value
      0ddc84d2
  6. Mar 15, 2023
    • Linus Torvalds's avatar
      Merge tag 'linux-kselftest-fixes-6.3-rc3' of... · 9c1bec9c
      Linus Torvalds authored
      Merge tag 'linux-kselftest-fixes-6.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
      
      Pull kselftest fixes from Shuah Khan:
       "A fix to amd-pstate test Makefile and a fix to LLVM build for x86 in
        kselftest common lib.mk"
      
      * tag 'linux-kselftest-fixes-6.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
        selftests: fix LLVM build for i386 and x86_64
        selftests: amd-pstate: fix TEST_FILES
      9c1bec9c
    • Paulo Alcantara's avatar
      cifs: use DFS root session instead of tcon ses · 6284e46b
      Paulo Alcantara authored
      
      Use DFS root session whenever possible to get new DFS referrals
      otherwise we might end up with an IPC tcon (tcon->ses->tcon_ipc) that
      doesn't respond to them.  It should be safe accessing
      @ses->dfs_root_ses directly in cifs_inval_name_dfs_link_error() as it
      has same lifetime as of @tcon.
      
      Signed-off-by: default avatarPaulo Alcantara (SUSE) <pc@manguebit.com>
      Cc: stable@vger.kernel.org # 6.2
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      6284e46b
    • Paulo Alcantara's avatar
      cifs: return DFS root session id in DebugData · f446a630
      Paulo Alcantara authored
      
      Return the DFS root session id in /proc/fs/cifs/DebugData to make it
      easier to track which IPC tcon was used to get new DFS referrals for a
      specific connection, and aids in debugging.
      
      A simple output of it would be
      
        Sessions:
        1) Address: 192.168.1.13 Uses: 1 Capability: 0x300067   Session Status: 1
        Security type: RawNTLMSSP  SessionId: 0xd80000000009
        User: 0 Cred User: 0
        DFS root session id: 0x128006c000035
      
      Signed-off-by: default avatarPaulo Alcantara (SUSE) <pc@manguebit.com>
      Cc: stable@vger.kernel.org # 6.2
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      f446a630
    • Linus Torvalds's avatar
      sched_getaffinity: don't assume 'cpumask_size()' is fully initialized · 6015b1ac
      Linus Torvalds authored
      The getaffinity() system call uses 'cpumask_size()' to decide how big
      the CPU mask is - so far so good.  It is indeed the allocation size of a
      cpumask.
      
      But the code also assumes that the whole allocation is initialized
      without actually doing so itself.  That's wrong, because we might have
      fixed-size allocations (making copying and clearing more efficient), but
      not all of it is then necessarily used if 'nr_cpu_ids' is smaller.
      
      Having checked other users of 'cpumask_size()', they all seem to be ok,
      either using it purely for the allocation size, or explicitly zeroing
      the cpumask before using the size in bytes to copy it.
      
      See for example the ublk_ctrl_get_queue_affinity() function that uses
      the proper 'zalloc_cpumask_var()' to make sure that the whole mask is
      cleared, whether the storage is on the stack or if it was an external
      allocation.
      
      Fix this by just zeroing the allocation before using it.  Do the same
      for the compat version of s...
      6015b1ac