Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9816137rwd; Wed, 21 Jun 2023 12:14:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ584b2iTlspcbocgfd6RJ3RbyAPN9tPvrau13FO19d59Gao8uhMH0t5zXOVSRXGij/KiycN X-Received: by 2002:a05:6a20:9389:b0:122:20c:fbb3 with SMTP id x9-20020a056a20938900b00122020cfbb3mr9885977pzh.39.1687374880486; Wed, 21 Jun 2023 12:14:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687374880; cv=none; d=google.com; s=arc-20160816; b=xtnJI+T4asJsSqUyjfu2lQqQimG04INbvqpV/JXzTpgy+iuhGSr+R1ob3J6O9sSkrm HzNGwLLzPWPbkfM4ERkewvAC/yu7eUxNU0ZvqwTipgjb8O6d2F8e3HrK2bbaiM8oNl0H GMPrkn7sY36xj9I2zlzf9Z7xAUhVzsSlv8R6gnxEBBvA/l/nzmXZ1KfaefB+6NUTIw9X 7RRUYee+6XuEuJ/V7oPNXKgGTWCI3p1tOMVLpudPRLVhUHTjlJVG8s9h9EN/chmRa4RQ +GCi1Lss4ywBizVh8dyt0B/3/lIjhlVDaIHG+sD+KYUfFXvVUXLqYIYEokkZUOBjMJ18 Q4Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=vKHdwE9HDwK/PnCj6TSYFp+nloUKhWDIPZ4rIovuvIY=; b=OkzOO1v63Qz1+rmxHBGZJ6/sDpO76J2FuFJWG3Zp8jgewHYCZj6UIdbKHbUu3IOYjd hmc6mQ+rSAYS5Isado1Vx9uAr8hBxwNDPuB4G1NLXjf2eBNaCN+KZ/olcap6rsIsZkLk QtRilAhByDVk835e/g9mh2ocZAmsxZ6seac/+0mZ3eonlnK9Dq2dT1s3mv9M4wkxNHBZ 56IsaCpmeWhTj+0k6nAPo350ZkSFqebsUN7KY377z/LUKMni4EKcdhcOlSLrlj85Eawc YQDbyjRsgxIqDc+48FhDd53pvEHNPb9u/AyLV53hUL6J1UrZk/zAbUjuuUuNr8W4TByL wO0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UD6zMebW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v18-20020a637a12000000b0054ff82a6833si4752732pgc.444.2023.06.21.12.14.27; Wed, 21 Jun 2023 12:14:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UD6zMebW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231415AbjFUTA4 (ORCPT + 99 others); Wed, 21 Jun 2023 15:00:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229549AbjFUTAz (ORCPT ); Wed, 21 Jun 2023 15:00:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B5B2B4 for ; Wed, 21 Jun 2023 12:00:54 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 27EE0616A2 for ; Wed, 21 Jun 2023 19:00:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B382C433C9; Wed, 21 Jun 2023 19:00:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687374053; bh=wCtBx+btmEgXd4oHrHrBecjQgIOZOa4Ob05hmny7ong=; h=From:To:Cc:Subject:Date:From; b=UD6zMebW8v4rlI15uda5rm5vBtPpQemAWU+RHv65YDQt5kS8uIvAdhIdZqXWeSm8a RvZa57VSMtudntxVd5mpTTJQZy96QRxiQO8GyGlQ71NpaVjC3HERMHV3Mke/Brss1D GF3CI/rbBQcc3dRiQ/LYX+Dwqz35FsqitIMNPm5h+2N8nl2a2nWxPBAx5PKH/IEZXq s4HsH6tvowvJzzj2TsCRxvi3N7UOcl5ux6sEAWCX9jN67KFAGN7rPt0jLwSM0J0JQ+ S99CwpbpB69iEm510ZVFbOGuFn22dlQBGalESET3gvsAqWGQMih8KwTSusRlBbKHBw T5AA8uIDjDUYw== From: Conor Dooley To: linux-riscv@lists.infradead.org Cc: conor@kernel.org, Conor Dooley , Randy Dunlap , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jisheng Zhang , linux-kernel@vger.kernel.org Subject: [PATCH v1] RISC-V: make ARCH_THEAD preclude XIP_KERNEL Date: Wed, 21 Jun 2023 20:00:31 +0100 Message-Id: <20230621-panorama-stuffing-f24b26546972@spud> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1448; i=conor.dooley@microchip.com; h=from:subject:message-id; bh=DKC0lvBVjPZAhDU4YTCtHGJdKRYVtZU6wqvi6iUcYRc=; b=owGbwMvMwCFWscWwfUFT0iXG02pJDCmTPc78tOsQ3d+/6qTti7LOoA1PpzP7rrzHtIj3ZVPt/ 8Ozd1+O6ihlYRDjYJAVU2RJvN3XIrX+j8sO5563MHNYmUCGMHBxCsBEtFoZGa5YvXy+b8adD3G2 /ntunuGLW8ay6d52hVV7FTbZHz5+w8CPkeFB4rPzaXOFF10MW83VwJ7geDK0sk7MV+GUsvGKf+e 8p/EDAA== X-Developer-Key: i=conor.dooley@microchip.com; a=openpgp; fpr=F9ECA03CF54F12CD01F1655722E2C55B37CF380C Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Conor Dooley Randy reported build errors in linux-next where XIP_KERNEL was enabled. ARCH_THEAD requires alternatives to support the non-standard ISA extensions used by the THEAD cores, which are mutually exclusive with XIP kernels. Clone the dependency list from the Allwinner entry, since Allwinner's D1 uses T-Head cores with the same non-standard extensions. Reported-by: Randy Dunlap Reviewed-by: Randy Dunlap Tested-by: Randy Dunlap # build-tested Link: https://lore.kernel.org/all/ab38f6af-cb68-a918-1a63-2e7c927a8ffc@infradead.org/ Fixes: da47ce003963 ("riscv: Add the T-HEAD SoC family Kconfig option") Signed-off-by: Conor Dooley --- CC: Paul Walmsley CC: Palmer Dabbelt CC: Albert Ou CC: Jisheng Zhang CC: linux-riscv@lists.infradead.org CC: linux-kernel@vger.kernel.org --- arch/riscv/Kconfig.socs | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs index ce10a38dff37..6833d01e2e70 100644 --- a/arch/riscv/Kconfig.socs +++ b/arch/riscv/Kconfig.socs @@ -43,6 +43,7 @@ config ARCH_SUNXI config ARCH_THEAD bool "T-HEAD RISC-V SoCs" + depends on MMU && !XIP_KERNEL select ERRATA_THEAD help This enables support for the RISC-V based T-HEAD SoCs. -- 2.39.2