Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2040189iof; Tue, 7 Jun 2022 17:51:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziK1PvuW+p/DhXaUns166eWhxPKARpJK9yCVVWboGsIyIhwO0e5ljcBJoHqLXLOdNIxKKh X-Received: by 2002:a17:902:e34b:b0:166:342f:82c6 with SMTP id p11-20020a170902e34b00b00166342f82c6mr30916694plc.29.1654649486797; Tue, 07 Jun 2022 17:51:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654649486; cv=none; d=google.com; s=arc-20160816; b=M9dqRtyDOt1ToE9+iYO2NmUSOI8PqpNuXucNRPQk0gzE+dsJSjZgr4aqOzw9spC6EO bhj/O39n6JMbg+6zTckX0jQ5BJFcUR6iRTvh7rcFqD3K3vOcFUTv80ktaC9NrEQY72KK lCcsTd2rAXv1RjYx6Qz1qDglqRA66IayTYgxltvInp8hAiGq9HwZsIm9iCXNnFTr8jkI rkVW2bonosfUr0CNtMTshQFcrDH3fB4dSwIGrSe7XlqKPo3GkFYehm1yW+f/jwLXGCZf jm8hOt5d+0I/I/0wBUNAj2gSpoUvUwb13Y8ypQ4USvlVDgVb4v/upf3+/TZvmvnT89sF G0Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=UzJ5sFk3XLUYlgy5MtTnQZmHTWhbXi6L2isVak6wDXU=; b=uUSBs3yag1G+RFn/unAQJtByvTffGEgvy0/PZekgQT/HgPS9IHH5hDYMaPE3KFlA2r 1qz/qd/alLSQtp9xBqaoPOBouLRLQ75XkbGbgFy+l1pttMrwXRvHNDVmXOM3vmwIHIv7 sQJzCc8EYtGchyNpv23JonoJ53Ubo+k9HTfCX7gkcc3cgrGlHKZEX0yn3FL5OaVEQ9rk aasMSAWNPLaAGodG8g6+g6EysYuLeqgthLOdqsLhcL0UNIUeWU+t/z8U20HLInRayxHL NDWn4a0t6O9ieJ8rbZ/qqCrnuDPzsLHebc0wqkmuoMoOeI2IIz4EBTGJKd4dozwOuQQT Ehkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=y3+twpkC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s10-20020a056a00178a00b0051c4b1e61dbsi2480055pfg.280.2022.06.07.17.51.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 17:51:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=y3+twpkC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 412281D8A58; Tue, 7 Jun 2022 17:46:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244694AbiFGN0m (ORCPT + 99 others); Tue, 7 Jun 2022 09:26:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244682AbiFGN0h (ORCPT ); Tue, 7 Jun 2022 09:26:37 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22762C17CD; Tue, 7 Jun 2022 06:26:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1654608397; x=1686144397; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=UzJ5sFk3XLUYlgy5MtTnQZmHTWhbXi6L2isVak6wDXU=; b=y3+twpkCGtjxHOjVDpBcPpJ0564bv5zvPZDj+H+Q8DFsdUsHXjj13pfG XCaw3saMrisc5sAwwK4EmMbIrILEHPOEuJWxL7I2gncCDLEB1TBJSG+ST rxMeu91iubTLe18G+gvez1Ac/YLcTkPC9WX1AGL1BHnK0V4gbuJwYgTJc Y=; Received: from ironmsg08-lv.qualcomm.com ([10.47.202.152]) by alexa-out.qualcomm.com with ESMTP; 07 Jun 2022 06:26:37 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg08-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2022 06:26:36 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 7 Jun 2022 06:26:35 -0700 Received: from [10.216.0.16] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 7 Jun 2022 06:26:31 -0700 Message-ID: <9c457623-7a80-dad8-8ef8-2346b0a4f0a1@quicinc.com> Date: Tue, 7 Jun 2022 18:55:49 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [V4] serial: core: Do stop_rx in suspend path for console if console_suspend is disabled Content-Language: en-CA To: Greg KH , Marek Szyprowski CC: , , , , , , References: <1652692810-31148-1-git-send-email-quic_vnivarth@quicinc.com> From: Vijaya Krishna Nivarthi In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 6/7/2022 6:52 PM, Greg KH wrote: > On Mon, May 23, 2022 at 11:32:46PM +0200, Marek Szyprowski wrote: >> Hi, >> >> On 16.05.2022 11:20, Vijaya Krishna Nivarthi wrote: >>> For the case of console_suspend disabled, if back to back suspend/resume >>> test is executed, at the end of test, sometimes console would appear to >>> be frozen not responding to input. This would happen because, during >>> resume, rx transactions can come in before system is ready, malfunction >>> of rx happens in turn resulting in console appearing to be stuck. >>> >>> Do a stop_rx in suspend sequence to prevent this. >>> >>> Signed-off-by: Vijaya Krishna Nivarthi >>> --- >>> v4: moved the change to serial core to apply for all drivers >>> v3: swapped the order of conditions to be more human readable >>> v2: restricted patch to contain only stop_rx in suspend sequence >>> v1: intial patch contained 2 additional unrelated changes in vicinity >>> --- >> This patch landed recently in linux-next as commit c9d2325cdb92 >> ("serial: core: Do stop_rx in suspend path for console if >> console_suspend is disabled"). >> >> Unfortunately it breaks console operation on my test systems after >> system suspend/resume cycle if 'no_console_suspend' kernel parameter is >> present. System properly resumes from suspend, the console displays all >> the messages and even command line prompt, but then doesn't react on any >> input. If I remove the 'no_console_suspend' parameter, the console is >> again operational after system suspend/resume cycle. Before this patch >> it worked fine regardless the 'no_console_suspend' parameter. > Did this ever get resolved or do I need to revert this? We have a resolution and I will be uploading a Fixes: patch today. Thank you. -Vijay/ > > thanks, > > greg k-h