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)
Approved by: re (cperciva)
Differential Revision: https://reviews.freebsd.org/D34248

(cherry picked from commit 393b0ba25f1a54dcc3f94244933c665f1c471d1a)
(cherry picked from commit 30960c51e646c51134fcb72e0adc881f36a41c38)

Details

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