Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4158469imw; Thu, 7 Jul 2022 13:50:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v2ATK8lpGmM51Dh7+WGmoV2RgnIpCzBsHXytMgcDpNBiqDuS60j8552zx+aIgyByoBhssY X-Received: by 2002:a17:907:2c68:b0:72b:13a7:b524 with SMTP id ib8-20020a1709072c6800b0072b13a7b524mr2030ejc.52.1657227002160; Thu, 07 Jul 2022 13:50:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657227002; cv=none; d=google.com; s=arc-20160816; b=PH53kYFbatqBNahgDCQVywidJ+Chw3RzcF9iXDBXF/l26XpFzrrpmJCjZFG39cPWkC kw7GrtsWRw433frisEui6QrSa6LFEiWvjqB++LEn7kTB8VVWx5YxIi35cUzQZI3i6reH fed7hHWZdzS5U7cSFj4qLkiDXJTTCAWJ0u2vBUwqbEPJqQgQkLIVgdN8/ZbkmUJ4UXon oTEJFK15zp4M3AFi/JrI2qGZR+Z/RFhmC4eP2UY54mHQQB9Ulm1xyOUBoFEnwrjB14M1 CGo1pVKKJbefoO2ESgr4cyqPP1BxGE5ZjbXbXPdqg5Y7JqLodTq2dQnwtKDGpk8r71J/ 7Xqw== 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=g2yvcVruE6KQMJjyON862mHNANWjtlR7/GDvyiUXHoI=; b=FRViYT0k8Wvlq2BsXnD+zqAt3MBmFzkYCOYZhX+3sJT6uUU5+FMw5BQLgpe2nfXfXZ c+W47TBvmut0+J7Qa6fj/DzrfNf+9P55aGIWwwdFsYK0MlBl5jO/UilVazKrO8Q1SD4U /r8noWolpAr5e5is0UszpeWkx5cbODOI+RQH2x7E08KbxFs0eAa7zfIxrCBlkdX0ELsF 6I1+IAhwKH+QsYbEGfST7o+h5rN+wAOdNk+hj8dCT1nk1SxKVxKSolwcCh54h5NorRzn 4VoDU7b8UiuRZe4t7df+67DJ8PyNKvX3nqYJl+1AWQ3mfQ/KhQkgJ4PG5Z47yWV5+rqC afRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JBcsR1FV; 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 dt5-20020a170907728500b0072ac71ce749si1797624ejc.1004.2022.07.07.13.49.12; Thu, 07 Jul 2022 13:50:02 -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=JBcsR1FV; 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 S236484AbiGGUpV (ORCPT + 99 others); Thu, 7 Jul 2022 16:45:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231875AbiGGUpT (ORCPT ); Thu, 7 Jul 2022 16:45:19 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFC082409B; Thu, 7 Jul 2022 13:45:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657226718; x=1688762718; h=message-id:subject:from:reply-to:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=pEzztt4x7TuSYLGDhfj8WnqW4H1+jbfMqaaC+PMJx+U=; b=JBcsR1FVYwEVkgTc00aKuStw9AVTE9EhBFbSmo0TgeiMMbSWmoTxc11G 5OMSBY+vCEGHXQ6aG/tNAlz2TMGhGjlHpmkkj7ft6+7RSKH30NyJHYR4H 4YltrKwM6J0E/IBUp3hmvFS/3x/IUCQmSmlnR+YZW+iQ6KICEAblP7yhM 24jzAqY0ffTZj2hvofq1H9cY57iKSfaFPj7ZDyXKm3RymNXoZj/Pwjd5M O820jhs3cSdiZl6yu0rz23M+sXTdc5+BRH79fsOh31aUdXGzoBW10n9sD GOclE5cEfqCi+bxbLsZJ3X/CqmeewP814t7TEJflSrQp1wBc6DDgJWWez A==; X-IronPort-AV: E=McAfee;i="6400,9594,10401"; a="284859965" X-IronPort-AV: E=Sophos;i="5.92,253,1650956400"; d="scan'208";a="284859965" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jul 2022 13:45:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,253,1650956400"; d="scan'208";a="651284219" Received: from wopr.jf.intel.com ([10.54.75.125]) by fmsmga008.fm.intel.com with ESMTP; 07 Jul 2022 13:45:17 -0700 Message-ID: <51b9e2cc3baf61a604bd239b736ec2d12f1f6695.camel@linux.intel.com> 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@linutronix.de, pmladek@suse.com Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, senozhatsky@chromium.org, rostedt@goodmis.org Date: Thu, 07 Jul 2022 13:45:17 -0700 In-Reply-To: <12fb98fe27e23e3f74a139e5e8eb83a97a343372.camel@linux.intel.com> References: <12fb98fe27e23e3f74a139e5e8eb83a97a343372.camel@linux.intel.com> 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=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 Adding printk maintainers to the thread On Thu, 2022-07-07 at 13:31 -0700, Todd Brandt wrote: > Ever since 5.19.0-rc1 the serial device has taken almost a second > longer in both suspend and resume. This effect is witnessed in half > the > machines in our lab (~10 machines). It occurs on dell, asus, gigabyte > and other machines so it's not hardware specific. > > I opened a bugzilla issue which includes the git bisect: > https://bugzilla.kernel.org/show_bug.cgi?id=216216 > > > Bad commit: > > commit 3b604ca81202eea2a917eb6491e90f610fba0ec7 > Author: John Ogness > Date: Thu Apr 21 23:28:46 2022 +0206 > > printk: add pr_flush() > > Provide a might-sleep function to allow waiting for console > printers > to catch up to the latest logged message. > > Use pr_flush() whenever it is desirable to get buffered messages > printed before continuing: suspend_console(), resume_console(), > console_stop(), console_start(), console_unblank(). > > Signed-off-by: John Ogness > Reviewed-by: Petr Mladek > Signed-off-by: Petr Mladek > Link: > https://lore.kernel.org/r/20220421212250.565456-12-john.ogness@linutronix.de > > include/linux/printk.h | 7 +++++ > kernel/printk/printk.c | 83 > ++++++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 90 insertions(+)