You are not logged in.

#1 2020-08-15 05:56:11

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,563

[Solved] Missing xhci_pci firmware on upgrade to linux-5.8.1

mkinitcpio flagged a missing xhci_pci firmware on updating to the current kernel. There is already a thread here during testing regarding this so it seems ok.
I just wanted to check again if anyone knows if there are side-effects to this missing firmware and/or if it will be patched later on with a linux-firmware update.

Last edited by d_fajardo (2020-09-09 06:56:45)

Offline

#2 2020-08-15 21:28:21

WFV
Member
From: ☭USSA⛧⭒⭒⭒⭒
Registered: 2013-04-23
Posts: 288

Re: [Solved] Missing xhci_pci firmware on upgrade to linux-5.8.1

Journal shows xhci without error:

Aug 14 21:56:12 archlinux kernel: xhci_hcd 0000:02:00.0: xHCI Host Controller
Aug 14 21:56:12 archlinux kernel: xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 1
Aug 14 21:56:12 archlinux kernel: xhci_hcd 0000:02:00.0: hcc params 0x0200f180 hci version 0x96 quirks 0x0000000000080000
Aug 14 21:56:12 archlinux kernel: usb usb1: Manufacturer: Linux 5.8.1-arch1-1 xhci-hcd
Aug 14 21:56:12 archlinux kernel: xhci_hcd 0000:02:00.0: xHCI Host Controller
Aug 14 21:56:12 archlinux kernel: xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 2
Aug 14 21:56:12 archlinux kernel: xhci_hcd 0000:02:00.0: Host supports USB 3.0 SuperSpeed
Aug 14 21:56:12 archlinux kernel: usb usb2: Manufacturer: Linux 5.8.1-arch1-1 xhci-hcd
Aug 15 14:03:37 arch-pelago kernel: Modules linked in: fuse rfkill ts_kmp ipt_REJECT nf_reject_ipv4 xt_string hwmon_vid iptable_filter kvm_amd ccp snd_hda_codec_realtek rng_core snd_hda_codec_generic snd_hda_codec_hdmi ledtrig_audio mousedev input_leds pktcdvd kvm snd_hda_intel snd_intel_dspcfg snd_hda_codec irqbypass hid_generic snd_hda_core crct10dif_pclmul snd_hwdep ppdev wmi_bmof crc32_pclmul snd_pcm ghash_clmulni_intel uas usbhid usb_storage aesni_intel hid snd_timer crypto_simd pcspkr k10temp fam15h_power r8169 cryptd snd glue_helper i2c_piix4 realtek soundcore libphy parport_pc wmi parport asus_atk0110 evdev mac_hid acpi_cpufreq vboxnetflt(OE) vboxnetadp(OE) vboxdrv(OE) usbip_host usbip_core sg ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 ohci_pci crc32c_intel ohci_hcd ehci_pci sr_mod ehci_hcd cdrom xhci_pci xhci_pci_renesas xhci_hcd amdgpu gpu_sched i2c_algo_bit ttm drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops cec rc_core drm agpgart

xhci_pci in Modules linked in.
Otherwise, this pc isn't seeing USB3.0 device when I connect one to an USB3 port, but does see (+mount) it if I plug into a lesser port, in reference to possible side-effects.
This an old machine c.2012. The USB3 device is an NTFS drive, it connected to 3.0 ports without issue prior to LK5.8

EDIT: per loqs response #4 - I actually hadn't tested that drive in the usb3 port since 5.5.y or earlier, only checked it after mkinitcpio mentioned xhci driver message. Perhaps can boot lts and see if it connects via usb3 port. Thank you.

Last edited by WFV (2020-08-16 15:53:41)


∞ hard times make the strong, the strong make good times, good times make the weak, the weak make hard times ∞

Offline

#3 2020-08-15 22:04:58

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,563

Re: [Solved] Missing xhci_pci firmware on upgrade to linux-5.8.1

My USB3 seems to be initially OK but I have to try other USB3 devices. I guess watch this space.

Offline

#4 2020-08-16 00:04:08

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: [Solved] Missing xhci_pci firmware on upgrade to linux-5.8.1

https://github.com/torvalds/linux/commi … 11094b6f09 added support for Renesas uPD720201 and uPD720202 which need firmware.
With 5.7.y those controllers were not supported,  so if your controller worked previously it could not be one of those and will not be affected by the commit.

Offline

#5 2020-08-17 11:58:04

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,563

Re: [Solved] Missing xhci_pci firmware on upgrade to linux-5.8.1

There seems to be some issues with virtualbox that seems to be related to this.
https://bbs.archlinux.org/viewtopic.php?id=258217

Offline

#6 2020-08-19 23:00:22

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: [Solved] Missing xhci_pci firmware on upgrade to linux-5.8.1

Does reverting the addition of uPD720201 and uPD720202 support resolve the virtualbox issue?

There were other USB changes in 5.8 https://kernelnewbies.org/Linux_5.8#Uni … Serial_Bus

Offline

#7 2020-08-20 06:31:10

luser
Member
Registered: 2016-08-27
Posts: 114

Re: [Solved] Missing xhci_pci firmware on upgrade to linux-5.8.1

loqs wrote:

https://github.com/torvalds/linux/commi … 11094b6f09 added support for Renesas uPD720201 and uPD720202 which need firmware.
With 5.7.y those controllers were not supported,  so if your controller worked previously it could not be one of those and will not be affected by the commit.

Maybe I'm missing your point, but I have a Renesas uPD720202 USB 3.0 controller, and it DID work with 5.7.12-arch1-1, but it does NOT work with kernel 5.8.1.


luser: an epithet applied by Windows users to linux users

Offline

#8 2020-08-20 08:03:25

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,563

Re: [Solved] Missing xhci_pci firmware on upgrade to linux-5.8.1

Does reverting the addition of uPD720201 and uPD720202 support resolve the virtualbox issue?
I'm not affected by this but just out of curiosity, how does one do that?

@luser It does look like the missing xhci_pci firmware has an effect. I'm not sure why the modules are there in the kernel but not the firmware which also proves my confusion.

Offline

#9 2020-08-20 13:27:00

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: [Solved] Missing xhci_pci firmware on upgrade to linux-5.8.1

In the prepare function add git revert -n a66d21d7dba84deeaf3b296c43eafc11094b6f09 just  before patches are applied,  so it becomes:

prepare() {
  cd $_srcname

  echo "Setting version..."
  scripts/setlocalversion --save-scmversion
  echo "-$pkgrel" > localversion.10-pkgrel
  echo "${pkgbase#linux}" > localversion.20-pkgname

  git revert -n a66d21d7dba84deeaf3b296c43eafc11094b6f09

  local src
  for src in "${source[@]}"; do
    src="${src%%::*}"
    src="${src##*/}"
    [[ $src = *.patch ]] || continue
    echo "Applying patch $src..."
    patch -Np1 < "../$src"
  done

  echo "Setting config..."
  cp ../config .config
  make olddefconfig

  make -s kernelrelease > version
  echo "Prepared $pkgbase version $(<version)"
}

Last edited by loqs (2020-08-20 13:27:15)

Offline

#10 2020-08-20 15:37:56

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,563

Re: [Solved] Missing xhci_pci firmware on upgrade to linux-5.8.1

Thanks loqs. As I said, I'm not affected by this but others will find that useful and I might copy that script for future reference.

Offline

#11 2020-08-23 16:17:56

W54J04S07T
Member
Registered: 2016-06-27
Posts: 100

Re: [Solved] Missing xhci_pci firmware on upgrade to linux-5.8.1

WARNING: Possibly missing firmware for module: xhci_pc

is still in 5.8.3 kernel mkinitcpio...

Looks like the 5.8 kernel is effectively sabotaged.
Hope this doen't carry on into 5.9...

Last edited by W54J04S07T (2020-08-23 16:18:13)

Offline

#12 2020-08-23 19:59:35

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: [Solved] Missing xhci_pci firmware on upgrade to linux-5.8.1

W54J04S07T wrote:

WARNING: Possibly missing firmware for module: xhci_pc

is still in 5.8.3 kernel mkinitcpio...

Looks like the 5.8 kernel is effectively sabotaged.
Hope this doen't carry on into 5.9...

How is a warning message from mkinitcpio sabotaging the 5.8 kernel?
Edit:
What if you create an empty /usr/lib/firmware/renesas_usb_fw.mem to satisfy mkinitcpio?  If you do not have a controller needing it the empty file should not be loaded.

Last edited by loqs (2020-08-23 21:19:39)

Offline

#13 2020-08-24 13:43:25

philo
Member
Registered: 2015-01-26
Posts: 251

Re: [Solved] Missing xhci_pci firmware on upgrade to linux-5.8.1

With linux LTS, lsmod says:

$ lsmod | grep xhci_pci
xhci_pci               20480  0
xhci_hcd              278528  1 xhci_pci

With linux 5.8.3, it says:

$ lsmod | grep xhci_pci
xhci_pci               20480  0
xhci_pci_renesas       20480  1 xhci_pci
xhci_hcd              286720  1 xhci_pci

meaning I have renesas?

Last edited by philo (2020-08-24 14:28:01)

Offline

#14 2020-08-24 16:57:44

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,563

Re: [Solved] Missing xhci_pci firmware on upgrade to linux-5.8.1

loqs wrote:

What if you create an empty /usr/lib/firmware/renesas_usb_fw.mem to satisfy mkinitcpio?

I experimented on this and it works. I don't get the warning generating mkinitcpio. Does this cosmetic does any harm when there is indeed a need for renesas.

philo wrote:

meaning I have renesas?

Yes you have renesas by the look of it but that's the module. The firmware is missing unless I would assume you actually have a renesas device.

Still though, as luser posted earlier in this thread, there still exist issues with this module.

Offline

#15 2020-08-24 18:07:15

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: [Solved] Missing xhci_pci firmware on upgrade to linux-5.8.1

d_fajardo wrote:
loqs wrote:

What if you create an empty /usr/lib/firmware/renesas_usb_fw.mem to satisfy mkinitcpio?

I experimented on this and it works. I don't get the warning generating mkinitcpio. Does this cosmetic does any harm when there is indeed a need for renesas.

When the firmware is required and is not present,  kernel message: Direct firmware load for renesas_usb_fw.mem failed with error
When the firmware is required and is an empty file,  kernel message: FW has invalid version,  followed by the above message.

Offline

#16 2020-09-08 23:19:45

luser
Member
Registered: 2016-08-27
Posts: 114

Re: [Solved] Missing xhci_pci firmware on upgrade to linux-5.8.1

In case anyone winds up here and doesn't know what to do. . .

$ lspci | grep -i renesas

If the above produces a result, you have hardware that requires the firmware. Otherwise, you don't need to worry about it. If you do have such hardware, find and install "upd72020x-fw" in the AUR. That should get your Renesas USB hardware working again and eliminate the message about missing firmware when mkinitcpio runs.

Last edited by luser (2020-09-09 20:22:27)


luser: an epithet applied by Windows users to linux users

Offline

#17 2020-09-09 06:56:24

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,563

Re: [Solved] Missing xhci_pci firmware on upgrade to linux-5.8.1

Ill mark this as 'Solved' since the firmware is now available to install.

Offline

Board footer

Powered by FluxBB