Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1365641lqh; Mon, 6 May 2024 05:53:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUlQaE7naSX9KDzmSOmjJ+w3UAY0dTLqJSk4EzfX9ffNQ20n3F9YMZF2umUgU1F3Ow8wQy2+9Ya0YQoqfVa6IGCNzoZtxySOGaJExKFYg== X-Google-Smtp-Source: AGHT+IGQrxPCYUQbCYFPKMYrfQP1yInWZLS8b9ghbx3izvefnuoUtZ/v8qBsXavr4ttn1RJOP7cx X-Received: by 2002:a17:903:22d2:b0:1e3:cf18:7464 with SMTP id y18-20020a17090322d200b001e3cf187464mr14843331plg.3.1714999990884; Mon, 06 May 2024 05:53:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714999990; cv=pass; d=google.com; s=arc-20160816; b=wBPN2FC2iPEc9AoUlaVlIP3uf4aUsVTFTzP+WpjSbWgD6y3dH6toKmL77UycBGij0f 3qVZL3Ev3+zZ1CzKY5TbRsBBKin1bxhilMVraQdgX9AEpKn8cY+5qmEzxuGvJ2GOlcrA bBo1hZxRBGLvud0fK7r1LVwboVFjfHhC4K601UE18AGFPYikEAOIgdnMN6r69wRwjhTp WIfEmErf2eRYEPU65xVRKriz8NA/4cCT3bVqvZ+0Ry63uZTIlqBkuTfOPqSMZqAwuF7d BgaO/fOs5hAv+5GuVP/n2TVtlN1xWnv6G1mRi6h+oIfIESapvi7y0PFz5nc5BFcZKqj6 Yx8Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=fflUEsW8w7+boafiXGwMARDUHcOyutNd5Abpf97qpqY=; fh=eab6gW29zkGnCor6xfS/s+62IPhPjOcs6uOhep4WXOI=; b=BtoiagHMj0ogCTjauiTN+xJWqkWKorAShV+HIe6/fT9QBiw2B9ru+HHnvIHoXrWhxH hCErbucQ/W9V+OOpH2S6PT+4Uh+1RFFF4/PCKm/oRSLsJKMudhY2EjeLLD9CR41K7z9z +S7Uo66E7fwmhQl6/d9n6nRkGkWLEFy3W4n8a+YW+etrskSikTChpXVOV6F8D+1DsurS u+6M3YpTfCbVEGMa2YP/3oCwqSxa2rYZ134KcryqtpqCRDkysVMVpGjjXFK+TxMqOnuA XSl5BO9QDuHfDH/FzHRHKub+WDgQvTTq9Jwk6oATx6xKaHHI2CU1JsM8WFTiP2rDIerW IBYw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b="htWpz/GZ"; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au dkim=pass dkdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-169848-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169848-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u9-20020a170902e5c900b001e504940a11si8350041plf.231.2024.05.06.05.53.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 05:53:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169848-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b="htWpz/GZ"; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au dkim=pass dkdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-169848-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169848-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7F7C328A70A for ; Mon, 6 May 2024 12:53:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7569E78C85; Mon, 6 May 2024 12:52:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ellerman.id.au header.i=@ellerman.id.au header.b="htWpz/GZ" Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B0C4E75818 for ; Mon, 6 May 2024 12:52:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=150.107.74.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714999953; cv=none; b=gTMOsiVuFclNw7VyBXvbHWJkwG9e4NuxftNE8fBY8629UFPyA5ie03hgTihoW7gdb0bEbv8B8U0Qqin/ZQExo9K186/CeMy5vLGNQMCsQba8rD/l4pn4S7Li3SkT0C5uzEdXZiwgmYZE7rsQtAFMZogZOUyYNr4EheONiiDo5fo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714999953; c=relaxed/simple; bh=Abge7GWyr3daAiPeF3ZgzQZrLikEhx6hR0e9sMn+5PE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ER/9GDchQjYaG1gLBzXKYPRMfmSeQMsVZufpqKbE+rSp/hQQmeBAsY3CB06mKFciQ8yxNjUrxf3OFiRkH2rtguEO+27AM+ho7ieE1H0SdGI4KqrWmH3T1Ojr5jUvxe9+WAeaf1zpLMOvSSey/aYVJaMVRYA7lK43C+p6xE2AWAo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au; spf=pass smtp.mailfrom=ellerman.id.au; dkim=pass (2048-bit key) header.d=ellerman.id.au header.i=@ellerman.id.au header.b=htWpz/GZ; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ellerman.id.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1714999945; bh=fflUEsW8w7+boafiXGwMARDUHcOyutNd5Abpf97qpqY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=htWpz/GZCiAiuXKiL0VyYom9TvzAp4sju1599tnB5k6r1BSqkyyNfwgl2fSDv2E76 tsZlrRB0+fNDVji24JjfQuJW7OXFv1wG0GFG3mogbl6SReyMN+r0IIQZby2Oeg/bOK uv4Y6eE8uzo0rQA1e4tn1sW2kX1SUbb3cszNdUrYd3wnX9nALZsiFrQJvn5mP6DP+G w1EAVbzUluR7vCxoTj7zzdxivjZqWwqomtyZgchK0xlA3NC0VxYUU0UzjaZxNZH+Pv wQGT1JFkofDTzRMLJcoMkQH5CLkWwsopJeG4cWGUjVSh9bnJeXjkBM5hMUgqDdtCPN DTrQ7Nl/dQz6Q== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4VY1X94k9fz4x2w; Mon, 6 May 2024 22:52:25 +1000 (AEST) From: Michael Ellerman To: Cc: , Subject: [PATCH 6/7] powerpc: Replace CONFIG_4xx with CONFIG_44x Date: Mon, 6 May 2024 22:51:51 +1000 Message-ID: <20240506125152.78174-7-mpe@ellerman.id.au> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240506125152.78174-1-mpe@ellerman.id.au> References: <20240506125152.78174-1-mpe@ellerman.id.au> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Replace 4xx usage with 44x, and replace 4xx_SOC with 44x. Signed-off-by: Michael Ellerman --- arch/powerpc/Kconfig | 5 +---- arch/powerpc/include/asm/cacheflush.h | 2 +- arch/powerpc/include/asm/ppc_asm.h | 2 +- arch/powerpc/kernel/entry_32.S | 6 +++--- arch/powerpc/kernel/process.c | 2 +- arch/powerpc/mm/fault.c | 4 ++-- arch/powerpc/mm/ptdump/Makefile | 2 +- arch/powerpc/platforms/4xx/Makefile | 2 +- arch/powerpc/platforms/Kconfig.cputype | 8 +------- arch/powerpc/sysdev/Kconfig | 4 ++-- 10 files changed, 14 insertions(+), 23 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 9a7d2b218516..2b6fa87464a5 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -488,7 +488,7 @@ source "kernel/Kconfig.hz" config MATH_EMULATION bool "Math emulation" - depends on 4xx || PPC_8xx || PPC_MPC832x || BOOKE || PPC_MICROWATT + depends on 44x || PPC_8xx || PPC_MPC832x || BOOKE || PPC_MICROWATT select PPC_FPU_REGS help Some PowerPC chips designed for embedded applications do not have @@ -1102,9 +1102,6 @@ config PPC4xx_CPM It also enables support for two different idle states (idle-wait and idle-doze). -config 4xx_SOC - bool - config FSL_LBC bool "Freescale Local Bus support" help diff --git a/arch/powerpc/include/asm/cacheflush.h b/arch/powerpc/include/asm/cacheflush.h index ef7d2de33b89..f2656774aaa9 100644 --- a/arch/powerpc/include/asm/cacheflush.h +++ b/arch/powerpc/include/asm/cacheflush.h @@ -121,7 +121,7 @@ static inline void invalidate_dcache_range(unsigned long start, mb(); /* sync */ } -#ifdef CONFIG_4xx +#ifdef CONFIG_44x static inline void flush_instruction_cache(void) { iccci((void *)KERNELBASE); diff --git a/arch/powerpc/include/asm/ppc_asm.h b/arch/powerpc/include/asm/ppc_asm.h index 1d1018c1e482..02897f4b0dbf 100644 --- a/arch/powerpc/include/asm/ppc_asm.h +++ b/arch/powerpc/include/asm/ppc_asm.h @@ -482,7 +482,7 @@ END_FTR_SECTION_NESTED(CPU_FTR_CELL_TB_BUG, CPU_FTR_CELL_TB_BUG, 96) * and they must be used. */ -#if !defined(CONFIG_4xx) && !defined(CONFIG_PPC_8xx) +#if !defined(CONFIG_44x) && !defined(CONFIG_PPC_8xx) #define tlbia \ li r4,1024; \ mtctr r4; \ diff --git a/arch/powerpc/kernel/entry_32.S b/arch/powerpc/kernel/entry_32.S index 1522164b10e4..98ad926c056f 100644 --- a/arch/powerpc/kernel/entry_32.S +++ b/arch/powerpc/kernel/entry_32.S @@ -211,7 +211,7 @@ start_kernel_thread: .globl fast_exception_return fast_exception_return: -#if !(defined(CONFIG_4xx) || defined(CONFIG_BOOKE)) +#if !(defined(CONFIG_44x) || defined(CONFIG_BOOKE)) andi. r10,r9,MSR_RI /* check for recoverable interrupt */ beq 3f /* if not, we've got problems */ #endif @@ -365,7 +365,7 @@ ALT_FTR_SECTION_END_IFCLR(CPU_FTR_STCX_CHECKS_ADDRESS) rfi _ASM_NOKPROBE_SYMBOL(interrupt_return) -#if defined(CONFIG_4xx) || defined(CONFIG_BOOKE) +#if defined(CONFIG_44x) || defined(CONFIG_BOOKE) /* * Returning from a critical interrupt in user mode doesn't need @@ -469,4 +469,4 @@ ret_from_mcheck_exc: RET_FROM_EXC_LEVEL(SPRN_MCSRR0, SPRN_MCSRR1, PPC_RFMCI) _ASM_NOKPROBE_SYMBOL(ret_from_mcheck_exc) #endif /* CONFIG_BOOKE */ -#endif /* !(CONFIG_4xx || CONFIG_BOOKE) */ +#endif /* !(CONFIG_44x || CONFIG_BOOKE) */ diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index 196cfa41ad6e..cddb4c099bbd 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c @@ -1566,7 +1566,7 @@ static void __show_regs(struct pt_regs *regs) if (trap == INTERRUPT_MACHINE_CHECK || trap == INTERRUPT_DATA_STORAGE || trap == INTERRUPT_ALIGNMENT) { - if (IS_ENABLED(CONFIG_4xx) || IS_ENABLED(CONFIG_BOOKE)) + if (IS_ENABLED(CONFIG_44x) || IS_ENABLED(CONFIG_BOOKE)) pr_cont("DEAR: "REG" ESR: "REG" ", regs->dear, regs->esr); else pr_cont("DAR: "REG" DSISR: %08lx ", regs->dar, regs->dsisr); diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c index 53335ae21a40..9af44ddf4b53 100644 --- a/arch/powerpc/mm/fault.c +++ b/arch/powerpc/mm/fault.c @@ -361,13 +361,13 @@ static void sanity_check_fault(bool is_write, bool is_user, * Define the correct "is_write" bit in error_code based * on the processor family */ -#if (defined(CONFIG_4xx) || defined(CONFIG_BOOKE)) +#if (defined(CONFIG_44x) || defined(CONFIG_BOOKE)) #define page_fault_is_write(__err) ((__err) & ESR_DST) #else #define page_fault_is_write(__err) ((__err) & DSISR_ISSTORE) #endif -#if defined(CONFIG_4xx) || defined(CONFIG_BOOKE) +#if defined(CONFIG_44x) || defined(CONFIG_BOOKE) #define page_fault_is_bad(__err) (0) #elif defined(CONFIG_PPC_8xx) #define page_fault_is_bad(__err) ((__err) & DSISR_NOEXEC_OR_G) diff --git a/arch/powerpc/mm/ptdump/Makefile b/arch/powerpc/mm/ptdump/Makefile index dc896d2874f3..0f7a050f327e 100644 --- a/arch/powerpc/mm/ptdump/Makefile +++ b/arch/powerpc/mm/ptdump/Makefile @@ -2,7 +2,7 @@ obj-y += ptdump.o -obj-$(CONFIG_4xx) += shared.o +obj-$(CONFIG_44x) += shared.o obj-$(CONFIG_PPC_8xx) += 8xx.o obj-$(CONFIG_PPC_E500) += shared.o obj-$(CONFIG_PPC_BOOK3S_32) += shared.o diff --git a/arch/powerpc/platforms/4xx/Makefile b/arch/powerpc/platforms/4xx/Makefile index 2071a0abe09b..7f57c35f8dec 100644 --- a/arch/powerpc/platforms/4xx/Makefile +++ b/arch/powerpc/platforms/4xx/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only obj-y += uic.o machine_check.o -obj-$(CONFIG_4xx_SOC) += soc.o +obj-$(CONFIG_44x) += soc.o obj-$(CONFIG_PCI) += pci.o obj-$(CONFIG_PPC4xx_HSTA_MSI) += hsta_msi.o obj-$(CONFIG_PPC4xx_CPM) += cpm.o diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype index 55337628bf92..ce1ff72dc537 100644 --- a/arch/powerpc/platforms/Kconfig.cputype +++ b/arch/powerpc/platforms/Kconfig.cputype @@ -47,7 +47,6 @@ config 44x bool "AMCC 44x, 46x or 47x" select PPC_DCR_NATIVE select PPC_UDBG_16550 - select 4xx_SOC select HAVE_PCI select PHYS_64BIT select PPC_KUEP @@ -325,11 +324,6 @@ config FSL_EMB_PERF_EVENT_E500 depends on FSL_EMB_PERF_EVENT && PPC_E500 default y -config 4xx - bool - depends on 44x - default y - config BOOKE bool depends on PPC_E500 || 44x @@ -564,7 +558,7 @@ config NR_CPUS config NOT_COHERENT_CACHE bool - depends on 4xx || PPC_8xx || PPC_MPC512x || \ + depends on 44x || PPC_8xx || PPC_MPC512x || \ GAMECUBE_COMMON || AMIGAONE select ARCH_HAS_DMA_PREP_COHERENT select ARCH_HAS_SYNC_DMA_FOR_DEVICE diff --git a/arch/powerpc/sysdev/Kconfig b/arch/powerpc/sysdev/Kconfig index 5aa92ff3622d..18ff2c4a814a 100644 --- a/arch/powerpc/sysdev/Kconfig +++ b/arch/powerpc/sysdev/Kconfig @@ -5,12 +5,12 @@ config PPC4xx_PCI_EXPRESS bool - depends on PCI && 4xx + depends on PCI && 44x config PPC4xx_HSTA_MSI bool depends on PCI_MSI - depends on PCI && 4xx + depends on PCI && 44x config PPC_MSI_BITMAP bool -- 2.45.0