Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1747821rdb; Mon, 9 Oct 2023 01:12:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEtx3aU4pVHljSVIGtBRZUTCHK1yUwiMGLiJHRQ3KcxSiI+qjuFEmtTiVVHBkx0MujQsEIG X-Received: by 2002:a17:902:868e:b0:1c3:3c91:61cc with SMTP id g14-20020a170902868e00b001c33c9161ccmr11680285plo.13.1696839131495; Mon, 09 Oct 2023 01:12:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696839131; cv=none; d=google.com; s=arc-20160816; b=eFZKdhu3GcJMQ3MLFducySF8eMn6CGRFDVAEGMpQP2dpFTfIebVpzwHx0uhVV7DilW ln9VV16SOJlrRFdNYaa/P8Y3tNFJio3jSoP3Oso9uxTmbvQz3XAHimotWkIPWkmIr0lL Uym6xvyQq+rXt+xx3LbxjIDXlOcVVJOLVOVwaxE3Hk53ZX5ft9hcJroPjwOPyRh4XaDE pdfwr1tIh4i1wA9yqdqPoxb8zS2EFfJoQ15evLkF4K0tEhiq2YWRfXGwmn3Dbss/xekY BKV6Hl5FTf0i3tI9K29wZnpnkZg54dqESIp5mCcOdolKAw6IGBRG85wr8lRfYZHubZal SCuQ== 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:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id ko16-20020a17090307d000b001c7361b71c9si8887297plb.114.2023.10.09.01.12.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 01:12:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; 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:1 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 morse.vger.email (Postfix) with ESMTP id 50E7880218B1; Mon, 9 Oct 2023 01:12:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345476AbjJIIMB (ORCPT + 99 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 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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 morse.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 (morse.vger.email [0.0.0.0]); Mon, 09 Oct 2023 01:12:09 -0700 (PDT) X-Spam-Level: ** 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. -- 2.40.1