Received: by 10.223.164.202 with SMTP id h10csp4947914wrb; Wed, 29 Nov 2017 14:50:31 -0800 (PST) X-Google-Smtp-Source: AGs4zMY2hkgRlq1qCiFo37n3DRQE6oftTGEJpnJHLICkHRRhxPtJz/W8tZIytZii1z9wnoJc9l1E X-Received: by 10.84.239.1 with SMTP id w1mr433124plk.227.1511995831037; Wed, 29 Nov 2017 14:50:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511995831; cv=none; d=google.com; s=arc-20160816; b=W8js/N4pr1kq11jf3Ho7ZrcyAKsw+/PbLT1OQduYCIFFKp7ctDTAXx6ZHQPGpUI+Jt zhZA/drAwpN8ablEIlfZt+ARQZgKEkGthMbHFSGzLM3knAk7wU+DkgG0L/o9yRQHW8ZN lNGe660Ku1xB4zmJ+a9RnFrUtqezD9UuFqUr6nw+Btr8mhf+t7EO+T+S+UnfxjZmW7zf NaLHwtY7KcwXg331dq086SbOi2JDLQay5dDrLNpWpJwbT6WfvmMmbz/VcYNUCvym7PWc I3S2cc3tLPLuK61GI/zHKbRaZsfEHqik3G2VxG25d4EEIsds5irJe5S3Sy8+gCx2ztK/ S8/g== 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 :mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=s8Vg+hDehvYlhf4zOMbKzus8DVnRACZkX7p3gC2mZEg=; b=KydJ/ilDmBYwbM5hph6PxXwT8MFEuVCHDq7ShwjEvEFDuf9EW00k+JQKZprr1aI/5E rjcifPPdpKVsHtRPzHpjgAimjiRuPdTJTb/k65gaEP3YGh8l+pfvudNhi89aV8h386kB DTMbiYxX7zY+TxgsawaqwVIi7gONhC7YuyQz9BCtzKcKsTOA5P+gN+XHCZgnx42qU1nk jvqZ8PyW+evYs+0sXmiGoNG5n1nGFp6kaQGF2n3Iew2homt0XU+raIiudl9nNjggezXy 8GO0LZK53fJVIeCYml4F20jUX4ixIyP7Fn/YgjJSH63C8se9gG2Xe9skQ5l7ajwiYmE/ K4mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=fgvaGuek; dkim=fail header.i=@chromium.org header.s=google header.b=CP/ts0VD; 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=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q5si1934531pll.252.2017.11.29.14.50.17; Wed, 29 Nov 2017 14:50:31 -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; dkim=fail header.i=@google.com header.s=20161025 header.b=fgvaGuek; dkim=fail header.i=@chromium.org header.s=google header.b=CP/ts0VD; 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=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752926AbdK2Wtj (ORCPT + 99 others); Wed, 29 Nov 2017 17:49:39 -0500 Received: from mail-wr0-f179.google.com ([209.85.128.179]:38739 "EHLO mail-wr0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752597AbdK2WtU (ORCPT ); Wed, 29 Nov 2017 17:49:20 -0500 Received: by mail-wr0-f179.google.com with SMTP id o2so4901550wro.5 for ; Wed, 29 Nov 2017 14:49:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to:cc; bh=s8Vg+hDehvYlhf4zOMbKzus8DVnRACZkX7p3gC2mZEg=; b=fgvaGuek1WpSQy4al8UyOOmMA4DLPNMUm4QDDje9HKPGwO3UOxu01gG1mvqdlrM0wd zTO8jXuV5RLxydyWGfjdgkTBYRGaMNX4FSQ1xqTHehn2z35hHKZvFbcW3pdZm2b4ruvP rm95dCEQJ/XRTXsrairReytnETwwdw3k+HnMpcQowYAMol+UvdTxZJ7i9EESyg6IBmmh YOoKIxIBNwkuOiRwxXSbeEhNC672SR5QDkwgJbwR5JTyZ/OH4p+eliIJJTn603ik2AmP ox4nZ6y8IlIWRfConZ719vjQT0doMGoNGue9fFK/Aq7VUIzLpeLA0U31v7bVMsxz23AK 9C0Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:from:date:message-id:subject:to:cc; bh=s8Vg+hDehvYlhf4zOMbKzus8DVnRACZkX7p3gC2mZEg=; b=CP/ts0VDFndnbvejrQJ3bUou0Rq/27hHQ0zVAJrFfuahSrcaRYAhvpnGGup71RqWg7 6222G0kHkNW69eArHZOSDbXU2UEEULsJvfJG7vWL0/md7NWflRB+fMlJFWZNY3YDCVWR OGHG7309GtSDcaa7fvz2rMP08PuRi+pSlZsno= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to:cc; bh=s8Vg+hDehvYlhf4zOMbKzus8DVnRACZkX7p3gC2mZEg=; b=XBpVuWQr4Vf+gOZpivqhff+Hdoz7Y9SPJH5CjDX6KXaMZ56igU+ZjMsgA3Fls2rzZO QUEfE3DpTT+M3V1fuygTuU2Ez12kCpPXWE+aaq47DO5O4NEuR6W0JD5ZL3zV5h/Cr/xn hrnE//m3scwx+3mKhgkW/uVn613pnuNtNUHIW1E8Ur8UiwzxYFd7ypAy7Va5wlUbQsut 9scGLahs2CSqX+NGraYTiazNtMWoqemXc2zV4mKqXSq67c/75O5DwSYVxGFVpioSmYNZ tjz2o5QlNnr8Xdv/5fmqKTEI7Exp/Cs9hLkRf//snER8+fnUZqpQir2VH/9BU0Xix6Dr Jojw== X-Gm-Message-State: AJaThX7Rc9+EolT+76aPFN4cUdpzA8dBbcSqSVJdsW0enDhtbR9eoS72 I6SwDj70eBEDJeYarhgxflRlEFs8DIMzKPVQf0KZOuwh X-Received: by 10.223.187.207 with SMTP id z15mr358651wrg.168.1511995759385; Wed, 29 Nov 2017 14:49:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.138.196 with HTTP; Wed, 29 Nov 2017 14:49:18 -0800 (PST) From: "dbasehore ." Date: Wed, 29 Nov 2017 14:49:18 -0800 X-Google-Sender-Auth: PvtbVhG3GYUsgntT-S6oS3I2XZg Message-ID: Subject: Save and Restore Generic Interrupt Controller for System Sleep on ARM To: linux-kernel Cc: Marc Zyngier , Thomas Gleixner , sudeep.holla@arm.com, Linux-pm 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 There was some work in ARM Trusted Firmware to support saving and restoring the Generic Interrupt Controller (GICv3) before and after sleep, but it seems that the plan is to have this all in the kernel now. The point of doing this is to save power during sleep. On an RK3399 system, we save about 15mW by disabling the power rail that the GIC is on. I was looking for whether anyone had anything in progress already or for preferences on how to do this. Marc suggested using a device tree entry to indicate the need to save and restore the GIC. There is another requirement to resend MAPC commands on certain implementations of the GICv3 which could be indicated by another device tree entry. If someone does have patches, I'll be able to test and verify them on my system since we've gotten things working with the ARM Trusted Firmware patches. From 1586081224656153072@xxx Thu Dec 07 00:02:07 +0000 2017 X-GM-THRID: 1586081224656153072 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread