Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1019039lqp; Fri, 22 Mar 2024 03:10:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUBOtsbwmr+9v1wOXuvONxlP70t0HufYrbCy8wEdZCsotgxftMcuODvHy6m0Ht4+BFXvCgi+1w1wsaqi+FnYDPuk6IO3JC4GqS+H/nJOg== X-Google-Smtp-Source: AGHT+IGhczQRrkhXexs5PcY96UzXYTk5kPZ6Yoa9vU9TOtXMcp2FEfh5LipGE4zcfBaiq5EVdP7a X-Received: by 2002:a17:902:cecc:b0:1e0:2335:8f77 with SMTP id d12-20020a170902cecc00b001e023358f77mr2225568plg.54.1711102214102; Fri, 22 Mar 2024 03:10:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711102214; cv=pass; d=google.com; s=arc-20160816; b=K70YUHD7ohFAeq83J2fqqRtAgUVB1YGB2vSHsRFP7MqCd1gwauAgZaqRyGHBmtNEZ4 LwgSJ1dExal9X9Zic06Ydu69sFGby2wKyCAiNOQ+m76/JVEkOUONSmEQIEKCjzJNPtYl CIS5A2iqgFGCzTWo7L9nS6XDgxmYak1LrnA0E25IfU+e7kycrLPix1ai9rKGUHrdnkPy hc+cUrzPKo8YSPuGYE00bgiBoe43fN9IAoz6ApK8AcOPpuRsvcPloCcilGbmKSnjPuXg jmuT1gXzB7Vo5KkilqLqpaUDyERogJdjbi5rGuAGqhmkU/cYkyVL0b28RdM25t/rOHet 21tA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0qTqewZBole7w9lTI0BB7HcldzaDTCuImc0Fu8kZPI8=; fh=6WIJSk4GQdFXc3qhgLlhwUhoIZ3SYnhvEUYuDH7TWFs=; b=Wka0TAFAbJJYUu0t1F1A/zyX+TwgwP82ji/S2uj55/KNPMXoBhZyd4v1YS1yC85mEg ea4SySQHTM3iWovsQRHSbL/sv9kU4HGi8azGg1/ZxaRNneKZ5RISZigRDGN9IOq+I1/f m6uivR3TB0Su8mtEfGAQJhK1irog8etA/7LCc4Zj4RdOGoQrcciDyu+ivbAF6B9i3Wr/ nlvVpKSM/7GvI4yvYi7MXeYKQrf+GVyBzJBBctmaZMR/jYOfFKKVEHC5Un0IcDHTlQ0x 91zJl7zgNrWL6OgbMaF2r8TDClhRcdhTKgDaLURjLxKeAbAX2VzuUibZZ+wr5KWFyCh6 mFQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@atomide.com header.s=25mailst header.b=M9YV8kKn; arc=pass (i=1 dkim=pass dkdomain=atomide.com); spf=pass (google.com: domain of linux-kernel+bounces-111184-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111184-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id k14-20020a170902ba8e00b001dd5f78c986si1527908pls.194.2024.03.22.03.10.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 03:10:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111184-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@atomide.com header.s=25mailst header.b=M9YV8kKn; arc=pass (i=1 dkim=pass dkdomain=atomide.com); spf=pass (google.com: domain of linux-kernel+bounces-111184-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111184-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 8E38AB23066 for ; Fri, 22 Mar 2024 09:07:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 313B61B97C; Fri, 22 Mar 2024 09:07:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b="M9YV8kKn" Received: from mail5.25mail.st (mail5.25mail.st [74.50.62.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8325017998; Fri, 22 Mar 2024 09:07:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.50.62.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711098439; cv=none; b=HmRpXJM05W55mI3K2DHVi0A/DraXsJAn8YJ1xU7J4wWanpnkC9MOLbK+7wbllBtwBQ2pTwQzbP+U0lZwXFR1znvy7MrmOQvTmti0UnerbNjfOFeF9BVK9uhmykdjCKtmbxUVfxk/8eeD97Y0fk3rlm4I8wbywC9YkrFgnbUxjjo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711098439; c=relaxed/simple; bh=fqnq0phZd8eQ1RBeCYKOKzraow94yCRC0cLooXVkLDs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WbTEi6mlR+W2WC9cucA0VYQogblYgcgcmpaBFP/o3XRUNzvER8jeOt2fs99mjEnmm9nQF3/jdSi2/gb9YiZahLBe8IsCyXeu3x26nZO2YPviuy+HBJuEYFJ87J6gxPglpE5XqcuNnyX32EZXmsQrVoS9F+AMEEStVD8wxvwOkl8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com; spf=fail smtp.mailfrom=atomide.com; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b=M9YV8kKn; arc=none smtp.client-ip=74.50.62.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=atomide.com Received: from localhost (91-158-86-216.elisa-laajakaista.fi [91.158.86.216]) by mail5.25mail.st (Postfix) with ESMTPSA id 0040360340; Fri, 22 Mar 2024 09:06:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=atomide.com; s=25mailst; t=1711098430; bh=fqnq0phZd8eQ1RBeCYKOKzraow94yCRC0cLooXVkLDs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=M9YV8kKnPAlSqDp772EmB/bHzTaDkR+q2GDGF+ZJKdISm9Z7MMsp/ij3Z7kNDdk97 Y1/FDp98vv4WSDMbb1u1jk7XpUF8Kto52j04bNH8Wiw59zGrol+rEDjX0PWUf2XCSg 0W+bh4RLEtuztC9SwxnvNZNbqw4Bt4e83IrZNlS2WD9yGzg80XD8LecgN1ht2ncY4Z sIUgOcMW3TgauctmrAvxSFEAddpztd96nqkNvjQnhj2rxYE3GFoAPOYO0zEKoT7qfJ J5QzaBv6TvPU/sE/HFDT4JLac2RkQSh2s72B/FvaI9qiPtX6/wTVTnzFjI+nzYAnpk 8qg+hiadrnNmg== Date: Fri, 22 Mar 2024 11:06:57 +0200 From: Tony Lindgren To: Nick Bowler Cc: linux-kernel@vger.kernel.org, sparclinux@vger.kernel.org, regressions@lists.linux.dev, linux-serial@vger.kernel.org Subject: Re: PROBLEM: Sun Ultra 60 hangs on boot since Linux 6.8 Message-ID: <20240322090657.GD5132@atomide.com> References: <20240322051531.GA5132@atomide.com> <20240322064843.GC5132@atomide.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240322064843.GC5132@atomide.com> * Tony Lindgren [240322 08:48]: > * Nick Bowler [240322 06:36]: > > On 2024-03-22 01:15, Tony Lindgren wrote: > > > Can you please test if the following change to add back the check for > > > !pm_runtime_active() is enough to fix the issue? > > > > I applied the below patch on top of 6.8 and unfortunately it does _not_ > > fix the problem (no obvious change in behaviour). > > Hmm OK thanks for testing. I'll take a look and see if I can debug this > with qemu sparc as I no longer have any sparc boxes around. I can't reproduce this on qemu-system-sparc64, probably as it does not use the sunsab driver. I noticed something though, I think we need to test for the port device instead for being runtime PM enabled. Can you please test if the updated patch below make things work again? Regards, Tony 8< ------------------- diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c --- a/drivers/tty/serial/serial_core.c +++ b/drivers/tty/serial/serial_core.c @@ -156,7 +156,7 @@ static void __uart_start(struct uart_state *state) * enabled, serial_port_runtime_resume() calls start_tx() again * after enabling the device. */ - if (pm_runtime_active(&port_dev->dev)) + if (!pm_runtime_enabled(port->dev) || pm_runtime_active(&port_dev->dev)) port->ops->start_tx(port); pm_runtime_mark_last_busy(&port_dev->dev); pm_runtime_put_autosuspend(&port_dev->dev); -- 2.44.0