From patchwork Fri Jan 12 21:24:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Derek Basehore X-Patchwork-Id: 10161709 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 93326602A7 for ; Fri, 12 Jan 2018 21:25:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 85BC928A90 for ; Fri, 12 Jan 2018 21:25:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 79B8F28AAC; Fri, 12 Jan 2018 21:25:30 +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=unavailable 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 2470028A90 for ; Fri, 12 Jan 2018 21:25:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965399AbeALVYx (ORCPT ); Fri, 12 Jan 2018 16:24:53 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:41677 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965375AbeALVYs (ORCPT ); Fri, 12 Jan 2018 16:24:48 -0500 Received: by mail-pg0-f66.google.com with SMTP id 136so4818302pgd.8 for ; Fri, 12 Jan 2018 13:24:48 -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=TbDMIFHBabNU0LbfXFu6+egh6I3ljL6wxd0a9m1frvU=; b=niKD7yNMXj/5UPYvu+i83hdPfmjmBqigppklJJ81LGloQUwEYhSRsYLJ0j+Z9kW0qN 4EP407PTM/eHfRZmVL6lF1D6jlHmN5o2g8lzoUplZrEHv5EJIYI9KLOP3LdFcNmeDk/j MzPg5G2qrGtg+ZcomHWa4cttAKh9qE2hA3ShE= 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=TbDMIFHBabNU0LbfXFu6+egh6I3ljL6wxd0a9m1frvU=; b=S9OXqFLt2Svv/Jmxpl+ezaWqiH51aTbc0HBC3jVDtNaV6AkJCm5RiPy0XC1pK+BRzX qbH+MGhZZq+VrA0jm9wfxfqgxKvI5lvIXPp9O8n52UrXzG+2hsFLpANkAGqX4RK8ktih O5YjCkstbPVuFNyddXtsdUOau+6Mk3JOdTSwK89+sqdOU/8bfvk/CeTKzD7hshEUFxfY JlTcyBHDoIOz/u0WWla3YT3YYZ1hp9HySNvlk3O8s8jbIF/NPIBSZVRCWuJ6KR5e5ZF6 gEMY6+1daiT+6Aj+HaA9Ev5h41lq/iC3C816/J+0tJMs+KrFSvafopNHDTiw2kFOSdgf 7xqA== X-Gm-Message-State: AKGB3mLWcfrDR/ur/lqxmX5iqU7r8YXe3gPWVoMBnS43pBHW71+El417 yoAyArZvI09VVgJ8XAjZfiqqhw== X-Google-Smtp-Source: ACJfBoupDCrYAaz6tMfEfzvDnUTpwEYD/VnGoxrkfrnzdrdU9QJQuCJfiPwkoew6xw4j7xM+fkdVJg== X-Received: by 10.159.194.136 with SMTP id y8mr19772727pln.212.1515792287738; Fri, 12 Jan 2018 13:24:47 -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.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Jan 2018 13:24:46 -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 7/8] DT/arm,gic-v3: add resend-mapc-on-resume property Date: Fri, 12 Jan 2018 13:24:21 -0800 Message-Id: <20180112212422.148625-8-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 boolean property for the GIC-V3-ITS enables resending the MAP COLLECTIONS commands when restoring the GIC on resume. Change-Id: I03ab8689dace109851a4d2be3abf5fbafb090d27 Signed-off-by: Derek Basehore --- .../devicetree/bindings/interrupt-controller/arm,gic-v3.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.txt b/Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.txt index 820556a8ffd2..1f0d691df9b3 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.txt +++ b/Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.txt @@ -82,6 +82,12 @@ 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. +- resend-mapc-on-resume : Bool property. If the collections for the ITS + are stored in the ITS instead of external memory, the state will be + lost if the GIC loses power. Setting this enables the kernel to + reset the collections state on resume for this ITS node. The state + will only be reset if the save-suspend-state boolean is set for the + gic. The main GIC node must contain the appropriate #address-cells, #size-cells and ranges properties for the reg property of all ITS @@ -129,6 +135,7 @@ Examples: its: interrupt-controller@fee20000 { compatible = "arm,gic-v3-its"; msi-controller; + resend-mapc-on-resume; reg = <0x0 0xfee20000 0x0 0x20000>; };