Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3728875pxv; Tue, 13 Jul 2021 02:18:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxj7A2W0isdDhRPKmfNRZETjxtto67r3kJRPI0MO/c35tg9rK0M2/ldemk9Sbog8PZ+u4xC X-Received: by 2002:a92:d3c7:: with SMTP id c7mr2218674ilh.59.1626167892418; Tue, 13 Jul 2021 02:18:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626167892; cv=none; d=google.com; s=arc-20160816; b=qZRS+JNVvZamJ9y6xrK2jJFyzAX0Od20ZBR2FOTGLuuoqs2nl/Jr9+bYLNzoMnW9V1 Ef3iJo/4Xz5D8QqZECpJ2u+VvDy8DIu887dYmRNZ1mqB/nxB93LFmDhSiTtsly2q8Put Mi2QsISFldkCqRqr1GytaorhHukILAWoTMmuz6feMMYRsu5i2i7B14wfSyvPsXW/1Gfq evV2PtYhvV46ZN2z/Bnk191fZ3rDXVt3JU5xelvG72+MyjiZkUjAR4zB9YGYirvYlk17 conbIo9qkxWOTIkPi2NRUxWpxOLjVab3/T0D12OAEMzmoLstDqTM6ZXjOZbxCHiRsvVa cDww== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=tWZzl2voF7OD9WygEqcAvQFqOe2EyfoZQec7W0giqC8=; b=rG5GpN7lZlNEeoT6b8tTikO706HZib0q7y77XNYu6PeTt68+rQ2yjBMzI0RyHKetwe 5+rwicc8fTDhlJJRR9FBXLEiosHNDh1TP3xKlodcH8f4zI1nkKDLDFjRGk00rcFvhzw2 DHmqQcSKoAgam4zaU0Yx6ojDD/qtnqXItTH5qcUzHxU1K2C4gm/H4MOM4IZILnyGJ76n Usfk5U1V3iSZwdqh5VlsVAw7wx8tAI/079uuRSxa3Rr27VBW7lc6MhyK2pwbnbvv7zDU JCJyrv+0GAG8rExk6QM8HijJtuXLSfojam2z/mCkOanXU3pr2aGPZlroqgr6eOQ5LfrP YjFQ== 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 n12si19799904ilq.134.2021.07.13.02.17.49; Tue, 13 Jul 2021 02:18:12 -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 S234855AbhGMJTA (ORCPT + 99 others); Tue, 13 Jul 2021 05:19:00 -0400 Received: from foss.arm.com ([217.140.110.172]:39018 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234397AbhGMJS7 (ORCPT ); Tue, 13 Jul 2021 05:18:59 -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 F257E31B; Tue, 13 Jul 2021 02:16:09 -0700 (PDT) Received: from bogus (unknown [10.57.79.213]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 81C003F7D8; Tue, 13 Jul 2021 02:16:08 -0700 (PDT) Date: Tue, 13 Jul 2021 10:15:02 +0100 From: Sudeep Holla To: Geert Uytterhoeven Cc: "Lad, Prabhakar" , Lad Prabhakar , Rob Herring , Sudeep Holla , 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: <20210713091108.7nx2d2fxolx2wrg5@bogus> References: <20210611152108.6785-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20210713085508.nq6473icf5gt3nm5@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 13, 2021 at 11:04:09AM +0200, Geert Uytterhoeven wrote: > 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: [...] > > > 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, ... > /me confused. If this is arm64 platform, then you have to use *PSCI* and I expect the reset to be done as part of CPU wake-up in PSCI firmware. > 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. > No, if the system has PSCI, then you simply can't bypass that for GIC reset. Or at-least I am failing to understand the complete flow of that. -- Regards, Sudeep