Public bug reported:

These two upstream patches (currently in linux-next, ETA v7.1) add
support for GPIO devices on multi-socket systems and are required for
VR. Without these patches, there are duplicate gpio names and the kernel
logs warnings during boot:

```
$ sudo gpioinfo
gpiochip0 - 30 lines:
        line   0: "COMPUTE-PA.00" kernel input active-high [used]
...
        line  29: "COMPUTE-PE.07" kernel input active-high [used]
gpiochip1 - 94 lines:
        line   0: "SYSTEM-PA.00" kernel input active-high [used]
...
        line  93: "SYSTEM-PV.01" unused input active-high 
gpiochip2 - 30 lines:
        line   0: "COMPUTE-PA.00" kernel input active-high [used]
...
        line  29: "COMPUTE-PE.07" kernel input active-high [used]
gpiochip3 - 94 lines:
        line   0: "SYSTEM-PA.00" kernel input active-high [used]
...
        line  93: "SYSTEM-PV.01" unused input active-high 

$ sudo journalctl -k -b 0 | grep -i collision 
Mar 11 18:05:37 localhost.localdomain kernel: gpio gpiochip2: Detected name 
collision for GPIO name 'COMPUTE-PA.00'
Mar 11 18:05:37 localhost.localdomain kernel: gpio gpiochip2: Detected name 
collision for GPIO name 'COMPUTE-PA.01'
Mar 11 18:05:37 localhost.localdomain kernel: gpio gpiochip2: Detected name 
collision for GPIO name 'COMPUTE-PA.02'
Mar 11 18:05:37 localhost.localdomain kernel: gpio gpiochip2: Detected name 
collision for GPIO name 'COMPUTE-PB.00’
```

With the patches in place on a system that defines ACPI PXM nodes for the GPIO 
devices, gpio names include the corresponding NUMA node:
```
$ sudo gpioinfo
gpiochip0 - 30 lines:
        line   0: "0-COMPUTE-PA.00" kernel input active-high [used]
...
        line  29: "0-COMPUTE-PE.07" kernel input active-high [used]
gpiochip1 - 94 lines:
        line   0: "0-SYSTEM-PA.00" kernel input active-high [used]
...
        line  93: "0-SYSTEM-PV.01" unused input active-high 
gpiochip2 - 30 lines:
        line   0: "1-COMPUTE-PA.00" kernel input active-high [used]
...
        line  29: "1-COMPUTE-PE.07" kernel input active-high [used]
gpiochip3 - 94 lines:
        line   0: "1-SYSTEM-PA.00" kernel input active-high [used]
...
        line  93: "1-SYSTEM-PV.01" unused input active-high 
```

This removes the collisions warnings during boot:
```
$ sudo journalctl -k -b 0 | grep -i collision 
$
```

LKML:
https://lore.kernel.org/all/[email protected]/

linux-next:
```
2423e336d948 gpio: tegra186: Simplify GPIO line name prefix handling
2c299030c681 gpio: tegra186: Support multi-socket devices
```

<hr>

To test, I verified the presence of the PXM nodes:
```
$ egrep -A 2 'NVDA0808|NVDA0708' *.dsl
dsdt.dsl:            Name (_HID, "NVDA0708")  // _HID: Hardware ID
dsdt.dsl-            Name (_UID, 0x00)  // _UID: Unique ID
dsdt.dsl-            Name (_PXM, 0x00)  // _PXM: Device Proximity
--
dsdt.dsl:            Name (_HID, "NVDA0808")  // _HID: Hardware ID
dsdt.dsl-            Name (_UID, 0x00)  // _UID: Unique ID
dsdt.dsl-            Name (_PXM, 0x00)  // _PXM: Device Proximity
--
ssdt18.dsl:            Name (_HID, "NVDA0708")  // _HID: Hardware ID
ssdt18.dsl-            Name (_UID, 0x10)  // _UID: Unique ID
ssdt18.dsl-            Name (_PXM, 0x01)  // _PXM: Device Proximity
--
ssdt18.dsl:            Name (_HID, "NVDA0808")  // _HID: Hardware ID
ssdt18.dsl-            Name (_UID, 0x10)  // _UID: Unique ID
ssdt18.dsl-            Name (_PXM, 0x01)  // _PXM: Device Proximity
```

And the removal of the duplicate gpio names and collision warnings
(included above).

Note that this requires UEFI support added in nvb5277588.

** Affects: linux-nvidia-6.17 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2143954

Title:
  Backport GPIO line name prefix handling

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to