1. 28 2月, 2020 14 次提交
  2. 13 2月, 2020 8 次提交
  3. 12 2月, 2020 8 次提交
  4. 11 2月, 2020 8 次提交
  5. 10 2月, 2020 2 次提交
    • Q
      arm64/spinlock: fix a -Wunused-function warning · 345d52c1
      Qian Cai 提交于
      The commit f5bfdc8e ("locking/osq: Use optimized spinning loop for
      arm64") introduced a warning from Clang because vcpu_is_preempted() is
      compiled away,
      
      kernel/locking/osq_lock.c:25:19: warning: unused function 'node_cpu'
      [-Wunused-function]
      static inline int node_cpu(struct optimistic_spin_node *node)
                        ^
      1 warning generated.
      
      Fix it by converting vcpu_is_preempted() to a static inline function.
      
      Fixes: f5bfdc8e ("locking/osq: Use optimized spinning loop for arm64")
      Acked-by: NWaiman Long <longman@redhat.com>
      Signed-off-by: NQian Cai <cai@lca.pw>
      Signed-off-by: NWill Deacon <will@kernel.org>
      345d52c1
    • W
      arm64: ssbs: Fix context-switch when SSBS is present on all CPUs · fca3d33d
      Will Deacon 提交于
      When all CPUs in the system implement the SSBS extension, the SSBS field
      in PSTATE is the definitive indication of the mitigation state. Further,
      when the CPUs implement the SSBS manipulation instructions (advertised
      to userspace via an HWCAP), EL0 can toggle the SSBS field directly and
      so we cannot rely on any shadow state such as TIF_SSBD at all.
      
      Avoid forcing the SSBS field in context-switch on such a system, and
      simply rely on the PSTATE register instead.
      
      Cc: <stable@vger.kernel.org>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Srinivas Ramana <sramana@codeaurora.org>
      Fixes: cbdf8a18 ("arm64: Force SSBS on context switch")
      Reviewed-by: NMarc Zyngier <maz@kernel.org>
      Signed-off-by: NWill Deacon <will@kernel.org>
      fca3d33d