Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3385251pxb; Mon, 17 Jan 2022 19:15:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRXzhfYJhBz2eOio8dVZyoTOABuSPUI5TNxKpbd0Z9PIerE4qpSVM13Z4tDyvqGIqJJkhL X-Received: by 2002:a17:902:f54b:b0:14a:88f2:f55c with SMTP id h11-20020a170902f54b00b0014a88f2f55cmr21565879plf.158.1642475759113; Mon, 17 Jan 2022 19:15:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642475759; cv=none; d=google.com; s=arc-20160816; b=gEokh/xkBWszCOZOfFzZbl5BM/wbzA7rAhyVXafPe0GuuCkvWOPEFdnsKp+KpDDpdI H6tXBYuP7wFgqApd8zk+q8xch9yJCWPu4FgB4NROKEtqgq/3gJM0P/jxB0e8SbP+gdOd 0auGFFLFBvMqZC1F+fVj/jR9UyCNYWHwXTf1wBwsNUxabzCycMEIBySJlz/mGhKQ4P1B dBUJuD13I7+1A/PqD/BGmKN3ONq0AgAhc/BFX69vNS8F7W0E0J01sYvZn/iRbiXVNWaZ mfkqZUq/GmlgX/G6j6vGaIC/zWqzWx050cJXOZW8V+OdeJjxb6amcpIektDDc2R/+xpp /7jg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CSO7eViHRknQt29MgEG68lqN+M+B5pnDVkREQ0krny4=; b=vXyXsEsqkEh+yWhemUJZstr/GZnvpjKZrcpzv00vbPTjp2quyJxgrRPl0c0+8LNpSe wcIg506gk1aY/u8zAorMZZKXvQWFKp43gIm96MIm2Eni0GjEWi9il0sEkrwkTH49FLvl jHjcH4ZNfvMDEOpLMU2iDLdKu+3rv1AC9tMX5VRfgDqy7PBaxAx4LBLsD8ck3LjlLdVL kuvA6cuNA9yuai9w0zRIUgAZlcK7Y+nKboiOzbeki4hLoINMJvNsCeykAJ1XmJvJfPIv j/AgsaEe29e+ohTgAV8PSJMUADX40D3FrERITVJ17jaAV1QHdG/IgdckZ05n5yrq1jrp dtZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UhWucttE; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t3si2299541ply.374.2022.01.17.19.15.47; Mon, 17 Jan 2022 19:15:59 -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=@kernel.org header.s=k20201202 header.b=UhWucttE; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244929AbiARCYI (ORCPT + 99 others); Mon, 17 Jan 2022 21:24:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245085AbiARCWw (ORCPT ); Mon, 17 Jan 2022 21:22:52 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBABFC06177A; Mon, 17 Jan 2022 18:22:51 -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 ams.source.kernel.org (Postfix) with ESMTPS id A6FBFB8123A; Tue, 18 Jan 2022 02:22:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4AD9EC36AE3; Tue, 18 Jan 2022 02:22:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642472569; bh=CmSybgOq/1GrlnZRx5Nae4PVMVICbBeGwoklSLliBzc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UhWucttEKeX3gdn3Zo/0TV/1DDOeiKlnroyFdwhch0fl6YU6R1J2xAonaqDXRD9NR ozVqy0YqPd3bv1jSPnvMCvi8oxjp9Fu64WjYeoHWEYO3n34jqlcTTpXMjMyOm29e32 v8VeWGoAWZltKBqhVqI0UPt8yZ290yzjQMXWtefb0GiY7zCAwLvB/FFSf2r/ma7fMV TXV5+d6IezIeoKaiknucL04rC9ZcyRoSbphOmj9YeF3IonARrV2rKrOHT3KI4sG2qU h67O2BiSzyrVlRCcA+zA3PsGYPUl/6/zGVJhNu7p9C3iCuU7DVW4HDGqhWzP21nv4F H07Tpyty+77kQ== 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.16 057/217] soc: imx: gpcv2: Synchronously suspend MIX domains Date: Mon, 17 Jan 2022 21:17:00 -0500 Message-Id: <20220118021940.1942199-57-sashal@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220118021940.1942199-1-sashal@kernel.org> References: <20220118021940.1942199-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore 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 b8d52d8d29dbb..e757044ab7512 100644 --- a/drivers/soc/imx/gpcv2.c +++ b/drivers/soc/imx/gpcv2.c @@ -377,7 +377,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