Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp923132imw; Wed, 13 Jul 2022 10:22:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vX1LVlON4mKzND1rx29GJYcA1lPq0vmorlbEvA7qPyHOY+oK9NfEC5+nlIJM72/pgM+Gfo X-Received: by 2002:a05:6a00:23d2:b0:52a:e7b1:f9ab with SMTP id g18-20020a056a0023d200b0052ae7b1f9abmr4322209pfc.20.1657732946974; Wed, 13 Jul 2022 10:22:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657732946; cv=none; d=google.com; s=arc-20160816; b=ptfqpMK6e82/dY1ITKPx0bj0xeQmExNuHPgidDqfBcuAgcJvmA62HFMcObO4+yHJCp cetVnLhv/08PDXW0pj+PfPJQXkbuaBBjlBLw1ksaZbcplbv9HFoxDzxkKX9/d3ZXF05K JKv60LJurAPToXO4VOHFDkL347qwZKwr/K7/imRdux7kgMyR+2QJDsdnw2D5W6caiom7 craacCqLnmFSlVKp4aGaMziT+S/oPMiloKjFwLIfrLitZDaacOeTk0L7+sENZs3npv+/ O742No1h00Cg9TXZMTEDYiqX2tTUbqolhj1VVFO/WUSxKZYToK0LJ/vZatYhOBRQx1vh wyKA== 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:date:cc:to:reply-to:from:subject:message-id :dkim-signature; bh=ACfjUQnHX2SI40yEa8fw2kf6rrchf/u1JQyIEtiWaCU=; b=RaDTVp8Mkbv3zaUWu+U4ag09IDdD2JQTww3/2YZl15nPH2Zlg1/CBwUInsoIwnSJuO XiINaP/CQm6WTfQziNJFVet1f5hWiM/k+YlbF5vcoNSJddcZGiCqdGX2e/3q+y3lWKV/ Tm8PSCc3OCwIU4fwAKtyV5Dhz54e7GYYJQz/ieAAzcOh2IkDZSj3YkKqQxrBSMeW7bcR JpVHrSG4i9grnLbfXMssYhSmhAdHhnSOgJK2n4QPjWj2qkgcjoMJKRQpsiI2tI6TwPCp /u4frSuA0eJ1vSSAEhhXOGqTwVBdAv5Ru8vAv3ntsW+BP1dKzCAEg4gzHrspO1QunvWN k9NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nmBCq803; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ik1-20020a170902ab0100b0016ca4b6eaddsi237157plb.122.2022.07.13.10.22.14; Wed, 13 Jul 2022 10:22:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nmBCq803; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235287AbiGMRLZ (ORCPT + 99 others); Wed, 13 Jul 2022 13:11:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229807AbiGMRLY (ORCPT ); Wed, 13 Jul 2022 13:11:24 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7614C2CE02; Wed, 13 Jul 2022 10:11:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657732283; x=1689268283; h=message-id:subject:from:reply-to:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=7okOHRohkmqY1odlj6bLAXPI/CRp5yIJ+HMblNpFZsw=; b=nmBCq803A32+ZNpzoqz8DLNRR++Y2G+LNLehVY/9xTHVNVOTYi3CX96q bkwXDfPXOQmixTxEiDXZdDBKhdmJXXo7Dnyt9QbRNJWCGj2XtHSJTZgNy rXT6xB4n3JOWlu1JurdeRg6VvYaATEd+r33+HJK0kl35KB2cQaTqIVy05 kA1OUToRESJlvyyiLdlRIdmCyi8ojlxppLy3DeFmxXdVoycWi8u2c2TQZ H6M0HowVwBUeo1PKdG1EI0taeJjL1nZhqKHLvDkTswcqbyo7KovoZ6xF6 RCEEnUJbONuKkjmIwawRXtjW+cri0tLvcqH8JAhl/xVF1Tolh5oxXa22F A==; X-IronPort-AV: E=McAfee;i="6400,9594,10407"; a="346969871" X-IronPort-AV: E=Sophos;i="5.92,267,1650956400"; d="scan'208";a="346969871" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jul 2022 10:11:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,267,1650956400"; d="scan'208";a="628391499" Received: from wopr.jf.intel.com ([10.54.75.125]) by orsmga001.jf.intel.com with ESMTP; 13 Jul 2022 10:11:22 -0700 Message-ID: Subject: Re: PNP0501 serial driver takes almost 2 seconds to suspend/resume (printk issue) From: Todd Brandt Reply-To: todd.e.brandt@linux.intel.com To: John Ogness , Sergey Senozhatsky , Petr Mladek , rafael.j.wysocki@intel.com, len.brown@intel.com Cc: Andy Shevchenko , Linux Kernel Mailing List , "open list:SERIAL DRIVERS" , Steven Rostedt Date: Wed, 13 Jul 2022 10:11:22 -0700 In-Reply-To: <87ilo1wdac.fsf@jogness.linutronix.de> References: <12fb98fe27e23e3f74a139e5e8eb83a97a343372.camel@linux.intel.com> <51b9e2cc3baf61a604bd239b736ec2d12f1f6695.camel@linux.intel.com> <87czegxccb.fsf@jogness.linutronix.de> <045ebee30af2b80aaeace1dab18ecd113e3f17c7.camel@linux.intel.com> <87tu7qvx1q.fsf@jogness.linutronix.de> <87o7xwbuoy.fsf@jogness.linutronix.de> <87ilo1wdac.fsf@jogness.linutronix.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 I've updated the bugzilla entry with new data: https://bugzilla.kernel.org/show_bug.cgi?id=216216 I just added 3 new tests for 5.19.0-rc6 on 3 machines that see this issue: otcpl-asus-e200-cht (cherry trail), otcpl-aml-y (amber lake), and otcpl-whl-u (whiskey lake). The kernel has the CONFIG_PRINTK_CALLER option enabled. The test is a S2idle and is run thusly: %> sleepgraph -dev -m freeze -rtcwake 15 I've included the dmesg boot logs for all three. The dmesg suspend/resume logs are included in the html timelines by clicking the "dmesg" button in the upper right hand corner of the timeline. There's a "log" button as well that shows other system into. These files are attached to the bugzilla entry. otcpl-aml-y-5.19.0-rc6-boot-dmesg.txt otcpl-aml-y-5.19.0-rc6-freeze.html otcpl-asus-e200-cht-5.19.0-rc6-boot-dmesg.txt otcpl-asus-e200-cht-5.19.0-rc6-freeze.html otcpl-whl-u-5.19.0-rc6-boot-dmesg.txt otcpl-whl-u-5.19.0-rc6-freeze.html If possible can we move this thread to the bugzilla comment section? On Wed, 2022-07-13 at 11:57 +0206, John Ogness wrote: > On 2022-07-11, Sergey Senozhatsky wrote: > > > It seems that __pr_flush() does not check whether all consoles > > > are > > > suspended. In this case the progress is not possible and it has > > > to > > > wait the entire timeout. > > > > But isn't console_suspended set after pr_flush() call? > > There should not be any printing after the suspend_console() message. > If > Todd's report is coming from 5.19-rc1, then it is likely a kthread > issue, where the kthread is not respecting @console_suspended. (This > would still need to be fixed for the kthreads, but would not be > relevant > for 5.19.) > > John