Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp106176pxm; Fri, 25 Feb 2022 04:57:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJyQ7CA5EdzGRbNIr8t9yaFN/xLK3AHLqYwLinEcTU4xIEzaI4dGWLPwvOKfb5f+mpPXNRjn X-Received: by 2002:a17:902:7d81:b0:14f:e18b:2b9e with SMTP id a1-20020a1709027d8100b0014fe18b2b9emr7153127plm.160.1645793852927; Fri, 25 Feb 2022 04:57:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645793852; cv=none; d=google.com; s=arc-20160816; b=qgx/zePqtea/oS820hMoC+8B5pxPRWRKzhYevn/eSHw0obuHPd6TCQANZQEE2dU6NI QPxUDEuS8TQo/nzc+iUdQHWAqrrrsssdEbsh8nVzXl9/yHV1ZX/6yoE1s0X24plFXts5 4Y8bWdBd1KIoacoF/OdhhCDWIgVs2FUBmCzhriMemuZKNNG3JEpiD0ooYyj65uOO2i4e XBt8Wq4WK3xnNvCVGHM0SCo8NCcCdD3O1en5b8g2As7gqVYG2hwWm3DG3bQmSAjfI6J9 zu741TKWdSjaIeiCotIyfhESXxDa7Ta92zKeKCj5ToXGEWVZ79mINFxrCxW5sWTJfq3K sOJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=cBy+mlADvgbU65JpzVzxycmJO0hIUdTz6LrF61FvDcA=; b=I5wf5IVp7Nejye5fwSeSdaidcv4Q4d2fJNao1UBgXlTS5oD09seVrSH19GV/F4b2Zj Ah2Ab01U4kVBV9j5RO8cH7bO7igIZGjdpNERSq4SmhYVlqJEuCj24j+hORHE9hbSQLyD Qk7q9FWJhYclrYHvPWBWCiqfR1+2TvsyTK3vzzNhdhM5KEqogKNo3RwNiNzhVRRoZnUE 28vGWJXUg3cg5YrPLJR+8qVdo8kTrDA4/BTZ5SG5x3WDMJ9eBwMheVZyNN0K7knBodDW QYn8uGAjb6f/u651e/cKmFqEfj4CZJO4TdUn25l4RAFlR9m+OZP4KxiKcpsISw25Xc56 C2mw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i24-20020a632218000000b00373a7013731si2004073pgi.390.2022.02.25.04.57.17; Fri, 25 Feb 2022 04:57:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240636AbiBYM0o (ORCPT + 99 others); Fri, 25 Feb 2022 07:26:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233253AbiBYM0n (ORCPT ); Fri, 25 Feb 2022 07:26:43 -0500 Received: from 1wt.eu (wtarreau.pck.nerim.net [62.212.114.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 410E2214FAB for ; Fri, 25 Feb 2022 04:26:11 -0800 (PST) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 21PCPkfL019061; Fri, 25 Feb 2022 13:25:46 +0100 Date: Fri, 25 Feb 2022 13:25:46 +0100 From: Willy Tarreau To: David Laight Cc: "'Steven Rostedt'" , LKML , Petr Mladek , Sergey Senozhatsky , John Ogness Subject: Re: Strange output on the console Message-ID: <20220225122546.GB18720@1wt.eu> References: <20220224230035.36547137@gandalf.local.home> <61226fc12ff9459d8daed8e346d6ab94@AcuMS.aculab.com> <20220225063637.GA18039@1wt.eu> <1dcb185901f04a5ea2476a449e371167@AcuMS.aculab.com> <20220225103239.GA18720@1wt.eu> <32a7af26f4494f47a03a6d965ac7c99a@AcuMS.aculab.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <32a7af26f4494f47a03a6d965ac7c99a@AcuMS.aculab.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Fri, Feb 25, 2022 at 11:11:49AM +0000, David Laight wrote: > > > But the earlier output doesn't have many different characters in it. > > > Which is typical of the baud rate being wrong. > > > > I don't think so, here's the beginning of the capture: > > > > Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled > > 0SI 15Nto > > LgtAsri[dnei00ieC nm > > i:0eom:Soce > > [ad000Ade s:ii SSLtbueludAis002h00 1)ASrPn > > Ars004h00 7ARrPn > > > > All of these chars are within the printable set, so there's a probability > > of ~37% per char, so even for a short string of 9 chars like the first > > line, that's a 0.01% chance of it respecting the set. That's why for me > > it definitely doesn't correspond to a baud rate issue. With wrong baud > > rates you get lots of garbage in the full 8-bit range. > > > > In addition there are even upper case at the beginning of the lines which > > probably correspond to the ones that are printed on these lines. > > Ok, that bit is probably output after the fifo is disabled. > > But a few lines later you get: > > TntiTet_TetkT t:TetyTvt:TntaTttTet TeteTvtnTntnTvtnT teT teTettTettKTeteTttnTnteTttaTttaTetKTttOTet:TvtnTvtltTntw Tnt:T tOTvt_Tnt:TvtKTntnT tsTvtsTttsTttsTttosTvtotTtt:TntrTntOTet T ttTvtKT tKT teTnttTettTntaTntdTttaT taTeteT tTtt TttrTntlTvt:TetkT tTtttTnteTttOTetkTvtsTeteT tlTttoTntoTetpTvtpTetsTvtvTvteTntOTet > TttTetsTetsTntsTetKT t TttiTttT tnT tOTnt_TttrTtttTntKTetOTtteTnt:T tKTttpTvdoT dxTvdnTtd TedtTedoTvdiTedaTedT d Ttd:TedtTtd TeddTvdKTediTndgTednTtdgTtd TedKT snTesTtsOTesKTnstTvsOTvsTnsKTvs:Tts:TesTvs:Tns Tes T sdTts TtsoTesOTtslTesnTesKTesOTns > TnsTesOT s T sKTesOT sKTvsOTtsTtsKTtsT sKTesTesKT sKTesOT siT stTnsaTvsaTesKTnsOT s > TesKTnsT s TvsKTeslT sOTesT sKTtseTnseTvs_Tts_T sOTes TnsOT s T spTespTesdTesdTeseTtseTeseTt_rTe_rTv_oTes:T s:Tes:TnfwOTvfrKT fwT frTefpuTefpKTefpTvf:TnsOTvsOTnsoTvs Tvs TvsTtssTnsT sKTesTnsTvsTtsoTesmTnsgTesiTeslTtsTvsKTnsTvsOTtsT s_Tnsu > > which really doesn't have enough different characters in it to be a fifo problem. > That looks like a UART struggling to find valid start and stop bits > on a continuous data stream that doesn't match the baud rate. > > It may also be that whatever 'terminal' is being used is masking off the 0x80 bit. That could be one option I thought about but still, that sounds quite suspicious. You don't even get any #!:$/ etc. Or maybe the UART is configured in 6-bit mode (most 16550 support 5-8 bits), and maybe even the stop bit and/or parity participates. > Another possibility is that the count of characters is about right. > But the receiver is misaligned on the 10 bit async characters. > Because these is no line idle, it never synchronises properly. > ISTR a real async terminal behaving that way. > But I think that gives a much wider range of characters - just the wrong ones. > > There is also a third error pattern: > ^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[ > which might be an 'even more wrong' baud rate. This one just looks like the Up arrow, that Steven might have pressed at some point during the capture. > So maybe we are both right - for different bits of the error. :-) ... and Steven having fun reading our proposals after having made this up entirely in preparation of the next April's fool :-) Willy