Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp31349pxm; Fri, 25 Feb 2022 03:24:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJx4cAgvmREn0eo2SQeZY9t0SLQui1fxPGiUL3lEzc2xnypSLhKbkl5oA1foH3BOz5mwRS6t X-Received: by 2002:a17:903:1249:b0:14e:e053:c8b6 with SMTP id u9-20020a170903124900b0014ee053c8b6mr7083026plh.132.1645788282152; Fri, 25 Feb 2022 03:24:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645788282; cv=none; d=google.com; s=arc-20160816; b=uvDSI+k/uNiKGJCBsaA+bLT9O0crEKr9Sf+4TbBwZovn2W2srvkaMU/3eVzx5YE2Jm 0sEK+77ruPLsYW8sssH6vyszuR3RSywtxgKMeCue/C5VWRqaRx6hnIiaG6GMqVtI4yRU nA50A3Nkx2o1ZDkI5+cGSkZE9IpaUb0Fpv+Bopk8AJaFGOCZFR3fq8+qtqZF5wJh0po5 BtluNVeb6sWau0KKIJRx7yl683Xo98/PcgN7v4/PWhT8KF8zxp8C47QVKtrqMM7EoIeL QrP12nbv+jgbCdiWylcRE+5pI+WGiQO/UqZqGeGmc0Jcr7K+jpB+Mz3wkGTwt514berc tbNg== 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=g1av69wA2Bzfv+zIGDnB5zIrj8HTU+C1kO2nXtQ/zi0=; b=MMMMU4Dc2KR4t8vdrmNQa41YhGbaPgkikiIHMsaRUMWK7EtTXJOus8QosnnFYLrRd9 +5f4FG/d2tO3R3jDcyJmUIgMFf1Le0QxKcxDXfZ/5AkNY8W825SjhUII5kRf9//nA0EY 27sGB/yWOdTkjhIwQCeh7Y7nbSqTzPhYd3wPXm40IBRFotenvgoMV9evSYIMWePPnjRQ q7+K5av+7J78ydoe6QGk3k7kHWXvepiWnxdm1qGLC6f/hB8zue0z/guTSilpN7eDcfIR 0yYDV/hAa+sPI+1XgRORMdKLLoyb5Os383Z0uSERv+QlJpmgQdSiakjjWIUJ4Z5uXW13 eVaQ== 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 2-20020a630d42000000b00371d5f00ea4si1677662pgn.210.2022.02.25.03.24.26; Fri, 25 Feb 2022 03:24:41 -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 S239560AbiBYKdj (ORCPT + 99 others); Fri, 25 Feb 2022 05:33:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239496AbiBYKdc (ORCPT ); Fri, 25 Feb 2022 05:33:32 -0500 Received: from 1wt.eu (wtarreau.pck.nerim.net [62.212.114.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C7E76197B7F for ; Fri, 25 Feb 2022 02:32:59 -0800 (PST) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 21PAWd3d018756; Fri, 25 Feb 2022 11:32:39 +0100 Date: Fri, 25 Feb 2022 11:32:39 +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: <20220225103239.GA18720@1wt.eu> References: <20220224230035.36547137@gandalf.local.home> <61226fc12ff9459d8daed8e346d6ab94@AcuMS.aculab.com> <20220225063637.GA18039@1wt.eu> <1dcb185901f04a5ea2476a449e371167@AcuMS.aculab.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1dcb185901f04a5ea2476a449e371167@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 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. Willy