Bug 259703 - In sys/dev/pci/pci.c, error in do_power_nodriver sysctl description
Summary: In sys/dev/pci/pci.c, error in do_power_nodriver sysctl description
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: easy, needs-patch
Depends on:
Blocks:
 
Reported: 2021-11-07 21:41 UTC by Pau Amma
Modified: 2022-02-23 04:02 UTC (History)
1 user (show)

See Also:
pauamma: mfc-stable13?
pauamma: mfc-stable12?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pau Amma 2021-11-07 21:41:46 UTC
SYSCTL_INT(_hw_pci, OID_AUTO, do_power_nodriver, CTLFLAG_RWTUN,
    &pci_do_power_nodriver, 0,
    "Place a function into D3 state when no driver attaches to it.  0 means"
    " disable.  1 means conservatively place devices into D3 state.  2 means"
    " aggressively place devices into D3 state.  3 means put absolutely"
    " everything in D3 state.");

"function" should be "device", I think.
Comment 1 Ed Maste freebsd_committer freebsd_triage 2021-11-08 15:59:55 UTC
A PCI device may have multiple functions on a single card/device and perhaps the description is referring to that, but it does seem confusing that the first sentence mentions function and later ones mention devices.