From patchwork Mon Oct 9 08:11:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Conor Dooley X-Patchwork-Id: 149864 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp1716573vqo; Mon, 9 Oct 2023 01:12:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHbmqbmJ0Uff5Xo2U0NLLEVINj0RYbbE/zT1bVXtfnN0jKlAj+csgm7ZelM27jCSXlx5SiW X-Received: by 2002:a17:90b:3ec6:b0:27c:bcb3:55b1 with SMTP id rm6-20020a17090b3ec600b0027cbcb355b1mr1301311pjb.15.1696839140371; Mon, 09 Oct 2023 01:12:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696839140; cv=none; d=google.com; s=arc-20160816; b=coqAh1BNRsiSPwy5Oxkngxg43/4ihCSZN9UPcnPf0fuNoPaGYms9gq+tSb5jxrIvCU qXUtz5eDUE+DSbchuCbHkQ9S035Yz9emPjAD7HrsI/rnqpzmUgyx3ZY8Xna4ADGsPYfZ ms79DdFB8qYpBHESVDzH0ewxQCz7AMyy3I/U1j4V2vBvwvr6DsbTTtDTLKrvcqM0WwL9 e8ongn+G/niMTMnQZyb8g/8Cw1qqiJJnzAzIK0iTPZnIi1ITF5LQ8MOHOe5we3Oi3a4F Jq3U6Dsl0d9W2M1fWk0MDHgejrApwOU4pt7eKr6yaX8wZZ/6AoCKwJP9mQSqY3QTlXI9 7gpA== 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=I539RrUHLRof7nXgR6qf40eBRzb6d7OFlE/2AgLKJw0=; fh=GfODrhcLib2uYL0iqOKs2LMkDLfWMZU3V0N3tot2AUI=; b=UcamaHF6Av3VO/pRM90FPlt3xl0rDSnDAEhGRSnG6hlL7hSGUyfWvBC0ZD4a0ISwwd UB+TtxB4iZIhvpE/Qv90UAvYVlDyOMJuS4M6zEp8s8CVyu0hsheaqxtgIZ9Xi0gB7gjz Y+SiXKeTwvccu95w6F+WhDmXf6+rsp1J0aco7Lg7piMQvORHIb/xXhvNjYEKxmAK19d7 kpzYqKXptQ/ro0zNz0Gr7ZYNVB8CohGgNku5jHAXRLiIBQGgAkBaguBe8WwAy5x2fDw0 ZkT6fwvwVH7YfG1zPXQAGDvrOKs3WZ/04e9C15KR3Dw5rm5xJM07u5pyF+sODkkePPbv 02TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=IsbnsBfD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id om9-20020a17090b3a8900b002777ce4c9e6si9988709pjb.72.2023.10.09.01.12.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 01:12:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=IsbnsBfD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 18A9A806533D; Mon, 9 Oct 2023 01:12:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345477AbjJIIMB (ORCPT + 18 others); Mon, 9 Oct 2023 04:12:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345456AbjJIIMA (ORCPT ); Mon, 9 Oct 2023 04:12:00 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A2288F; Mon, 9 Oct 2023 01:11:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1696839119; x=1728375119; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=E3CND1oVozdmN9W0JejJjJ0D+lE+Z95291t40RDveyk=; b=IsbnsBfDgceyolx7raRGKE4jpJadyisFDgZ3mtNac5D9BJT/UaiWiVOF RElloLwiPr6VFTVzNggzdJY43wgEnzDz7p0Eqph7zqjrJyQdprZZyrk4I i6vXEQWQEkZuyp2rm1BG5pDYTE2Fp0eDitM5KZB34WlKA+k0rxWWhJtDo XZJBvCXOYZ/WLreOCsUWT+616DuArUiNYjM/paf6kKJMBLeT2lgteh40i li33ZqGoDbkiFdIMP+9xZOiFj/jBl7SOpQsgAGAHlnQbtbc/nyBzRGjFY S/qUBovkZ/SB2o10Qg18vos9HseWXazKd9vn8+4URBAvcSWH9iQYm+YOZ g==; X-CSE-ConnectionGUID: XpXTSLP4Ty6wgcE8HJnZgw== X-CSE-MsgGUID: yVezVkv5TO2viORuFs6tnw== X-ThreatScanner-Verdict: Negative X-IronPort-AV: E=Sophos;i="6.03,209,1694761200"; d="scan'208";a="9261218" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 09 Oct 2023 01:11:48 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Mon, 9 Oct 2023 01:11:47 -0700 Received: from wendy.microchip.com (10.10.85.11) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Mon, 9 Oct 2023 01:11:44 -0700 From: Conor Dooley To: CC: , , Randy Dunlap , Geert Uytterhoeven , "Magnus Damm" , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Lad Prabhakar" , , Subject: [PATCH] soc: renesas: select ERRATA_ANDES for R9A07G043 only when alternatives are present Date: Mon, 9 Oct 2023 09:11:16 +0100 Message-ID: <20231009-sandbar-botch-0f398fd2e289@wendy> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2092; i=conor.dooley@microchip.com; h=from:subject:message-id; bh=E3CND1oVozdmN9W0JejJjJ0D+lE+Z95291t40RDveyk=; b=owGbwMvMwCFWscWwfUFT0iXG02pJDKnKWxdas1qKH/XSOb61bOl0g6X/+VtfGpRu+1zZzRZ8eHLs XIPtHaUsDGIcDLJiiiyJt/tapNb/cdnh3PMWZg4rE8gQBi5OAZjIjXRGhiadnbuvN0UoHa+p3dK8Om +5MPdH/h3CKgHam3+nuj0un87wvy4039TNcUHL6SjF8Nh7SeIxv6rXy/sxJqzr3zaV90ESCwA= X-Developer-Key: i=conor.dooley@microchip.com; a=openpgp; fpr=F9ECA03CF54F12CD01F1655722E2C55B37CF380C X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 09 Oct 2023 01:12:18 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779264798464500051 X-GMAIL-MSGID: 1779264798464500051 Randy reported a randconfig build issue against linux-next: WARNING: unmet direct dependencies detected for ERRATA_ANDES Depends on [n]: RISCV_ALTERNATIVE [=n] && RISCV_SBI [=y] Selected by [y]: - ARCH_R9A07G043 [=y] && SOC_RENESAS [=y] && RISCV [=y] && NONPORTABLE [=y] && RISCV_SBI [=y] ../arch/riscv/errata/andes/errata.c:59:54: warning: 'struct alt_entry' declared inside parameter list will not be visible outside of this definition or declaration 59 | void __init_or_module andes_errata_patch_func(struct alt_entry *begin, struct alt_entry *end, On RISC-V, alternatives are not usable in XIP kernels, which this randconfig happened to select. Add a check for whether alternatives are available before selecting the ERRATA_ANDES config option. Reported-by: Randy Dunlap Acked-by: Randy Dunlap Tested-by: Randy Dunlap Closes: https://lore.kernel.org/all/09a6b0f0-76a1-45e3-ab52-329c47393d1d@infradead.org/ Signed-off-by: Conor Dooley --- CC: Geert Uytterhoeven CC: Magnus Damm CC: Paul Walmsley CC: Palmer Dabbelt CC: Albert Ou CC: Lad Prabhakar CC: linux-renesas-soc@vger.kernel.org CC: linux-kernel@vger.kernel.org CC: linux-riscv@lists.infradead.org --- drivers/soc/renesas/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/renesas/Kconfig b/drivers/soc/renesas/Kconfig index 7b74de732718..a97bf8e897cd 100644 --- a/drivers/soc/renesas/Kconfig +++ b/drivers/soc/renesas/Kconfig @@ -343,7 +343,7 @@ config ARCH_R9A07G043 select ARCH_RZG2L select AX45MP_L2_CACHE if RISCV_DMA_NONCOHERENT select DMA_GLOBAL_POOL - select ERRATA_ANDES if RISCV_SBI + select ERRATA_ANDES if (RISCV_SBI && RISCV_ALTERNATIVE) select ERRATA_ANDES_CMO if ERRATA_ANDES help This enables support for the Renesas RZ/Five SoC.