Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3721832pxv; Tue, 13 Jul 2021 02:06:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmO5+EvPzyLcSdFP2PFAV2KZq0a6Z5OBIlq7xyjxwVRMj6Gm4AtCetVpg53yJMwPf9rUtC X-Received: by 2002:a17:906:b53:: with SMTP id v19mr4279759ejg.262.1626167168204; Tue, 13 Jul 2021 02:06:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626167168; cv=none; d=google.com; s=arc-20160816; b=z4bNq7W0hWjGKUtJqfkjAdur/qybCRXGXhL10QQ6+HwM6r57BrUJEUMhazBqTuNufd xhbNFfCrDtLJFPfNUc5rBCeZKMXhv5OjcmY0ctp8FhzedsMbPQ8zGmtj558u+E/Pyejd P/4cjNZlyH16/JHgQ6L9cFT5sPuydVtmz5Q3K7UCwSgNVoDS/4I4xXUj+4fL6AwV8zYk vFP4fBUpRYclym5hf2j3SQySEp+zu6WbbGjFw/x96zAP33vWeMdxyRLi8r79Nom+91uw vTUOZ+8UawzWJBKgICvngPAAFKLyMhenZAoT8u+dnMIfdmYtnqr9B+zvob79jj9Qkvz4 V+3w== 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=WQWSg0jDhNONrBiZZkx/bcj5j+pFk4TYCqn0Z+sXNdk=; b=wUuLyHMDzWyv2cgT82K1LP2K4rP3VZMoh5be+tqN3B4JO8k48UVrZGSdlhz+u5z34g kRnNFLF1Lds+n6XjAP+KTTWmHB+7/CFA+hUfFM1GGRnxa/9CmSO/iSGjfQBNLO66hCAo e+U3DcQcdyQhB05QaKpwV3Pdj30z3cKLZpyanRV//yd8UQAXvG553vXpBbKMMCw/6Y8A ueJ1R3WzNTa8I8A4pOP1t5zL4HfhudaEJ8Q8Da8U4RqyWUCrObhpZjomINQaoLHlx1as y4rSUjUHP5MuuWRjlU+lQy6qhiIwTzbOMA6tk1q+BMt1hQp7wdWVg/RLeKav5yOYZ/3Z E7vg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f23si17669669edy.460.2021.07.13.02.05.28; Tue, 13 Jul 2021 02:06:08 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234702AbhGMJHL (ORCPT + 99 others); Tue, 13 Jul 2021 05:07:11 -0400 Received: from mail-ua1-f52.google.com ([209.85.222.52]:33471 "EHLO mail-ua1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234121AbhGMJHK (ORCPT ); Tue, 13 Jul 2021 05:07:10 -0400 Received: by mail-ua1-f52.google.com with SMTP id d2so8372793uan.0; Tue, 13 Jul 2021 02:04:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WQWSg0jDhNONrBiZZkx/bcj5j+pFk4TYCqn0Z+sXNdk=; b=e9PtSQHEDPAPJzEbQJup31n6O5Z0EKW89aoKf/K/xIpFaOP/MwNb8nAF1TsKu2qwLy HHpuCxZA5oWSuCoEc1W6Svtmn8xHFO363TtX6hdFomTL4IfalCsjfyG9pCjdfeNtjjPc O4FvO64giMxE0t55UM/Yh+5IqRf/jeC1/SR+azdVi1NCSv8aAp+EWiiEXNvCcE4WXN06 Lpdle7Z0mKDle0B8b9qYffXJhj8c5IfQdRfhzt19uApyQ6L5aUsYHLNP9bKtjSRuBtaR c2hEtCqmiUd1lNmBxzyWSkwpY8l449sSoGqxU4UrzsEhh24aqt2RUmDC0WB+50Y2c6Dd FvGg== X-Gm-Message-State: AOAM532f+ZKbfr4BK6M2V2RVDA03YToXEtRV2Rq0YizlgaLycA1Iutcx T4+HNf3umk7E5gJLtWypsXu/TmCiZ/gVySmHibA= X-Received: by 2002:a9f:3f0d:: with SMTP id h13mr4554003uaj.100.1626167060423; Tue, 13 Jul 2021 02:04:20 -0700 (PDT) MIME-Version: 1.0 References: <20210611152108.6785-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20210713085508.nq6473icf5gt3nm5@bogus> In-Reply-To: <20210713085508.nq6473icf5gt3nm5@bogus> From: Geert Uytterhoeven Date: Tue, 13 Jul 2021 11:04:09 +0200 Message-ID: Subject: Re: [PATCH] arm64: dts: renesas: r9a07g044: Add missing GICv3 node properties To: Sudeep Holla Cc: "Lad, Prabhakar" , Lad Prabhakar , Rob Herring , Magnus Damm , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List , Linux-Renesas , Biju Das Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sudeep, On Tue, Jul 13, 2021 at 10:56 AM Sudeep Holla wrote: > On Tue, Jul 13, 2021 at 10:30:36AM +0200, Geert Uytterhoeven wrote: > > 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 . Good ;-) > > 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. Probably both. Might make sense to reset on wake-up, after having disabled clocks and powered down the AP CPU, AP GIC, ... If that bypasses PSCI: well, if the unsecure software can do it, it means the hardware is not secure. Or at least Linux has to be trusted. 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