Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3771915pxv; Tue, 13 Jul 2021 03:26:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxo2OqQVj5bUNA2VtykMVJrMzck1Lus4AeZc6Gq9EnywrZWTPFV2sp3AxQV2rNErJBZ1HJL X-Received: by 2002:a92:d07:: with SMTP id 7mr2313215iln.114.1626171964789; Tue, 13 Jul 2021 03:26:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626171964; cv=none; d=google.com; s=arc-20160816; b=IYqXc0stALFcsn63PcYce0YafmF+KePz8kIE3MHHWSjbtwyyJAOjFLhlAr9KJ2USCp 0I9Ecx0Yjh6YcGSg7cRsufOLdGO6MYzBox3bUYuXuYzN39VlzKDBpHBFL3zSXXzU7iut Nioon4BlkGT6PD1IJ+KPJu1oEHR8o4CeBXNOJxaiYCQs4ZF2Ho12XMd2gTdlHzttZANK Z3N6YBIG6HncdjBc1WemG8P1hFJVWUX6i9MDsWUj8GKLSYrHxhnj7KROXlXzpoA5NyeS iauzUCjwHvW/w0ufwQ8dvjazxuBKrFQqfrLbDqrichz3GBJ8nNsCpQsh4Aso1AMBtK08 dNpQ== 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=2SXHSWIaEQ/yPduDZ/AQyrhd4wxFJRYMnASgecmBimA=; b=AF3DyBLFFIWJB9xNAVDIhrZD9b6AM9JuzyfHvS/XAEMklTzA3e4g6UMOgyBBYoiqyj KuTAJ6b9Okfk1+jk15dF9GvqgQxf6gpjUfFUA6CSYHkQSwGfrNkj+DGU/rDQTd6SUWBJ E9D8y20DtBXjMLiSRNV0jzPNzxTAME4wGrGADIqFfHd/hKkcX1nCL6u3GHCjnSJjsvuw Qt0Q1S3+HXxQrbEmwRpsCqStrn/waKHBh+NwnGqoZfgsCLC8MBpDrtpCalSPwxNQecMC IEwpoo1O01PyUTyodPT7b0cBSa/ejVLtltPmulmgW7WNwsU0YoI49+Unac+C1b2nIU5J myIQ== 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 s4si21483121ilv.54.2021.07.13.03.25.52; Tue, 13 Jul 2021 03:26:04 -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 S235508AbhGMK15 (ORCPT + 99 others); Tue, 13 Jul 2021 06:27:57 -0400 Received: from foss.arm.com ([217.140.110.172]:40148 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235143AbhGMK15 (ORCPT ); Tue, 13 Jul 2021 06:27:57 -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 0F9726D; Tue, 13 Jul 2021 03:25:07 -0700 (PDT) Received: from bogus (unknown [10.57.79.213]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8EBF83F7D8; Tue, 13 Jul 2021 03:25:04 -0700 (PDT) Date: Tue, 13 Jul 2021 11:23:53 +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: <20210713102326.kc56a4yqhkbv3ymm@bogus> References: <20210611152108.6785-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20210713085508.nq6473icf5gt3nm5@bogus> <20210713091108.7nx2d2fxolx2wrg5@bogus> 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 11:24:24AM +0200, Geert Uytterhoeven wrote: > Hi Sudeep, > > On Tue, Jul 13, 2021 at 11:16 AM Sudeep Holla wrote: > > On Tue, Jul 13, 2021 at 11:04:09AM +0200, Geert Uytterhoeven wrote: [...] > > > > > > 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. > > DT Rule #1: DT describes hardware not software policy. > As mentioned before I agree on that. But I assume you too agree that not all bits and pieces of hardware are represented in DT. Only ones that are essential for any software to understand the hardware and make it work. So my opinion is that this GIC reset information is implicit like many other hardware information. > The fact that _Linux_ must use PSCI is a (unfortunate) software policy. > What about other OSes, or bare-metal software? > Disagree. PSCI is OS agnostic and _Linux_ is not the sole user. Do you have examples of other OS that deploy alternate to PSCI ? Or bare-metal that uses DT ? Again if there is a use-case, you need to spell out details on when this can be used and where it can't be of much use(of-course with the mention of Linux). There are complaints that DT bindings are too Linux specific, so please pull in the other OS folks or other users so that we get details on use-cases. Based on your argument we should have loads of other information in DT on CPU or CPU peripherals for example even if PSCI hides them for OS. Do we really want to get down that path ? I agree PSCI is software policy but definitely fortunate, helped prevent lot of non-sense in OS ????. > > > 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. > > PSCI can only prevent other software from bypassing GIC reset if PSCI > programs the hardware to prevent access to the GIC reset (if possible > at all). > It is not matter of preventing, it is matter of what we can support architecturally and sanely. While I agree with non-Linux use-case, we can't support this in Linux. -- Regards, Sudeep