OK,We'll do it!

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2070339

Title:
  [Lenovo Ubuntu 24.04 Bug] dmesg show "spi-nor: probe of spi0.0 failed
  with error -95"

Status in linux package in Ubuntu:
  In Progress
Status in linux source package in Noble:
  Fix Committed

Bug description:
  Fresh install Ubuntu 24.04 on Lenovo systems with Birch Stream SFR and
  check kernel boot log "dmesg", there is an error of spi-nor show up as
  follows:

  spi-nor: probe of spi0.0 failed with error -95

  while open kernel dynamic debugging of spi-nor, kernel log show as:

  [    7.143574] calling  spi_nor_module_init+0x0/0xff0 [spi_nor] @ 1714
  [    7.145046] calling  iaa_crypto_init_module+0x0/0xff0 [iaa_crypto] @ 1611
  [    7.146116] [1714] spi-nor spi0.0: Manufacturer and device ID: ef6020000000
  [    7.146133] [1714] spi-nor spi0.0: error -95 reading CR
  [    7.146135] spi-nor: probe of spi0.0 failed with error -95

  Since upstream 6.7.0 has more details info output, I applied it and it
  was:

  [   15.425497] calling  spi_nor_module_init+0x0/0xff0 [spi_nor] @ 2944
  [   15.426707] spi-nor spi0.0: w25q512nwq (65536 Kbytes)
  [   15.426714] [2944] spi-nor spi0.0: mtd .name = 0000:00:1f.5, .size = 
0x4000000 (64MiB), .erasesize = 0x00001000 (4KiB) .numeraseregions = 0
  [   15.426735] [2944] spi-nor spi0.0: error -524 reading CR
  [   15.426738] spi-nor: probe of spi0.0 failed with error -524
  [   15.426780] probe of spi0.0 returned 524 after 1247 usecs
  [   15.426797] initcall spi_nor_module_init+0x0/0xff0 [spi_nor] returned 0 
after 1282 usecs

  
  SRU Justification:
  ==============
  [Impact]
  During bootup, the error is shown in dmesg:
  [ 7.146116] [1714] spi-nor spi0.0: Manufacturer and device ID: ef6020000000
  [ 7.146133] [1714] spi-nor spi0.0: error -95 reading CR
  [ 7.146135] spi-nor: probe of spi0.0 failed with error -95

  [Fix]
  Handle the failed case of -EOPNOTSUPP,
  and correct the condition of error report.
  upstream commit in 6.10:
  fe0b8213c0129 mtd: core: Don't fail mtd_otp_nvmem_add() if OTP is unsupported
  5043e55536015 mtd: core: Align comment with an action in mtd_otp_nvmem_add()

  [Test]
  Vendor tested on hardware, there is no error on the testing built
  kernel.

  [Where problems could occur]
  It may break spi-nor flash support.

  Both 2 commits are in 6.10 kernel, so SRU for noble-6.8 only.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2070339/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to