Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1038585rdb; Sat, 7 Oct 2023 09:07:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEyU7lNzq8opBqQ3uvc6itnZsPlfW8bgA129ybamCUwpDFlZhqCVfxE+t/SZrdQNDNtFRge X-Received: by 2002:a05:6830:6b91:b0:6bd:be5:daa2 with SMTP id dd17-20020a0568306b9100b006bd0be5daa2mr11644944otb.33.1696694825619; Sat, 07 Oct 2023 09:07:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696694825; cv=none; d=google.com; s=arc-20160816; b=mPvKaAsazu1T+XUl8Q0fgJaLblSIVbmjkDFPtKMhcrhRg+kd9z3FKLQf1kTlL7SjKA BSY6KLIH5EIxnEqEIB4GXLiCbN1gcEUxPl2+dL8y0ukXPB8hIGIZyT8hxqh5vyt94FKc jMWUfCf17m9o74NTcVLD4CAJHk8xDC9YK9tG329uW9t8u+JRIQ44anrqSxRn0LU2+myi vAC7rYYjzsV9Uc+EVLigsXQ4i/v/WRFdrbs2JLMcvVG31AlpmYuZFZpdc3yV7QMEq2Be HuLg/FQJtok5pZ2XIMESUcZHNSAoadD4yGZABef7WFKj/JavjCnIlZTNVKtAeiiXFgZV mprw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=VZ4kcoqQ9YTUKz/bWlIB+CayC4kkrmXmIfZVAUvHPtc=; fh=8g+bvhPD/VInYwWTs5NwR4QQjawBnpf9CJykLy9cV1E=; b=feAREjQ8emz1ekcCq7phO/OO71uwsEdjeGtSF/ZLETs71S1NyVs5/5PSmgzi5S2rIJ 2eoK/nfoxIHuzvYn0dCDh7F/wqI9HCvgSQNofKU46+4o2RCalXuT7il+SKDVgskrc81j /L6RjMqgL5rsPYlFG41yumwEwmqAk/RpImFs2NcZUgljNt34Fp2fY/ZU/mpMsAa/SLrm SlfxQDwcBkuGY7JgbO7lsAJDny5FGG5VdOsIetBDBCSoG+bUGuka+k7uWoNRnfmvy1Zs BJhjLHNtDan2vSaeU0b8+5HV7docLwDxI9FMg/Wbl2yV3732RdYVYBoj8cyPs6de3O09 uwAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=susPAjK8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id k129-20020a636f87000000b00578fe1bdfcasi5966125pgc.860.2023.10.07.09.07.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 09:07:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=susPAjK8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 36A8480278E6; Sat, 7 Oct 2023 09:07:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344109AbjJGQGo (ORCPT + 99 others); Sat, 7 Oct 2023 12:06:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343992AbjJGQGn (ORCPT ); Sat, 7 Oct 2023 12:06:43 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98D3AC2; Sat, 7 Oct 2023 09:06:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=VZ4kcoqQ9YTUKz/bWlIB+CayC4kkrmXmIfZVAUvHPtc=; b=susPAjK8QuI+p9JXVgqO2BEDVm tuVi4UOdZFnphceY5wN8zgkfsN8O2klVJ3AQnsxvuzQyBmCZIJBIRMVYaRHylOmnPlpZ+80nBiv5a ZI5vz3fO0rKyi7x11ukxd4z0cgSHJStiPzwFmYeqFPbgukctzT5ec8Y8oOAtSrDHPkx4ue6fk/oUZ +bs0xs/KVgd+w4UcFJm0gDJJb00wCfOd5I/BeXlkv/Yc3SbN0ksBzUjCdklCw4OY8srQFM9EjNRrs fU23vOWutNHO8LrrQDqcQKta8bBqxVZbf+j+aPt9Cd6MsC+tBcAFa3XJHTKQ0ocRvah88I1HuUKS1 DpZk2xzQ==; Received: from [50.53.46.231] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qp9p5-007iOO-00; Sat, 07 Oct 2023 16:06:35 +0000 Message-ID: Date: Sat, 7 Oct 2023 09:06:33 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: linux-next: Tree for Oct 6 (riscv: andes) Content-Language: en-US To: Conor Dooley Cc: Stephen Rothwell , Linux Next Mailing List , Linux Kernel Mailing List , linux-riscv , Paul Walmsley , Palmer Dabbelt , Albert Ou References: <20231006153809.2054a0f8@canb.auug.org.au> <09a6b0f0-76a1-45e3-ab52-329c47393d1d@infradead.org> <20231007-poach-refute-b84fe5b7431a@spud> From: Randy Dunlap In-Reply-To: <20231007-poach-refute-b84fe5b7431a@spud> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.7 required=5.0 tests=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 agentk.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 (agentk.vger.email [0.0.0.0]); Sat, 07 Oct 2023 09:07:03 -0700 (PDT) X-Spam-Level: ** Hi Conor, On 10/7/23 03:56, Conor Dooley wrote: > On Fri, Oct 06, 2023 at 05:28:27PM -0700, Randy Dunlap wrote: >> >> >> On 10/5/23 21:38, Stephen Rothwell wrote: >>> Hi all, >>> >>> Changes since 20231005: >>> >> >> on riscv 64bit: >> >> 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, >> | ^~~~~~~~~ >> >> >> Full randconfig file is attached. > > Riiight. XIP_KERNEL is enabled, which means no alternatives are > permitted, but that R9A config option selects the Andes errata, which in > turn depends on alternatives. > > I suppose we could do something like (untested): > diff --git a/drivers/soc/renesas/Kconfig b/drivers/soc/renesas/Kconfig > index 7b74de732718..6fe85255e2ce 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) s/&/&&/ and then this works. Thanks. Acked-by: Randy Dunlap Tested-by: Randy Dunlap > select ERRATA_ANDES_CMO if ERRATA_ANDES > help > This enables support for the Renesas RZ/Five SoC. -- ~Randy