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 0B00DCDB465 for ; Mon, 16 Oct 2023 08:09:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229621AbjJPIJd (ORCPT ); Mon, 16 Oct 2023 04:09:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229848AbjJPIJc (ORCPT ); Mon, 16 Oct 2023 04:09:32 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50496B4 for ; Mon, 16 Oct 2023 01:09:30 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-5042bfb4fe9so5325801e87.1 for ; Mon, 16 Oct 2023 01:09:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697443768; x=1698048568; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=+9ZCabLI6ZbLiqTbxdjMkW4QOsVfq5SR1GsnSVasSvw=; b=GP/nJ+86OkS2qpSRSF7r4x9jAUn/De9bJaDzJphsYKpSmOxgJPy/+el0oB7UbOdqPY wkXjCbu1l4RjJQE75QBQgp3SbZon6ojJPKMMv9YVMVx/lK0SIn7aYBZhCp8Xzi/sDjvm S1OffeQbK6MkE2Ve0ntnmftPsX100gyjrDZq1Xdq2rMn18ofJUpB0VEESEXN7O7hY1WJ fj2tv7YjqE6r4XOCQlm9OG+WbaLG6gt6TtJtj6AB4rJQHvZXwch7EF/8OPQCZr2WOyZf QeVbAroQoRbGj/4iBHaNY/ulbaUla0RpAG2Mi0BEPiaDQIwn78CsLdm0hZ/mPsuWQdgF G20g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697443768; x=1698048568; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+9ZCabLI6ZbLiqTbxdjMkW4QOsVfq5SR1GsnSVasSvw=; b=kwRvTVbCN9R6N75ox4wuCp2/8WhUJSgm25JbgHPN0wVkHZPeKSVZYfrOZHDccgRMIN O8ZPANiAi8iii5TvBYgNt0zVPolW+X2zl3Y1vVzmYVHLlqUHEiUaIeXVBddu4FYZ62MN Kycd/nHJv0fl2y7d90Ecn0etJiI3/O8cFwDn43eRoDdr1nQOGa3R846RejW3ou4p8f9a wDwW8ZU3Z+NSGDc7dESS20EtLiOSIdILoUkchxeh3GCwt+hENLCcDk4ESvyZnMkAzTeY Qflq/dfA+l1JIKX+oycxMaAP2KgeBxgswBBFXGQt/OTqF9+N44SnzMp4+WNgKrq9Coi+ Ol7w== X-Gm-Message-State: AOJu0YxJCgQ6J0D/VOeTG7RufThlFMFaeHp6r31y6cXO98N95kj6MzhP 9Z7F2gs4ovteNsR8D+sMi2kxXg== X-Google-Smtp-Source: AGHT+IHOtQ0uR3kUT6i06SNUn+TvoBGy5K5Z4JEBZrfioy8b+kLt6/2mw2+5OmJmRkVkKmeShsIB/A== X-Received: by 2002:ac2:4bc5:0:b0:507:8f1b:ff59 with SMTP id o5-20020ac24bc5000000b005078f1bff59mr11782690lfq.62.1697443768500; Mon, 16 Oct 2023 01:09:28 -0700 (PDT) Received: from nuoska (dc7g6tyyyyyyyyyyyyhlt-3.rev.dnainternet.fi. [2001:14ba:16cb:a800::193]) by smtp.gmail.com with ESMTPSA id p4-20020ac24ec4000000b0050335c6d091sm45174lfr.79.2023.10.16.01.09.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 01:09:28 -0700 (PDT) Date: Mon, 16 Oct 2023 11:09:26 +0300 From: Mikko Rapeli To: Tony Lindgren Cc: Richard Purdie , Greg Kroah-Hartman , linux-serial@vger.kernel.org, openembedded-core , Bruce Ashfield , Randy MacLeod , Paul Gortmaker 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) Message-ID: References: <1520ecb5f4b6959af835a7781b94694913f76912.camel@linuxfoundation.org> <178DF50519C11C84.8679@lists.openembedded.org> <2023101516-unmolded-otter-e3e0@gregkh> <214757eca7f4cd639a7a8d9a822476c1ec30f01c.camel@linuxfoundation.org> <20231016063501.GL27774@atomide.com> <20231016072352.GM27774@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20231016072352.GM27774@atomide.com> Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Hi, On Mon, Oct 16, 2023 at 10:23:52AM +0300, Tony Lindgren wrote: > * Mikko Rapeli [231016 07:16]: > > On Mon, Oct 16, 2023 at 09:35:01AM +0300, Tony Lindgren wrote: > > > * Richard Purdie [231015 21:30]: > > > > On Sun, 2023-10-15 at 17:31 +0200, Greg Kroah-Hartman wrote: > > > > > Can you try the patch below? I just sent it to Linus and it's fr= om Tony > > > > > to resolve some other pm issues with the serial port code. > > > >=20 > > > > Thanks for the pointer to this. I've put it through some testing and > > > > had one failure so far so I suspect this isn't enough unfortunately. > > > > > > > > FWIW I was looping the testing on the complete removal of the > > > > conditions and didn't see any failures with that. > > >=20 > > > Care to clarify what's the failing test now? > > >=20 > > > Is the issue still the second port not always coming up after boot or > > > something else? > >=20 > > Yes, data from the ttyS1 getty is not coming through from kernel and qe= mu to > > the test framework looking for login prompt after qemu machine boot. > > Workarounds like sending "\n\n" from the test framework through qemu to= ttyS1 > > or "echo helloB > /dev/ttyS1" via working ttyS0 don't seem to help and = wake > > it up. >=20 > OK so for trying to reproduce this with qemu, is this with the default ua= rts > or with some -device pci-serial-2x type options? Here is how yocto test frameworks starts qemu: qemu-system-x86_64 -device virtio-net-pci,netdev=3Dnet0,mac=3D52:54:00:12:3= 5:07 -netdev user,id=3Dnet0,hostfwd=3Dtcp:127.0.0.1:2225-:22,hostfwd=3Dtcp:= 127.0.0.1:2325-:23,tftp=3D/home/builder/src/base/build_test/tmp/deploy/imag= es/qemux86-64 -object rng-random,filename=3D/dev/urandom,id=3Drng0 -device = virtio-rng-pci,rng=3Drng0 -drive file=3D/home/builder/src/base/build_test/t= mp/deploy/images/qemux86-64/core-image-ptest-openssh-qemux86-64.rootfs.ext4= ,if=3Dvirtio,format=3Draw -usb -device usb-tablet -usb -device usb-kbd -c= pu IvyBridge -machine q35,i8042=3Doff -smp 4 -enable-kvm -m 1024 -serial tc= p:127.0.0.1:46313 -serial tcp:127.0.0.1:53891 -pidfile /home/builder/src/b= ase/build_test/pidfile_1926373 -S -qmp unix:./.lzkynxe1,server,wait -qmp u= nix:./.qcpdyz4j,server,nowait -snapshot -nographic -kernel /home/builder/s= rc/base/build_test/tmp/deploy/images/qemux86-64/bzImage -append 'root=3D/de= v/vda rw ip=3Ddhcp console=3DttyS0 console=3DttyS1 oprofile.timer=3D1 tsc= =3Dreliable no_timer_check rcupdate.rcu_expedited=3D1 swiotlb=3D1 printk.t= ime=3D1' Example boot log when this ttyS1 failure happens is here: https://pastebin.com/raw/jRRa2CwW Cheers, -Mikko