[SWDEV-453922] AMD SMI to provide mapping feature of other enumeration methods (#51)

Added enumeration mapping for 
- drm render
- drm card
- hsa id 
- hip id
- hip uuid (rocminfo uuid)

Signed-off-by: AL Musaffar, Yazen <Yazen.ALMusaffar@amd.com>
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Co-authored-by: Maisam Arif <Maisam.Arif@amd.com>
This commit is contained in:
AL Musaffar, Yazen
2025-03-07 09:09:12 -06:00
committed by GitHub
parent d5b2763aba
commit 2936e00fed
11 changed files with 417 additions and 88 deletions
+2
View File
@@ -626,6 +626,8 @@ class AMDSMIParser(argparse.ArgumentParser):
# Create list subparser
list_parser = subparsers.add_parser('list', help=list_help, description=list_subcommand_help)
# Create -e subparser
list_parser.add_argument("-e", action="store_true", help="Enumeration mapping to other features.\n Lists the BDF, UUID, KFD_ID, CARD, RENDER, HIP_ID, HIP_UUID and HSA_ID for each GPU.")
list_parser.formatter_class=lambda prog: AMDSMISubparserHelpFormatter(prog)
list_parser.set_defaults(func=func)