Merge amd-dev into amd-master 20240521

Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I995cbe11e4ca8f0916e6f66de176e013b11b20c5
This commit is contained in:
Maisam Arif
2024-05-21 01:20:57 -05:00
4 changed files with 58 additions and 14 deletions
+40
View File
@@ -0,0 +1,40 @@
resources:
repositories:
- repository: pipelines_repo
type: github
endpoint: ROCm
name: ROCm/ROCm
variables:
- group: common
- template: /.azuredevops/variables-global.yml@pipelines_repo
trigger:
batch: true
branches:
include:
- develop
paths:
exclude:
- .github
- docs
- '.*.y*ml'
- '*.md'
- LICENSE
pr:
autoCancel: true
branches:
include:
- develop
paths:
exclude:
- .github
- docs
- '.*.y*ml'
- '*.md'
- LICENSE
drafts: false
jobs:
- template: ${{ variables.CI_COMPONENT_PATH }}/amdsmi.yml@pipelines_repo
+5
View File
@@ -1,5 +1,9 @@
#!/bin/bash
do_updatepciids() {
update-pciids >/dev/null 2>&1 || true
}
do_configureLogrotate() {
local IS_SYSTEMD=0
local packageName="amd-smi-lib"
@@ -187,6 +191,7 @@ case "$1" in
( configure )
do_install_amdsmi_python_lib
do_ldconfig
do_updatepciids
do_configureLogrotate || exit 0
;;
( abort-upgrade | abort-remove | abort-deconfigure )
+5
View File
@@ -1,5 +1,9 @@
#!/bin/bash
do_updatepciids() {
update-pciids >/dev/null 2>&1 || true
}
do_configureLogrotate() {
local IS_SYSTEMD=0
local packageName="amd-smi-lib"
@@ -186,5 +190,6 @@ do_install_amdsmi_python_lib() {
if [ "$1" -ge 1 ]; then
do_install_amdsmi_python_lib
do_ldconfig
do_updatepciids
do_configureLogrotate || exit 0
fi
+8 -14
View File
@@ -424,19 +424,6 @@ amdsmi_status_t amdsmi_get_gpu_board_info(amdsmi_processor_handle processor_hand
<< "\n; info->product_name: |" << board_info->product_name << "|";
LOG_INFO(ss);
// Correct any missing details
if (board_info->model_number[0] == '\0') {
status = rsmi_wrapper(rsmi_dev_name_get, processor_handle, board_info->model_number,
AMDSMI_256_LENGTH);
if (status != AMDSMI_STATUS_SUCCESS) {
memset(board_info->model_number, 0,
AMDSMI_256_LENGTH * sizeof(board_info->model_number[0]));
}
ss << __PRETTY_FUNCTION__ << " | [rsmi_correction] board_info->model_number= |"
<< board_info->model_number << "|";
LOG_INFO(ss);
}
if (board_info->product_serial[0] == '\0') {
status = rsmi_wrapper(rsmi_dev_serial_number_get, processor_handle,
board_info->product_serial, AMDSMI_NORMAL_STRING_LENGTH);
@@ -450,9 +437,16 @@ amdsmi_status_t amdsmi_get_gpu_board_info(amdsmi_processor_handle processor_hand
}
if (board_info->product_name[0] == '\0') {
status = rsmi_wrapper(rsmi_dev_subsystem_name_get,
status = rsmi_wrapper(rsmi_dev_name_get,
processor_handle, board_info->product_name,
AMDSMI_256_LENGTH);
// Check if the value is in hex format
if (status == AMDSMI_STATUS_SUCCESS) {
if (board_info->product_name[0] == '0' && board_info->product_name[1] == 'x') {
memset(board_info->product_name, 0,
AMDSMI_256_LENGTH * sizeof(board_info->product_name[0]));
}
}
if (status != AMDSMI_STATUS_SUCCESS) {
memset(board_info->product_name, 0,
AMDSMI_256_LENGTH * sizeof(board_info->product_name[0]));