Received: by 2002:a17:90a:9103:0:0:0:0 with SMTP id k3csp11787978pjo; Thu, 2 Jan 2020 14:17:16 -0800 (PST) X-Google-Smtp-Source: APXvYqyVGd36/Ro8WDAiNZk2ck6FF2aWACqBsDGmeypDFTkZWAYiN+RqERjtltw61IQvguyxWMPD X-Received: by 2002:a9d:3e43:: with SMTP id h3mr91179203otg.84.1578003436271; Thu, 02 Jan 2020 14:17:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578003436; cv=none; d=google.com; s=arc-20160816; b=0JB8gdjJTiu0636etb2a5rntyx905eA+Z57QgO4yV9UjZMECHq/g+0Nr/zh7k/fdWn eQESM3uaaygHuZ2be/0iT1h1SrqTjoWd5CNPoTywycbMvzpWTNpDeVNp0jdPqhrxe+eJ jstCbshxHaYhDu57WJ/4Ezmc7HkyyqIvaa6ybrkwGp9LMU5mntq5rWPVPVcHAmCt5hEd d5Y4+A+8uXaXbZISSCtfsKCCJKPveYdMeFMbad5/0Yj7hk/uE7U+kFWSBGs7pl8CrNfs 7M68JVN8B2rKubOL7Crmpy0BXI2y6nQzxBRro/5VjKqTpggOiLHuDHNdw9F3kEYLTULb Shbg== 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=qhKqPKFHbgWhsxgCmUrYsDniFyBGWrcvH6/nw9SzYtw=; b=CSIM9ZIAuJY6Iv+9DjOM0Off7HxaPqiB9+aIFjC7Yr5RmSSpi7rBXuhbpY7tN0y18C lB5yUh9ME4/hMu44QX989pUuBw5/yzLxariFk0gbRYvnAPyi+uWdiJOiIfU6fBeA4bSN iOdNYCJXcQbn667MRQc9M8MzTl+n3o8PdV7/9Gq6YrLsF5b6lLv68+Yr6BVRo9K/vfwC /SXJ+IKtyx0caLJgGPRaUvUe/Fue6G2sRa6t0+43LgjCxXpfS2UQ3xm59E6dtXH59HdW fYz6+JykgozPpvskqeZ+Hte3M+D7RGRldHIYFkpLFogAOvwX3qnYPUiANZuHJ8sLtoHM ZEOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QfXD031g; 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 l20si29171938otr.227.2020.01.02.14.17.04; Thu, 02 Jan 2020 14:17:16 -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=QfXD031g; 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 S1728153AbgABWQI (ORCPT + 99 others); Thu, 2 Jan 2020 17:16:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:57716 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727528AbgABWQD (ORCPT ); Thu, 2 Jan 2020 17:16:03 -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 E26F72253D; Thu, 2 Jan 2020 22:16:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578003363; bh=kxFz/ZBpzvwU5N3uVVg+4xNcT/Td854SHiUieOo7OK4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QfXD031gdlsvADsc6I6zQCqcej/lj3rt9rMu7oGTZX95a2mNClUVyndGpBEjqxAuB By38tW9yPN6sxLJyZwWRO1PaoIK0VyXWgFo96Iv/JzLI2ihxqe4e3yQ0OBdmMN2MRw c1pLWSEBp+L9+13dysnAeMU0Gtu6G5tc8Gy658FI= 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 5.4 130/191] Revert "powerpc/vcpu: Assume dedicated processors as non-preempt" Date: Thu, 2 Jan 2020 23:06:52 +0100 Message-Id: <20200102215843.634744563@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102215829.911231638@linuxfoundation.org> References: <20200102215829.911231638@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 8332dbe5157a0056d8ab409957dfa89930066d87 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 @@ -36,12 +36,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 @@ -74,9 +74,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); @@ -761,10 +758,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