Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2265075pxm; Fri, 4 Mar 2022 12:39:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxebPsoAdl2fSKx2qZ2xZ+gxIxgqBOp6UVS/QsplElbcGlqW9dyG9ecFoNl2IBZ+x31WTbN X-Received: by 2002:a17:902:8498:b0:14d:cca6:741 with SMTP id c24-20020a170902849800b0014dcca60741mr164699plo.16.1646426384743; Fri, 04 Mar 2022 12:39:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646426384; cv=none; d=google.com; s=arc-20160816; b=uLaPwSv9gD908vDI0YrHA4DDy8VBr8yWumgV1Pbhnen4i7m4BCzjIrJKrpF6V2O6mu hoAmmhNGDsJ5md3alHVJ4f0VpreFunScCj7TGngVCi8qNmMiBos26wFo1j9AWbkD5ER/ pDJuscgBOEa82lta3uzB+GJy6NoboA5eTCBsIop/X7M6UdfqE2QH9Z27J/CihbqKHoks tYNpMogO+ig3K7ItCLX+lbZRhfbtpYi3G6kz86OlRTksYocWsYpasYm67W25h8iB5tta T2TSNvSkHRuaSy4YWT730v0xRlrYmbqlKm5vGJjXy9kg/Aj59+9B7o+GrGFZRHhyVVJi Csyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=PVlhcCn7DaGojmQuPVn01R8bc+sVgt8z7aPBiwXDtKA=; b=dgK1qRY7X73t9w/kSiTsZcONrNZuL8GujxGSYwjwPB/hmHZ1e3shsGhQJgHbb/ntvc 5aZgB8BbKPwOEo5zWDRs6Qg7Bftr8HWzAMsXGLZLUmVq5E8a1Xn0yI1+sRSFDJ1DxHQt jH8lg45YNNrbstt79VCofGreqP5d4WpXHjNwLG0NCma6AhSomQ0RHOEi5+Itjpk8LSyR rFsOWsLsorzbXNUk/BA6Z+a9RQNGKA2bpByCkKCo3LmZNfiWye6r6/VOspacur2kNDJe Z0ghQs4fXtcWxEvcdIhIXbheknpo4u2ksi+rZeAxWRJYYiXqBCA0NtDbQEmh1li7cyP9 S8/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b="28LE/bh1"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id m15-20020a056a00164f00b004e10645ab1csi5599424pfc.264.2022.03.04.12.39.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 12:39:44 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b="28LE/bh1"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 71C0097289; Fri, 4 Mar 2022 11:39:27 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238518AbiCDRmB (ORCPT + 99 others); Fri, 4 Mar 2022 12:42:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238000AbiCDRl7 (ORCPT ); Fri, 4 Mar 2022 12:41:59 -0500 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F13F1637DF for ; Fri, 4 Mar 2022 09:41:09 -0800 (PST) Received: by mail-pg1-x530.google.com with SMTP id c1so8091664pgk.11 for ; Fri, 04 Mar 2022 09:41:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=PVlhcCn7DaGojmQuPVn01R8bc+sVgt8z7aPBiwXDtKA=; b=28LE/bh1PCver1vlxXW2uY48K0BNBXlo7W2CUgCSAgdVq+qPP30mJwwvBhfA/6L7Cu hMmXie39seY56jl9FnYvsxLKRmtsTVhsSjNcFupD3HGgAj9Y2zD5hHz7NaejIKh6/vm4 QIU7z8n+FwTUFGeebviFwZXaGZ6LKQg4Tv9CCseXKCXsJhVBZ3rySuMU/0vA7gldpRsw Y9XGiIJ63OZWPitaMmqUYd7OSMbs5kGXEvieIpcz6gTRFGAXINhpuArFhnxPaLB6/hJG wMiG8AlpP6ECn1vKfBXEpiosjNrKRFEVeojePtYHGAJ2SUacybFgAOIpuZ93ct9IqOIH onYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=PVlhcCn7DaGojmQuPVn01R8bc+sVgt8z7aPBiwXDtKA=; b=BLpFnOVxsg5liAyNaH1pIl2RytTCJ8biTI0Wcp5v8E2WPGRD0NQBTyYjxtwg1hwUMz yWGBy/LXjL+l1S5SN5qVOcZHBsd2Aq06azdCyaiVYO/QxAEqbo92XCL4zNljxqLcdH6K nZVJ2F1DpwKhM5+2uFz3LQoFhgZNKyws+CL6Ykvy1CjqBcy0PdNOxE7j4RecXEFNvfEG jqbr56oOz8cp/wv1oXFvrerYx+6vqSAsuKnVJji9SokqsqXD5m/pFpXn3dzOgCQWpceZ ojLlzvMxD8mtSLdByUc2PnuNzcD5U0uIJKAhycuf8/SexwMa7DbtAof7z2lZDKUrrHYQ MFuQ== X-Gm-Message-State: AOAM533NG0qaY0tXprdw/cowa+O7nJVytpo+K2kXzRpK8NMX3wdcmhbc kDrcpcjPcOOF0ZdGL5y4LlNy9g== X-Received: by 2002:a63:544c:0:b0:378:907d:1e37 with SMTP id e12-20020a63544c000000b00378907d1e37mr22764324pgm.394.1646415668764; Fri, 04 Mar 2022 09:41:08 -0800 (PST) Received: from localhost (c-71-197-186-152.hsd1.wa.comcast.net. [71.197.186.152]) by smtp.gmail.com with ESMTPSA id y12-20020a056a00190c00b004f39e28fb87sm6880950pfi.98.2022.03.04.09.41.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 09:41:08 -0800 (PST) From: Kevin Hilman To: Tony Lindgren , linux-omap@vger.kernel.org Cc: Dave Gerlach , Faiz Abbas , Greg Kroah-Hartman , Grygorii Strashko , Keerthy , Nishanth Menon , Suman Anna , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jarkko Nikula Subject: Re: [PATCH] bus: ti-sysc: Fix gpt12 system timer issue with reserved status In-Reply-To: <20210611060224.36769-1-tony@atomide.com> References: <20210611060224.36769-1-tony@atomide.com> Date: Fri, 04 Mar 2022 09:41:07 -0800 Message-ID: <7h7d99ehu4.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tony, Tony Lindgren writes: > Jarkko Nikula reported that Beagleboard > revision c2 stopped booting. Jarkko bisected the issue down to > commit 6cfcd5563b4f ("clocksource/drivers/timer-ti-dm: Fix suspend > and resume for am3 and am4"). > > Let's fix the issue by tagging system timers as reserved rather than > ignoring them. And let's not probe any interconnect target module child > devices for reserved modules. > > This allows PM runtime to keep track of clocks and clockdomains for > the interconnect target module, and prevent the system timer from idling > as we already have SYSC_QUIRK_NO_IDLE and SYSC_QUIRK_NO_IDLE_ON_INIT > flags set for system timers. > > Fixes: 6cfcd5563b4f ("clocksource/drivers/timer-ti-dm: Fix suspend and resume for am3 and am4") > Reported-by: Jarkko Nikula > Signed-off-by: Tony Lindgren I'm debugging why suspend/resume on AM3x and AM4x are mostly working, but getting the warning that not all powerdomains are transitioning: pm33xx pm33xx: PM: Could not transition all powerdomains to target state I bisected it down to $SUBJECT patch, and verified that reverting it makes both on am335x-boneblack and am437x-gp-evm fully suspend, and I'm now seeing: pm33xx pm33xx: PM: Successfully put all powerdomains to target state Note that it doesn't revert cleanly due to some other changes, but this one-liner[1] effectively reverts the behavior of $SUBJECT patch, and also makes things work again. I verified the revert (and hack[1]) on both v5.10 stable and mainline v5.16 but TBH, I'm still not 100% sure what's going on so looking for some guidance from you Tony on what the "real" fix should be. Kevin [1] diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c index 54c0ee6dda30..82379ff9dce5 100644 --- a/drivers/bus/ti-sysc.c +++ b/drivers/bus/ti-sysc.c @@ -3304,7 +3304,7 @@ static int sysc_probe(struct platform_device *pdev) error = sysc_check_active_timer(ddata); if (error == -ENXIO) - ddata->reserved = true; + return error; else if (error) return error;