Received: by 2002:a17:90a:9103:0:0:0:0 with SMTP id k3csp11793241pjo; Thu, 2 Jan 2020 14:22:42 -0800 (PST) X-Google-Smtp-Source: APXvYqwIuglKMT+ls/3NCO+jzOazLMsAIuscCF1x9hlE37MkH9w1DwZVDrlTZssUQU4eBxuic/hj X-Received: by 2002:a05:6808:292:: with SMTP id z18mr2899927oic.131.1578003762773; Thu, 02 Jan 2020 14:22:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578003762; cv=none; d=google.com; s=arc-20160816; b=E6pqMIvZuuI5un+GD5bO9AxmNHWvDT/mBD3zdKG8MV1/ZJdyZ9Jks83WfhDTuJ03xH W2Y0pqebWDfG/4GsyRCqKbgN6+1IB6LX0IaS+9S+zDD1BWe7/gCeHj5Uji8hQrUBGXW7 mFtzHaTDVRfCE3gZQ01q8qaFDgm5RFXNDgqXNRGjg3TByt5fYcll5iuvqD5UuJFuE3ZV i+mzOx0zaZODdjLtV57VV4MJfRSXKrWNXQMdzyk9WQUSw/lr7FTVohh/qmLO7ax1M1Ti Q3rgbZ19NkeL8xe35r/SNoLQ+FkVInMHYfLQbCLbqjKzzvmi94lNuRAuB1Gd3N5FFwyY 4S8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=apUTDLf7ig8qMzMKhcCqI3w7YrXojKouc/awxUMlELQ=; b=az0/CLNKvu4+i9Qq2P89KGbTXt2v+IoNn840qbLIlqMz0/ISORQVlGjw9owrMmzCJs f7e+wjqAvWXX5FkAUeVPLuKe7hvfPxWXxlrrJfCXBSm5VoUPhFU4he/PZLj8MAJDQc5P vZxyF8PfpON+BGhTMa0OMwIM4fWrd2Qo7I9QUBDH0t1ORr1EMk5pvbTJbT6mDHRofdhy akhcGIMgul8tQ67NBalCwL4CLwmqgGJktdKzVipsapJgsd0KaXX/L1ih3l4cn6AEU+VI qc0gQ4FWo1HLF8kDgjPQONtZc2JNKAgyuXKR45q+i7mwKt1POYAviGZf519BbM+cC/j8 KCsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IIMQM9w+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p26si30370844oto.240.2020.01.02.14.22.31; Thu, 02 Jan 2020 14:22:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IIMQM9w+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728884AbgABWVy (ORCPT + 99 others); Thu, 2 Jan 2020 17:21:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:41386 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729047AbgABWVr (ORCPT ); Thu, 2 Jan 2020 17:21:47 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E58AF21835; Thu, 2 Jan 2020 22:21:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578003706; bh=U5GgqEyn+KoZCexv7j0LgkAynPcyqk8Rd4HfTxE53UA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IIMQM9w+BoqzxYMrMUqhNCe8D+9Anzr5CglvIlJ2keV1Ek+coj3nibCBqRI/yBLWo OdzAYreOjfIz3rGRT8viq/X0Y0ZpWEwuZfnksJ/U544DVTYK7LTEX2TQUsrA3hSIJS 35SeIpToutTwd3HEU+MVuOeid4mSXiVmrUUC60gk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Guenter Roeck , Parth Shah , Ihor Pasichnyk , Juri Lelli , Waiman Long , "Gautham R. Shenoy" , Srikar Dronamraju , Phil Auld , Vaidyanathan Srinivasan , Michael Ellerman Subject: [PATCH 4.19 073/114] Revert "powerpc/vcpu: Assume dedicated processors as non-preempt" Date: Thu, 2 Jan 2020 23:07:25 +0100 Message-Id: <20200102220036.470720283@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102220029.183913184@linuxfoundation.org> References: <20200102220029.183913184@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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