From nobody Thu Apr 2 19:56:28 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2DA29C6FA8E for ; Wed, 21 Sep 2022 15:51:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231688AbiIUPvH (ORCPT ); Wed, 21 Sep 2022 11:51:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231419AbiIUPuS (ORCPT ); Wed, 21 Sep 2022 11:50:18 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 418509C23D; Wed, 21 Sep 2022 08:48:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 730A4B830AC; Wed, 21 Sep 2022 15:48:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A310BC433D6; Wed, 21 Sep 2022 15:48:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1663775300; bh=5KUO50411rAj2jsiN5w6CxZ3fOpgl7KcLMMlqaAIV3s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gvdjBk1GR81QuwNs1aKxO0eaYvgAeVu1e0c6aiSILDbchDLKkxy57FLluQINl2J2O FA8jzj8NBTYBBFZfkPHeoAd1ySvmtNK5PRCvlUgokr1fO3+o71z7xY6l1IASqiHvlq dMdPOjh31Rj6lj1S/9mVzB0b3tdzXkOnthU/BqIg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Helge Deller Subject: [PATCH 5.19 26/38] parisc: Allow CONFIG_64BIT with ARCH=parisc Date: Wed, 21 Sep 2022 17:46:10 +0200 Message-Id: <20220921153647.082807190@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220921153646.298361220@linuxfoundation.org> References: <20220921153646.298361220@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Helge Deller commit 805ce8614958c925877ba6b6dc26cdf9f8800474 upstream. The previous patch triggered a build failure for the debian kernel, which has CONFIG_64BIT enabled, uses the CROSS_COMPILER environment variable and uses ARCH=3Dparisc to configure the kernel for 64-bit support. This patch weakens the previous patch while keeping the recommended way to configure the kernel with: ARCH=3Dparisc -> build 32-bit kernel ARCH=3Dparisc64 -> build 64-bit kernel while adding the possibility for debian to configure a 64-bit kernel even if ARCH=3Dparisc is set (PA8X00 CPU has to be selected and CONFIG_64BIT needs to be enabled). The downside of this patch is, that we now have a small window open again where people may get it wrong: if they enable CONFIG_64BIT and try to compile with a 32-bit compiler. Fixes: 3dcfb729b5f4 ("parisc: Make CONFIG_64BIT available for ARCH=3Dparisc= 64 only") Signed-off-by: Helge Deller Cc: # 5.15+ Signed-off-by: Greg Kroah-Hartman --- arch/parisc/Kconfig | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) --- a/arch/parisc/Kconfig +++ b/arch/parisc/Kconfig @@ -225,8 +225,18 @@ config MLONGCALLS Enabling this option will probably slow down your kernel. =20 config 64BIT - def_bool "$(ARCH)" =3D "parisc64" + def_bool y if "$(ARCH)" =3D "parisc64" + bool "64-bit kernel" if "$(ARCH)" =3D "parisc" depends on PA8X00 + help + Enable this if you want to support 64bit kernel on PA-RISC platform. + + At the moment, only people willing to use more than 2GB of RAM, + or having a 64bit-only capable PA-RISC machine should say Y here. + + Since there is no 64bit userland on PA-RISC, there is no point to + enable this option otherwise. The 64bit kernel is significantly bigger + and slower than the 32bit one. =20 choice prompt "Kernel page size"