Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3A73FC4332F for ; Fri, 2 Dec 2022 21:48:57 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B20368544D; Fri, 2 Dec 2022 22:44:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="X9PU4VI5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5689185278; Fri, 2 Dec 2022 22:43:36 +0100 (CET) Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CB161851E0 for ; Fri, 2 Dec 2022 22:43:29 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-ed1-x534.google.com with SMTP id e13so8079877edj.7 for ; Fri, 02 Dec 2022 13:43:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=1x2b3JpoN64GhM4kv4piH6ClHrMuwUHlGst4FcTYfyM=; b=X9PU4VI5y9MTEV8sXKralEAa5Mj88cHFXH/Hp2oE/dhQK4b9Q9ThXXd+vkaMRoe44v oObjqnIn0NE9GeLiC5WwJDuBT9qaxIlZPO8uXYJk4PQt1/i9V0h7U7XCw3p37BaAv8LP gaG36cCRSFdwn+7La5TWLVjRjP7BDP7VWcM1M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1x2b3JpoN64GhM4kv4piH6ClHrMuwUHlGst4FcTYfyM=; b=uHrjBTaukoMGkQxIaTWEzlb270LexoDSH7FLzMYXbdSviW9Kwu6sYdCA2yLucykEGb lCHfk1QeegXjC8akYxnsv1dbgkPQhbcfQX1NE5WJQUs+hoScFiKunXzzjgYgIjq+5J7v f3YZkVhuH4rClSvDgRKIUHPrVY2t7dh6PTl8VBFbIfTi3up3H8P7zJlyATqK5cCGjW2b H2NNMNuouUlRYkMsM1tl5U/sGJlBsetkdi38JHhIpjKWOwAOo9140gFQmWZz2/m4Mgy+ ZVIby0tEYJiGtIZK+p4y4gkNyvNKY+KkVaixKq5ouo7ihGb9ZJ6v9gFeCmDGL0DuHcSM UwUw== X-Gm-Message-State: ANoB5pmhUeKqYYI+KBsHHsmQmPDLeQTXAMKJXBDmpd4n0l1YXEmvBZ/z VPu7IU4XqA4U3u/5ldPBz/PdaSTlA+J9/3NB X-Google-Smtp-Source: AA0mqf7qaa8uQIb+G11kOV5j2o0GuUaCUNaYOId1dxLrTLldPRIb8CcYqRBeXhq+K8U1s0WJljIssw== X-Received: by 2002:a05:6402:2488:b0:467:3ea1:acdd with SMTP id q8-20020a056402248800b004673ea1acddmr67391533eda.96.1670017409323; Fri, 02 Dec 2022 13:43:29 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-f99b-6f1a-2cc1-7368.res6.spectrum.com. [2603:6081:7b00:6400:f99b:6f1a:2cc1:7368]) by smtp.gmail.com with ESMTPSA id b23-20020a1709062b5700b007c0991735c0sm3434248ejg.79.2022.12.02.13.43.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Dec 2022 13:43:28 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 32/41] powerpc: Migrate CONFIG_PPC_SPINTABLE_COMPATIBLE to Kconfig Date: Fri, 2 Dec 2022 16:42:42 -0500 Message-Id: <20221202214251.3027264-32-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221202214251.3027264-1-trini@konsulko.com> References: <20221127152536.1556469-41-trini@konsulko.com> <20221202214251.3027264-1-trini@konsulko.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Move this symbol to Kconfig, and preserve the current behavior. The help text here comes from where the relevant code is implemented and it is quite likely at this point in time we could either disable this option or at least make it configurable. Signed-off-by: Tom Rini --- arch/powerpc/cpu/mpc85xx/Kconfig | 13 +++++++++++++ arch/powerpc/include/asm/config_mpc85xx.h | 6 ------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/cpu/mpc85xx/Kconfig b/arch/powerpc/cpu/mpc85xx/Kconfig index 36519613a2cc..03373bf86926 100644 --- a/arch/powerpc/cpu/mpc85xx/Kconfig +++ b/arch/powerpc/cpu/mpc85xx/Kconfig @@ -1,6 +1,19 @@ menu "mpc85xx CPU" depends on MPC85xx +config PPC_SPINTABLE_COMPATIBLE + depends on MP + def_bool y + help + To comply with ePAPR 1.1, the spin table has been moved to + cache-enabled memory. Old OS may not work with this change. A patch + is waiting to be accepted for Linux kernel. Other OS needs similar + fix to spin table. For OSes with old spin table code, we can enable + this temporary fix by setting environmental variable + "spin_table_compat". For new OSes, set "spin_table_compat=no". After + Linux is fixed, we can remove this macro and related code. For now, + it is enabled by default. + config SYS_CPU default "mpc85xx" diff --git a/arch/powerpc/include/asm/config_mpc85xx.h b/arch/powerpc/include/asm/config_mpc85xx.h index e80599106066..246bcb9fe498 100644 --- a/arch/powerpc/include/asm/config_mpc85xx.h +++ b/arch/powerpc/include/asm/config_mpc85xx.h @@ -8,12 +8,6 @@ /* SoC specific defines for Freescale MPC85xx (PQ3) and QorIQ processors */ -/* - * This macro should be removed when we no longer care about backwards - * compatibility with older operating systems. - */ -#define CONFIG_PPC_SPINTABLE_COMPATIBLE - #include #if defined(CONFIG_ARCH_MPC8548) -- 2.25.1