Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2433142rwb; Mon, 19 Sep 2022 05:12:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4tdr/CS1rpZA+t5uqE64zGyv8NrP0IrWvbVwmbTQ9BKq9zDH0U3zF9Myk3589uOafEEY2w X-Received: by 2002:a17:907:318b:b0:740:33f2:9e8 with SMTP id xe11-20020a170907318b00b0074033f209e8mr12453882ejb.138.1663589525383; Mon, 19 Sep 2022 05:12:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663589525; cv=none; d=google.com; s=arc-20160816; b=SgoeXGOZK6WPRootHn6Lqrm/eCeOiu2luFCyIgDMPwcUiXKuu0VjoHxCQqbUr6wV7g BFXbJLzpu53uHrMVocPGP8fNynGXOd1S1L+3Ho/nbGpWKopeZHsiqoGpQwKoz7MjR7MZ ZHXtThp+GPbX+qjJPqhcSlGEGGtHQ45DLIm23KSOyriOCrUrP4jKtKw1WXZ7FfaFzs4Z tWD/OtYg5Jh7fqljXWDwPIaphZ49U6WEJQCRuvUkdZVR38X2W3YrwttFO9jPBO6dcQoQ pPLnwpFFXhEVpuv/XvqnPX49CSQK2YrqvI7q2sU0G/vPv4sSr73FVp4gRt7Uv/R04bQt BNYw== 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=t4Ll3E0E4s59B8mbpiD63I+VMn+XvJFfswpdFK6j1oY=; b=oBOPPn4pzcWPGpt1Ed3eCSiyBT0JfiAE8ptFqtZwcGIFO0RDcB1/x76CqFUncPkYLZ 09Gi6vkYcvZjELH5LT8eYs6669AdBmqe1g9C9tMk4FmbkdejlewRScirL6OQVDcuk5ic DVCFWukXeOkTk//dTF/JhNix/F9nAnrIfZCC9VhsPLDr8Ah/XnHth4Ti3ZxIOflodMiW 3lo80r1iBwwYR86UBvfGcDN5o7ZYpWiVJ0ETIMDnsq9rJ3PruEB6lH5MRJFGDJmd4YoY sqz7+66S4KHJKkr/JCt7kHv4MN1pXyKCEImpQlCuavojg2cURs8iAChROjOhhP4CqwiU jQTw== 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 ga19-20020a1709070c1300b007803963875esi15222543ejc.121.2022.09.19.05.11.39; Mon, 19 Sep 2022 05:12:05 -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; 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 S229676AbiISLhZ (ORCPT + 99 others); Mon, 19 Sep 2022 07:37:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229571AbiISLhW (ORCPT ); Mon, 19 Sep 2022 07:37:22 -0400 Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEE7F2612E; Mon, 19 Sep 2022 04:37:21 -0700 (PDT) Received: by mail-qk1-f170.google.com with SMTP id u28so17275722qku.2; Mon, 19 Sep 2022 04:37:21 -0700 (PDT) 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; bh=t4Ll3E0E4s59B8mbpiD63I+VMn+XvJFfswpdFK6j1oY=; b=is6/F6h0f9jlf2veam+aSNpHHTz7f1t4fpnmxIvpx0FNN1sU7qQz/rVQSKF2COnTUl dZF/SlbmhBLuuOUNb57AJj/P+uMlgZBD1MGBPwvYFz0GlHjUc1Cp/hgQ0q/jJVoD3kS8 65VhC0PnoQVpbRq9YynqpwRxljJoUuXNS+K3YwMU+hehTK7Nfh5PzOYDdKgsx+fyVl01 xom6I9Rcj+TXvbQwgEWrRoC1mcdiXs/o2bqyE0k2d0ABFjskUOn1qcaCK9t+k6RBmZpQ vrLoGonL+s+W8bUwR5gWn3x43/4I2MsqgCN7Eh7Fstd/vlHPvRmRb+n03dc8jT5KQil1 r2iw== X-Gm-Message-State: ACrzQf1jdH41HjOeQJ1vxsTgPnvjX+l2DfcAW2SyE9DEOVMQaSe/Mnnt uo7QqEtA/MacXRNzRzRYl60N5Ec53Tc31w== X-Received: by 2002:a37:e101:0:b0:6ce:6a09:879e with SMTP id c1-20020a37e101000000b006ce6a09879emr12326379qkm.587.1663587440815; Mon, 19 Sep 2022 04:37:20 -0700 (PDT) Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com. [209.85.219.172]) by smtp.gmail.com with ESMTPSA id s14-20020ac85ece000000b00339b8a5639csm10215079qtx.95.2022.09.19.04.37.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Sep 2022 04:37:20 -0700 (PDT) Received: by mail-yb1-f172.google.com with SMTP id s14so9247295ybe.7; Mon, 19 Sep 2022 04:37:20 -0700 (PDT) X-Received: by 2002:a25:8e84:0:b0:696:466c:baa with SMTP id q4-20020a258e84000000b00696466c0baamr13052850ybl.604.1663587440164; Mon, 19 Sep 2022 04:37:20 -0700 (PDT) MIME-Version: 1.0 References: <20220914134211.199631-1-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: From: Geert Uytterhoeven Date: Mon, 19 Sep 2022 13:37:08 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] arm64: dts: renesas: rzg2ul-smarc-som: Drop enabling wdt2 To: Biju Das Cc: "Lad, Prabhakar" , Magnus Damm , Rob Herring , Krzysztof Kozlowski , "linux-renesas-soc@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Prabhakar Mahadev Lad Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.3 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, URIBL_BLACK 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 Biju, On Mon, Sep 19, 2022 at 1:10 PM Biju Das wrote: > Mahadev Lad > lad.rj@bp.renesas.com> > > On Mon, Sep 19, 2022 at 11:55 AM Biju Das > > wrote: > > > > -----Original Message----- > > > > From: Lad, Prabhakar > > > > Sent: 19 September 2022 11:44 > > > > To: Biju Das > > > > Cc: Geert Uytterhoeven ; Magnus Damm > > > > ; Rob Herring ; > > Krzysztof > > > > Kozlowski ; linux-renesas- > > > > soc@vger.kernel.org; devicetree@vger.kernel.org; linux- > > > > kernel@vger.kernel.org; Prabhakar Mahadev Lad > > > lad.rj@bp.renesas.com> > > > > Subject: Re: [PATCH] arm64: dts: renesas: rzg2ul-smarc-som: Drop > > > > enabling wdt2 > > > > > > > > On Mon, Sep 19, 2022 at 11:15 AM Biju Das > > > > > > > > wrote: > > > > > Prabhakar Mahadev Lad > > > > > lad.rj@bp.renesas.com> > > > > > > Subject: Re: [PATCH] arm64: dts: renesas: rzg2ul-smarc-som: > > Drop > > > > > > enabling wdt2 > > > > > > > > > > > > Hi Biju, > > > > > > > > > > > > On Mon, Sep 19, 2022 at 12:06 PM Biju Das > > > > > > > > > > > > wrote: > > > > > > > > On Sun, Sep 18, 2022 at 10:04 AM Geert Uytterhoeven > > > > > > > > wrote: > > > > > > > > > On Wed, Sep 14, 2022 at 3:43 PM Prabhakar > > > > > > > > wrote: > > > > > > > > > > From: Lad Prabhakar > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > WDT CH2 is specifically to check the operation of > > > > > > > > > > Cortex- > > > > M33 > > > > > > CPU > > > > > > > > so > > > > > > > > > > don't enable WDT2 by default. > > > > > > > > > > > > > > > > > > For consistency I'll drop enabling WDT2 from the RZ/G2L{C} > > > > too. > > > > > > > > > > > > > > Does remove unused clocks turn off WDT2 clock during late > > init?? > > > > > > > > > > > > > > If that is the case, we should remove entries from clock > > table > > > > as > > > > > > well? > > > > > > > > > > > > Or add it to *_crit_mod_clks[]? > > > > > > > > > > > > Note that drivers/clk/renesas/r9a07g043-cpg.c creates wdt2 > > > > > > clocks and resets, so that should probably be moved inside the > > > > > > #ifdef > > > > > > CONFIG_ARM64 section. > > > > > > > > > Yes we dont want it to be listed on RZ/Five. > > > > > > OK, So this patch [1] will break existing RZ/G2UL till we have clk > > changes suggested by Geert. > > > > > No it won't, patch [1] just disables enabling wdt2 on A55. Whereas > > Geert is suggesting adding wdt2 clk R9A07G043_WDT2_PCLK (and also > > R9A07G043_WDT2_CLK?) to crit_mod_clks so that we dont disable them in > > A55 (currently we dont have any scenario where M33 is up with WDT2 and > > patch [1] is breaking it). Also Geert's other suggestion was to add > > the WDT2 clocks under ARM64 as we dont want them to be visible under > > RZ/Five (where wdt2 is not present). > > > > Or is it that I am missing something? > > It all depends upon whether remove unused clocks turn off WDT2 clock during > late boot process. > > I guess, since we have wdt2 entries in clock table, it will turn off WDT clock, > since you have disable it from DT( it becomes unused). AFAIU, the WDT cannot trigger when the clock is stopped, so RZ/G2UL should be fine? > By adding critical clocks, it won't turn off the WDT clock. > > [1] > > https://jpn01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit. > > kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Fnext%2Flinux- > > next.git%2Fcommit%2F%3Fh%3Dnext- > > 20220919%26id%3D31989ece707adc453eb9f4f019fdac118f8fee72&data=05%7 > > C01%7Cbiju.das.jz%40bp.renesas.com%7C55f37d25d74646611de908da9a2ecfac% > > 7C53d82571da1947e49cb4625a166a4a2a%7C0%7C0%7C637991823087385873%7CUnkn > > own%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwi > > LCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=hP2u5NwutD8AhhrOrY6dPvlWW8PkB > > g3skyTMXBJQaWc%3D&reserved=0 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