Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1365404lqh; Mon, 6 May 2024 05:52:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUUF24mJUVaR0EB9WBLdenWbgA3ZPagnD/jVvmvCE/TkxFFeKU3q0zm2VWKq5w2dQZWTd2XPvDC9dpainTpV6ncKXaVnRThlO2I3n/VhQ== X-Google-Smtp-Source: AGHT+IHWSF5iJYoyR032Zqlyv79IcpoCDqmdhqstEO6RsEcAV7AMSwIxUFadCCn50i94lvbjA62+ X-Received: by 2002:a05:620a:3b85:b0:78e:fe6b:5e6f with SMTP id ye5-20020a05620a3b8500b0078efe6b5e6fmr9858724qkn.63.1714999959556; Mon, 06 May 2024 05:52:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714999959; cv=pass; d=google.com; s=arc-20160816; b=eDOo8tPncPoHVQEil02yLrZ4BYOZHDZvzRpirZqyWtqK9a4jjFNlN6KLDowi0/YKYi 40GNZnU7Z0TFSYmPI2fM1qrP1QkWHnzIivzKkKGRc8jBqvHDhiziUy+dQpt8fYQZNtqz 4sWurJ2c9Ef/4kA1FBXWfJ9+LLNlckHFPtJv2Q02uZZrjXz4z8qf1ajal+OMpeBFcscB uZVxWXCr5fKQiL1J+Oz2ibeW7/b5cmW7T888x1fiL8gWg1tw5PxiTN45ABNfvW1i80me 98u281dJ+Ms0MpXvYQ/Zx/g2nuiomHxiYZA4EhcvLNN+5YHq2TOvGzs9dDtHAFmBck3v IRUA== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=i2LfP7MVsNN4JXvGzO+H7GyJG6eHSoHLCs4iVo4BBu0=; fh=eab6gW29zkGnCor6xfS/s+62IPhPjOcs6uOhep4WXOI=; b=YafACe7LUQkOYw8kAOPaDd/VN4LW723/0dGV3c89Wpo/fbHxe/aVB3hvj1Um/+PKu4 du/fFrSX/PRaZ6PIARQI7rHrs5pnFhekemfGFQ9bghgXFkPqEntqO1LH/GyVXum8JSGs xGTApXLHLJA97r727HN3Uf7jVSvFJqJvQ9DKtQYxYPEi7AiL6P73i0ag51snHRtLRs3z 0rCoaOg/qDiIt6RSaa8iKLmhTqDAeNtO3J1ZCkeGfsahsY7DHUSqCPv/dGpUKneoX//b Pah+COOpfmCrmwuqZEnxkgcj0Y1Bk8zmJHIfVMmFqTUqbj2Bdp+6aAkFt673A/RVdbES valg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=Fr+6qhKF; 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-169844-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169844-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c21-20020a05620a165500b00792956f5a17si2703312qko.646.2024.05.06.05.52.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 05:52:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169844-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=Fr+6qhKF; 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-169844-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169844-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E32111C20E3A for ; Mon, 6 May 2024 12:52:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62DF21EB56; Mon, 6 May 2024 12:52:30 +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="Fr+6qhKF" 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 7D2266CDB3 for ; Mon, 6 May 2024 12:52:24 +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=1714999949; cv=none; b=hA8bEm3cO25hTKlzG/DFtqigEiK7Q36XhDI1E7OuyTB2Yw6Ecvx505e71vRnZGBdLC1TGBhS4Z4uRCqAxn6wp+4Vx8ciKhRGFmm4mb5fRUuT5cy+fWYfVaJcLVG+NTIZe3zKrInowJz1IEHpN24rZgjFfGu1pJ3YCQ1ZT/vDomQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714999949; c=relaxed/simple; bh=DZEInjHtnQRKHvBQmeyUVlyIRGFYgUoqpAIzT4Ngs8o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=d5D2ncnZt12YbkRx7B66z9Ejo/zcXKIPJXLP5uOqTJ5S/HC/JhzjaZ502qVifEvXktWt7s8cpRNgc2odaupVmvic9vUicUOoL+zBfgVS/x2RhNx5Wk1cgqXG6h7UOckiRRWpB48FLcn6WpOZSH2yMg+xkEA/1V4nL/jOhk8twuQ= 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=Fr+6qhKF; 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=1714999942; bh=i2LfP7MVsNN4JXvGzO+H7GyJG6eHSoHLCs4iVo4BBu0=; h=From:To:Cc:Subject:Date:From; b=Fr+6qhKFnbAyZeFSEUYWhqIrfInx/MnUIy3NZHwUCIGsr2FcI/Ojz/BA2/yfKUvvp 8ceGZcf1XMq695drJnqKBFFvTvuNIp01iZc4i5iRe2pc1JtLmIPBeOIOtwdS4QiC8c tBOFXsYD5G58nMcGlUc/1dAxeXnKH9u+8tikQzrhMQOQCCuIo7lau6enVA20q8NVP/ IIZw5uc2pic4M6BpNyuSjQDf2lERoJdfsGU1l6PMiRmOtThJNx5eAq/ylbfx2ESPhY 1h6LhahrXq98sdHw5Z/UAWr8NhqZzIJkiSPs6MJwXx/aoXLZuqf/SNcvULGytIp0Yj mhGr2cb0tQDyQ== 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 4VY1X54vXZz4wnv; Mon, 6 May 2024 22:52:21 +1000 (AEST) From: Michael Ellerman To: Cc: , Subject: [PATCH 0/7] Remove 40x Date: Mon, 6 May 2024 22:51:45 +1000 Message-ID: <20240506125152.78174-1-mpe@ellerman.id.au> X-Mailer: git-send-email 2.45.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The 40x platforms & CPUs are old and have been unmaintained for years, and as far as we can tell have no users. Note 44x and 476 are not affected. Christophe first proposed removing 40x in 2020: https://lore.kernel.org/linuxppc-dev/40899eb1b8f10da3706acd06c3d46d2418c8886e.1585635837.git.christophe.leroy@c-s.fr/ And on a few subsequent occasions. The proposed removal was covered on Phronix: https://www.phoronix.com/news/PowerPC-40x-400-Linux-Removal OpenWRT dropped support in 2019. So unless anyone steps up to maintain it, remove 40x as unused. RIP. cheers More context: https://github.com/linuxppc/issues/issues/349 Christophe Leroy (4): powerpc/40x: Remove 40x platforms. powerpc/boot: Remove all 40x platforms from boot powerpc: Remove core support for 40x powerpc/platforms: Move files from 4xx to 44x Michael Ellerman (3): powerpc: Remove 40x from Kconfig and defconfig powerpc/4xx: Remove CONFIG_BOOKE_OR_40x powerpc: Replace CONFIG_4xx with CONFIG_44x MAINTAINERS | 1 - arch/powerpc/Kconfig | 17 +- arch/powerpc/Kconfig.debug | 13 - arch/powerpc/Makefile | 5 - arch/powerpc/boot/4xx.c | 266 ------- arch/powerpc/boot/4xx.h | 4 - arch/powerpc/boot/Makefile | 11 - arch/powerpc/boot/cuboot-acadia.c | 171 ----- arch/powerpc/boot/cuboot-hotfoot.c | 139 ---- arch/powerpc/boot/cuboot-kilauea.c | 46 -- arch/powerpc/boot/dcr.h | 11 - arch/powerpc/boot/dts/acadia.dts | 224 ------ arch/powerpc/boot/dts/hotfoot.dts | 296 ------- arch/powerpc/boot/dts/kilauea.dts | 407 ---------- arch/powerpc/boot/dts/obs600.dts | 314 -------- arch/powerpc/boot/ppcboot-hotfoot.h | 119 --- arch/powerpc/boot/ppcboot.h | 2 +- arch/powerpc/configs/40x.config | 2 - arch/powerpc/configs/40x/acadia_defconfig | 61 -- arch/powerpc/configs/40x/kilauea_defconfig | 69 -- arch/powerpc/configs/40x/klondike_defconfig | 43 -- arch/powerpc/configs/40x/makalu_defconfig | 59 -- arch/powerpc/configs/40x/obs600_defconfig | 69 -- arch/powerpc/configs/40x/walnut_defconfig | 55 -- arch/powerpc/configs/ppc40x_defconfig | 74 -- arch/powerpc/include/asm/cacheflush.h | 2 +- arch/powerpc/include/asm/cputable.h | 7 - arch/powerpc/include/asm/hw_irq.h | 8 +- arch/powerpc/include/asm/irq.h | 2 +- arch/powerpc/include/asm/kup.h | 2 +- arch/powerpc/include/asm/mmu.h | 7 - arch/powerpc/include/asm/nohash/32/mmu-40x.h | 68 -- arch/powerpc/include/asm/nohash/32/pgtable.h | 4 +- arch/powerpc/include/asm/nohash/32/pte-40x.h | 73 -- arch/powerpc/include/asm/nohash/mmu.h | 5 +- arch/powerpc/include/asm/ppc_asm.h | 2 +- arch/powerpc/include/asm/processor.h | 2 +- arch/powerpc/include/asm/ptrace.h | 2 +- arch/powerpc/include/asm/reg.h | 27 +- arch/powerpc/include/asm/reg_booke.h | 113 +-- arch/powerpc/include/asm/time.h | 7 +- arch/powerpc/include/asm/udbg.h | 1 - arch/powerpc/kernel/Makefile | 1 - arch/powerpc/kernel/asm-offsets.c | 2 +- arch/powerpc/kernel/cpu_specs.h | 4 - arch/powerpc/kernel/cpu_specs_40x.h | 280 ------- arch/powerpc/kernel/entry_32.S | 48 +- arch/powerpc/kernel/epapr_hcalls.S | 2 +- arch/powerpc/kernel/head_32.h | 12 +- arch/powerpc/kernel/head_40x.S | 721 ------------------ arch/powerpc/kernel/head_booke.h | 3 +- arch/powerpc/kernel/irq.c | 2 +- arch/powerpc/kernel/kgdb.c | 4 +- arch/powerpc/kernel/misc_32.S | 40 - arch/powerpc/kernel/process.c | 4 +- arch/powerpc/kernel/setup.h | 2 +- arch/powerpc/kernel/setup_32.c | 2 +- arch/powerpc/kernel/time.c | 2 +- arch/powerpc/kernel/traps.c | 2 +- arch/powerpc/kernel/udbg.c | 3 - arch/powerpc/kernel/udbg_16550.c | 23 - arch/powerpc/mm/fault.c | 4 +- arch/powerpc/mm/mmu_context.c | 2 +- arch/powerpc/mm/mmu_decl.h | 8 +- arch/powerpc/mm/nohash/40x.c | 161 ---- arch/powerpc/mm/nohash/Makefile | 1 - arch/powerpc/mm/nohash/kup.c | 2 - arch/powerpc/mm/nohash/mmu_context.c | 5 +- arch/powerpc/mm/nohash/tlb_low.S | 27 +- arch/powerpc/mm/ptdump/Makefile | 2 +- arch/powerpc/platforms/40x/Kconfig | 78 -- arch/powerpc/platforms/40x/Makefile | 2 - arch/powerpc/platforms/40x/ppc40x_simple.c | 74 -- arch/powerpc/platforms/44x/Makefile | 6 +- arch/powerpc/platforms/{4xx => 44x}/cpm.c | 0 arch/powerpc/platforms/{4xx => 44x}/gpio.c | 0 .../powerpc/platforms/{4xx => 44x}/hsta_msi.c | 0 arch/powerpc/platforms/44x/machine_check.c | 15 + arch/powerpc/platforms/{4xx => 44x}/pci.c | 100 --- arch/powerpc/platforms/{4xx => 44x}/pci.h | 0 arch/powerpc/platforms/{4xx => 44x}/soc.c | 0 arch/powerpc/platforms/{4xx => 44x}/uic.c | 0 arch/powerpc/platforms/4xx/Makefile | 7 - arch/powerpc/platforms/4xx/machine_check.c | 23 - arch/powerpc/platforms/Kconfig | 1 - arch/powerpc/platforms/Kconfig.cputype | 30 +- arch/powerpc/platforms/Makefile | 2 - arch/powerpc/sysdev/Kconfig | 4 +- scripts/head-object-list.txt | 1 - 89 files changed, 77 insertions(+), 4445 deletions(-) delete mode 100644 arch/powerpc/boot/cuboot-acadia.c delete mode 100644 arch/powerpc/boot/cuboot-hotfoot.c delete mode 100644 arch/powerpc/boot/cuboot-kilauea.c delete mode 100644 arch/powerpc/boot/dts/acadia.dts delete mode 100644 arch/powerpc/boot/dts/hotfoot.dts delete mode 100644 arch/powerpc/boot/dts/kilauea.dts delete mode 100644 arch/powerpc/boot/dts/obs600.dts delete mode 100644 arch/powerpc/boot/ppcboot-hotfoot.h delete mode 100644 arch/powerpc/configs/40x.config delete mode 100644 arch/powerpc/configs/40x/acadia_defconfig delete mode 100644 arch/powerpc/configs/40x/kilauea_defconfig delete mode 100644 arch/powerpc/configs/40x/klondike_defconfig delete mode 100644 arch/powerpc/configs/40x/makalu_defconfig delete mode 100644 arch/powerpc/configs/40x/obs600_defconfig delete mode 100644 arch/powerpc/configs/40x/walnut_defconfig delete mode 100644 arch/powerpc/configs/ppc40x_defconfig delete mode 100644 arch/powerpc/include/asm/nohash/32/mmu-40x.h delete mode 100644 arch/powerpc/include/asm/nohash/32/pte-40x.h delete mode 100644 arch/powerpc/kernel/cpu_specs_40x.h delete mode 100644 arch/powerpc/kernel/head_40x.S delete mode 100644 arch/powerpc/mm/nohash/40x.c delete mode 100644 arch/powerpc/platforms/40x/Kconfig delete mode 100644 arch/powerpc/platforms/40x/Makefile delete mode 100644 arch/powerpc/platforms/40x/ppc40x_simple.c rename arch/powerpc/platforms/{4xx => 44x}/cpm.c (100%) rename arch/powerpc/platforms/{4xx => 44x}/gpio.c (100%) rename arch/powerpc/platforms/{4xx => 44x}/hsta_msi.c (100%) rename arch/powerpc/platforms/{4xx => 44x}/pci.c (95%) rename arch/powerpc/platforms/{4xx => 44x}/pci.h (100%) rename arch/powerpc/platforms/{4xx => 44x}/soc.c (100%) rename arch/powerpc/platforms/{4xx => 44x}/uic.c (100%) delete mode 100644 arch/powerpc/platforms/4xx/Makefile delete mode 100644 arch/powerpc/platforms/4xx/machine_check.c -- 2.45.0