Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1464709 - 8250_pci driver is no longer built-in in 4.11.x causing serial console not to be activated
Summary: 8250_pci driver is no longer built-in in 4.11.x causing serial console not to...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-25 00:04 UTC by Dominik 'Rathann' Mierzejewski
Modified: 2017-07-07 22:59 UTC (History)
9 users (show)

Fixed In Version: kernel-4.11.7-300.fc26
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-07 22:59:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1464741 0 unspecified CLOSED dracut doesn't add serial console driver to initramfs automatically 2022-05-16 11:32:56 UTC

Internal Links: 1464741

Description Dominik 'Rathann' Mierzejewski 2017-06-25 00:04:47 UTC
Description of problem:
The 8250_pci driver was changed from built-in to module in 4.11.x series. This causes serial console not work for serial ports driven by this driver unless
dracut --force-drivers 8250_pci
is used to build initramfs image.

In particular, the serial port is activated after rootfs is mounted, which makes the kernel display the LUKS password prompt and wait for password input on tty0 only. Another side effect is that no kernel output goes to the serial console and systemd doesn't activate a getty there, either.

Please revert this change or fix dracut to add this module automatically to initramfs.

Version-Release number of selected component (if applicable):
4.11.6-201.fc25.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Install any serial port card supported by the 8250_pci driver, e.g. http://www.i-tec.cz/index.php?t=3&v=103 which is identified as "MosChip Semiconductor Technology Ltd. PCIe 9912 Multi-I/O Controller"
2. Edit the following lines in /etc/default/grub"
GRUB_TERMINAL_INPUT="console serial"
GRUB_TERMINAL_OUTPUT="console serial"
GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=4 --word=8 --parity=no --stop=1"
GRUB_CMDLINE_LINUX_DEFAULT="LANG=en_GB.UTF=8 console=tty0 console=ttyS4,115200n8"

3. Install any 4.11.x kernel.
4. Boot the newly installed kernel

Actual results:
No output on ttyS4 serial console.

Expected results:
LUKS password prompt is displayed on ttyS4 and password input is accepted there.

Additional info:
This was changed after 4.10.17:
diff -u /boot/config-4.10.17-200.fc25.x86_64 /boot/config-4.11.6-201.fc25.x86_64
[...]
@@ -3511,7 +3546,8 @@
 # CONFIG_SERIAL_8250_FINTEK is not set
 CONFIG_SERIAL_8250_CONSOLE=y
 CONFIG_SERIAL_8250_DMA=y
-CONFIG_SERIAL_8250_PCI=y
+CONFIG_SERIAL_8250_PCI=m
+CONFIG_SERIAL_8250_EXAR=m
 CONFIG_SERIAL_8250_CS=m
 CONFIG_SERIAL_8250_NR_UARTS=32
 CONFIG_SERIAL_8250_RUNTIME_UARTS=32
@@ -3523,7 +3559,7 @@
 # CONFIG_SERIAL_8250_FSL is not set
 CONFIG_SERIAL_8250_DW=y
 CONFIG_SERIAL_8250_RT288X=y
-CONFIG_SERIAL_8250_LPSS=y
+CONFIG_SERIAL_8250_LPSS=m
 CONFIG_SERIAL_8250_MID=y
 CONFIG_SERIAL_8250_MOXA=m
 
[...]

Comment 1 Dominik 'Rathann' Mierzejewski 2017-06-25 09:58:43 UTC
f26 and rawhide appear to suffer from the same issue, as they both have CONFIG_SERIAL_8250_PCI=m in kernel-x86_64.config.

Comment 2 Laura Abbott 2017-06-26 14:30:56 UTC
There was a change in 4.11 to let the SERIAL_8250 options be modular but I guess that doesn't work for Fedora. I changed it back to being built in.

Comment 3 Fedora Update System 2017-06-26 21:50:33 UTC
kernel-4.11.7-300.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-44d91780a0

Comment 4 Fedora Update System 2017-06-26 21:51:48 UTC
kernel-4.11.7-200.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-65f852596f

Comment 5 Fedora Update System 2017-06-26 21:52:51 UTC
kernel-4.11.7-100.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-bbfb70fc1d

Comment 6 Dominik 'Rathann' Mierzejewski 2017-06-27 10:13:49 UTC
(In reply to Laura Abbott from comment #2)
> There was a change in 4.11 to let the SERIAL_8250 options be modular but I
> guess that doesn't work for Fedora. I changed it back to being built in.

Thank you. I guess it could work if dracut were able to add the required module to initramfs automatically. I opened a separate bug against dracut for that.

Comment 7 Fedora Update System 2017-06-27 17:20:49 UTC
kernel-4.11.7-100.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-bbfb70fc1d

Comment 8 Fedora Update System 2017-06-27 17:25:52 UTC
kernel-4.11.7-200.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-65f852596f

Comment 9 Fedora Update System 2017-06-27 20:25:22 UTC
kernel-4.11.7-300.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-44d91780a0

Comment 10 Dominik 'Rathann' Mierzejewski 2017-06-29 11:11:44 UTC
(In reply to Laura Abbott from comment #2)
> There was a change in 4.11 to let the SERIAL_8250 options be modular but I
> guess that doesn't work for Fedora. I changed it back to being built in.

FYI, this was apparently fixed in dracut shortly after I opened a ticket upstream (https://github.com/dracutdevs/dracut/issues/248), so if you'd like to modularize these again, you can do so after the fix trickles down to Fedora. I haven't verified the fix yet, though.

Comment 11 Fedora Update System 2017-06-30 00:49:45 UTC
kernel-4.11.7-200.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 12 krp 2017-06-30 14:46:41 UTC
I have updated to kernel-4.11.7-200.fc25, but i have still black display on boot instead suggestions to decode image

Comment 13 Fedora Update System 2017-06-30 14:53:50 UTC
kernel-4.11.8-100.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-4880e0f183

Comment 14 Fedora Update System 2017-07-02 03:23:01 UTC
kernel-4.11.8-100.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-4880e0f183

Comment 15 Fedora Update System 2017-07-04 00:21:02 UTC
kernel-4.11.8-100.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2017-07-07 22:59:59 UTC
kernel-4.11.7-300.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.