Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3669979pxb; Mon, 24 Jan 2022 14:58:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwcYR5+b7GUZUR9++0jbMtJAC/7lRy4j18ItUfCX0MBD/m5u3Yjpt3c7o1mfstFcqh57+Pm X-Received: by 2002:a05:6a00:1587:b0:4c7:6da7:7724 with SMTP id u7-20020a056a00158700b004c76da77724mr13349561pfk.18.1643065104514; Mon, 24 Jan 2022 14:58:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643065104; cv=none; d=google.com; s=arc-20160816; b=ZoFBWvK+Q6xJOKAuMawrbjXNMlks3rNaJADg2BxpvufopusZkPMNZJhBqgEpPn5rAA TtSI/W6AVtJMUs+B/IWnwyDXw/nUwvwaJzx33e5ubkPnnLTblrOhR1K0w3aL74ooItSQ 1HtpEhMI8yjK0Nm+IK1oIpP7EgGhcvU9StjcNHTYnWvG+y3ZC/XV3PAoEUTDvt2obOC/ bvS8VTdI6v0QtFXK5iCpyPY7e2Jfp4De0cWq87T2QSQB266EYeohw1IyM8jz9i+kuQn8 NVTr8v6WHx6uQBB1OR132cBDabML0K9ik1sMFxmGy0V15wbkebcVyXdhFG4XvwI3TzK1 0yFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=nx9piufAyR8TFHJl+4Bdi0T5vI55CIBh6+B6VQ9lJN8=; b=fN0Wm2t8UNe37uKnJwmF5qne15rTlLL6EhIuAoOD8xmHWE/DACKLGvfKuSY4CLaZ3V eCHLuMLe7WSfBOwB9gLmWw5gPi5OSuC5Y0qSubbotWcjw41f0ljYAKKapQBeijHxu5Q/ LEDbmuxbozG3Mvo3DzFxqcmTKsT/2Sz/nRAGErQA0lsfaH06So/4t8Asmd98jwm5TU5b jWQwI/AvzpO4zxZP/+fFD61gt9AgCIEkrPp5893CD0+6OWGfys+tgeJFRVEjJzUtMVZL 4gZBNoI6zNtWY0xu0fU4QBzgaZWdqDaboJsfsAa3ATXPNYtiXZvop+bAltTcBWiY+c4t Itqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JI523BxM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l11si8421759pga.8.2022.01.24.14.58.07; Mon, 24 Jan 2022 14:58:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JI523BxM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1840757AbiAXWzT (ORCPT + 99 others); Mon, 24 Jan 2022 17:55:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1576071AbiAXVxA (ORCPT ); Mon, 24 Jan 2022 16:53:00 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B16F2C08B4F3; Mon, 24 Jan 2022 12:34:22 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 5136861382; Mon, 24 Jan 2022 20:34:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 38CA8C340E5; Mon, 24 Jan 2022 20:34:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643056461; bh=EQRRA9PuObldp87ocMm+5sG91qe7TgelMcXd6092xrw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JI523BxM06FS6j51Yw+hSEzodWAEK2QrECHzwcWG2QkhWtll3bw0V9WR2zVAwoAoQ QVKsNJvtwpp/gCDKh6QIUJhR8S172mOH30DDIOh1nIifQeIzuXKnj9uzn9hHewxvf7 JK3RVbnc2gqsD3tmeqh+2/+6/nlWG8u9n//DoDOk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marek Vasut , Frieder Schrempf , Lucas Stach , NXP Linux Team , Peng Fan , Shawn Guo , Sasha Levin Subject: [PATCH 5.15 492/846] soc: imx: gpcv2: Synchronously suspend MIX domains Date: Mon, 24 Jan 2022 19:40:09 +0100 Message-Id: <20220124184117.981890388@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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