Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1584324lqp; Fri, 22 Mar 2024 23:49:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW7h6MhIE7jHujbFYiU3l09H3LDyyWGrs3i9od0HMaFQfbNjN/K0HLvw5qKoDge7B3Sp7ulp0tn05flFI1Gvenfwqwh3QJOPrj8nqXV1g== X-Google-Smtp-Source: AGHT+IFDpnY542Zx7Al5u1M6McucFvhFekhnV5yPJcqF0gAwuw3CgcLvRW/sDJFVFW/Rwb0TyeIx X-Received: by 2002:a2e:9496:0:b0:2d6:b0df:e333 with SMTP id c22-20020a2e9496000000b002d6b0dfe333mr1194047ljh.1.1711176596425; Fri, 22 Mar 2024 23:49:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711176596; cv=pass; d=google.com; s=arc-20160816; b=s+osIHSAs6kxqYULqnJcVhjwuoqBe3KUajYi1GoaL2+6x+BHpdQP4hY3xi3x8/4kbx sF2RukW/gSQCHyA6dg17IF7a58tHCy2LWmc9QaF2JKvkn1RzJLXCxQT88H5S0ZqzI5aS 0WqkXVUXWoxs1SdnxYEQNMtHSuYHPGWtXZBcZkafSXsJVvBLRyDklFu7lgjNJmFO23+h ljVZynXrj9Y8Uo4V5Xg1SMdjYIw1xNLbVlvTbrqIj/71+HW3Ej6aR2I8VG6ECCFNCGYH 6HEhbMWkgJbQ2f0W9OrI2Bhmk/o7PbJt8EV/hIObconsRb6gcITvYsJKfhUtxRh81dPc sSIw== 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=oH+2/GG2vd+DXg98gLn8rPKL2irIJX8J3hAUkmOQe8k=; fh=6WIJSk4GQdFXc3qhgLlhwUhoIZ3SYnhvEUYuDH7TWFs=; b=kFTiB0eyKtRGR6VASzD4GyuIWo0kSxbFGfpRjPKS4O+2Y2J53JupjB9jblJ1mlJUJi M5hcIddhvVwVU8AtywEHMWegSuC/gKLww9tL5xoIbSqPHNhIhMqv7NQ59JJgpKAzn0vv pfDbHCKhyz1ZTKQstWNuF2V1DyfZ45lnYOE0Ckz6crVShHksRD7CULxXldVBgKKgpoW4 liZ+cXjmxJZ+TiUEzGyP1UwYqljqGtC4oqRpbJmxj9stp4Q/RNRmsTXVdVtwTHt00YCp Cerk47kCiCZLGbFc1QB3190YuvK6tkW1YRPWAxp5SDwRNMN74XvxlBUofBMAV7oSyEXh 4Oxw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@atomide.com header.s=25mailst header.b=KxJDs5kU; arc=pass (i=1 dkim=pass dkdomain=atomide.com); spf=pass (google.com: domain of linux-kernel+bounces-112237-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112237-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id j3-20020a170906830300b00a4635cbd07dsi574874ejx.101.2024.03.22.23.49.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 23:49:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112237-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@atomide.com header.s=25mailst header.b=KxJDs5kU; arc=pass (i=1 dkim=pass dkdomain=atomide.com); spf=pass (google.com: domain of linux-kernel+bounces-112237-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112237-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 24B621F2267C for ; Sat, 23 Mar 2024 06:49:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 84FB89454; Sat, 23 Mar 2024 06:49:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b="KxJDs5kU" 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 DD8CE4C6B; Sat, 23 Mar 2024 06:49:44 +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=1711176587; cv=none; b=UuvkRsetT3+B6rh/NqIqMg5FxO+KIXk+kQurMLrva2yyeeGFGdXOs1LAnwBOfMRYJElPZFNBin4ivLvKVmVSFHmTLpeYPPglk0Df1aaZI1UnretPVzwO96fpSA5RlZDncDze6LCRPogCW2qk9FVX7n7/nSUwOvz8cWdkXx5UFhI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711176587; c=relaxed/simple; bh=NqzzK0iz78KIPvtZ1w0JtdqyZDW7tedW5UnASOm5zGQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=p/abi34v6ClC1f3Zfm7UTQ0MSu8QWWT8BSzwKEtjNt/RcRxoqb84c815IpkiKeIdgeqnNNeDEkpr0wM3ble1DH4VzmdamdjyOkqrYKmd2g4J+6Do5c2JkSJJdhxy3wE9D9dQb7kTRjgjFCRmaVkXy/laHCX6z8sXZ/gAK2BNgeo= 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=KxJDs5kU; 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 AF5B060412; Sat, 23 Mar 2024 06:49:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=atomide.com; s=25mailst; t=1711176578; bh=NqzzK0iz78KIPvtZ1w0JtdqyZDW7tedW5UnASOm5zGQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KxJDs5kUZdfOQ1L2jFBxRGef4vObdcMlhJiKC2R1m0lQiwuZHEusMKDibM79sSFbT 8mjLaNPaxxtvaVcZm+n8s89byOt0z9FO0uGyRfJe90wE1t9ntm81v6rTQLUW5gYbD4 PDWscr2BWoXto6AemF++NYujKC8EAM7hy5dAwiPo5A/wMU+t4OM0c0mtlyGE1hVjBa TZCpkxA5e1devphdXOcb3TeL1kQ3uftEzn/RxDMJ/htD6LStfpL5lIOIfi8W7NimuC JaIPkSznA7+8VrNajtNofg/glL1O1XuP/f5Aqv0aNEeiQPrJ83pw99hMWNlKnkWR2h Z1KWIGTU0fmjQ== Date: Sat, 23 Mar 2024 08:49:25 +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: <20240323064925.GE5132@atomide.com> References: <20240322051531.GA5132@atomide.com> <20240322064843.GC5132@atomide.com> <20240322090657.GD5132@atomide.com> <193a134c-f0da-4a45-b45a-a3605f91cfa4@draconx.ca> 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: <193a134c-f0da-4a45-b45a-a3605f91cfa4@draconx.ca> * Nick Bowler [240322 14:12]: > On 2024-03-22 05:06, Tony Lindgren wrote: > [...] > > 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? > > Yes, with the below patch applied on top of 6.8 things are working. OK great thanks for testing, I'll send out a proper patch. 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)