To be clear this issue started with Kernel 5.8.0-63 NOT 5.11 (on Focal /
20.04 HWE LTS)

Well Ubuntu Kernel Bot, that's exactly what I did in comment #14
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1937897/comments/14

Latest 5.13 kernel in -prosed on Focal (20.04.3) gets the same gpio
errors and warnings in dmesg and "journalctl -b" as with the current
5.11 HWE kernel.

X570 Motherboard
Ryzen 9 3950X Zen2 CPU

Same error appears twice during boot. Here's the output from "journalctl
-b"

---
sep. 12 15:37:43 tux kernel: gpio gpiochip1: (gpio_aaeon): tried to insert a 
GPIO chip with zero lines
sep. 12 15:37:43 tux kernel: gpiochip_add_data_with_key: GPIOs 0..-1 
(gpio_aaeon) failed to register, -22
sep. 12 15:37:43 tux kernel: gpio-aaeon: probe of gpio-aaeon.0 failed with 
error -22
sep. 12 15:37:44 tux kernel: gpio gpiochip1: (gpio_aaeon): tried to insert a 
GPIO chip with zero lines
sep. 12 15:37:44 tux kernel: gpiochip_add_data_with_key: GPIOs 0..-1 
(gpio_aaeon) failed to register, -22
sep. 12 15:37:44 tux kernel: gpio-aaeon: probe of gpio-aaeon.0 failed with 
error -22
---

They're both "gpiochip1 - GPIOs 0..-1", so why try again right after the
first fails?

Does NOT appear on my Intel NUC Core i3. It's a 2013 model but runs the
exact same kernel at least. Likely not on any Intel based motherboards.

-- 
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/1937897

Title:
  GPIO error logs in start and dmesg after update of kernel

Status in linux package in Ubuntu:
  In Progress
Status in linux source package in Hirsute:
  Fix Committed
Status in linux source package in Impish:
  In Progress

Bug description:
  [Impact]
  After upgrade kernel to 5.11.0-25 which introduce some ODM patches from 
AAEON, user encounters below errors
  [   5.852182] gpio gpiochip2: (gpio_aaeon): tried to insert a GPIO chip with 
zero lines
  [    5.852187] gpiochip_add_data_with_key: GPIOs 0..-1 (gpio_aaeon) failed to 
register, -22
  [    5.852194] gpio-aaeon: probe of gpio-aaeon.0 failed with error -22

  [Fix]
  AAEON provides a patch to check the BFPI version before loading the driver.
  Which fixes the issue introduced by
  Hirsute:
     45a8bb8699cc UBUNTU: ODM: mfd: Add support for IO functions of AAEON 
devices
  Impish:
     424945128781 UBUNTU: ODM: mfd: Add support for IO functions of AAEON 
devices

  
  [Test]
  Verified by AAEON.

  [Where problems could occur]
  It adds a check while probing the driver, should have no impact to normal 
user.

  =================================================

  After update from kernel 5.11.0-22 to 5.11.0-25 i see next logs error
  to gpio:

     5.852182] gpio gpiochip2: (gpio_aaeon): tried to insert a GPIO chip with 
zero lines
  [    5.852187] gpiochip_add_data_with_key: GPIOs 0..-1 (gpio_aaeon) failed to 
register, -22
  [    5.852194] gpio-aaeon: probe of gpio-aaeon.0 failed with error -22

  On pc:

      description: Desktop Computer
      product: System Product Name (SKU)
      vendor: ASUS
      version: System Version
      serial: System Serial Number
      width: 64 bits
      capabilities: smbios-3.3.0 dmi-3.3.0 smp vsyscall32
      configuration: boot=normal chassis=desktop family=To be filled by O.E.M. 
sku=SKU uuid=0ABCA172-BFA8-2AC5-FC37-3C7C3FD88FE4
    *-core
         description: Motherboard
         product: TUF GAMING B550M-PLUS (WI-FI)
         vendor: ASUSTeK COMPUTER INC.
         physical id: 0
         version: Rev X.0x
         serial: 201176738701636
         slot: Default string
       *-firmware
            description: BIOS
            vendor: American Megatrends Inc.
            physical id: 0
            version: 2403
            date: 06/16/2021
            size: 64KiB
            capacity: 16MiB
            capabilities: pci apm upgrade shadowing cdboot bootselect 
socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen 
int9keyboard int14serial int17printer acpi usb biosbootspecification uefi
       *-memory

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1937897/+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