Skip to content

Add pcie bifurcation #3

Open
wants to merge 1 commit into
base: add-inventory-handlers
Choose a base branch
from

Conversation

ikmsk10
Copy link
Collaborator

@ikmsk10 ikmsk10 commented Feb 19, 2023

This commit implements a way to get to host firmware information about requested PCIe bifurcation mode.
Bifurcation mode stored by settings daemon and transferred to host via OEM IPMI command. Other software may use dbus interface to change PCIe bifurcation configuration manually of based on some hardware information.

This implements new OEM command to report PCIe bifurcation mode to UEFI.
The command returns list of IIO_BIFURCATION_DATA_ENTRY structs:

typedef struct _PLATFORM_IIO_BIFURCATION_ENTRY {
  UINT8 Socket;
  UINT8 IouNumber;
  UINT8 Bifurcation;
} IIO_BIFURCATION_DATA_ENTRY;

Tested:
~# host-pcie-cfg
CPU     PE      Mode
---------------------------------
1       1       x16
1       2       x16
1       3       x8x8
---------------------------------

~# ipmitool raw 0x2e 0xB0 0x69 0xc2 0x00
 69 c2 00 01 00 04 01 01 04 01 02 03

Ported from 2f55453aec33462124f73f337169daaaeaac5de9

Signed-off-by: Andrei Kartashev <a.kartashev@yadro.com>
Signed-off-by: Igor Kononenko <i.kononenko@yadro.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants