bmcweb: Route PCIe/DIMM/Storage/CBS by host - 2x1P - #78
Open
ashok2ku wants to merge 1 commit into
Open
Conversation
In 2x1P the iodevices-inventory "PcieData" service runs one instance per host, so the service name and object path are host-specific. Add amd_host_inventory.hpp and use it in the Bios, Memory, PCIe and Storage handlers: host0 : xyz.openbmc_project.PCIe .../inventory/PCIe hostN : xyz.openbmc_project.PCIe.hostN .../inventory/hostN/PCIe Host resolution: explicit ?HostNumber=N (1..2) wins; else fall back to the source USB vNIC so BIOS pushes (which can't set ?HostNumber) reach the right instance: usb0 192.168.31.x -> P0 -> host0 (2P) / host1 (2x1P) usb1 192.168.32.x -> P1 -> host2 Absent/invalid/non-vNIC -> host0, so 2P behaviour is unchanged. Mode is read from /etc/amd/hosts.d/host0.conf. Tested: On Morocco Signed-off-by: Ashok Kumar <ashok2ku@amd.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In 2x1P the iodevices-inventory "PcieData" service runs one instance per host, so the service name and object path are host-specific. Add amd_host_inventory.hpp and use it in the Bios, Memory, PCIe and Storage handlers:
host0 : xyz.openbmc_project.PCIe .../inventory/PCIe
hostN : xyz.openbmc_project.PCIe.hostN .../inventory/hostN/PCIe
Host resolution: explicit ?HostNumber=N (1..2) wins; else fall back to
the source USB vNIC so BIOS pushes (which can't set ?HostNumber) reach
the right instance:
usb0 192.168.31.x -> P0 -> host0 (2P) / host1 (2x1P)
usb1 192.168.32.x -> P1 -> host2
Absent/invalid/non-vNIC -> host0, so 2P behaviour is unchanged. Mode is
read from /etc/amd/hosts.d/host0.conf.
Tested: On Morocco