Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3716015pxv; Tue, 13 Jul 2021 01:57:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZrNg77La5NbRRG2DUBHbV7MFy3PpNVQB+i4qgKlZGRx9KrVzfbocG3BOBYReL2NV1IXGA X-Received: by 2002:a6b:d109:: with SMTP id l9mr2509323iob.122.1626166651286; Tue, 13 Jul 2021 01:57:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626166651; cv=none; d=google.com; s=arc-20160816; b=RgyzNmj1kic1HhRtKQ9SIKi7Z0nk5ZKosCdsi+fO/OXouP1/bOMHPiXTbtj+9EDJId N1cKIH3q2biRvOnOrCGL2DICvD+RMjgAOJsgJgnfOL+KjKvDT1y9aD515zHsDT9FK7xT TUdJMwtcvEnVBf0R7NGzv29WCzx1XIK23REr4llcOBLuIGhgR8TE7NUDaHPobyI9Nw6B z4ykeRifT/CkZDVO7+0CKx85vqq9/iALv8qVobifv+H1LozRD83MZXdHDkQ0m0fOdv2S lfHi0JCU7w+He3c6PvGpDcfIMioXCzpdBGTuSd+w1WxclPcQ1kQTJ9sLDpbkBHXDQeNC Idwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=dOQx7uwygucKY74h9OkSF3eGDpb+C3VRSX/j8iH7FRQ=; b=YIAZrWz9hyhL0OK7cBJVHzkvSnWJgQUiv9803rSK7WUrFAOcL1xtd5jboycHwDsaK1 9tE+kuIs13SAegFiK6v26hASlUqxWh33IpPHTLrCvqoMCrQNyojmizjpv4+1+PDeZ/ga Bbb5XLhPkhIZ5Ea6An1OgGlboMlQelU728Tc2ME9mY0ttaiM9nuqFNmGxB8+yIg0DH0H pRDuX03QHQh1Ceb/4wxeCHky1XGlb88YiB2PFXRi1V5xXclj+21DAbmkMntZbWG0UyQW SNzINccl6HUdoe8hfQB2Q0tOYPpYDq5GEcGko1kB/BHQdBzjs/FwR44s4x+ORNC620wL eIRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w5si21819542ilh.139.2021.07.13.01.57.19; Tue, 13 Jul 2021 01:57:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234870AbhGMI7E (ORCPT + 99 others); Tue, 13 Jul 2021 04:59:04 -0400 Received: from foss.arm.com ([217.140.110.172]:38752 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234796AbhGMI7D (ORCPT ); Tue, 13 Jul 2021 04:59:03 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 113F431B; Tue, 13 Jul 2021 01:56:13 -0700 (PDT) Received: from bogus (unknown [10.57.79.213]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EF0CE3F7D8; Tue, 13 Jul 2021 01:56:10 -0700 (PDT) Date: Tue, 13 Jul 2021 09:55:08 +0100 From: Sudeep Holla To: Geert Uytterhoeven Cc: "Lad, Prabhakar" , Lad Prabhakar , Sudeep Holla , Rob Herring , Magnus Damm , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List , Linux-Renesas , Biju Das Subject: Re: [PATCH] arm64: dts: renesas: r9a07g044: Add missing GICv3 node properties Message-ID: <20210713085508.nq6473icf5gt3nm5@bogus> References: <20210611152108.6785-1-prabhakar.mahadev-lad.rj@bp.renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 13, 2021 at 10:30:36AM +0200, Geert Uytterhoeven wrote: > Hi Prabhakar, > > On Tue, Jul 13, 2021 at 10:22 AM Lad, Prabhakar > wrote: > > On Tue, Jul 13, 2021 at 9:08 AM Geert Uytterhoeven wrote: > > > On Mon, Jun 14, 2021 at 2:48 PM Geert Uytterhoeven wrote: > > > > On Fri, Jun 11, 2021 at 5:21 PM Lad Prabhakar > > > > wrote: > > > > > Add the below missing properties into GIC node, > > > > > - clocks > > > > > - clock-names > > > > > - power-domains > > > > > - resets > > > > > > > > > > Signed-off-by: Lad Prabhakar > > > > > Reviewed-by: Biju Das > > > > > > > > Reviewed-by: Geert Uytterhoeven > > > > > > > > Queueing pending on[1]. > > > > > > > > > [1] https://lore.kernel.org/linux-devicetree/ > > > > > 20210609155108.16590-1-prabhakar.mahadev-lad.rj@bp.renesas.com/ > > > > > > The dependency has been accepted, but this patch needs a respin > > > for the changed clocks. > > > > > Thank you for pointing this out. wrt resets the GIC has two signals > > (which I learnt lately when the dependency path was accepted). Earlier > > discussion in irc with Sudeep pointed out that there wouldn't be any > > use case of having GIC resets in DTSI, so either we drop the resets > > property in DT binding doc or correct it. > > > > Let me know your thoughts on this and how we proceed further. > > DT Rule #1: DT describes hardware not software policy. > Completely agreed, no disagreement ????. > And a possible use case: the RT CPU core may want to reset the AP GIC. > I didn't want to add new bindings without details on the implementation to avoid possible issues with backward compatibility as this was not thought through completely and correctly before it was added. OK, now let us discuss your use-case: *RT CPU wants to reset AP GIC* 1. Will it just reset AP GIC or will it request the AP reset as a whole ? I am not sure if we can handle former, if you think otherwise what is the reset notification mechanism ? 2. Will that bypass secure world/PSCI ? Again more details on this would be helpful to visualise the entire use-case end-to-end better. By GIC reset, I am assuming it will be complete GIC reset including it's CPU interface. I don't think we can reset GIC without actual CPU reset. Even if we get some notification magically to the CPU that its GIC alone needs to be reset, it needs to safely higher exceptions to get its GIC CPU interface reprogrammed to correct (saved) values before OS can reprogram the NS world values. All these seems overall complicated and may be unnecessary. -- Regards, Sudeep