From patchwork Fri Jan 12 21:24:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Derek Basehore X-Patchwork-Id: 10161711 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3F4F0602A7 for ; Fri, 12 Jan 2018 21:25:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2E46F28A75 for ; Fri, 12 Jan 2018 21:25:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2182A28AAC; Fri, 12 Jan 2018 21:25:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8FB6C28A75 for ; Fri, 12 Jan 2018 21:25:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965363AbeALVZg (ORCPT ); Fri, 12 Jan 2018 16:25:36 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:34357 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965353AbeALVYp (ORCPT ); Fri, 12 Jan 2018 16:24:45 -0500 Received: by mail-pf0-f196.google.com with SMTP id e76so5302901pfk.1 for ; Fri, 12 Jan 2018 13:24:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WjJHj2QWBAa6fdsUgGcL/Bs96vtpHD55/lWzfBjyx3I=; b=OrduZy+UCNNBJ7WN9+8mVkNf6UbXJBEOF0AW1Ku02/pMDwG1NICqg2ITJhj7TCbl0V zlV4FYqlV5SLZ7DpJ/vDMy7fdYg5rDTmLufGZMsFx2R8CBTRVU3n8JtDqVDaz/os+/4Q 0BWH9kVA5xLL3NW+PwAYPNaOT8GiR8aZfkppo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=WjJHj2QWBAa6fdsUgGcL/Bs96vtpHD55/lWzfBjyx3I=; b=cxqiBl5wbst09JH9tqOrks2GMducDI41olqqZE+tostjq3GARr37lkURMBSpQ7YWDU QJY1zTDVE/yprFA7kcu3gJPZ8yOxXr+P5sZgFECQm/FiKd/gSRa/5vFx6DHfMTTSfY63 oYdw/FPgFNGej1Sb++m5w/T/HWiNKTlDVUdfeZYmeNqtzJ3XI4z/Ic0eqZYalE7zIED/ ppCMSByIrxCAdgr9O6uaiDrV51lSYk2gyo43WrS41SOWkOC0JRmo6TMHHUqxqxtEMpd/ HD+fpWTEFyfph066VGjpVG2mqm+OCfjcM2nwviqn9zQjZckF9s0vCA6pUVOmGMu7jFqi 3v8w== X-Gm-Message-State: AKGB3mKUDJOPLod/spj4WJlwxlwEvE056kWAae6/53Q8WMuh2ymBTRbK hhuQsU7JwwJpo1YljaR4ICKz0w== X-Google-Smtp-Source: ACJfBouL7RgKRXaiVpleDbll3O7IFjaBDK/FXHAFicV5bbUM6iBAT3LILuz5j8WSdpOl4O9JxKAVGQ== X-Received: by 10.99.173.2 with SMTP id g2mr12695825pgf.66.1515792285058; Fri, 12 Jan 2018 13:24:45 -0800 (PST) Received: from exogeni.mtv.corp.google.com ([2620:0:1000:1600:211e:5908:95bc:4888]) by smtp.gmail.com with ESMTPSA id t71sm18616186pfg.115.2018.01.12.13.24.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Jan 2018 13:24:44 -0800 (PST) From: Derek Basehore To: linux-kernel@vger.kernel.org Cc: linux-pm@vger.kernel.org, rafael.j.wysocki@intel.com, tglx@linutronix.de, briannorris@chromium.org, marc.zyngier@arm.com, Derek Basehore Subject: [PATCH 5/8] DT/arm,gic-v3: add save-suspend-state property Date: Fri, 12 Jan 2018 13:24:19 -0800 Message-Id: <20180112212422.148625-6-dbasehore@chromium.org> X-Mailer: git-send-email 2.16.0.rc1.238.g530d649a79-goog In-Reply-To: <20180112212422.148625-1-dbasehore@chromium.org> References: <20180112212422.148625-1-dbasehore@chromium.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This adds documentation for the new save-suspend-state property. This property enables saving and restoring the GIC for when it loses state in system suspend. Change-Id: I9ad34baed04475c6ef1562bc0f72ad5d348f9904 Signed-off-by: Derek Basehore --- .../bindings/interrupt-controller/arm,gic-v3.txt | 36 ++++++++++++++++++++++ 1 file changed, 36 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..820556a8ffd2 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.txt +++ b/Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.txt @@ -57,6 +57,10 @@ Optional occupied by the redistributors. Required if more than one such region is present. +- save-suspend-state : Bool property. Setting this has the kernel save + and restore the GIC state for suspend and resume respectively. For + when the GIC loses power during suspend. + Sub-nodes: PPI affinity can be expressed as a single "ppi-partitions" node, @@ -107,6 +111,38 @@ Examples: }; }; + gic: interrupt-controller@fee00000 { + compatible = "arm,gic-v3"; + #interrupt-cells = <4>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + interrupt-controller; + save-suspend-state; + + reg = <0x0 0xfee00000 0 0x10000>, /* GICD */ + <0x0 0xfef00000 0 0xc0000>, /* GICR */ + <0x0 0xfff00000 0 0x10000>, /* GICC */ + <0x0 0xfff10000 0 0x10000>, /* GICH */ + <0x0 0xfff20000 0 0x10000>; /* GICV */ + interrupts = ; + its: interrupt-controller@fee20000 { + compatible = "arm,gic-v3-its"; + msi-controller; + reg = <0x0 0xfee20000 0x0 0x20000>; + }; + + ppi-partitions { + ppi_cluster0: interrupt-partition-0 { + affinity = <&cpu_l0 &cpu_l1 &cpu_l2 &cpu_l3>; + }; + + ppi_cluster1: interrupt-partition-1 { + affinity = <&cpu_b0 &cpu_b1>; + }; + }; + }; + gic: interrupt-controller@2c010000 { compatible = "arm,gic-v3"; #interrupt-cells = <4>;