From patchwork Tue Aug 7 08:54:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 10558385 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 88A6D174A for ; Tue, 7 Aug 2018 08:54:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 74DE429B96 for ; Tue, 7 Aug 2018 08:54:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6892D29B9F; Tue, 7 Aug 2018 08:54:40 +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 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 1AF4B29B96 for ; Tue, 7 Aug 2018 08:54:39 +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=7L7nbcbjbpE3DlKjvEIX2uD4NU5xj634l48dAr084MM=; b=kCS S0ULg/TWaaT38FIelO7DCe4EW+QndmUIrI2XY3JgoAyhyQDEsu5/9kLqp/ZaijCpPS2AuXg95D2dw 17mNCUnPcXRqE801GHOlWRMhKPoSAPlGQENzbRofl8PKXN3vJwga0zNQWGZixoZeqAamsFojxJTGl LLivcfJwG0LTPWhGW+3kLVIv+ld9yzk2XA39HYtCL5VajomLFJTTuMtcIkBjip1QMQTUHH3220Av+ TiqkC6ZuVCY+LdgAa6xSPZF1NHMhu9ZCckXxyiWCr7ZuDEzMzF/hKKpuISJvoZjPUTZCaTNQcXFKi 6p5UkdHMhI5OZ11CnVPDrIwAbOev21w==; 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 1fmxlF-0001UP-A1; Tue, 07 Aug 2018 08:54:37 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fmxlB-0001SH-Ej; Tue, 07 Aug 2018 08:54:34 +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 EDEBB80D; Tue, 7 Aug 2018 01:54:17 -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 85ACF3F5D4; Tue, 7 Aug 2018 01:54:16 -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 0/2] iommu/rockchip: Runtime PM fixes Date: Tue, 7 Aug 2018 09:54:04 +0100 Message-Id: <20180807085406.3863-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-20180807_015433_501187_9C48544C X-CRM114-Status: UNSURE ( 8.47 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Joerg Roedel , Jeffy Chen , Heiko Stuebner MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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. Note that even with these two 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 Marc Zyngier (2): iommu/rockchip: Handle errors returned from PM framework iommu/rockchip: Move irq request past pm_runtime_enable drivers/iommu/rockchip-iommu.c | 45 +++++++++++++++++++++------------- 1 file changed, 28 insertions(+), 17 deletions(-)