[SWDEV-534605] Increase max devices supported and drm test link type (#625)

Increased the AMDSMI_MAX_DEVICES to 64 to accomodate all
devices in CPX mode. The link type has been modified in
amd-smi to match with rocm-smi types, updated the same
for drm tests.

---------

Signed-off-by: Bindhiya Kanangot Balakrishnan <Bindhiya.KanangotBalakrishnan@amd.com>
This commit is contained in:
Kanangot Balakrishnan, Bindhiya
2025-09-17 16:30:04 -05:00
کامیت شده توسط GitHub
والد 902667db3c
کامیت 6715c5aa92
5فایلهای تغییر یافته به همراه10 افزوده شده و 10 حذف شده
@@ -291,8 +291,8 @@ static const std::map<processor_type_t, std::string>
static const std::map<amdsmi_link_type_t, std::string>
link_type_map = {
{AMDSMI_LINK_TYPE_INTERNAL, "INTERNAL"},
{AMDSMI_LINK_TYPE_XGMI, "XGMI"},
{AMDSMI_LINK_TYPE_PCIE, "PCIE"},
{AMDSMI_LINK_TYPE_XGMI, "XGMI"},
{AMDSMI_LINK_TYPE_NOT_APPLICABLE, "NOT_APPLICABLE"},
{AMDSMI_LINK_TYPE_UNKNOWN, "UNKNOWN"}
};
@@ -1959,8 +1959,8 @@ int main() {
// Get nearest GPUs
const char *topology_link_type_str[] = {
"AMDSMI_LINK_TYPE_INTERNAL",
"AMDSMI_LINK_TYPE_XGMI",
"AMDSMI_LINK_TYPE_PCIE",
"AMDSMI_LINK_TYPE_XGMI",
"AMDSMI_LINK_TYPE_NOT_APPLICABLE",
"AMDSMI_LINK_TYPE_UNKNOWN",
};
@@ -334,8 +334,8 @@ int main() {
// Get nearest GPUs
const char *topology_link_type_str[] = {
"AMDSMI_LINK_TYPE_INTERNAL",
"AMDSMI_LINK_TYPE_XGMI",
"AMDSMI_LINK_TYPE_PCIE",
"AMDSMI_LINK_TYPE_XGMI",
"AMDSMI_LINK_TYPE_NOT_APPLICABLE",
"AMDSMI_LINK_TYPE_UNKNOWN",
};