Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2956374imm; Fri, 24 Aug 2018 08:09:16 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYnt1RXGBBXITeuOu9zY8v9nWqO35y4oXfOB9mG7hPE/STF4lap3eQRINmhNNOxYCfTUBLo X-Received: by 2002:a63:3cc:: with SMTP id 195-v6mr2041866pgd.229.1535123356613; Fri, 24 Aug 2018 08:09:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535123356; cv=none; d=google.com; s=arc-20160816; b=k1nWbrM2KFx8751UQtKMR6ydfkq2gIAHZ6wyrUNU4dDIppkYhnTbNN4stLY440i9Hn 9BM+KBi7PH7L9ScYmXnvNTdzIxWLPNjfDDFjd1SPesoUJOv+vRf76rGF5DuXYIjq70Ul ZU6feQnq6dN930c2nls0TgrzUSY9MBaTXniDbOwY8jvewiCeXQk+bFlvxDRAYo7kkcHf XhTlSJ6ay8zO4VAFAxAPWb5e9BYwVR44YgPI8rpzF3A5PrKERYMFuAKZYot8ZmLaWG6S eCSHHAuAewV7rqx8uu+/FlOVVXutNicv8cVtMC1OVdtlJyofB+uqOGSbdLg9JSGYrf4D Pljg== 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 :arc-authentication-results; bh=rVNpxRp6T2fg7FiVR5erXcFTfdr23T4P7PCGL09xF9Q=; b=sIpQHFojNrK3ka1DHFvzb0Hovp7g4yy+2eJT0KUM7Do7wUtaf0S12VgCS9bQDt/eEY Z4xBCTJmzwJYGtY6p+1ME1b3AEK0Bn8Hd2c5XxVwwmuP0PST37NLjLb0CyWYWBoJz4TF zh63Ez+miN0kqWedvp0gUnTgfFLq6Xltsl+HVyPokrroRRnbfnfb8jjx2GU2E0is/gBZ CUm+q06dueJqG7iL0u/72RdXEflW7ethduA+HBFx77qhgNEGXYomd+13VO1wSMwppo/Z DpQXNEurYYsEKWsKarqblzQeigL6S/YDfK1BZe18xYkd+IhaW7HX82WxBlbgW+9uUBgi GVsg== 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 g10-v6si6624889plt.468.2018.08.24.08.09.01; Fri, 24 Aug 2018 08:09:16 -0700 (PDT) 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 S1726901AbeHXSmY (ORCPT + 99 others); Fri, 24 Aug 2018 14:42:24 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:60006 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726264AbeHXSmX (ORCPT ); Fri, 24 Aug 2018 14:42:23 -0400 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 D0D8EED1; Fri, 24 Aug 2018 08:07:20 -0700 (PDT) Received: from approximate.Emea.Arm.com (approximate.emea.arm.com [10.4.13.119]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 577ED3F5BC; Fri, 24 Aug 2018 08:07:19 -0700 (PDT) From: Marc Zyngier To: linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Cc: Joerg Roedel , Heiko Stuebner , Jeffy Chen , arm@kernel.org Subject: [PATCH v2 0/4] iommu/rockchip: Runtime PM fixes Date: Fri, 24 Aug 2018 16:06:33 +0100 Message-Id: <20180824150637.15316-1-marc.zyngier@arm.com> X-Mailer: git-send-email 2.18.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This small series addresses a couple of runtime PM issues I've spotted while running 4.18 on a Chromebook Plus (kevin, rk3399) platform, and specifically doing kexec. In order to avoid making a complete mess of the IOMMU code, Heiko has requested that all RK platforms would select CONFIG_PM, which simplifies a lot of things. I've kept 32 and 64bit patches separate, but feel free to squash them into on if that's more convenient. Note that even with these patches, kexec is still fairly broken on rk3399, as the VOP is never turned off (see [1] for a fix). [1] https://www.spinics.net/lists/arm-kernel/msg670229.html * From v1: - Collected RBs from Heiko - Added two patches forcing CONFIG_PM on all Rockchip platforms at Heiko's request, following the example set by Tegra platforms. Marc Zyngier (4): ARM: rockchip: Force CONFIG_PM on Rockchip systems arm64: rockchip: Force CONFIG_PM on Rockchip systems iommu/rockchip: Handle errors returned from PM framework iommu/rockchip: Move irq request past pm_runtime_enable arch/arm/mach-rockchip/Kconfig | 1 + arch/arm64/Kconfig.platforms | 1 + drivers/iommu/rockchip-iommu.c | 45 +++++++++++++++++++++------------- 3 files changed, 30 insertions(+), 17 deletions(-) -- 2.18.0