HomeFreeBSD

LinuxKPI: return an address string in pci_name()

Description

LinuxKPI: return an address string in pci_name()

amdgpu's virtual display feature uses pci_name() to match a module parameter
string, and the documentation shows an example of 0000:26:00.0 for the name.
In our case the name was just drmn, which is not actually unique across
devices.

The other consumers are wireless drivers, which will benefit from this
change.

Generate the expected string for pci_name() to return.

Related to: https://github.com/freebsd/drm-kmod/issues/134
Sponsored by: https://www.patreon.com/valpackett
Reviewed by: bz, hselasky, manu (earlier)
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D34248

(cherry picked from commit 393b0ba25f1a54dcc3f94244933c665f1c471d1a)

Details

Provenance
val_packett.coolAuthored on Feb 6 2023, 9:50 PM
bzCommitted on Feb 17 2023, 11:42 PM
Reviewer
bz
Differential Revision
D34248: LinuxKPI: return an address string in pci_name
Parents
rG7b65e6f377ca: LinuxKPI: pci: add more functions
Branches
Unknown
Tags
Unknown