From: Greg Kroah-Hartman Date: Wed, 1 Jan 2020 16:26:58 +0000 (+0100) Subject: 4.19-stable patches X-Git-Tag: v4.4.208~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8bb4956ce7ee13eddb40970d82f9828c59a58e59;p=thirdparty%2Fkernel%2Fstable-queue.git 4.19-stable patches added patches: revert-powerpc-vcpu-assume-dedicated-processors-as-non-preempt.patch --- diff --git a/queue-4.19/revert-powerpc-vcpu-assume-dedicated-processors-as-non-preempt.patch b/queue-4.19/revert-powerpc-vcpu-assume-dedicated-processors-as-non-preempt.patch new file mode 100644 index 00000000000..37521e2efe6 --- /dev/null +++ b/queue-4.19/revert-powerpc-vcpu-assume-dedicated-processors-as-non-preempt.patch @@ -0,0 +1,68 @@ +From 40cd4c96d96eb82d9481ccb4ad7e2304e7f82a93 Mon Sep 17 00:00:00 2001 +From: Greg Kroah-Hartman +Date: Wed, 1 Jan 2020 17:24:32 +0100 +Subject: Revert "powerpc/vcpu: Assume dedicated processors as non-preempt" + +From: Greg Kroah-Hartman + +This reverts commit 4ba32bdbd8c66d9c7822aea8dcf4e51410df84a8 which is +commit 14c73bd344da60abaf7da3ea2e7733ddda35bbac upstream. + +It breaks the build. + +Cc: Guenter Roeck +Cc: Parth Shah +Cc: Ihor Pasichnyk +Cc: Juri Lelli +Cc: Waiman Long +Cc: Gautham R. Shenoy +Cc: Srikar Dronamraju +Cc: Phil Auld +Cc: Vaidyanathan Srinivasan +Cc: Parth Shah +Cc: Michael Ellerman +Signed-off-by: Greg Kroah-Hartman +--- + arch/powerpc/include/asm/spinlock.h | 4 +--- + arch/powerpc/platforms/pseries/setup.c | 7 ------- + 2 files changed, 1 insertion(+), 10 deletions(-) + +--- a/arch/powerpc/include/asm/spinlock.h ++++ b/arch/powerpc/include/asm/spinlock.h +@@ -53,12 +53,10 @@ + #endif + + #ifdef CONFIG_PPC_PSERIES +-DECLARE_STATIC_KEY_FALSE(shared_processor); +- + #define vcpu_is_preempted vcpu_is_preempted + static inline bool vcpu_is_preempted(int cpu) + { +- if (!static_branch_unlikely(&shared_processor)) ++ if (!firmware_has_feature(FW_FEATURE_SPLPAR)) + return false; + return !!(be32_to_cpu(lppaca_of(cpu).yield_count) & 1); + } +--- a/arch/powerpc/platforms/pseries/setup.c ++++ b/arch/powerpc/platforms/pseries/setup.c +@@ -75,9 +75,6 @@ + #include "pseries.h" + #include "../../../../drivers/pci/pci.h" + +-DEFINE_STATIC_KEY_FALSE(shared_processor); +-EXPORT_SYMBOL_GPL(shared_processor); +- + int CMO_PrPSP = -1; + int CMO_SecPSP = -1; + unsigned long CMO_PageSize = (ASM_CONST(1) << IOMMU_PAGE_SHIFT_4K); +@@ -764,10 +761,6 @@ static void __init pSeries_setup_arch(vo + + if (firmware_has_feature(FW_FEATURE_LPAR)) { + vpa_init(boot_cpuid); +- +- if (lppaca_shared_proc(get_lppaca())) +- static_branch_enable(&shared_processor); +- + ppc_md.power_save = pseries_lpar_idle; + ppc_md.enable_pmcs = pseries_lpar_enable_pmcs; + #ifdef CONFIG_PCI_IOV diff --git a/queue-4.19/series b/queue-4.19/series index 6789c30c7b8..ce5a1c4ea84 100644 --- a/queue-4.19/series +++ b/queue-4.19/series @@ -70,3 +70,4 @@ ocfs2-fix-passing-zero-to-ptr_err-warning.patch mailbox-imx-fix-tx-doorbell-shutdown-path.patch kernel-sysctl-make-drop_caches-write-only.patch userfaultfd-require-cap_sys_ptrace-for-uffd_feature_.patch +revert-powerpc-vcpu-assume-dedicated-processors-as-non-preempt.patch