From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C02E5C433F5 for ; Tue, 18 Jan 2022 02:50:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YrEwa3+WQ8enl0a/l79VaORrWvAGGoPNG9IjegBH89w=; b=u3dy+PP2wwu6Rs kVsOUWHbkexV8jRUEan0xekXXKoXdKuUbeWqHPzS9A1Ht/P/NNfB1WdEpV6ufw9oMfS1VF8UdU6ge e52gIDoE6w4pyipcqRZ5awBXQEY0wijKqjS1QWXQt6X3FExKHiHWUnkJCijhYCXxhM02NCZNafW7P 9Cho4vzb83zmVmxoiiG8VdavsI7usaCdary0+SoB1VfjvBL0J+bkNNI0RJXQc3I1SBK9FtW8Tw+Or mDiGa6RCGxf50pB+2gkaR+olUwzFEtzd6r3qlDkV+HywYsCcot+uKwAkr/RbK8fnitnTnWCeo2XIe lP9YS5r541+PEvpfDejw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9eYb-00H7tK-8Q; Tue, 18 Jan 2022 02:49:13 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9eKS-00GzwI-CH for linux-arm-kernel@lists.infradead.org; Tue, 18 Jan 2022 02:34:40 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E458EB8123D; Tue, 18 Jan 2022 02:34:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97157C36AE3; Tue, 18 Jan 2022 02:34:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642473273; bh=EQRRA9PuObldp87ocMm+5sG91qe7TgelMcXd6092xrw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lIdae4cov+x7nM+MeTuOF+7HeCw0ouM+NEF+ntzZf128evMB1m0/can4Vv0HrUtQa pM43aSA1M/NU0JPzj+HeWnw0MldPVsiloKOr/bS6BS4xVTvIYnjhtNaXdD59Ib6bsn 5+a1639l9+JiSOgrnjai5mminSdgmgcqkWK4kMN0VpbrKLwyQzR0LsNLu02Udmn9YQ ZiNJuAEVjJLPAbxd54rztY7EQqR/z10dGHjBozs5hu9RAd4oASZZGXYs45GalcezeZ jXqc9WruyHImfEgTUNzCyHneSIjMozH7hdya0LeIoCpgS6gbT3+SvD7Y2v9sJHLEnd yZroGUkHotgMw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Marek Vasut , Frieder Schrempf , Lucas Stach , NXP Linux Team , Peng Fan , Shawn Guo , Sasha Levin , aford173@gmail.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 5.15 050/188] soc: imx: gpcv2: Synchronously suspend MIX domains Date: Mon, 17 Jan 2022 21:29:34 -0500 Message-Id: <20220118023152.1948105-50-sashal@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220118023152.1948105-1-sashal@kernel.org> References: <20220118023152.1948105-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220117_183436_614258_8C58357F X-CRM114-Status: GOOD ( 13.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Marek Vasut [ Upstream commit f756f435f7dd823f2d4bd593ce1bf3168def1308 ] In case the following power domain sequence happens, iMX8M Mini always hangs: gpumix:on -> gpu:on -> gpu:off -> gpu:on This is likely due to another quirk of the GPC block. This situation can be prevented by always synchronously powering off both the domain and MIX domain. Make it so. This turns the aforementioned sequence into: gpumix:on -> gpu:on -> gpu:off -> gpumix:off -> gpumix:on -> gpu:on Signed-off-by: Marek Vasut Cc: Frieder Schrempf Cc: Lucas Stach Cc: NXP Linux Team Cc: Peng Fan Cc: Shawn Guo Acked-by: Lucas Stach Signed-off-by: Shawn Guo Signed-off-by: Sasha Levin --- drivers/soc/imx/gpcv2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/imx/gpcv2.c b/drivers/soc/imx/gpcv2.c index 8b7a01773aec2..b4aa28420f2a8 100644 --- a/drivers/soc/imx/gpcv2.c +++ b/drivers/soc/imx/gpcv2.c @@ -369,7 +369,7 @@ static int imx_pgc_power_down(struct generic_pm_domain *genpd) } } - pm_runtime_put(domain->dev); + pm_runtime_put_sync_suspend(domain->dev); return 0; -- 2.34.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel