Go to file
Herton R. Krzesinski 0a5cd972d8 Merge: CNB: pci: add several VPD helpers
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/117

This series updates the kernel's PCI subsystem Vital Product Data (VPD) with
content originating from v5.15-rc1 merge branch 74797618e202:
  Merge branch 'pci/vpd'
  Merge: 1295d187abfb 2c208abd4f9e

The impitus for this series originates with a Common Networking Backport
(CNB) request.  Note however, that the updates agument 'struct pci_dev',
replacing its 'struct pci_vpd *vpd' member with the entire structure (see
upstream commit fd00faa375fb "PCI/VPD: Embed struct pci_vpd in struct
pci_dev".  This would break RHEL's kABI so it would be best to get the
resolution included into RHEL 9 before kABI checking is enabled.

All patches back-ported cleanly with no conflicts or context fuzz.

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2021298
Depends: N/A
Tested: 'lspci' knows how to access VPD data (See "Vital Product Data" below -
Linux <hostname> 5.14.0-12.v515vpd.el9.x86_64 #1 SMP Sun Nov 7 11:51:25 EST 2021 x86_64 x86_64 x86_64 GNU/Linux
03:00.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
        DeviceName: NIC Port 1
        Subsystem: Hewlett-Packard Company Ethernet 1Gb 4-port 331FLR Adapter
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 51
        NUMA node: 0
        Region 0: Memory at f6bf0000 (64-bit, prefetchable) [size=64K]
        Region 2: Memory at f6be0000 (64-bit, prefetchable) [size=64K]
        Region 4: Memory at f6bd0000 (64-bit, prefetchable) [size=64K]
        Expansion ROM at f4000000 [virtual] [disabled] [size=256K]
        Capabilities: [48] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=1 PME-
        Capabilities: [50] Vital Product Data
                Product Name: HP Ethernet 1Gb 4-port 331FLR Adapter
                Read-only fields:
                        [PN] Part number: 629133-001
                        [EC] Engineering changes: ECdate
                        [SN] Serial number: serial number
                        [V0] Vendor specific: PCIe x4 gen2, PW=5W
                        [V2] Vendor specific: MFG Date
                        [V4] Vendor specific: MAC address
                        [V5] Vendor specific: Rev A
                        [RV] Reserved: checksum good, 3 byte(s) reserved
                        [\x00] Unknown:
                        ...
                        [\x00] Unknown:
                Read/write fields:
                        [V1] Vendor specific: N/A
                        [V3] Vendor specific: FW ver 1.24
                        [V6] Vendor specific: PXE ver 15.0.12
                        [RW] Read-write area: 99 byte(s) free
                        [\x00] Unknown:
                        ...
                        [\x00] Unknown:
                End
        Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+
                Address: 0000000000000000  Data: 0000
        Capabilities: [a0] MSI-X: Enable+ Count=17 Masked-
                Vector table: BAR=4 offset=00000000
                PBA: BAR=4 offset=00001000
        Capabilities: [ac] Express (v2) Endpoint, MSI 00
                DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s <4us, L1 <64us
                        ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset+ SlotPowerLimit 0.000W
                DevCtl: CorrErr- NonFatalErr+ FatalErr+ UnsupReq-
                        RlxdOrd- ExtTag- PhantFunc- AuxPwr+ NoSnoop- FLReset-
                        MaxPayload 256 bytes, MaxReadReq 4096 bytes
                DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr+ TransPend-
                LnkCap: Port #0, Speed 5GT/s, Width x4, ASPM L0s L1, Exit Latency L0s <1us, L1 <2us
                        ClockPM+ Surprise- LLActRep- BwNot- ASPMOptComp-
                LnkCtl: ASPM Disabled; RCB 64 bytes, Disabled- CommClk+
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 5GT/s (ok), Width x4 (ok)
                        TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
                DevCap2: Completion Timeout: Range ABCD, TimeoutDis+ NROPrPrP- LTR-
                         10BitTagComp- 10BitTagReq- OBFF Not Supported, ExtFmt- EETLPPrefix-
                         EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
                         FRS- TPHComp- ExtTPHComp-
                         AtomicOpsCap: 32bit- 64bit- 128bitCAS-
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis- LTR- OBFF Disabled,
                         AtomicOpsCtl: ReqEn-
                LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis-
                         Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
                         Compliance De-emphasis: -6dB
                LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete- EqualizationPhase1-
                         EqualizationPhase2- EqualizationPhase3- LinkEqualizationRequest-
                         Retimer- 2Retimers- CrosslinkRes: unsupported
        Capabilities: [100 v1] Advanced Error Reporting
                UESta:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq+ ACSViol-
                UEMsk:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq+ ACSViol-
                UESvrt: DLP- SDES+ TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                CESta:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+
                CEMsk:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr-
                AERCap: First Error Pointer: 00, ECRCGenCap+ ECRCGenEn- ECRCChkCap+ ECRCChkEn-
                        MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
                HeaderLog: 04000001 0010000f 03070000 00000000
        Capabilities: [13c v1] Device Serial Number 00-00-2c-44-fd-85-65-5c
        Capabilities: [150 v1] Power Budgeting <?>
        Capabilities: [160 v1] Virtual Channel
                Caps:   LPEVC=0 RefClk=100ns PATEntryBits=1
                Arb:    Fixed- WRR32- WRR64- WRR128-
                Ctrl:   ArbSelect=Fixed
                Status: InProgress-
                VC0:    Caps:   PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
                        Arb:    Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
                        Ctrl:   Enable+ ID=0 ArbSelect=Fixed TC/VC=ff
                        Status: NegoPending- InProgress-
        Kernel driver in use: tg3
        Kernel modules: tg3
00: e4 14 57 16 46 04 10 00 01 00 00 02 10 00 80 00
10: 0c 00 bf f6 00 00 00 00 0c 00 be f6 00 00 00 00
20: 0c 00 bd f6 00 00 00 00 00 00 00 00 3c 10 9d 16
30: 00 00 00 00 48 00 00 00 00 00 00 00 05 01 00 00
40: 00 00 00 00 00 00 00 a0 01 50 03 c8 08 20 00 64
50: 03 58 1c 83 00 00 00 78 05 a0 86 00 00 00 00 00
    ^^^^^^^^^^^^^^^^^^^^ VPD Capability
60: 00 00 00 00 00 00 00 00 98 02 01 f0 81 00 38 00

Signed-off-by: Myron Stowe <mstowe@redhat.com>
RH-Acked-by: Alex Williamson <alex.williamson@redhat.com>
RH-Acked-by: David Arcari <darcari@redhat.com>
RH-Acked-by: Prarit Bhargava <prarit@redhat.com>
RH-Acked-by: John W. Linville <linville@redhat.com>
Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
2021-11-29 13:33:34 -03:00
Documentation Merge: net: split and rework .ndo_ioctl callback handling 2021-11-19 16:21:59 -03:00
LICENSES LICENSES/dual/CC-BY-4.0: Git rid of "smart quotes" 2021-07-15 06:31:24 -06:00
arch Merge: clocksource: Workaround the hpet fallback problem 2021-11-25 19:40:55 -03:00
block block: return ELEVATOR_DISCARD_MERGE if possible 2021-10-19 19:50:26 +08:00
certs Kbuild updates for v5.13 (2nd) 2021-05-08 10:00:11 -07:00
crypto crypto: rng - Override drivers/char/random in FIPS mode 2021-08-30 15:44:54 -04:00
drivers Merge: CNB: pci: add several VPD helpers 2021-11-29 13:33:34 -03:00
fs fs: remove leftover comments from mandatory locking removal 2021-11-01 13:56:13 -04:00
include Merge: CNB: pci: add several VPD helpers 2021-11-29 13:33:34 -03:00
init sched: Introduce task_struct::user_cpus_ptr to track requested affinity 2021-11-01 18:14:46 -04:00
ipc ipc: remove memcg accounting for sops objects in do_semtimedop() 2021-10-05 16:17:31 -04:00
kernel Merge: post 5.14 scheduler fixes 2021-11-26 17:33:19 -03:00
lib lib/test_lockup: Adapt to changed variables 2021-09-27 16:19:15 -04:00
mm fs: remove mandatory file locking support 2021-11-01 13:56:12 -04:00
net Merge: net: gre: fix csum validation for gre4 and gre6 2021-11-25 16:28:16 -03:00
redhat [redhat] kernel-5.14.0-22.el9 2021-11-26 21:02:05 +00:00
samples nitro_enclaves: Add fixes for checkpatch blank line reports 2021-11-08 10:24:22 +01:00
scripts tags.sh: Ignore redhat/rpm 2021-08-30 14:29:34 -04:00
security Merge: ucounts: Fix signal ucount refcounting 2021-11-25 17:38:33 -03:00
sound another sound-fixes for 5.14-rc7 2021-08-20 12:31:10 -07:00
tools Merge: livepatch: backport important post v5.14 commits 2021-11-16 17:13:55 -03:00
usr .gitignore: prefix local generated files with a slash 2021-05-02 00:43:35 +09:00
virt KVM: Do not leak memory for duplicate debugfs directories 2021-08-04 06:02:03 -04:00
.clang-format clang-format: Update with the latest for_each macro list 2021-05-12 23:32:39 +02:00
.cocciconfig
.get_maintainer.conf Add RHMAINTAINERS file and supporting conf 2021-08-30 10:50:06 -04:00
.get_maintainer.ignore
.gitattributes gitattributes: Remove unnecesary export restrictions 2021-08-30 10:50:35 -04:00
.gitignore gitlab: Add CI job for packaging scripts 2021-08-30 10:49:13 -04:00
.gitlab-ci.yml Add automotive CI jobs 2021-11-24 16:34:00 +01:00
.mailmap m68k updates for v5.14 2021-06-28 14:01:03 -07:00
COPYING
CREDITS MAINTAINERS: move Murali Karicheri to credits 2021-04-29 15:47:30 -07:00
Kbuild
Kconfig Introduce CONFIG_RH_DISABLE_DEPRECATED 2021-08-30 10:50:55 -04:00
Kconfig.redhat Rename RH_DISABLE_DEPRECATED to RHEL_DIFFERENCES 2021-08-30 14:29:36 -04:00
MAINTAINERS arm64: hyperv: Add Hyper-V hypercall and register access utilities 2021-10-29 13:26:14 +02:00
Makefile put RHEL info into generated headers 2021-08-30 14:29:34 -04:00
Makefile.rhelver [redhat] kernel-5.14.0-22.el9 2021-11-26 21:02:05 +00:00
README
makefile redhat: Change Makefile target names to dist- 2021-08-30 10:50:11 -04:00

README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.