Received: by 10.223.185.116 with SMTP id b49csp7314677wrg; Thu, 1 Mar 2018 03:36:01 -0800 (PST) X-Google-Smtp-Source: AG47ELv7EbDQDt0ijY+A1sikemc6EWxwTmLbw+tk5qAsyIODvIA/lw+CKBrAcKD4QbmGx4k+HOSN X-Received: by 10.99.5.197 with SMTP id 188mr1308245pgf.196.1519904161297; Thu, 01 Mar 2018 03:36:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519904161; cv=none; d=google.com; s=arc-20160816; b=DA0WPwXYNNUkuFJLQDgb59MOmpK2TaQrvXcZdTkbaKiAPesrOToEmKd46HGBpTv6/s e2TEJgaBXMS8eXAQsRM+XN+B++TI1Ak4h48azt3s+qM5pzJQg0U06RgZkPqwBHOauqHE TqHKmvaGXDI2fz9ihGqodU/lHG5kA9LWeGxlM7GhBQo9IcYGwkv5CnPs0Zv6k5/vWKos lIqmR8fVyYt86+bMspQQGqsoEyME0laKnpW3J3bWl7Vezm1m98wnLYq3HzvVBPg9KCvz mBtk7JjUaL747Q2UvImUSq5FofshYnSJ9N0VWn6qNdL3aWrTneNDLxUnnBs3zrzwfnIo bMkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=M0oRJgZwZrhmWHUtTiIWTSGmz2GbpVQh4BPf6xTdT7U=; b=lb9rvXqJoeMxXb6DWbvlfq1RirhZC0QSl+jb1yBZoVuccJlVgfpZXkZa50dk7TVoe6 3tQd23Qa7J1G3SmH8thFy3PMIAsDUM7PzgMLzVR+L2WQg6r8Z+rDjETNzuLltm8Wr8vN D6gGiu55KrAC382qhAcE0HrBAeXVfePBECywbce4iKwJdZ/5PZ1xAngD6kB3nhl5iDcQ uZYGHERqBJnKxlxoZrkmq1u+FVfq8lIBWS7V3JpDyTROUoZ131zUZcE8YI3yx6IcQ+RQ EQKJKwGgCjSaVlSfhCQ1uDrsMnPrqHtkWA8bduLzu14A29xvq5+E2965kymzMpckJrLG FhfQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k194si2332259pgc.662.2018.03.01.03.35.46; Thu, 01 Mar 2018 03:36:01 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030272AbeCALfE (ORCPT + 99 others); Thu, 1 Mar 2018 06:35:04 -0500 Received: from foss.arm.com ([217.140.101.70]:36568 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030228AbeCALfC (ORCPT ); Thu, 1 Mar 2018 06:35:02 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 18DA11529; Thu, 1 Mar 2018 03:35:02 -0800 (PST) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2975B3F318; Thu, 1 Mar 2018 03:35:00 -0800 (PST) Date: Thu, 1 Mar 2018 11:34:57 +0000 From: Mark Rutland To: Derek Basehore Cc: linux-kernel@vger.kernel.org, Soby.Mathew@arm.com, sudeep.holla@arm.com, devicetree@vger.kernel.org, robh+dt@kernel.org, linux-pm@vger.kernel.org, rafael.j.wysocki@intel.com, tglx@linutronix.de, briannorris@chromium.org, marc.zyngier@arm.com Subject: Re: [PATCH v7 2/3] DT/arm,gic-v3-its: add reset-on-suspend property Message-ID: <20180301113457.jg256bsepf7ggx6v@lakrids.cambridge.arm.com> References: <20180301054820.42847-1-dbasehore@chromium.org> <20180301054820.42847-3-dbasehore@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180301054820.42847-3-dbasehore@chromium.org> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 28, 2018 at 09:48:19PM -0800, Derek Basehore wrote: > This adds documentation for the new reset-on-suspend property. This > property enables saving and restoring the ITS for when it loses state > in system suspend. > > Signed-off-by: Derek Basehore > --- > .../devicetree/bindings/interrupt-controller/arm,gic-v3.txt | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.txt b/Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.txt > index 0a57f2f4167d..dfd1b9b838cd 100644 > --- a/Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.txt > +++ b/Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.txt > @@ -78,6 +78,11 @@ These nodes must have the following properties: > Optional: > - socionext,synquacer-pre-its: (u32, u32) tuple describing the untranslated > address and size of the pre-ITS window. > +- reset-on-suspend: Boolean property. Indicates that the ITS loses power > + on suspend to memory (via PSCI_SYSTEM_SUSPEND). Registers and data within > + the ITS will be the same as before probe (PSCI FW does not restore state). What does 'before probe' mean? Perhaps 'at reset'? Is the state well-defined, or might there be some bits that differ from boot-to-boot? Otherwise, this generally looks ok. > + Any state stored in external memory is maintained (such as collection > + tables stored in external memory). This a property of PSCI_SYSTEM_SUSPEND not corrupting memory state, so this need not be stated here. This can go. Thanks, Mark.