Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4753pxv; Wed, 21 Jul 2021 13:57:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdwoke+qVYRzWkhFuNcYtZbgA+feivEBaMstVQ44NV+c1YRr/pTP+YTu0MnbeVxUNeIHKv X-Received: by 2002:a17:906:998c:: with SMTP id af12mr39882511ejc.240.1626901026656; Wed, 21 Jul 2021 13:57:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626901026; cv=none; d=google.com; s=arc-20160816; b=lNoeQJpdKfB/408zDxD71qXenjpv2YqFZsxDntRh81IxMC4DV7dMneyfrvMwYPtn5N EiXB94980+I6WJLhseNIQv8NAZY0zc7yBywHhDSWEys7nJImTH9LoWtdZ+6W06YJz7O7 hAkUFcvOytnIYL22ertywCAxzVmLmRE6J2gEm3KA6Jk5yGIsdhVMC0ApvQqsm63eqr/3 81vmigCtHGMmGKeu+0WCdA/a/5F0waCAieBVw8jbfHUYGyxmYh41KhBvOtZySsjitRsW cnsUE7XPbVllwsVZGRdjb0QF+ukn5PYt6dbpaVP9+bgEwuz6ss4Hm8axJBzOibCjMuwc YRGg== 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:date:cc:to:from:subject :message-id; bh=wUyXyVbeXMXHPxSHiGK7sHwjAijMo86P+0VWAH/11hc=; b=Yy35kF+Iyp7F33osDFuz44XFqOxq0OkeQZi3bne6ntWb1RE22SGU9PWzDJj0V1K7qL awZ3Xzu7tJl+khe6PUXZqDnUFg9/xI/PhvFXVS3VgiHQmSrzOwzrjL37/E4YxrpSTYDp mioz3Py1mX5Syx5+qMnPXSCRoYTmT6plDoBFDzIdLByyC42MMFgdn/SIGavHTwnWYVdZ j6RPzduGwSm6q0FDaiJ8H2JNQh9CRJCAMLS6gpPsu2z7uDJp+RLCKw0wDl6DgJEh36bd YY8ImOhmm8AxIKgWRMhOSumi/GxBRUM8VJf9Fxr7YwE5RXiIwLTlqsKwzIeAEM5ShB6k HcJQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ec21si29875156edb.398.2021.07.21.13.56.44; Wed, 21 Jul 2021 13:57:06 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229527AbhGUULU (ORCPT + 99 others); Wed, 21 Jul 2021 16:11:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbhGUULT (ORCPT ); Wed, 21 Jul 2021 16:11:19 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A4DEC061575 for ; Wed, 21 Jul 2021 13:51:54 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[IPv6:::1]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m6JBx-0006PE-GH; Wed, 21 Jul 2021 22:51:45 +0200 Message-ID: <689e5fd6c290ebec09d45c5d55354d78f5cea647.camel@pengutronix.de> Subject: Re: [PATCH V2 00/13] soc: imx: gpcv2: support i.MX8MM From: Lucas Stach To: Frieder Schrempf , "Peng Fan (OSS)" , robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, p.zabel@pengutronix.de, krzk@kernel.org, agx@sigxcpu.org, marex@denx.de, andrew.smirnov@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, ping.bai@nxp.com, aford173@gmail.com, abel.vesa@nxp.com, Peng Fan Date: Wed, 21 Jul 2021 22:51:43 +0200 In-Reply-To: <89534836-6688-9cbd-1f33-ca78a4db47d4@kontron.de> References: <20210506010440.7016-1-peng.fan@oss.nxp.com> <3c5ef283-0895-05ab-7568-0d108b761008@kontron.de> <89534836-6688-9cbd-1f33-ca78a4db47d4@kontron.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.3 (3.40.3-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Frieder, Am Donnerstag, dem 20.05.2021 um 17:16 +0200 schrieb Frieder Schrempf: > On 19.05.21 18:09, Frieder Schrempf wrote: > > On 06.05.21 10:32, Frieder Schrempf wrote: > > > On 06.05.21 03:04, Peng Fan (OSS) wrote: > > > > From: Peng Fan > > > > > > > > > > > > V2: > > > > - Add R-b/A-b tag > > > > - Merge V1 patch 13 to V2 patch 6 > > > > - Drop V1 patch 15 > > > > - Merge V1 patch 16 to V2 patch 5 and add comments in patch 5 > > > > to explain > > > > details > > > > - Add explaination in patch 8 for "why the resets are not > > > > defined" > > > > > > > > This patchset is a pick up Lucas's gpcv2 work for i.MX8MM and > > > > several > > > > minor changes from me to make it could work with i.MX BLK-CTL > > > > driver. > > > > > > > > Thanks for Lucas's work and suggestion, Frieder Schrempf for > > > > collecting > > > > all the patches, Jacky Bai on help debug issues. > > > > > > I tested this series together with the BLK CTL patches by using > > > the GPU and the display stack. Everything looks good to me. > > > > > > Tested-by: Frieder Schrempf > > > > So after some more testing on different hardware I stumbled upon > > the problem that USB autosuspend doesn't work properly anymore. > > > > I have an onboard LTE module that is connected to OTG2 on the > > i.MX8MM. When using the mainline TF-A (that enables USB power- > > domains by default) and removing the power-domain control from the > > kernel, the device comes up after a few seconds and is enumerated > > on the bus. > > > > Now, when I let the kernel control the power-domains, the device > > comes up at boot, but isn't enumerated on the USB bus. As soon as I > > disable autosuspend for the port, it comes up. > > > > Is this something that needs to be fixed on the USB driver side or > > is something to be considered for the GPCv2 driver? > > So I think this is something that needs to be covered on the USB > driver side. I would expect that a device appearing on the bus should > resume the autosuspended bus, but I don't really know much about USB > so there might be other things I miss. For now I will disable > autosuspend in this case. > > A different, probably more severe problem is that I was still able to > reliably run into lockups with suspend/resume and the GPU. I thought > I had tested this before as it was one of the things that already > failed with the previous implementation, but I must have missed > something as it still fails with kernel v5.12.1 + v2 of the GPC > patches. > > This is how I run into the lockup: > > echo mem > /sys/power/state # Sleep > # Wake up again > glmark2-es2-drm # Use the GPU > # Device locks up > > Peng, is this something you can reproduce? I could reproduce this issue on my last GPC+BLK_CTRL series. This was caused by a bad interaction between our slightly unusual way to control the nested power domains via runtime PM and the system suspend/resume code, which lead to some of the power domains not properly coming up again in the resume path. v2 of my series fixes this issue and the above sequence works as expected. Regards, Lucas