Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp538639imw; Wed, 13 Jul 2022 03:28:25 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sCRqXsddqvhfyoGOU4Ot8OZRHNmt/FU578lZ73vKgYJ8RbCJMmCWIjar6BmFw9dksL68G2 X-Received: by 2002:a17:906:9c84:b0:6e0:7c75:6f01 with SMTP id fj4-20020a1709069c8400b006e07c756f01mr2748106ejc.103.1657708105320; Wed, 13 Jul 2022 03:28:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657708105; cv=none; d=google.com; s=arc-20160816; b=e5KmoY+rZExjqkJoVeZSsnbAPHYTJ/87wGJPT3lYsab15dldJVZG9r5HiO2C7rgIl9 4HFyjg+bigVlJ5H1HjylAPQAYk8kjKYSlrU3e9GcumZJ7/hgWylb9mWh+hkHD9L9uyFr y0J0tg3q7yW5hJcB9DkonVNN7TmEhin2oJij1/dalrnpQG7qTU5YrbloGm9YdbCZ/KYV DK3ounQlpVNOOdmTbTMqg30KDqAQEomrFzvVGdStJQZwqSLsBllWFTNz/Q+WQeKuib8N +oRJQZmw2kEOWbTydFNGUsxozTWX5krzKepSjhqeiDxZwYWj7Ib86YhVydQFP4fPQovg sExw== 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:dkim-signature:dkim-signature:from; bh=OiPMrFEyQe09Ik/mc4Cz2IRz2WPEoPYREf4eHc+dNlM=; b=ZEiwOLJxddOc5LAzVzZPNSFhptoTIPmbfjRkUaIaa0hTbCt62Nb1Y0FbwtlXWpib/0 uFerES33J9LEdqiDC3pz5LqFlF5bsOrff3DwAOLyggVFURb33a+d8P2AnQrUyrQ0QXeR Ost/6LuJ7/JzsjyWjulT0tj3SzSqmxFnV/AbdGhEs8rmRIweppETApKmbgdSoMfOhzmf M1wbtcME5hYHTrloVAAFho4LePVUHpHSNOIgMIRLvibrILJHPqxCHspakxIe8qRuo4pe ekc6sT3Ij9n8b5Sq/AxWm6QjqAfHbqaq9zjU5/u2oYYP4kNvruzA0cv0LO+GxaYBijfu sLBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=eNrAgHXO; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id js19-20020a17090797d300b00722ea4dd14csi18691466ejc.387.2022.07.13.03.28.00; Wed, 13 Jul 2022 03:28:25 -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=@linutronix.de header.s=2020 header.b=eNrAgHXO; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235619AbiGMJwD (ORCPT + 99 others); Wed, 13 Jul 2022 05:52:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231251AbiGMJwB (ORCPT ); Wed, 13 Jul 2022 05:52:01 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E973F897D; Wed, 13 Jul 2022 02:51:58 -0700 (PDT) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1657705916; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=OiPMrFEyQe09Ik/mc4Cz2IRz2WPEoPYREf4eHc+dNlM=; b=eNrAgHXOJTS2gB/NYwQji3rAYE3xs+vAnvpjpOf1sHBg0OuXt/906UbaeczJQGPzKK8iFa JW7HQs/14m6SGr2igUw/epjeL7zkTTMQd3PzLQ4TuscCoZU+lBByKtbF3mxaOcUvIa5XUX QvUjWeFDMJh+rCiyeoySGzNG7Vd03aKAcu5CgM/IOHTZqsBbh/CxA2uRmQOUSbw+/y9w72 1l1n5/pdKJvRdTfAupi/CWpgU9TmNB/nzjv4zNYRSdJ6rhUc33aHMvwyVZdTCb4lmwKu9p COKyDu3bqQs1QtU/YOHzgR6WRu9nGaHrY+V1G++LmzrdS/O2N/UK3EtPjAIZIQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1657705916; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=OiPMrFEyQe09Ik/mc4Cz2IRz2WPEoPYREf4eHc+dNlM=; b=/O5M5nhkmNfN4WPl4XIhK6viOvo+DR8qTPgSJhLCrduuKOti4uRRt5/1crrwrNfkroAXFj eJy//FvBig4jiRBQ== To: Sergey Senozhatsky , Petr Mladek Cc: Andy Shevchenko , todd.e.brandt@linux.intel.com, Linux Kernel Mailing List , "open list:SERIAL DRIVERS" , Sergey Senozhatsky , Steven Rostedt Subject: Re: PNP0501 serial driver takes almost 2 seconds to suspend/resume (printk issue) In-Reply-To: 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> Date: Wed, 13 Jul 2022 11:57:55 +0206 Message-ID: <87ilo1wdac.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,INVALID_DATE_TZ_ABSURD, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,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 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