Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3537269ybi; Mon, 10 Jun 2019 11:59:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzK4Pj9cHUFGkf4me7nhelk7GgMePVXNI9V6e7iADHyLoANPCJL+fhQhvZ2GkGePHEy96nD X-Received: by 2002:a62:d44d:: with SMTP id u13mr23148337pfl.16.1560193175816; Mon, 10 Jun 2019 11:59:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560193175; cv=none; d=google.com; s=arc-20160816; b=uxlrNdsncZi74bKXXtB+Hcn3jRvJW0N+VnLWriG6NSHHU6Q9bz3sgxNeAKDEZ+7hcK saD+scaiiTSTGMhuSeIUgwnkstVmoFMaQ7nA2pbj2ALmp5Ci3OLmZ9MlLHt0vlWtqCX3 8LiB6FaAHwbBK6CiEslpU0BZDbhyNlIp6jrdLwZPvjr4TRWuaMy3GMka6BB5sWz4r71e IRJnJJZYi4rbq0UgzmOKsQbFeXcmI4nt5bFlKrjSE14n67v2kVy0n2b0HjOkQCgUolU7 J7kCZpJpc8hsCAL3kgI/oUFmvduHChqP7bllb3QYzExgB1FeStfnx1Zs3UAUZNECyYeW aX8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=hev5OwEACcFPK6C/FK48RMoXOAu7262fSU4AViD4u8w=; b=aK1FrpkujsXfQlBRzrQxfYN1uqYVICb9ncXIwe8l/NZ/zGR4CkElILMHNbRAbCGZPg R2T/irnKy3+is0LHzO9hRmNyNgwQeaveN213mAhIp3fFn3/18GoidJGXtiauQoi/sQ8d o8zvt5NWiDHKglRgUQj9jJ6fnrOYziQHhugp/pkWZbCCwEFSb2VcXA1tSZRBeOkhT3eP /uSngUEPfbkXAFzbToKCJecwHwMWupf4kXhLCNgH8twZa7j5k2NHO2uxTD6hxBzFKybd CEUaTmvi8Y//aiV9fRAcChT+uGUPf9+t9CDs5yRrEscS30tkJV1z3aDPIhgKJp1N9nID /eGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Kai5Z2Ek; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q125si10683533pfq.163.2019.06.10.11.59.20; Mon, 10 Jun 2019 11:59:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Kai5Z2Ek; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388931AbfFJS5o (ORCPT + 99 others); Mon, 10 Jun 2019 14:57:44 -0400 Received: from mail-vs1-f67.google.com ([209.85.217.67]:44209 "EHLO mail-vs1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388069AbfFJS5o (ORCPT ); Mon, 10 Jun 2019 14:57:44 -0400 Received: by mail-vs1-f67.google.com with SMTP id v129so6146335vsb.11 for ; Mon, 10 Jun 2019 11:57:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hev5OwEACcFPK6C/FK48RMoXOAu7262fSU4AViD4u8w=; b=Kai5Z2EkT0zQjVLtISRnsn979fWob+Jsr+Kyg5eRj7CxJ7C+1El4hYerae8V2HnD10 Vr4/J7G71YpP58NVfVe+X4DYJx2Izsxl0vEeKRtW4ySmvYYI5LNYwJUX7UhV6DWJPQjH mUMz6Ce5gPtIrO9yjGBJzdAJQWnFUjaqtBndYVPwHg9T7/wrirYFF33oBhoXNCWsQ0ly KLJeIWIl7AB5Hauw6t+B6m/FwhNQB7siy27tLNScZnfT0W34zAk5zCjZUXKcR+ZUDtyf nP3cEYZvjT/IvcQYnobXENvk1R8HugzTubIA/RSZDO0UaLZT8wV9gyrXBgrcgIRnElYH 7QnA== 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=hev5OwEACcFPK6C/FK48RMoXOAu7262fSU4AViD4u8w=; b=Seruu9fJX5OeYBj0r/hhmGwwpj2Dxzga+3F3qU5zbvi8GD3IkODRubd3GXZnEkoMOT jtMUoSMsfhtj5OvhD2IbyXyVXf6PgIO+IOlFROc36PpLu4sajmLssftwkZTOr4WE1UeF c9m5+QTUOonanBL0MLk7zAzcXeVj4BqcZ6TNqViysPjtGBfg/XPWt/l2CK3jderyz4jR ENIIFPMZNwlyKE1Rqsja3Um957tUAt+YE7/9KKQNgKO2OV73NhTaKqwxwLluCrpSfpf0 u9McmDmEN+CtVN4QfyrtYf70R2m6zCwK88nJBH3Zpr+CHkpPOy3vJ+mqABVgEHh8/BIY b2CA== X-Gm-Message-State: APjAAAUQHkAu3Bsw85ZGEa+ML+pZlcHGZHEEJxWzHkW4mzcI4cLlWVKg laj+P/e1TWrVXCOMCRNLpYVInFdv8xPNTxppKsezGw== X-Received: by 2002:a67:ebc5:: with SMTP id y5mr26971295vso.34.1560193063536; Mon, 10 Jun 2019 11:57:43 -0700 (PDT) MIME-Version: 1.0 References: <20190513192300.653-1-ulf.hansson@linaro.org> <20190607154210.GJ15577@e107155-lin> <20190607193407.GB24059@builder> <20190610103225.GA26602@e107155-lin> <20190610171557.GA4560@redmoon> In-Reply-To: <20190610171557.GA4560@redmoon> From: Ulf Hansson Date: Mon, 10 Jun 2019 20:57:07 +0200 Message-ID: Subject: Re: [PATCH 00/18] ARM/ARM64: Support hierarchical CPU arrangement for PSCI To: Lorenzo Pieralisi Cc: Sudeep Holla , Bjorn Andersson , "Rafael J. Wysocki" , Mark Rutland , Linux ARM , "Rafael J . Wysocki" , Daniel Lezcano , "Raju P . L . S . S . S . N" , Amit Kucheria , Stephen Boyd , Niklas Cassel , Tony Lindgren , Kevin Hilman , Lina Iyer , Viresh Kumar , Vincent Guittot , Geert Uytterhoeven , Souvik Chakravarty , Linux PM , linux-arm-msm , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 10 Jun 2019 at 19:16, Lorenzo Pieralisi wrote: > > On Mon, Jun 10, 2019 at 05:54:39PM +0200, Ulf Hansson wrote: > > [...] > > > My summary from the earlier ones, is that because the PSCI spec > > includes support for OSI, we should also support it in the kernel (and > > ATF). In a discussion offlist, Lorenzo agreed that it's okay to add, > > without an apple to apple comparison. Maybe Lorenzo can fill in and > > state this publicly, to save us all some time? > > The comparison should have been made before even requesting PSCI OSI > mode changes to the specifications, so we have a chip on our shoulders > anyway. > > We will enable PSCI OSI but that's not where the problem lies, enabling > PSCI OSI from a firmware perspective should take 10 lines of code, > not: Thanks for confirming! > > drivers/firmware/psci/Makefile | 2 +- > drivers/firmware/psci/psci.c | 219 ++++++++-- > drivers/firmware/psci/psci.h | 29 ++ > drivers/firmware/psci/psci_pm_domain.c | 403 ++++++++++++++++++ > > I have some concerns about these changes that I will state in the > relevant patches. Most of the above changes isn't for solely for OSI, but to support a hierarchical topology described in the PSCI DT layout. This is for example needed when other resources shares the same power rail as the CPU cluster. In other words, the series is orthogonal to whether OSI or PC mode is used for PSCI, just to make that clear. BTW, this is what you requested me to change into, a while ago. > > > My final point in regards to the OSI mode support, it's a minor part > > of the series. I don't see how that should hurt from a maintenance > > point of view, or perhaps I am wrong? In any case, I offer my help > > with review/maintenance in any form as you may see need/fit. > > I will go through the series but most of this code should move > to core PM code, it has nothing to do with PSCI. I am looking forward to your review - and for sure, I am open to suggestions! > > BTW, apologies for the delay, I was away. > > Thanks, > Lorenzo Kind regards Uffe