From patchwork Fri Aug 24 15:06:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 10575479 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C120E921 for ; Fri, 24 Aug 2018 15:20:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 67AC62CAA7 for ; Fri, 24 Aug 2018 15:20:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 36EB12C99A; Fri, 24 Aug 2018 15:20:21 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 52EEA2CA55 for ; Fri, 24 Aug 2018 15:20:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=4hggyh3kqDxlovxD163Ot5fRM6sl/IBCDrpRyTS2XMY=; b=H79 pgs/I4BzBfY3+Fw7VZoFKFgLFeltkhBOkU3TE/J7yWz2Od/MWyD9CrSiqW1V43yg5Pag4F9fmXSoG Mn/WN0lKN0fOYLjcbziwuYnekvy8LrH6AuejwumfJz9p7Uxhu7ZvbjzUfkdCnA4NM7oz558QI7IjP jaHNNbsSFWHHGAvxITeDeZpzaJdUbMLXlhajMoWQa7C5Oj6FEvozQ06TygnwK/o3s3fTcpFQk9sYs A3IHlmBy2ha13px/ohLT6uGYOr/ooMEdKLbh9/FDq2xplF1XCc/7ROP1nBn/WXu04p28hSBJ2cbFT ayjVUk03BppSciqw51IDC/fn0YYRaKA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ftDse-0006dI-U0; Fri, 24 Aug 2018 15:20:09 +0000 Received: from casper.infradead.org ([85.118.1.10]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ftDpc-0004pK-BB; Fri, 24 Aug 2018 15:17:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=rVNpxRp6T2fg7FiVR5erXcFTfdr23T4P7PCGL09xF9Q=; b=rk5BJ25h6CYzTNmCKAQjGyRv4 ISfg/TrTHc2ysECL5UxR+t0Q789GSPfcHZqJLCDEK7SVV1Htle6KcJ4sDYpaB7qN8tr8NsEsdaU2Y Q39eWUJmwkj+0UdZbWUyrn8nGCcdYELhieo2LkadjpwdP8M6mcyumhVY1ryA33nkPuzdfAg1MTMDZ meSR/epi2As0ypIq15C4lKWsVuZrG2LhvVrW7BUDu0wbMEJTiYekJwPIInuTekIApoL+Ub2TJvGdH FskxQd5fg2Fup+NR4Cear7JayqVwTeV5X91wft5usO8yC1Xid6ufYUWORMN4cOLbAj+4JUsZPoNIa UeUQfkaSQ==; Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70] helo=foss.arm.com) by casper.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ftDgR-0002QL-JJ; Fri, 24 Aug 2018 15:07:33 +0000 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180824_160731_814297_BDFBF203 X-CRM114-Status: UNSURE ( 9.41 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Joerg Roedel , Jeffy Chen , Heiko Stuebner , arm@kernel.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-)