From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754481AbcKIXmz (ORCPT ); Wed, 9 Nov 2016 18:42:55 -0500 Received: from mail-qk0-f193.google.com ([209.85.220.193]:35633 "EHLO mail-qk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751582AbcKIXmx (ORCPT ); Wed, 9 Nov 2016 18:42:53 -0500 MIME-Version: 1.0 In-Reply-To: <20161109233126.GM13978@wotan.suse.de> References: <1478611764-6473-1-git-send-email-m.szyprowski@samsung.com> <1478611764-6473-8-git-send-email-m.szyprowski@samsung.com> <20161109233126.GM13978@wotan.suse.de> From: "Rafael J. Wysocki" Date: Thu, 10 Nov 2016 00:42:51 +0100 X-Google-Sender-Auth: NxkNPYbo2gsTuaUWADrKBQ2w23w Message-ID: Subject: Re: [PATCH v6 7/7] iommu/exynos: Use device dependency links to control runtime pm To: "Luis R. Rodriguez" Cc: Marek Szyprowski , Linux PM , Linux Kernel Mailing List , "open list:AMD IOMMU (AMD-VI)" , Linux Samsung SoC , Joerg Roedel , Inki Dae , Kukjin Kim , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , "Rafael J. Wysocki" , Mark Brown , Greg Kroah-Hartman , Tomeu Vizoso , Lukas Wunner , Kevin Hilman , Tobias Jakobi , Tomasz Figa , Laurent Pinchart , Lars-Peter Clausen , Dmitry Torokhov , Grant Likely , Mauro Carvalho Chehab Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 10, 2016 at 12:31 AM, Luis R. Rodriguez wrote: > On Tue, Nov 08, 2016 at 02:29:24PM +0100, Marek Szyprowski wrote: >> This patch uses recently introduced device dependency links to track the >> runtime pm state of the master's device. The goal is to let SYSMMU >> controller device's runtime PM to follow the runtime PM state of the >> respective master's device. This way each SYSMMU controller is active >> only when its master's device is active and can properly restore or save >> its state instead on runtime PM transition of master's device. >> This approach replaces old behavior, when SYSMMU controller was set to >> runtime active once after attaching to the master device. In the new >> approach SYSMMU controllers no longer prevents respective power domains >> to be turned off when master's device is not being used. >> >> The dependency links also enforces proper order of suspending/restoring >> devices during system sleep transition, so there is no more need to use >> LATE_SYSTEM_SLEEP_PM_OPS-based workaround for ensuring that SYSMMUs are >> suspended after their master devices. > > Patches 1-6 seems reasonable to me, however in so far as this patch is > concerned I'd appreaciate if you and Rafael can reply to Lukas Wunner's > questions. Which questions exactly do you mean? Thanks, Rafael