forked from dracutdevs/dracut
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backport upstream fixes to 059 #301
Merged
aafeijoo-suse
merged 5 commits into
openSUSE:SUSE/059
from
aafeijoo-suse:059-upstream-fixes-7
Nov 27, 2023
Merged
Backport upstream fixes to 059 #301
aafeijoo-suse
merged 5 commits into
openSUSE:SUSE/059
from
aafeijoo-suse:059-upstream-fixes-7
Nov 27, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
On Fedora, and possibly others, this file loads opensc-pkcs11.so which you need to interact with the smart card to unlock a LUKS encrypted volume. (cherry picked from commit 6da61a2)
Needs pcsc >= 2.0.0 polkit is not included in dracut and without this option, pcscd simply fails (cherry picked from commit 842be0c)
The x13s, and possibly other Qualcomm based devices need the QC IPC router driver in order to enable USB. Without it, its not possible to boot from USB-C attached disks. IPC in this case is Inter _Processor_ Communication and forms the message bus used to communicate between differing processing elements in a given system/SoC running and managing various hardware devices. This means that while it appears this driver should be in the dracut network modules that is incorrect because its not for enabling host networking in the initrd, but rather for communicating with other hardware blocks. Those other blocks aren't limited to modems, but any SMD (shared memory device), which on QC based machines includes the audio DSPs, RPM (resource power manager) and of course the application processor cores linux is running on. References: https://osmocom.org/projects/quectel-modems/wiki/Qualcomm_Linux_SMD https://android.googlesource.com/kernel/msm/+/android-7.1.0_r0.2/Documentation/arm/msm/msm_ipc_router.txt dracutdevs#2531 Signed-off-by: Jeremy Linton <[email protected]> (cherry picked from commit a8015f7)
MediaTek's PCIe (pcie-mediatek-gen3) and the PHY driver depends on `spmi-mtk-pmif` which is related to power domain. Power domain relate driver `spmi-mtk-pmif` must be included in the initramfs for supporting PCIe if user want to access peripherals during boot, for example, NVMe disks. So install all System Power Management Interface (SPMI) modules on ARM/RISC-V. Bug-openSUSE: https://bugzilla.suse.com/show_bug.cgi?id=1216767 Bug-Ubuntu: https://launchpad.net/bugs/2038512 Signed-off-by: Benjamin Drung <[email protected]> (cherry picked from commit 0ae5a98)
The MacBook Pro 2017 (MacBookPro14,1) connects the keyboard via SPI: ``` $ dmesg input: Apple SPI Keyboard as /devices/pci0000:00/0000:00:1e.3/pxa2xx-spi.3/spi_master/spi2/spi-APP000D:00/input/input4 ``` The SPI controller requires the `intel_lpss_pci` kernel module: ``` $ lspci -vv 00:1e.3 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO SPI Controller openSUSE#1 (rev 21) Subsystem: Intel Corporation Sunrise Point-LP Serial IO SPI Controller Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0, Cache Line Size: 256 bytes Interrupt: pin D routed to IRQ 23 Region 0: Memory at 9282c000 (64-bit, non-prefetchable) [size=4K] Capabilities: [80] Power Management version 3 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D3 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME- Capabilities: [90] Vendor Specific Information: Len=14 <?> Kernel driver in use: intel-lpss Kernel modules: intel_lpss_pci ``` Fedora builds `intel_lpss_pci` into the kernel: ``` $ grep INTEL_LPSS_PCI /lib/modules/6.5.11-300.fc39.x86_64/config CONFIG_MFD_INTEL_LPSS_PCI=y ``` But Ubuntu builds `intel_lpss_pci` only as module: ``` $ grep INTEL_LPSS_PCI /boot/config-6.5.0-10-generic CONFIG_MFD_INTEL_LPSS_PCI=m ``` So explicitly include `intel_lpss_pci` to support the keyboard. Bug-Ubuntu: https://launchpad.net/bugs/2042710 fixes: df381b7 ("feat(kernel-modules): driver support for macbook keyboards") Signed-off-by: Benjamin Drung <[email protected]> (cherry picked from commit 19a0ba9)
tblume
approved these changes
Nov 22, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix broken
pcsc
dracut module. I have a smart card reader, so I can confirm this module is broken without these patches. More info in the upstream PR:Add kernel drivers required for some ARM/RISC-V devices. Upstream PRs:
Fix for Apple SPI Keyboards, openSUSE builds
intel_lpss_pci
as a module. Upstream PR: