Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4072525rwb; Tue, 8 Nov 2022 11:42:01 -0800 (PST) X-Google-Smtp-Source: AMsMyM7M9t+V/NhQwwQjZxwwIx8Clm4eheHu/p1rSQ/+9sYmlmC6J4pRuJLnSWk7uLpeAMqinSdV X-Received: by 2002:a17:90b:118a:b0:213:bbbc:8f09 with SMTP id gk10-20020a17090b118a00b00213bbbc8f09mr53865491pjb.64.1667936521258; Tue, 08 Nov 2022 11:42:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667936521; cv=none; d=google.com; s=arc-20160816; b=Al7pNOvUJ9eDR+phOcn9+vRRb+cf5Smzya9rbAMsB8zaPi6+6Ns+dNkXGfL7OKnNsv UlETxRy4rEXKvSFRJQsJgWaNKsj+Clot32u8l3f4xv/P0hA5aHzQpHDD4B4SkUE9wJMd ILQ2yDPeYvq3m+DnTFxA4pSJLPIQxbWjRhNWVfCIVeep+eH1PjI/URgBJKVVhw+dhY+C TkujIbkwHvTylbgX2Gj/kepj5T1+6iYjTXOHkG4OY0FDKH1Av1jVDAQVWB0xs6qCxwKA hoteE3RZe7SNZN4gsVj4YwJ0HvjONGV5FIfe71CvXbtaVLcZngL0Oy0HhBMTZuRD0d62 fxuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=1DHetEprijHwJyY7sxsB6FmGPNUrIdgk23YtAJeS+As=; b=W2+fFrQJJ8r+AFWtYTEa6hTicuL9oGGEPbV1+Daejde48S5BZzIT/jEq0jeWuXzwQM LSZGlMo2rYv7M/saFowsX/Txx7ZWvNE48qPXgkS3E8I3VHwvFqTic/Jxe11YWeh9Ibv5 uU7ogeVj8n+2dc9Y6MHnQ+c5OKlPUEZkJObLW6rswDY//Ze20sFbW8gzR4Uyp8jx/Lda uUzYpvxeIA55NgUpdLLer7WPsRNt3RcyDc9bym8nECzK0jkCDW5oB0I8oHkYBg2JsKzw NsHd2guFx3eq7w/XrkvAm7Ge+O4J6x70lnvHg4xm4fA5NmWaBn214bmvH28JEtGy1iDA x4iw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b9-20020a170902d50900b00178b5e035fcsi18597583plg.496.2022.11.08.11.41.49; Tue, 08 Nov 2022 11:42:01 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229774AbiKHTTn (ORCPT + 92 others); Tue, 8 Nov 2022 14:19:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229880AbiKHTT1 (ORCPT ); Tue, 8 Nov 2022 14:19:27 -0500 Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 834EC19011; Tue, 8 Nov 2022 11:19:25 -0800 (PST) Received: by mail-qk1-f180.google.com with SMTP id x21so9729639qkj.0; Tue, 08 Nov 2022 11:19:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1DHetEprijHwJyY7sxsB6FmGPNUrIdgk23YtAJeS+As=; b=TUiBgjr+0rgOgrLnyWo1xodsTHPyFTYrt5/J0bQYjCAIFe8irzpbxMxWhR5xG+Qy1a zI4OHUznZSVP7jg1kga3H2KZ9kFuwBXpDQJD2BSWA4Il8N6BvcD/WOXmYPAWjUGRGr+x 1HlO2m46fz8KbaNCEvW3utjCUI4owr2ATl30owJcU8feiEfSF6bNkf00R7X2zZejDSSb g6tSCcBgCRIUrGQBI8auolMnav0i6oC4y6BWVWTFg2XpeAv+Bvl3WdAXdw1oLADJTgZx CqbQ0aVJbkVXIRuPMh+1haZcpL0CJzWMvoMyz1KPIM2MPk952xqZcEpsH0dep2MS2btn 8Pjw== X-Gm-Message-State: ACrzQf2si5eetJ+StYKMiYAo2UDDI66FLJcnR3N5tMMSEYwRkBE0CK2O t+sTr/k1KNxNC//0ncB8U6pzPqb1YVL8sMi7 X-Received: by 2002:a05:620a:f04:b0:6cf:c030:a1c2 with SMTP id v4-20020a05620a0f0400b006cfc030a1c2mr40222879qkl.312.1667935164504; Tue, 08 Nov 2022 11:19:24 -0800 (PST) Received: from mail-yb1-f169.google.com (mail-yb1-f169.google.com. [209.85.219.169]) by smtp.gmail.com with ESMTPSA id w27-20020a05620a0e9b00b006ee949b8051sm9493716qkm.51.2022.11.08.11.19.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Nov 2022 11:19:23 -0800 (PST) Received: by mail-yb1-f169.google.com with SMTP id k13so14694407ybk.2; Tue, 08 Nov 2022 11:19:22 -0800 (PST) X-Received: by 2002:a05:6902:503:b0:6cf:c510:6a23 with SMTP id x3-20020a056902050300b006cfc5106a23mr37163786ybs.380.1667935162186; Tue, 08 Nov 2022 11:19:22 -0800 (PST) MIME-Version: 1.0 References: <20221028165921.94487-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20221028165921.94487-8-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: From: Geert Uytterhoeven Date: Tue, 8 Nov 2022 20:19:10 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 7/7] riscv: configs: defconfig: Enable Renesas RZ/Five SoC To: "Lad, Prabhakar" Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Magnus Damm , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Conor Dooley , Guo Ren , Anup Patel , Atish Patra , Heinrich Schuchardt , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Biju Das , Lad Prabhakar Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Prabhakar, On Tue, Nov 8, 2022 at 6:23 PM Lad, Prabhakar wrote: > On Tue, Nov 8, 2022 at 4:12 PM Geert Uytterhoeven wrote: > > On Tue, Nov 8, 2022 at 5:07 PM Lad, Prabhakar > > wrote: > > > On Tue, Nov 8, 2022 at 3:52 PM Geert Uytterhoeven wrote: > > > > On Fri, Oct 28, 2022 at 6:59 PM Prabhakar wrote: > > > > > From: Lad Prabhakar > > > > > > > > > > Enable Renesas RZ/Five SoC config in defconfig. It allows the default > > > > > upstream kernel to boot on RZ/Five SMARC EVK board. > > > > > > > > > > Alongside enable SERIAL_SH_SCI config so that the serial driver used by > > > > > RZ/Five SoC is built-in. > > > > > > > > > > Signed-off-by: Lad Prabhakar > > > > > Reviewed-by: Conor Dooley > > > > > Reviewed-by: Geert Uytterhoeven > > > > > --- > > > > > v4 -> v5 > > > > > * No change > > > > > > > > > > v3 -> v4 > > > > > * Explicitly enabled ARCH_R9A07G043 config (note I have restored the RB > > > > > tags with this change) > > > > > * Used riscv instead of RISC-V in subject line > > > > > > > > Thanks for the update! > > > > > > > > > --- a/arch/riscv/configs/defconfig > > > > > +++ b/arch/riscv/configs/defconfig > > > > > @@ -29,6 +29,8 @@ CONFIG_SOC_MICROCHIP_POLARFIRE=y > > > > > CONFIG_SOC_SIFIVE=y > > > > > CONFIG_SOC_STARFIVE=y > > > > > CONFIG_SOC_VIRT=y > > > > > +CONFIG_ARCH_RENESAS=y > > > > > +CONFIG_ARCH_R9A07G043=y > > > > > > > > You forgot to refresh after moving ARCH_RENESAS in v5 of "riscv: > > > > Kconfig.socs: Add ARCH_RENESAS kconfig option", and after relying on > > > > ARCH_R9A07G043 in drivers/soc/renesas/Kconfig. > > > > > > > Sorry I missed your point here, could you please elaborate. > > > > I mean that the options have moved, so you should update > > your patch like this: > > > Ouch got that. > > > --- a/arch/riscv/configs/defconfig > > +++ b/arch/riscv/configs/defconfig > > @@ -26,11 +26,10 @@ CONFIG_EXPERT=y > > # CONFIG_SYSFS_SYSCALL is not set > > CONFIG_PROFILING=y > > CONFIG_SOC_MICROCHIP_POLARFIRE=y > > +CONFIG_ARCH_RENESAS=y > > CONFIG_SOC_SIFIVE=y > > CONFIG_SOC_STARFIVE=y > > CONFIG_SOC_VIRT=y > > -CONFIG_ARCH_RENESAS=y > > -CONFIG_ARCH_R9A07G043=y > > CONFIG_SMP=y > > CONFIG_HOTPLUG_CPU=y > > CONFIG_PM=y > > @@ -163,6 +159,7 @@ CONFIG_MAILBOX=y > > CONFIG_RPMSG_CHAR=y > > CONFIG_RPMSG_CTRL=y > > CONFIG_RPMSG_VIRTIO=y > > +CONFIG_ARCH_R9A07G043=y > > CONFIG_EXT4_FS=y > > CONFIG_EXT4_FS_POSIX_ACL=y > > CONFIG_EXT4_FS_SECURITY=y > > > > > > > CONFIG_SMP=y > > > > > CONFIG_HOTPLUG_CPU=y > > > > > CONFIG_PM=y > > > > > > > > PM and GPIOLIB are auto-selected by ARCH_R9A07G043 (through ARCH_RZG2L) > > > > resp. SOC_RENESAS, so they can be dropped. But it's better to do this > > > > after the release of v6.2-rc1, when all pieces have fallen together. > > > > > > > Are you suggesting dropping it from defconfig? > > > > Yes, but not right now, as that would make it depend on my > > renesas-drivers-for-v6.2 branch to keep them enabled. > > > I was wondering if that's required by other platforms though. > CONFIG_PM was added for VIRT machine and GPIOLIB for HiFive. Does that matter? They would still get it, as long as they use the defconfig. If you want to remove unwanted platforms from your configuration, you do that in the .config file, not in the defconfig file. If you have CONFIG_PM=y in your .config, it will be retained. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds