Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Everest:Missing EXP_PRSNT GPIO pin for PCIe cards #426

Open
wants to merge 1 commit into
base: 1060
Choose a base branch
from

Conversation

PriyangaRamasamy
Copy link

@PriyangaRamasamy PriyangaRamasamy commented Oct 16, 2024

In everest VPD JSON, "presence" section with expander presence gpio pin information is missing for PCIe cards. Due to which during FRU VPD collection, I2C line for PCIe card VPD is enabled without checking if IBM specific PCIe card is actually present on the system.

This check is required for PCIe cards because the PCIe slot accepts both IBM specific cards and any industry standard cards. So during VPD collection before enabling the I2C line of PCIe card VPD, it's recommended to check if IBM standard PCIe card is present on IBM system.

Test:
busctl call com.ibm.VPD.Manager /com/ibm/VPD/Manager com.ibm.VPD.Manager CollectFRUVPD o "/xyz/openbmc_project/inventory/system/chassis/motherboard/pcieslot2/pcie_card2"

Oct 16 13:10:40 ever6bmc vpd-manager[1929]: Manager called to collect vpd for fru: /xyz/openbmc_project/inventory/system/chassis/motherboard/pcieslot2/pcie_card2
Oct 16 13:10:40 ever6bmc vpd-manager[1929]: Setting GPIO: presence-cable-card2 to 1
Oct 16 13:10:40 ever6bmc vpd-manager[1929]: Executing driver binding for chip address - 17-0060
Oct 16 13:10:40 ever6bmc kernel: at24 17-0050: 8192 byte 24c64 EEPROM, writable, 1 bytes/write
Oct 16 13:10:40 ever6bmc kernel: leds-pca955x 17-0060: leds-pca955x: Using pca9551 8-bit LED driver at slave address 0x60
Oct 16 13:10:40 ever6bmc kernel: leds-pca955x 17-0060: gpios 1040...1047
Oct 16 13:10:40 ever6bmc systemd[1]: Started IPZ format VPD Parser service for FRU sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a280.i2c-bus/i2c-4/i2c-17/17-0050/17-005060.
Oct 16 13:10:40 ever6bmc systemd[1]: Started Phosphor sysfs LED controller.
Oct 16 13:10:40 ever6bmc systemd[1]: Started Phosphor sysfs LED controller.
Oct 16 13:10:41 ever6bmc systemd[1]: ibm-vpd-parser@sys-devices-platform-ahb-ahb:apb-ahb:apb:bus\x401e78a000-1e78a280.i2c\x2dbus-i2c\x2d4-i2c\x2d17-17\x2d0050-17\x2d005060.service: Deactivated successfully.

In everest VPD JSON, "presence" section with expander presence gpio
pin information is missing for PCIe cards. Due to which during FRU
VPD collection, I2C line for PCIe card VPD is enabled without
checking if IBM specific PCIe card is actually present on the system.

This check is required for PCIe cards because the PCIe slot accepts
both IBM specific cards and any industry standard cards. So during VPD
collection before enabling the I2C line of PCIe card VPD, it's recommended
to check if IBM standard PCIe card is present on IBM system.

Test:
busctl call com.ibm.VPD.Manager /com/ibm/VPD/Manager com.ibm.VPD.Manager CollectFRUVPD o "/xyz/openbmc_project/inventory/system/chassis/motherboard/pcieslot2/pcie_card2"

Oct 16 13:10:40 ever6bmc vpd-manager[1929]: Manager called to collect vpd for fru: /xyz/openbmc_project/inventory/system/chassis/motherboard/pcieslot2/pcie_card2
Oct 16 13:10:40 ever6bmc vpd-manager[1929]: Setting GPIO: presence-cable-card2 to 1
Oct 16 13:10:40 ever6bmc vpd-manager[1929]: Executing driver binding for chip address - 17-0060
Oct 16 13:10:40 ever6bmc kernel: at24 17-0050: 8192 byte 24c64 EEPROM, writable, 1 bytes/write
Oct 16 13:10:40 ever6bmc kernel: leds-pca955x 17-0060: leds-pca955x: Using pca9551 8-bit LED driver at slave address 0x60
Oct 16 13:10:40 ever6bmc kernel: leds-pca955x 17-0060: gpios 1040...1047
Oct 16 13:10:40 ever6bmc systemd[1]: Started IPZ format VPD Parser service for FRU sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a280.i2c-bus/i2c-4/i2c-17/17-0050/17-005060.
Oct 16 13:10:40 ever6bmc systemd[1]: Started Phosphor sysfs LED controller.
Oct 16 13:10:40 ever6bmc systemd[1]: Started Phosphor sysfs LED controller.
Oct 16 13:10:41 ever6bmc systemd[1]: ibm-vpd-parser@sys-devices-platform-ahb-ahb:apb-ahb:apb:bus\x401e78a000-1e78a280.i2c\x2dbus-i2c\x2d4-i2c\x2d17-17\x2d0050-17\x2d005060.service: Deactivated successfully.

Signed-off-by: Priyanga Ramasamy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant