Nvidia-GPU: Add UUID support for GPU device
Support for fetching UUID information using Get Inventory command
Tested
- Able to get UUID info from the GPU device and populate that on Dbus
```
busctl introspect xyz.openbmc_project.GpuSensor /xyz/openbmc_project/inventory/NVIDIA_GB200_GPU_0
NAME TYPE SIGNATURE RESULT/VALUE FLAGS
org.freedesktop.DBus.Introspectable interface - - -
.Introspect method - s -
org.freedesktop.DBus.Peer interface - - -
.GetMachineId method - s -
.Ping method - - -
org.freedesktop.DBus.Properties interface - - -
.Get method ss v -
.GetAll method s a{sv} -
.Set method ssv - -
.PropertiesChanged signal sa{sv}as - -
xyz.openbmc_project.Common.UUID interface - - -
.UUID property s "6c13dc0f-ec0c-1fc9-db63-4d9f1053b5ef" emits-change
xyz.openbmc_project.Inventory.Decorator.Asset interface - - -
.PartNumber property s "B40GPU" emits-change
.SerialNumber property s "1641425000136" emits-change
xyz.openbmc_project.Inventory.Item.Accelerator interface - - -
.Type property s "GPU" emits-change
```
Change-Id: I4600e85b3bf00e68032bb2b960cb803a76f6af96
Signed-off-by: Rohit PAI <ropai@nvidia.com>
diff --git a/src/nvidia-gpu/Inventory.hpp b/src/nvidia-gpu/Inventory.hpp
index 1d2587b..9b5b097 100644
--- a/src/nvidia-gpu/Inventory.hpp
+++ b/src/nvidia-gpu/Inventory.hpp
@@ -58,6 +58,7 @@
std::shared_ptr<sdbusplus::asio::dbus_interface> assetIface;
std::shared_ptr<sdbusplus::asio::dbus_interface> acceleratorInterface;
+ std::shared_ptr<sdbusplus::asio::dbus_interface> uuidInterface;
std::string name;
mctp::MctpRequester& mctpRequester;