Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp5505rdb; Mon, 30 Oct 2023 20:52:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEjdWI9FhUiRsFuP3UsYA1WhWNwY8ASJ3q7XNEEYJxDhTsEXTjJoVSfY9DQXqAU7xi5w6Ez X-Received: by 2002:a17:902:dac9:b0:1cc:5612:85 with SMTP id q9-20020a170902dac900b001cc56120085mr3493364plx.45.1698724327354; Mon, 30 Oct 2023 20:52:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698724327; cv=none; d=google.com; s=arc-20160816; b=ZZB8IkWEn0buIu5eE4quTW3ok+C+2EYfTu5Z8y7DciJkVYZVmWzXRhgj4XNEDpl04F gYIXUwC77IiGyjTGhimEYIAZvV7jzIwtO0ofaPgv5t+paGhAt+czushUY3qVHUc0Kr6G G+K7Wr4nNWnoewMJ31cR39fK3gen1YP7UXSeRVGDtQkugnJCqwP4JwRPDSmg0OXye8ml fUd+cOZ9quI5oITaonhZqUGqtvpGOAC20TmsDuQoDZINLGYcLcs0iMR1FOSt5Eugr8Eb sE3QacpCBfGF+U9EaS1mM4VeFuELDrh19RxY+4w4EWg8dddbmK7kJjCLnX5ssJ8dd0It EJHw== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=NcJE+muHCTM+F5ydwVKCzS7huTyeARslBg0+emRqTPI=; fh=bSLNQYyvYURNovcMwm8owWqjCpfmTrLnCtmJizfz5F4=; b=UQEVRLiZ/sQYsYbQY1r/Timg/HFaJ5H9uQUS1rcxVDgCQsDPFGlQq5SbF7OdNPjoqW +WnOT+MgCWYzMnvW7MF9V3nFf97n/+GHxKMKIjDGUxszipNTuHPhS+IIkWkezLECmK/r 5yQjL+Noe1GwgVS1FXzA0i30CC19Lz2BgzrGQ1OZiD9anGoLQOOLXqPF+T152klVpCkM 1U47At6WeLVP2bsRYcyrLJmyV2g0Ks+AG0vNP8PqeaJtGiwJuGkMX4oZCSB9J7VKzzT5 Fx2QjtON6zZgCzMk9ofHV/640LS7EewnAnemxo2Hp8+aIbyNGaTVRAmIp4Rm5micqgNe YzBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=DqA3DiLE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id y2-20020a170902cac200b001cc0e37524bsi392256pld.212.2023.10.30.20.52.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 20:52:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=DqA3DiLE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 0EE468061B78; Mon, 30 Oct 2023 20:51:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234793AbjJaDvQ (ORCPT + 99 others); Mon, 30 Oct 2023 23:51:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230084AbjJaDvO (ORCPT ); Mon, 30 Oct 2023 23:51:14 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C701B3; Mon, 30 Oct 2023 20:51:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=NcJE+muHCTM+F5ydwVKCzS7huTyeARslBg0+emRqTPI=; b=DqA3DiLEz4btMtwydEToDoDcBW pJpoRs+uF5ciYUtRW88W3duync7qDFpXA6gR5jc6RJHo1DZG3s8u6EzwtyP7hFSFOB4JZxP7LWcHC jn0fP3AgSKb8pfUZqRjht9L6tHphFHyFjAyuG2feUTkPKMeXJ+f4+HayiCLkGnKtnBxDGJ70X2OFN pWW7ttkPqVBoh4LTszRABbWARW77Vo4uQbxQpj8tj91QsyVoa9ID38zRtHe46XOMcNzL0bQoR322Y 6681g3cy6ZTKg1O3U+QmV6+RNN/9p90fNNcUt1ZnIBFNTVvjsKK9pGAp89NvN86qKvjGbLusnbic3 KHOsrx3A==; Received: from [50.53.46.231] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qxfmV-004UOn-0j; Tue, 31 Oct 2023 03:51:07 +0000 Message-ID: <842a0d64-279d-4052-a243-95fee608ea76@infradead.org> Date: Mon, 30 Oct 2023 20:51:06 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Gaps in logs while using usb-serial as a console To: Alan Stern , Greg KH Cc: ariel marcovitch , johan@kernel.org, linux-usb@vger.kernel.org, Linux Kernel Mailing List References: <2023103052-unpeeled-calibrate-ae48@gregkh> <2023103003-defection-recess-cf49@gregkh> <968c62ca-0ef2-4bf1-a17b-a6d88d5e2e20@rowland.harvard.edu> Content-Language: en-US From: Randy Dunlap In-Reply-To: <968c62ca-0ef2-4bf1-a17b-a6d88d5e2e20@rowland.harvard.edu> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 30 Oct 2023 20:51:24 -0700 (PDT) On 10/30/23 07:19, Alan Stern wrote: > On Mon, Oct 30, 2023 at 09:30:15AM +0100, Greg KH wrote: >> On Mon, Oct 30, 2023 at 10:15:30AM +0200, ariel marcovitch wrote: >>>> Please realize that usb-serial console was the result of me loosing a >>>> drunken bet. It's amazing it works at all. For "fake" devices like >>> LOL your drunken bet was quite helpful to some people >>> Because modern PCs come without a serial port, I wanted to use it to >>> see early logs on my crashing kernel without having to use printk >>> delay and things like that. >>> I'm curious as to how kernel people debug PCs in general... >> >> We use a usb debug port connection (it's a special cable). For EHCI it is a special cable. For XHCI you can use a special cable but it is not required. (I saw a few people on LKML say that a normal data cable works so I tested it and it does work.) But if you want the special cable (for XHCI), this one works: https://www.datapro.net/products/usb-3-0-super-speed-a-a-debugging-cable.html So I tested with both the special debug cable and a normal A-A data cable, both with satisfactory results. > Sometimes people use netconsole (see > Documentation/networking/netconsole.rst). I don't know how common it is > nowadays, and it may not be quite as reliable as a debug port device, > but it should still work. And it doesn't require special hardware. It would be great if netconsole worked with wifi and not wired (ethernet). -- ~Randy