From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AE908CDB483 for ; Thu, 19 Oct 2023 12:44:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345495AbjJSMov (ORCPT ); Thu, 19 Oct 2023 08:44:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345442AbjJSMov (ORCPT ); Thu, 19 Oct 2023 08:44:51 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4666A91 for ; Thu, 19 Oct 2023 05:44:48 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2c503da4fd6so93342071fa.1 for ; Thu, 19 Oct 2023 05:44:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1697719486; x=1698324286; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=pHBdIuP1DGlWp+mstvBddC8ixj1HKpdOPf8ag5yR5eI=; b=FTGEA/YSm3Svrhs2NuMrFrsfeVoQVoPr/EZdl58Z3wFi4SsoV8PQIrT3N/mlvyLYZZ 0mK0f19pEVWjyUkuia8ULFBvlbQD3X4oHVUl+IqLi7fc6J4puLQFmSst0XOJyrGADeHl 7FfFPbZGeo/H2RfP834ggQO8GcJ3EwLH7RTMw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697719486; x=1698324286; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=pHBdIuP1DGlWp+mstvBddC8ixj1HKpdOPf8ag5yR5eI=; b=oxjURjiSihjkOwDhjtQN/gtLWKDMHO8F8nFg5gEjcjPsz+Pz9K2ZUyXAvNg8SoT/Zd LT8YR6s37x2sAMwZcp3UiEEPUyi+FMVtffFe5HqD1eQvloI0bD1uFGtL3hxijvk929Di Tw6HNIba2olqwwHqUk067FjMjyB/mBi6elknnyzUy8zjEni2yE6ZSa6qKkpSqQdO0Dth zYZDxbcsLK7rijBdfx5e4rQHVkTAosiE65Jyi6vYV2YOj/NfBr+45SRp0QhjLtem4xXE nAcJWvJicMZvRTBZSBd+eXyBCDXBXZz7a0FoghG7KQuFRT/l0YkqhK6Xs5409i7DzmSu L6IQ== X-Gm-Message-State: AOJu0YyFRN1KshSC0z6x1LXpnSdUYA1v328j3CsK4k2Fe+DBssh/7KGQ vZXpR1833zRdfGU5DnhVuun5Og== X-Google-Smtp-Source: AGHT+IF4SVds6MfF3atPXOzZ24FSCTebfcYwZjjSSnSndkW8AX8VG1Rktvgor5zH5aQSd8DsoIC1JQ== X-Received: by 2002:a2e:700f:0:b0:2b6:e958:5700 with SMTP id l15-20020a2e700f000000b002b6e9585700mr1315910ljc.4.1697719486396; Thu, 19 Oct 2023 05:44:46 -0700 (PDT) Received: from ?IPv6:2001:8b0:aba:5f3c:9ec8:2948:ce65:9cfb? ([2001:8b0:aba:5f3c:9ec8:2948:ce65:9cfb]) by smtp.gmail.com with ESMTPSA id k1-20020a5d66c1000000b0032dbf99bf4fsm4393808wrw.89.2023.10.19.05.44.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 05:44:46 -0700 (PDT) Message-ID: Subject: Re: Kernel 6.5 ttyS1 hang with qemu (was Re: [OE-core] Summary of the remaining 6.5 kernel serial issue (and 6.5 summary) From: Richard Purdie To: Tony Lindgren Cc: Mikko Rapeli , Greg Kroah-Hartman , linux-serial@vger.kernel.org, openembedded-core , Bruce Ashfield , Randy MacLeod , Paul Gortmaker Date: Thu, 19 Oct 2023 13:44:45 +0100 In-Reply-To: <20231018052822.GP27774@atomide.com> References: <178DF50519C11C84.8679@lists.openembedded.org> <2023101516-unmolded-otter-e3e0@gregkh> <214757eca7f4cd639a7a8d9a822476c1ec30f01c.camel@linuxfoundation.org> <20231016063501.GL27774@atomide.com> <20231016072352.GM27774@atomide.com> <0d86deae37877258f46322d4d727903fca12ad21.camel@linuxfoundation.org> <20231017065616.GN27774@atomide.com> <87cdf04bfd7997465dad157d9d81fc14ca7d122f.camel@linuxfoundation.org> <20231018052822.GP27774@atomide.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.1-0ubuntu1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org On Wed, 2023-10-18 at 08:28 +0300, Tony Lindgren wrote: > * Richard Purdie [231017 22:15]: > > On Tue, 2023-10-17 at 09:56 +0300, Tony Lindgren wrote: > > > * Richard Purdie [231016 08:10]: > > > > The port sometimes doesn't come up properly at boot. > > > >=20 > > > > To be clear, the "\n\n" from the qemu side into the port doesn't se= em > > > > to help. The "echo helloB > /dev/ttyS1" inside the image does seem = to > > > > wake it up.=20 > > >=20 > > > So if I understand correctly, this issue still happens with kernel pa= tched > > > with commit 81a61051e0ce ("serial: core: Fix checks for tx runtime PM > > > state"), and the issue now only happens sometimes. > >=20 > > The issue has always been intermittent and it appeared to happen less > > frequently with 81a61051e0ce added but it was hard to know if I was > > imagining that. >=20 > Oh OK. >=20 > > > I wonder if the following additional change might help? > >=20 > > I've added it into testing and have not reproduced the failure with it > > applied yet, locally or on our autobuilder. We need to sort some > > release pieces which have been delayed by these issues and we're going > > with a workaround for that. Once that is built I can get back to > > testing this change more extensively, see if we can still provoke the > > issue or not. It may take a day or two of testing before we know with > > any certainty if the issue is resolved or not. >=20 > Thanks for the update, let's wait a few days and see then. Our release build failed with our workaround, probably as this piece is missing.=C2=A0 I've not seen the failure occur in any build with it applied so far. As such I think we'll move over to this patch as it seems to be better. Whether it is fixed or not I'm still not 100% sure but it is looking more likely. Thanks for the patch/fix! Cheers, Richard