Activity log for bug #1953613

Date Who What changed Old value New value Message
2021-12-08 12:19:54 Arthur Magill bug added bug
2021-12-08 12:30:09 Ubuntu Kernel Bot linux (Ubuntu): status New Incomplete
2021-12-08 13:46:16 Arthur Magill tags apport-collected impish
2021-12-08 13:46:17 Arthur Magill description The current versions of gpiod, libgpiod-dev and libgpiod2 (1.6.2-1) use version 1 of the GPIO character device API. However, they cannot work because the interface is disabled in the default kernel (tested with 5.13.19). After rebuilding the kernel with the option CONFIG_GPIO_CDEV_V1=y, the gpiod tools work as expected. What I expect to happen: $ gpiodetect gpiochip0 [0-003c] (8 lines) $ gpioinfo gpiochip0 - 8 lines: line 0: unnamed unused output active-high line 1: unnamed unused output active-high line 2: unnamed unused output active-high line 3: unnamed unused output active-high line 4: unnamed unused output active-high line 5: unnamed unused output active-high line 6: unnamed unused input active-high line 7: unnamed unused input active-high $ gpioget gpiochip0 0 1 What actually happens: $ gpiodetect gpiochip0 [0-003c] (8 lines) $ gpioinfo gpioinfo: error creating line iterator: Invalid argument $ gpioget gpiochip0 0 gpioget: error reading GPIO values: Invalid argument $ cat /proc/version_signature Ubuntu 5.13.0-22.22-lowlatency 5.13.19 $ apt-cache policy libgpiod2 libgpiod2: Installed: 1.6.2-1 Candidate: 1.6.2-1 Version table: *** 1.6.2-1 500 500 http://de.archive.ubuntu.com/ubuntu impish/universe amd64 Packages 100 /var/lib/dpkg/status I am testing with the onboard PCA9554A on a Fujitsu D3641-S motherboard. $ lspci | grep -i smb 00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10) $ lspci -s 1f.4 -vvv 00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10) DeviceName: Onboard - Other Subsystem: Fujitsu Technology Solutions Cannon Lake PCH SMBus Controller Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Interrupt: pin A routed to IRQ 16 Region 0: Memory at 6013106000 (64-bit, non-prefetchable) [size=256] Region 4: I/O ports at efa0 [size=32] Kernel driver in use: i801_smbus Kernel modules: i2c_i801 The current versions of gpiod, libgpiod-dev and libgpiod2 (1.6.2-1) use version 1 of the GPIO character device API. However, they cannot work because the interface is disabled in the default kernel (tested with 5.13.19). After rebuilding the kernel with the option CONFIG_GPIO_CDEV_V1=y, the gpiod tools work as expected. What I expect to happen: $ gpiodetect gpiochip0 [0-003c] (8 lines) $ gpioinfo gpiochip0 - 8 lines: line 0: unnamed unused output active-high line 1: unnamed unused output active-high line 2: unnamed unused output active-high line 3: unnamed unused output active-high line 4: unnamed unused output active-high line 5: unnamed unused output active-high line 6: unnamed unused input active-high line 7: unnamed unused input active-high $ gpioget gpiochip0 0 1 What actually happens: $ gpiodetect gpiochip0 [0-003c] (8 lines) $ gpioinfo gpioinfo: error creating line iterator: Invalid argument $ gpioget gpiochip0 0 gpioget: error reading GPIO values: Invalid argument $ cat /proc/version_signature Ubuntu 5.13.0-22.22-lowlatency 5.13.19 $ apt-cache policy libgpiod2 libgpiod2: Installed: 1.6.2-1 Candidate: 1.6.2-1 Version table: *** 1.6.2-1 500 500 http://de.archive.ubuntu.com/ubuntu impish/universe amd64 Packages 100 /var/lib/dpkg/status I am testing with the onboard PCA9554A on a Fujitsu D3641-S motherboard. $ lspci | grep -i smb 00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10) $ lspci -s 1f.4 -vvv 00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10) DeviceName: Onboard - Other Subsystem: Fujitsu Technology Solutions Cannon Lake PCH SMBus Controller Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Interrupt: pin A routed to IRQ 16 Region 0: Memory at 6013106000 (64-bit, non-prefetchable) [size=256] Region 4: I/O ports at efa0 [size=32] Kernel driver in use: i801_smbus Kernel modules: i2c_i801 --- ProblemType: Bug ApportVersion: 2.20.11-0ubuntu71 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC0: dkfz 4589 F.... pulseaudio /dev/snd/controlC1: dkfz 4589 F.... pulseaudio CasperMD5CheckResult: unknown CurrentDesktop: ubuntu:GNOME DistroRelease: Ubuntu 21.10 InstallationDate: Installed on 2018-11-12 (1122 days ago) InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725) Lsusb: Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 7392:a812 Edimax Technology Co., Ltd Edimax AC600 USB Bus 001 Device 002: ID 256f:c650 3Dconnexion CadMouse Bus 001 Device 004: ID 046d:c336 Logitech, Inc. Gaming Keyboard G213 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub NonfreeKernelModules: nvidia_modeset nvidia Package: linux (not installed) ProcFB: 0 i915drmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.13.19 root=UUID=75550043-7044-41bf-a01e-bf41b267f7d0 ro ProcVersionSignature: Ubuntu 5.13.0-22.22-lowlatency 5.13.19 RelatedPackageVersions: linux-restricted-modules-5.13.19 N/A linux-backports-modules-5.13.19 N/A linux-firmware 1.201.1 RfKill: 0: phy0: Wireless LAN Soft blocked: no Hard blocked: no Tags: impish Uname: Linux 5.13.19 x86_64 UpgradeStatus: Upgraded to impish on 2021-10-19 (49 days ago) UserGroups: sudo WifiSyslog: _MarkForUpload: True dmi.bios.date: 02/18/2021 dmi.bios.release: 1.12 dmi.bios.vendor: FUJITSU // American Megatrends Inc. dmi.bios.version: V5.0.0.13 R1.12.0 for D3641-S1x dmi.board.name: D3641-S1 dmi.board.vendor: FUJITSU dmi.board.version: S26361-D3641-S1 dmi.chassis.type: 3 dmi.chassis.vendor: FUJITSU dmi.modalias: dmi:bvnFUJITSU//AmericanMegatrendsInc.:bvrV5.0.0.13R1.12.0forD3641-S1x:bd02/18/2021:br1.12:svnFUJITSU:pn:pvr:rvnFUJITSU:rnD3641-S1:rvrS26361-D3641-S1:cvnFUJITSU:ct3:cvr:sku: dmi.product.family: ESPRIMO-FTS dmi.sys.vendor: FUJITSU
2021-12-08 13:46:18 Arthur Magill attachment added AlsaInfo.txt https://bugs.launchpad.net/bugs/1953613/+attachment/5546262/+files/AlsaInfo.txt
2021-12-08 13:46:20 Arthur Magill attachment added CRDA.txt https://bugs.launchpad.net/bugs/1953613/+attachment/5546263/+files/CRDA.txt
2021-12-08 13:46:22 Arthur Magill attachment added CurrentDmesg.txt https://bugs.launchpad.net/bugs/1953613/+attachment/5546264/+files/CurrentDmesg.txt
2021-12-08 13:46:23 Arthur Magill attachment added IwConfig.txt https://bugs.launchpad.net/bugs/1953613/+attachment/5546265/+files/IwConfig.txt
2021-12-08 13:46:24 Arthur Magill attachment added Lspci.txt https://bugs.launchpad.net/bugs/1953613/+attachment/5546266/+files/Lspci.txt
2021-12-08 13:46:25 Arthur Magill attachment added Lspci-vt.txt https://bugs.launchpad.net/bugs/1953613/+attachment/5546267/+files/Lspci-vt.txt
2021-12-08 13:46:26 Arthur Magill attachment added Lsusb-t.txt https://bugs.launchpad.net/bugs/1953613/+attachment/5546268/+files/Lsusb-t.txt
2021-12-08 13:46:28 Arthur Magill attachment added Lsusb-v.txt https://bugs.launchpad.net/bugs/1953613/+attachment/5546269/+files/Lsusb-v.txt
2021-12-08 13:46:29 Arthur Magill attachment added PaInfo.txt https://bugs.launchpad.net/bugs/1953613/+attachment/5546270/+files/PaInfo.txt
2021-12-08 13:46:30 Arthur Magill attachment added ProcCpuinfo.txt https://bugs.launchpad.net/bugs/1953613/+attachment/5546271/+files/ProcCpuinfo.txt
2021-12-08 13:46:31 Arthur Magill attachment added ProcCpuinfoMinimal.txt https://bugs.launchpad.net/bugs/1953613/+attachment/5546272/+files/ProcCpuinfoMinimal.txt
2021-12-08 13:46:32 Arthur Magill attachment added ProcEnviron.txt https://bugs.launchpad.net/bugs/1953613/+attachment/5546273/+files/ProcEnviron.txt
2021-12-08 13:46:34 Arthur Magill attachment added ProcInterrupts.txt https://bugs.launchpad.net/bugs/1953613/+attachment/5546274/+files/ProcInterrupts.txt
2021-12-08 13:46:35 Arthur Magill attachment added ProcModules.txt https://bugs.launchpad.net/bugs/1953613/+attachment/5546275/+files/ProcModules.txt
2021-12-08 13:46:37 Arthur Magill attachment added PulseList.txt https://bugs.launchpad.net/bugs/1953613/+attachment/5546276/+files/PulseList.txt
2021-12-08 13:46:38 Arthur Magill attachment added UdevDb.txt https://bugs.launchpad.net/bugs/1953613/+attachment/5546277/+files/UdevDb.txt
2021-12-08 13:46:40 Arthur Magill attachment added acpidump.txt https://bugs.launchpad.net/bugs/1953613/+attachment/5546278/+files/acpidump.txt
2021-12-08 13:47:12 Arthur Magill linux (Ubuntu): status Incomplete Confirmed
2021-12-08 13:50:43 Arthur Magill description The current versions of gpiod, libgpiod-dev and libgpiod2 (1.6.2-1) use version 1 of the GPIO character device API. However, they cannot work because the interface is disabled in the default kernel (tested with 5.13.19). After rebuilding the kernel with the option CONFIG_GPIO_CDEV_V1=y, the gpiod tools work as expected. What I expect to happen: $ gpiodetect gpiochip0 [0-003c] (8 lines) $ gpioinfo gpiochip0 - 8 lines: line 0: unnamed unused output active-high line 1: unnamed unused output active-high line 2: unnamed unused output active-high line 3: unnamed unused output active-high line 4: unnamed unused output active-high line 5: unnamed unused output active-high line 6: unnamed unused input active-high line 7: unnamed unused input active-high $ gpioget gpiochip0 0 1 What actually happens: $ gpiodetect gpiochip0 [0-003c] (8 lines) $ gpioinfo gpioinfo: error creating line iterator: Invalid argument $ gpioget gpiochip0 0 gpioget: error reading GPIO values: Invalid argument $ cat /proc/version_signature Ubuntu 5.13.0-22.22-lowlatency 5.13.19 $ apt-cache policy libgpiod2 libgpiod2: Installed: 1.6.2-1 Candidate: 1.6.2-1 Version table: *** 1.6.2-1 500 500 http://de.archive.ubuntu.com/ubuntu impish/universe amd64 Packages 100 /var/lib/dpkg/status I am testing with the onboard PCA9554A on a Fujitsu D3641-S motherboard. $ lspci | grep -i smb 00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10) $ lspci -s 1f.4 -vvv 00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10) DeviceName: Onboard - Other Subsystem: Fujitsu Technology Solutions Cannon Lake PCH SMBus Controller Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Interrupt: pin A routed to IRQ 16 Region 0: Memory at 6013106000 (64-bit, non-prefetchable) [size=256] Region 4: I/O ports at efa0 [size=32] Kernel driver in use: i801_smbus Kernel modules: i2c_i801 --- ProblemType: Bug ApportVersion: 2.20.11-0ubuntu71 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC0: dkfz 4589 F.... pulseaudio /dev/snd/controlC1: dkfz 4589 F.... pulseaudio CasperMD5CheckResult: unknown CurrentDesktop: ubuntu:GNOME DistroRelease: Ubuntu 21.10 InstallationDate: Installed on 2018-11-12 (1122 days ago) InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725) Lsusb: Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 7392:a812 Edimax Technology Co., Ltd Edimax AC600 USB Bus 001 Device 002: ID 256f:c650 3Dconnexion CadMouse Bus 001 Device 004: ID 046d:c336 Logitech, Inc. Gaming Keyboard G213 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub NonfreeKernelModules: nvidia_modeset nvidia Package: linux (not installed) ProcFB: 0 i915drmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.13.19 root=UUID=75550043-7044-41bf-a01e-bf41b267f7d0 ro ProcVersionSignature: Ubuntu 5.13.0-22.22-lowlatency 5.13.19 RelatedPackageVersions: linux-restricted-modules-5.13.19 N/A linux-backports-modules-5.13.19 N/A linux-firmware 1.201.1 RfKill: 0: phy0: Wireless LAN Soft blocked: no Hard blocked: no Tags: impish Uname: Linux 5.13.19 x86_64 UpgradeStatus: Upgraded to impish on 2021-10-19 (49 days ago) UserGroups: sudo WifiSyslog: _MarkForUpload: True dmi.bios.date: 02/18/2021 dmi.bios.release: 1.12 dmi.bios.vendor: FUJITSU // American Megatrends Inc. dmi.bios.version: V5.0.0.13 R1.12.0 for D3641-S1x dmi.board.name: D3641-S1 dmi.board.vendor: FUJITSU dmi.board.version: S26361-D3641-S1 dmi.chassis.type: 3 dmi.chassis.vendor: FUJITSU dmi.modalias: dmi:bvnFUJITSU//AmericanMegatrendsInc.:bvrV5.0.0.13R1.12.0forD3641-S1x:bd02/18/2021:br1.12:svnFUJITSU:pn:pvr:rvnFUJITSU:rnD3641-S1:rvrS26361-D3641-S1:cvnFUJITSU:ct3:cvr:sku: dmi.product.family: ESPRIMO-FTS dmi.sys.vendor: FUJITSU The current versions of gpiod, libgpiod-dev and libgpiod2 (1.6.2-1) use version 1 of the GPIO character device API. However, they cannot work because the interface is disabled in the default kernel (tested with 5.13.19). After rebuilding the kernel with the option CONFIG_GPIO_CDEV_V1=y, the gpiod tools work as expected. Thanks to Marek Szuba, who reported the same bug for Gentoo (https://bugs.gentoo.org/807334), pointing me in the right direction. What I expect to happen: $ gpiodetect gpiochip0 [0-003c] (8 lines) $ gpioinfo gpiochip0 - 8 lines:  line 0: unnamed unused output active-high  line 1: unnamed unused output active-high  line 2: unnamed unused output active-high  line 3: unnamed unused output active-high  line 4: unnamed unused output active-high  line 5: unnamed unused output active-high  line 6: unnamed unused input active-high  line 7: unnamed unused input active-high $ gpioget gpiochip0 0 1 What actually happens: $ gpiodetect gpiochip0 [0-003c] (8 lines) $ gpioinfo gpioinfo: error creating line iterator: Invalid argument $ gpioget gpiochip0 0 gpioget: error reading GPIO values: Invalid argument $ cat /proc/version_signature Ubuntu 5.13.0-22.22-lowlatency 5.13.19 $ apt-cache policy libgpiod2 libgpiod2:   Installed: 1.6.2-1   Candidate: 1.6.2-1   Version table:  *** 1.6.2-1 500         500 http://de.archive.ubuntu.com/ubuntu impish/universe amd64 Packages         100 /var/lib/dpkg/status I am testing with the onboard PCA9554A on a Fujitsu D3641-S motherboard. $ lspci | grep -i smb 00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10) $ lspci -s 1f.4 -vvv 00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)  DeviceName: Onboard - Other  Subsystem: Fujitsu Technology Solutions Cannon Lake PCH SMBus Controller  Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-  Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-  Interrupt: pin A routed to IRQ 16  Region 0: Memory at 6013106000 (64-bit, non-prefetchable) [size=256]  Region 4: I/O ports at efa0 [size=32]  Kernel driver in use: i801_smbus  Kernel modules: i2c_i801 --- ProblemType: Bug ApportVersion: 2.20.11-0ubuntu71 Architecture: amd64 AudioDevicesInUse:  USER PID ACCESS COMMAND  /dev/snd/controlC0: dkfz 4589 F.... pulseaudio  /dev/snd/controlC1: dkfz 4589 F.... pulseaudio CasperMD5CheckResult: unknown CurrentDesktop: ubuntu:GNOME DistroRelease: Ubuntu 21.10 InstallationDate: Installed on 2018-11-12 (1122 days ago) InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725) Lsusb:  Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub  Bus 001 Device 003: ID 7392:a812 Edimax Technology Co., Ltd Edimax AC600 USB  Bus 001 Device 002: ID 256f:c650 3Dconnexion CadMouse  Bus 001 Device 004: ID 046d:c336 Logitech, Inc. Gaming Keyboard G213  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub NonfreeKernelModules: nvidia_modeset nvidia Package: linux (not installed) ProcFB: 0 i915drmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.13.19 root=UUID=75550043-7044-41bf-a01e-bf41b267f7d0 ro ProcVersionSignature: Ubuntu 5.13.0-22.22-lowlatency 5.13.19 RelatedPackageVersions:  linux-restricted-modules-5.13.19 N/A  linux-backports-modules-5.13.19 N/A  linux-firmware 1.201.1 RfKill:  0: phy0: Wireless LAN   Soft blocked: no   Hard blocked: no Tags: impish Uname: Linux 5.13.19 x86_64 UpgradeStatus: Upgraded to impish on 2021-10-19 (49 days ago) UserGroups: sudo WifiSyslog: _MarkForUpload: True dmi.bios.date: 02/18/2021 dmi.bios.release: 1.12 dmi.bios.vendor: FUJITSU // American Megatrends Inc. dmi.bios.version: V5.0.0.13 R1.12.0 for D3641-S1x dmi.board.name: D3641-S1 dmi.board.vendor: FUJITSU dmi.board.version: S26361-D3641-S1 dmi.chassis.type: 3 dmi.chassis.vendor: FUJITSU dmi.modalias: dmi:bvnFUJITSU//AmericanMegatrendsInc.:bvrV5.0.0.13R1.12.0forD3641-S1x:bd02/18/2021:br1.12:svnFUJITSU:pn:pvr:rvnFUJITSU:rnD3641-S1:rvrS26361-D3641-S1:cvnFUJITSU:ct3:cvr:sku: dmi.product.family: ESPRIMO-FTS dmi.sys.vendor: FUJITSU
2022-02-15 17:56:06 Massimo Dal Zotto bug added subscriber Massimo Dal Zotto
2022-07-20 09:45:28 Emil Renner Berthing description The current versions of gpiod, libgpiod-dev and libgpiod2 (1.6.2-1) use version 1 of the GPIO character device API. However, they cannot work because the interface is disabled in the default kernel (tested with 5.13.19). After rebuilding the kernel with the option CONFIG_GPIO_CDEV_V1=y, the gpiod tools work as expected. Thanks to Marek Szuba, who reported the same bug for Gentoo (https://bugs.gentoo.org/807334), pointing me in the right direction. What I expect to happen: $ gpiodetect gpiochip0 [0-003c] (8 lines) $ gpioinfo gpiochip0 - 8 lines:  line 0: unnamed unused output active-high  line 1: unnamed unused output active-high  line 2: unnamed unused output active-high  line 3: unnamed unused output active-high  line 4: unnamed unused output active-high  line 5: unnamed unused output active-high  line 6: unnamed unused input active-high  line 7: unnamed unused input active-high $ gpioget gpiochip0 0 1 What actually happens: $ gpiodetect gpiochip0 [0-003c] (8 lines) $ gpioinfo gpioinfo: error creating line iterator: Invalid argument $ gpioget gpiochip0 0 gpioget: error reading GPIO values: Invalid argument $ cat /proc/version_signature Ubuntu 5.13.0-22.22-lowlatency 5.13.19 $ apt-cache policy libgpiod2 libgpiod2:   Installed: 1.6.2-1   Candidate: 1.6.2-1   Version table:  *** 1.6.2-1 500         500 http://de.archive.ubuntu.com/ubuntu impish/universe amd64 Packages         100 /var/lib/dpkg/status I am testing with the onboard PCA9554A on a Fujitsu D3641-S motherboard. $ lspci | grep -i smb 00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10) $ lspci -s 1f.4 -vvv 00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)  DeviceName: Onboard - Other  Subsystem: Fujitsu Technology Solutions Cannon Lake PCH SMBus Controller  Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-  Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-  Interrupt: pin A routed to IRQ 16  Region 0: Memory at 6013106000 (64-bit, non-prefetchable) [size=256]  Region 4: I/O ports at efa0 [size=32]  Kernel driver in use: i801_smbus  Kernel modules: i2c_i801 --- ProblemType: Bug ApportVersion: 2.20.11-0ubuntu71 Architecture: amd64 AudioDevicesInUse:  USER PID ACCESS COMMAND  /dev/snd/controlC0: dkfz 4589 F.... pulseaudio  /dev/snd/controlC1: dkfz 4589 F.... pulseaudio CasperMD5CheckResult: unknown CurrentDesktop: ubuntu:GNOME DistroRelease: Ubuntu 21.10 InstallationDate: Installed on 2018-11-12 (1122 days ago) InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725) Lsusb:  Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub  Bus 001 Device 003: ID 7392:a812 Edimax Technology Co., Ltd Edimax AC600 USB  Bus 001 Device 002: ID 256f:c650 3Dconnexion CadMouse  Bus 001 Device 004: ID 046d:c336 Logitech, Inc. Gaming Keyboard G213  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub NonfreeKernelModules: nvidia_modeset nvidia Package: linux (not installed) ProcFB: 0 i915drmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.13.19 root=UUID=75550043-7044-41bf-a01e-bf41b267f7d0 ro ProcVersionSignature: Ubuntu 5.13.0-22.22-lowlatency 5.13.19 RelatedPackageVersions:  linux-restricted-modules-5.13.19 N/A  linux-backports-modules-5.13.19 N/A  linux-firmware 1.201.1 RfKill:  0: phy0: Wireless LAN   Soft blocked: no   Hard blocked: no Tags: impish Uname: Linux 5.13.19 x86_64 UpgradeStatus: Upgraded to impish on 2021-10-19 (49 days ago) UserGroups: sudo WifiSyslog: _MarkForUpload: True dmi.bios.date: 02/18/2021 dmi.bios.release: 1.12 dmi.bios.vendor: FUJITSU // American Megatrends Inc. dmi.bios.version: V5.0.0.13 R1.12.0 for D3641-S1x dmi.board.name: D3641-S1 dmi.board.vendor: FUJITSU dmi.board.version: S26361-D3641-S1 dmi.chassis.type: 3 dmi.chassis.vendor: FUJITSU dmi.modalias: dmi:bvnFUJITSU//AmericanMegatrendsInc.:bvrV5.0.0.13R1.12.0forD3641-S1x:bd02/18/2021:br1.12:svnFUJITSU:pn:pvr:rvnFUJITSU:rnD3641-S1:rvrS26361-D3641-S1:cvnFUJITSU:ct3:cvr:sku: dmi.product.family: ESPRIMO-FTS dmi.sys.vendor: FUJITSU [Impact] * The libgpiod2 library and gpiod tools shipped in Jammy don't work. * These tools are meant to replace the old sysfs interface and be a better and more efficient way to manipulate GPIOs from userspace. Unfortunately the latest release is still using v1 of the character device kernel API which is not enabled in Ubuntu kernels. * This is Kent Gibsons reply on the linux-gpio mailing list: On Tue, Jul 12, 2022 at 09:48:45AM +0200, Alexandre Ghiti wrote: > Hi, > > Ubuntu kernels do not enable GPIO_CDEV_V1 as it is deprecated, but the > libgpiod package that we ship is still based on the latest version > 1.6.3 which does not implement the API v2. So I'd like to update > libgpiod, do you have any recommendations about what branch/sha1 I > should use? Do you plan to make a release that implements the API v2? > Firstly, libgpiod is Bart's library so he is the authority, but this is my understanding... TLDR: You should keep GPIO_CDEV_V1 enabled. v1 is deprecated from a development perspective, so all new feature development will occur on v2, and new applications should target v2. Existing apps targetting v1, be that directly or via libgpiod v1.6.3, will require GPIO_CDEV_V1 until they migrate to v2. The mainline kernel will continue to support v1 while userspace transitions. libgpiod v2 is in active development, and should reach its first release shortly. Note that it is NOT a plugin replacement for v1. It has a different API, for similar reasons to why we had to switch in the kernel, so apps will need to be actively migrated. I wouldn't suggest making any effort to package libgpiod v2 until Bart makes an official release. Cheers, Kent. [Test Plan] * Run gpioinfo on a machine with exposed GPIOs and check that it lists the GPIOs and doesn't error with gpioinfo: error creating line iterator: Invalid argument [Where problems could occur] * There may be code and scripts that hasn't been tested with a working libgpiod2/gpiod tools and uncover latent bugs. [Other Info] Original bug text: The current versions of gpiod, libgpiod-dev and libgpiod2 (1.6.2-1) use version 1 of the GPIO character device API. However, they cannot work because the interface is disabled in the default kernel (tested with 5.13.19). After rebuilding the kernel with the option CONFIG_GPIO_CDEV_V1=y, the gpiod tools work as expected. Thanks to Marek Szuba, who reported the same bug for Gentoo (https://bugs.gentoo.org/807334), pointing me in the right direction. What I expect to happen: $ gpiodetect gpiochip0 [0-003c] (8 lines) $ gpioinfo gpiochip0 - 8 lines:  line 0: unnamed unused output active-high  line 1: unnamed unused output active-high  line 2: unnamed unused output active-high  line 3: unnamed unused output active-high  line 4: unnamed unused output active-high  line 5: unnamed unused output active-high  line 6: unnamed unused input active-high  line 7: unnamed unused input active-high $ gpioget gpiochip0 0 1 What actually happens: $ gpiodetect gpiochip0 [0-003c] (8 lines) $ gpioinfo gpioinfo: error creating line iterator: Invalid argument $ gpioget gpiochip0 0 gpioget: error reading GPIO values: Invalid argument $ cat /proc/version_signature Ubuntu 5.13.0-22.22-lowlatency 5.13.19 $ apt-cache policy libgpiod2 libgpiod2:   Installed: 1.6.2-1   Candidate: 1.6.2-1   Version table:  *** 1.6.2-1 500         500 http://de.archive.ubuntu.com/ubuntu impish/universe amd64 Packages         100 /var/lib/dpkg/status I am testing with the onboard PCA9554A on a Fujitsu D3641-S motherboard. $ lspci | grep -i smb 00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10) $ lspci -s 1f.4 -vvv 00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)  DeviceName: Onboard - Other  Subsystem: Fujitsu Technology Solutions Cannon Lake PCH SMBus Controller  Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-  Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-  Interrupt: pin A routed to IRQ 16  Region 0: Memory at 6013106000 (64-bit, non-prefetchable) [size=256]  Region 4: I/O ports at efa0 [size=32]  Kernel driver in use: i801_smbus  Kernel modules: i2c_i801 --- ProblemType: Bug ApportVersion: 2.20.11-0ubuntu71 Architecture: amd64 AudioDevicesInUse:  USER PID ACCESS COMMAND  /dev/snd/controlC0: dkfz 4589 F.... pulseaudio  /dev/snd/controlC1: dkfz 4589 F.... pulseaudio CasperMD5CheckResult: unknown CurrentDesktop: ubuntu:GNOME DistroRelease: Ubuntu 21.10 InstallationDate: Installed on 2018-11-12 (1122 days ago) InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725) Lsusb:  Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub  Bus 001 Device 003: ID 7392:a812 Edimax Technology Co., Ltd Edimax AC600 USB  Bus 001 Device 002: ID 256f:c650 3Dconnexion CadMouse  Bus 001 Device 004: ID 046d:c336 Logitech, Inc. Gaming Keyboard G213  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub NonfreeKernelModules: nvidia_modeset nvidia Package: linux (not installed) ProcFB: 0 i915drmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.13.19 root=UUID=75550043-7044-41bf-a01e-bf41b267f7d0 ro ProcVersionSignature: Ubuntu 5.13.0-22.22-lowlatency 5.13.19 RelatedPackageVersions:  linux-restricted-modules-5.13.19 N/A  linux-backports-modules-5.13.19 N/A  linux-firmware 1.201.1 RfKill:  0: phy0: Wireless LAN   Soft blocked: no   Hard blocked: no Tags: impish Uname: Linux 5.13.19 x86_64 UpgradeStatus: Upgraded to impish on 2021-10-19 (49 days ago) UserGroups: sudo WifiSyslog: _MarkForUpload: True dmi.bios.date: 02/18/2021 dmi.bios.release: 1.12 dmi.bios.vendor: FUJITSU // American Megatrends Inc. dmi.bios.version: V5.0.0.13 R1.12.0 for D3641-S1x dmi.board.name: D3641-S1 dmi.board.vendor: FUJITSU dmi.board.version: S26361-D3641-S1 dmi.chassis.type: 3 dmi.chassis.vendor: FUJITSU dmi.modalias: dmi:bvnFUJITSU//AmericanMegatrendsInc.:bvrV5.0.0.13R1.12.0forD3641-S1x:bd02/18/2021:br1.12:svnFUJITSU:pn:pvr:rvnFUJITSU:rnD3641-S1:rvrS26361-D3641-S1:cvnFUJITSU:ct3:cvr:sku: dmi.product.family: ESPRIMO-FTS dmi.sys.vendor: FUJITSU
2022-07-20 15:53:33 Emil Renner Berthing summary GPIO character device API not enabled in kernel GPIO character device v1 API not enabled in kernel
2022-08-05 13:22:39 Stefan Bader nominated for series Ubuntu Jammy
2022-08-05 13:22:39 Stefan Bader bug task added linux (Ubuntu Jammy)
2022-08-05 13:23:06 Stefan Bader linux (Ubuntu Jammy): importance Undecided Medium
2022-08-05 13:23:06 Stefan Bader linux (Ubuntu Jammy): status New Fix Committed
2022-08-05 13:23:20 Stefan Bader linux (Ubuntu): status Confirmed Fix Committed
2022-08-05 13:23:28 Stefan Bader linux (Ubuntu): importance Undecided Medium
2022-08-17 09:09:48 Kleber Sacilotto de Souza bug task added linux-hwe-5.17 (Ubuntu)
2022-08-17 09:10:17 Kleber Sacilotto de Souza linux-hwe-5.17 (Ubuntu): status New Invalid
2022-08-17 09:10:19 Kleber Sacilotto de Souza linux-hwe-5.17 (Ubuntu Jammy): status New In Progress
2022-08-17 09:10:26 Kleber Sacilotto de Souza bug task added linux-allwinner-5.17 (Ubuntu)
2022-08-17 09:10:32 Kleber Sacilotto de Souza linux-allwinner-5.17 (Ubuntu): status New Invalid
2022-08-17 09:10:34 Kleber Sacilotto de Souza linux-allwinner-5.17 (Ubuntu Jammy): status New In Progress
2022-08-17 09:22:09 Kleber Sacilotto de Souza bug task added linux-starfive-5.17 (Ubuntu)
2022-08-17 09:22:16 Kleber Sacilotto de Souza linux-starfive-5.17 (Ubuntu): status New Invalid
2022-08-17 09:22:18 Kleber Sacilotto de Souza linux-starfive-5.17 (Ubuntu Jammy): status New In Progress
2022-08-17 09:30:24 Kleber Sacilotto de Souza linux-starfive-5.17 (Ubuntu Jammy): status In Progress Fix Committed
2022-08-17 09:30:32 Kleber Sacilotto de Souza linux-hwe-5.17 (Ubuntu Jammy): status In Progress Fix Committed
2022-08-17 09:34:58 Kleber Sacilotto de Souza linux-allwinner-5.17 (Ubuntu Jammy): status In Progress Fix Committed
2022-08-31 08:38:25 Launchpad Janitor linux (Ubuntu Jammy): status Fix Committed Fix Released
2022-08-31 08:38:25 Launchpad Janitor cve linked 2021-33061
2022-08-31 08:38:38 Launchpad Janitor linux-allwinner-5.17 (Ubuntu Jammy): status Fix Committed Fix Released
2022-08-31 08:40:56 Launchpad Janitor linux-starfive-5.17 (Ubuntu Jammy): status Fix Committed Fix Released
2022-09-02 17:48:00 Launchpad Janitor linux (Ubuntu): status Fix Committed Fix Released
2024-03-01 06:16:10 Ubuntu Kernel Bot tags apport-collected impish apport-collected impish kernel-spammed-jammy-linux-mtk-v2 verification-needed-jammy-linux-mtk