Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp484174pxm; Fri, 25 Feb 2022 11:59:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJz18pk1FMahnGFBUFCWB4Qp/EnEE4qYD6RiBOg19JnHjORTR7fn9vNCBrWNQ4hUeS4yFL+M X-Received: by 2002:a63:5ce:0:b0:373:3724:b95c with SMTP id 197-20020a6305ce000000b003733724b95cmr7268595pgf.378.1645819191574; Fri, 25 Feb 2022 11:59:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645819191; cv=none; d=google.com; s=arc-20160816; b=z6QFj1kHfkXMUBZ2RO3qdWalvGCjRYprXJbwFG+b0IIMQHODJgqs2OtDIjDTry9FEP eYRnnzGy3CjJpGPuL7Hfcp8VDCD+3NllFwSfL3ErCmMsu0bMC1UOEQvmO16ZFTOHy07T 0aqy7A1xgPAWKdFol8AUG3lC9bPLO+uW9q3i2IKmB2utbBJVhRVvrBbSl35vNFS+e5MS yfB1c7TC7AZHQSYGFLLTroGeDRXerDj9gDihzbV+DXOVja2Pc0F20wIemONk5iAf4cp1 599yyW6IDxGHsP4+q4XZq8vKXmQZ6CXwIGVffaAcywwuagCikfL9Bg+d3yQIlB/eK4iN 22+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=0mSZFM5wyS60wsXW6ImNRFGtjC/bj18hevzSXoPvaYw=; b=xPxb+/hHWC/z/igpNOgbUtTIPgHHTaK9xk8LKwuKtCduOwOla4gAqbCWQLhVzpnJBC 2WXR/wFL5gIFdK+TsyLjnSLU4Y6jpkQWU+tOGFt9M+KQEn4EeAZ33gN2PHHktg1qK2Qo Aes7liKcHUtlLY+wgDCv6wYUXwVPUt3u9OtPpsqN0/F8zkrwq3KvYmbxq/7gfVqnipJS 5MpdJ8B29egUnnhnNRmRZDgewAD5FjgrmvUVnmqvasYtLL0IL+hQjkHLgRXb7TYdb1dh /1/rJaNSn3D/olVqDEK2ecNt+6SXVAgpettRitWktZYvG+XD8odkFfG2E34qgRNOwQ4n /F5w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t5-20020a170902e84500b0014fa7b0f15bsi2710397plg.526.2022.02.25.11.59.36; Fri, 25 Feb 2022 11:59:51 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239965AbiBYLMa convert rfc822-to-8bit (ORCPT + 99 others); Fri, 25 Feb 2022 06:12:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239953AbiBYLM0 (ORCPT ); Fri, 25 Feb 2022 06:12:26 -0500 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.86.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 18FBF7E0A0 for ; Fri, 25 Feb 2022 03:11:53 -0800 (PST) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mtapsc-1-4tfOWMTSOPWvw-eAzJbEww-1; Fri, 25 Feb 2022 11:11:51 +0000 X-MC-Unique: 4tfOWMTSOPWvw-eAzJbEww-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.28; Fri, 25 Feb 2022 11:11:49 +0000 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.028; Fri, 25 Feb 2022 11:11:49 +0000 From: David Laight To: 'Willy Tarreau' CC: 'Steven Rostedt' , LKML , Petr Mladek , "Sergey Senozhatsky" , John Ogness Subject: RE: Strange output on the console Thread-Topic: Strange output on the console Thread-Index: AQHYKfxF0QTTTto/+k+8VsyEcwRQo6yjyM1ggAAHToCAADtxAIAABoGAgAAGDGA= Date: Fri, 25 Feb 2022 11:11:49 +0000 Message-ID: <32a7af26f4494f47a03a6d965ac7c99a@AcuMS.aculab.com> References: <20220224230035.36547137@gandalf.local.home> <61226fc12ff9459d8daed8e346d6ab94@AcuMS.aculab.com> <20220225063637.GA18039@1wt.eu> <1dcb185901f04a5ea2476a449e371167@AcuMS.aculab.com> <20220225103239.GA18720@1wt.eu> In-Reply-To: <20220225103239.GA18720@1wt.eu> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,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 From: Willy Tarreau > Sent: 25 February 2022 10:33 > > On Fri, Feb 25, 2022 at 10:11:43AM +0000, David Laight wrote: > > From: Willy Tarreau > > > Sent: 25 February 2022 06:37 > > > > > > On Fri, Feb 25, 2022 at 06:12:35AM +0000, David Laight wrote: > > > > From: Steven Rostedt > > > > > Sent: 25 February 2022 04:01 > > > > > > > > > > I've been noticing that my tests have been spitting out strange output on > > > > > the console. It would happen at boot up and then clear up. It looks like > > > > > something screwed up with the serial timing. > > > > > > > > > > Attached is a dmesg of one of my test runs as an example. > > > > > > > > > > I've noticed this on both 32 bit and 64 bit x86. > > > > > > > > > > I haven't had time to look deeper into this, but I figured I let you know > > > > > about it. > > > > > > > > > > And it always seems to happen right after: > > > > > > > > > > Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled > > > > > > > > > > Maybe this is a serial issue and not a printk one? :-/ > > > > > > > > Looks very much like the serial baud rate is being reset. > > > > > > I don't think it's the baud rate, characters are still readable, it > > > looks more like a fifo being too short and causing lots of chars to > > > be dropped. > > > > Just before it recovers there is this output: > > ATaitoscic nitahi tuPiet mfba Ae: aD nCt AH0 nP0 > > That is probably 'fifo not enabled'. > > > > 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. 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. So maybe we are both right - for different bits of the error. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)