earlyconsole prints question marks on 5.19.0-1002-generic

Bug #1988984 reported by Heinrich Schuchardt
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-meta-riscv (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

earlyconsole prints ������������������������ on 5.19.0-1002-generic

[ Impact ]

 * When adding earlycon to the kernel command line on the
   SiFive Unmatched board the serial console will print garbage
   halfway through booting until entering userspace and other
   other drivers are loaded.

 * The problem is the UART driver doesn't claim its clocks
   properly so the PWM driver will turn off the parent clock
   until PWM is needed for the LEDs on the board.

 * Compiling the PWM driver as a module so it will be loaded
   at the same time the LED drivers are loaded is a workaround
   until the following patch is backported
   643792048ee8 ("serial: sifive: enable clocks for UART when probed")

 * Only the SoCs on the SiFive Unleashed and Unmatched boards use
   this PWM driver, but none of them need it at boot time, so should
   be harmless.

[ Test Plan ]

 * Add earlycon and watch the serial console while booting.

 * Test that PWM leds still work after the PWM driver module is loaded.

[ Where problems could occur ]

 * There might be a hidden dependency on loading the PWM driver early.

[ Other Info ]

Original bug description:

With Kernel 5.19.0-1002-generic on the SiFive Unmatched earlyconsole output looks like:

EFI stub: Booting Linux Kernel...
EFI stub: Using DTB from configuration table
EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path
EFI stub: Exiting boot services...
������������������������������������������

With a defconfig 5.19.6 kernel this does not occr.

description: updated
affects: linux-riscv (Ubuntu) → linux-meta-riscv (Ubuntu)
Revision history for this message
Heinrich Schuchardt (xypron) wrote :

@esmil: This seems to be specific to your ppa kernel.

Revision history for this message
Heinrich Schuchardt (xypron) wrote :

Bisecting the kernel configuration file points to CONFIG_PWM_SIFIVE=y causing the problem.

The setting was already enabled in out v5.15 kernel.

Revision history for this message
Heinrich Schuchardt (xypron) wrote :

CONFIG_PWM_SIFIVE=m could be a workaround.

description: updated
description: updated
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Re-titling bug report to avoid printing unprintable characters in the kernel upload changelog.

description: updated
summary: - earlyconsole prints ������������������������ on 5.19.0-1002-generic
+ earlyconsole prints question marks on 5.19.0-1002-generic
Changed in linux-meta-riscv (Ubuntu):
status: New → Fix Released
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux-hwe-5.19/5.19.0-24.25~22.04.1 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-jammy' to 'verification-done-jammy'. If the problem still exists, change the tag 'verification-needed-jammy' to 'verification-failed-jammy'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: kernel-spammed-jammy-linux-hwe-5.19 verification-needed-jammy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.