From: Willy Tarreau <w@1wt.eu>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: David Laight <David.Laight@aculab.com>,
LKML <linux-kernel@vger.kernel.org>,
Petr Mladek <pmladek@suse.com>,
Sergey Senozhatsky <senozhatsky@chromium.org>,
John Ogness <john.ogness@linutronix.de>
Subject: Re: Strange output on the console
Date: Fri, 25 Feb 2022 14:40:56 +0100 [thread overview]
Message-ID: <20220225134056.GE18720@1wt.eu> (raw)
In-Reply-To: <20220225082850.2277179f@gandalf.local.home>
On Fri, Feb 25, 2022 at 08:28:50AM -0500, Steven Rostedt wrote:
> On another machine that has the same issue but with different characters, I
> captured the output from the console, but also took the output from dmesg
> (both are attached).
>
> The console has:
>
> [ 5.886056] thermal LNXTHERM:00: registered as thermal_zone0
> [ 5.891773] ACPI: thermal: Thermal Zone [TZ00] (28 C)
> [ 5.897082] thermal LNXTHERM:01: registered as thermal_zone1
> [ 5.902800] ACPI: thermal: Thermal Zone [TZ01] (30 C)
> [ 5.908053] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
> .0I 15
> 10y0e
> 9No
> Lt
> 2t.d)
> .t v
> 6be
> a20tp
> 0a2ni
> s
> s
> 1s
> s
> [..]
>
>
> and dmesg has:
>
> [ 5.897082] thermal LNXTHERM:01: registered as thermal_zone1
> [ 5.902800] ACPI: thermal: Thermal Zone [TZ01] (30 C)
> [ 5.908053] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
> [ 5.914461] 00:08: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
> [ 5.916204] 0000:00:16.3: ttyS1 at I/O 0xf0e0 (irq = 19, base_baud = 115200) is a 16550A
> [ 5.917161] Non-volatile memory driver v1.3
> [ 5.917617] Linux agpgart interface v0.103
> [ 5.922965] tpm_tis 00:09: 1.2 TPM (device-id 0xB, rev-id 16)
> [ 5.988960] tpm tpm0: TPM is disabled/deactivated (0x7)
> [ 6.001410] brd: module loaded
> [ 6.001865] ahci 0000:00:1f.2: version 3.0
> [ 6.012113] ahci 0000:00:1f.2: AHCI 0001.0300 32 slots 6 ports 6 Gbps 0x5 impl SATA mode
> [ 6.012804] ahci 0000:00:1f.2: flags: 64bit ncq pm led clo pio slum part ems apst
> [ 6.016433] scsi host0: ahci
> [ 6.017170] scsi host1: ahci
> [ 6.017730] scsi host2: ahci
> [ 6.018326] scsi host3: ahci
> [ 6.018880] scsi host4: ahci
> [ 6.019469] scsi host5: ahci
> [ 6.019921] ata1: SATA max UDMA/133 abar m2048@0xf7c36000 port 0xf7c36100 irq 24
>
>
> The ending has:
>
> For console:
>
> [..]
> .Kp
> 6Kt
> [K-g
> Ke
> 1iah
> 3inc
> inc
> 6inc
> 1inc
> 6inc
> 6inc
> 1inc
> 6inc
> 6itu
> 6a
> .a c
> 6Pe
> 8tm
> 6R r
> [ 16.841072] Freeing unused decrypted memory: 2036K
> [ 16.846604] Freeing unused kernel image (initmem) memory: 2372K
> [ 16.857905] Write protecting the kernel read-only data: 22528k
>
>
> For dmesg:
>
> [..]
> [ 16.624186] Key type fscrypt-provisioning registered
> [ 16.627743] Key type encrypted registered
> [ 16.628167] ima: Allocated hash algorithm: sha1
> [ 16.634951] ima: Error Communicating to TPM chip
> [ 16.645952] ima: Error Communicating to TPM chip
> [ 16.656946] ima: Error Communicating to TPM chip
> [ 16.667939] ima: Error Communicating to TPM chip
> [ 16.678937] ima: Error Communicating to TPM chip
> [ 16.689943] ima: Error Communicating to TPM chip
> [ 16.700938] ima: Error Communicating to TPM chip
> [ 16.710941] ima: Error Communicating to TPM chip
> [ 16.726787] ima: No architecture policies found
> [ 16.746928] alg: No test for 842 (842-scomp)
> [ 16.747440] alg: No test for 842 (842-generic)
> [ 16.838166] PM: Magic number: 10:503:332
> [ 16.838607] tty tty53: hash matches
> [ 16.839099] RAS: Correctable Errors collector initialized.
> [ 16.841072] Freeing unused decrypted memory: 2036K
> [ 16.846604] Freeing unused kernel image (initmem) memory: 2372K
> [ 16.857905] Write protecting the kernel read-only data: 22528k
> [ 16.864836] Freeing unused kernel image (text/rodata gap) memory: 2036K
> [ 16.871969] Freeing unused kernel image (rodata/data gap) memory: 1180K
Interesting, it looks like the characters are rare samples from the
expected output. I.e. many '1' or '6' and 'inc' for "16* communicating".
But it looks like some chars help getting them resynced. A wrong bit
count and/or stop bit count could somehow provoke this, with one char
having the bits properly placed to be detected on the other side, then
many being shifted, arriving without the proper start bit condition,
and/or with the stop bit wrong causing them to be dropped, until some
of the low-bit count chars (0x20 or 0x0A) making it easier and resyncing
on end of lines.
Maybe you could try to change the config on the receiver to try to resync
with what it sent and see if you figure what setting is being used ? I
would personally try to set it to 7 bit with 1 stop and no parity, same
baud rate just to see.
Willy
next prev parent reply other threads:[~2022-02-25 13:41 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-25 4:00 Strange output on the console Steven Rostedt
2022-02-25 4:58 ` Sergey Senozhatsky
2022-02-25 5:07 ` Sergey Senozhatsky
2022-02-25 13:32 ` Steven Rostedt
2022-02-25 13:42 ` Steven Rostedt
2022-02-26 2:20 ` Sergey Senozhatsky
2022-02-26 11:49 ` Wander Costa
2022-02-28 16:05 ` Steven Rostedt
2022-03-02 18:49 ` Wander Costa
2022-02-25 6:12 ` David Laight
2022-02-25 6:36 ` Willy Tarreau
2022-02-25 9:37 ` John Ogness
2022-02-25 9:42 ` John Ogness
2022-02-25 10:11 ` David Laight
2022-02-25 10:32 ` Willy Tarreau
2022-02-25 11:11 ` David Laight
2022-02-25 12:25 ` Willy Tarreau
2022-02-25 13:03 ` David Laight
2022-02-25 13:17 ` Steven Rostedt
2022-02-25 13:25 ` Willy Tarreau
2022-02-25 13:28 ` Steven Rostedt
2022-02-25 13:40 ` Willy Tarreau [this message]
2022-02-25 13:44 ` Steven Rostedt
2022-02-25 13:57 ` Willy Tarreau
2022-02-25 13:53 ` Steven Rostedt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220225134056.GE18720@1wt.eu \
--to=w@1wt.eu \
--cc=David.Laight@aculab.com \
--cc=john.ogness@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=pmladek@suse.com \
--cc=rostedt@goodmis.org \
--cc=senozhatsky@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox