Received: by 10.223.185.116 with SMTP id b49csp7045417wrg; Wed, 28 Feb 2018 21:50:51 -0800 (PST) X-Google-Smtp-Source: AG47ELvG4wAWyFDBlQOWGu2D6rw7cAEy55lCv5v4aDD22gglJ1IwVffW/Elnpo5JIH9j+w2EGyVT X-Received: by 10.98.34.143 with SMTP id p15mr749266pfj.101.1519883451521; Wed, 28 Feb 2018 21:50:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519883451; cv=none; d=google.com; s=arc-20160816; b=gRKE5uIfxABnykGHVxcvnzLWAbmxd8/1dqmdtwNxmMpurn2nRwMI96kXyWK9X0OEfA oCtNRznFW+0CsIlJMFmUleAEWfFXeV7UEbhEqhtlJI/+Vt7dL+s0ia7/la4lNSuoYnlo ryrnZP4k7ZScaz6pn2mk+BD/tXptYXtLFBOVlRIGjjC/xs5hjQjeQq6LQQNqSOmL2m1B oeeScuQilGSo4ttZiEcrsC1YM65l7B1ReVFGaXw6e9gaAWLhizgBJFjws0H61Fwhpoe9 ORt3h6nMosIh5zQ+gVJBdFbnQ06ZRqNBq3wXDzTnWXJTg9Sy/zGfZ9tTAPSKSiIzPqxh a/1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=+V65KB42zCVmQditVibZiZdi7RpJSHs4oHlz6Zrtyjo=; b=yzlG4vI3DIq3r/BW4wnA3scUfb5jCiiu5EnnOtkHR9KUWK5DVpz02Lrr3T9MHD+dky dTG9KnlH8nufnt0EMl7LAgcC1xlorHEHMxO7sNazo85ahUEpiIE6yNNS/yT6W+0K10Xo NL/mLMMEbe+wt7+010dP87A2ce0PUoXh2qy8ltF3mPpYLfiWqeJGkD7RUIm6bcyQ5hOJ H/Jx0IR38Z5KCdUfk/NVyMTe7sEjgBIQ+ztNJu9uTQSKZGQ48Mgr9tT8QEIsKfBdHxJR OwkcVHS8aFL4Dh9Le5VIVlb8t5hOnYuRoo21FqzqCnlFu3lrKCNtypO60fscd8tEZxb9 Ch5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Q7t9Ca+Y; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j15-v6si2594219pli.649.2018.02.28.21.50.37; Wed, 28 Feb 2018 21:50:51 -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=pass header.i=@chromium.org header.s=google header.b=Q7t9Ca+Y; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966140AbeCAFs3 (ORCPT + 99 others); Thu, 1 Mar 2018 00:48:29 -0500 Received: from mail-pl0-f66.google.com ([209.85.160.66]:33434 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966102AbeCAFs0 (ORCPT ); Thu, 1 Mar 2018 00:48:26 -0500 Received: by mail-pl0-f66.google.com with SMTP id c11-v6so3075888plo.0 for ; Wed, 28 Feb 2018 21:48:26 -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; bh=+V65KB42zCVmQditVibZiZdi7RpJSHs4oHlz6Zrtyjo=; b=Q7t9Ca+YVDRoRNuAIbFEXW41OBeKvo7rynSqktneqkQEE8EMVZJQEtGr322GqRP7TB KG0+c8I3dWM7lSm4yIx3tR64nJII6eFUKzaTAhCTf/im0H7wVwtLZ1nUzyYgpyxKUBDD MweIAe7C7VllFWdZEOTXL0QMeSlNtUP78MbaI= 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; bh=+V65KB42zCVmQditVibZiZdi7RpJSHs4oHlz6Zrtyjo=; b=k5LA/rG+BI4mRs1wwmwVRNgVdtjW5NY5DEtLtcFaGYFl5HFxJgnyEUE8Jj/SbQvfOA w+7LnsDzhBERODoHwgF6uMfGw7PfqEJN0gfssWZ41YjsU4cpzxJ8mV4yifYcm01sYZcL QI4s2ce5C4btrs/wK4ajsbunV9xuytdh62oZBDQv7KsJIH9lL1JgBGgXfhrAQX0kfub6 jiFXpRooMdrnJj/2lrEAQn+WHPuRFcw565JqfyA2xI3fTPXMs6V95mU9J57Mk8LagvqW Kb7HKQi/xbWnE10dq9m8ZuEyRE0mn2X5ktEW2N5lfOQKkJnVBs7RNfMfmK9BdalCZdQx 4Y4Q== X-Gm-Message-State: APf1xPDwKo6Gxb4LKWHn4eBRBDDZsSVAJ9mFhWKY1Gzq37Mw/kJJQEJp 2vH4EOXlOj7DdTQSzTon+7abrR1hNmY= X-Received: by 2002:a17:902:864b:: with SMTP id y11-v6mr783647plt.380.1519883305702; Wed, 28 Feb 2018 21:48:25 -0800 (PST) Received: from exogeni.mtv.corp.google.com ([2620:0:1000:1501:f407:8d12:c205:7153]) by smtp.gmail.com with ESMTPSA id 184sm6194674pfg.125.2018.02.28.21.48.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Feb 2018 21:48:24 -0800 (PST) From: Derek Basehore To: linux-kernel@vger.kernel.org Cc: Soby.Mathew@arm.com, sudeep.holla@arm.com, devicetree@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, linux-pm@vger.kernel.org, rafael.j.wysocki@intel.com, tglx@linutronix.de, briannorris@chromium.org, marc.zyngier@arm.com, Derek Basehore Subject: [PATCH v7 0/3] GICv3 Save and Restore Date: Wed, 28 Feb 2018 21:48:17 -0800 Message-Id: <20180301054820.42847-1-dbasehore@chromium.org> X-Mailer: git-send-email 2.16.2.395.g2e18187dfd-goog Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A lot of changes in v2. The distributor and redistributor saving and restoring is left to the PSCI/firmware implementation after discussions with ARM. This reduces the line changes by a lot and removes now unneeded patches. Patches are verified on an RK3399 platform with pending patches in the ARM-Trusted-Firmware project. Just a couple minor changes in v3 to formatting. Fixed a false ITS wedged detection due to the cmd_write and creadr offsets not matching up on reset in v4. Also minor formatting changes. Got rid of additional device tree property with detecting if there are collections stored in the ITS in v5. Made other minor changes. v6: Fixed reinitialized collections to only happen when the collection is stored in the ITS. Changed error handling to avoid undefined behavior of the ITS. v7: Fixed pr_errs to print out the physical rather than virtual base address of the ITS and the error code. Updated the documentation. Derek Basehore (3): irqchip/gic-v3-its: add ability to save/restore ITS state DT/arm,gic-v3-its: add reset-on-suspend property irqchip/gic-v3-its: add ability to resend MAPC on resume .../interrupt-controller/arm,gic-v3.txt | 5 + drivers/irqchip/irq-gic-v3-its.c | 193 ++++++++++++++---- include/linux/irqchip/arm-gic-v3.h | 1 + 3 files changed, 161 insertions(+), 38 deletions(-) -- 2.16.2.395.g2e18187dfd-goog