Граф коммитов

934 Коммитов

Автор SHA1 Сообщение Дата
Maisam Arif a12876fc91 Updated amdsmi lib version call
Change-Id: Ibdf978760f0cd9126897a6a93b3c07ed34ee05cd
Signed-off-by: Maisam Arif <maisarif@amd.com>


[ROCm/amdsmi commit: c8f8734bc6]
2023-08-03 23:45:39 -05:00
Maisam Arif 5ee47a00af Corrected bad_pages error checking
Change-Id: I9d00407987b28fcec523dfde7cab8db830c41174
Signed-off-by: Maisam Arif <maisarif@amd.com>


[ROCm/amdsmi commit: 38598c2ec5]
2023-08-03 00:43:14 -04:00
Maisam Arif 42f70b250b SWDEV-412848 - Added power limit for parity with Host
Change-Id: Icb67a3642502107394bb525fcf6efb9e1830bbbd
Signed-off-by: Maisam Arif <maisarif@amd.com>


[ROCm/amdsmi commit: d839192f21]
2023-08-03 00:43:09 -04:00
Maisam Arif f6e24e4d22 SWDEV-412847 - Added Hotspot temp and edge limit checks
Change-Id: If549ee45214e784a28a3420f60bae7f4ae1a1022
Signed-off-by: Maisam Arif <maisarif@amd.com>


[ROCm/amdsmi commit: 07a8287a18]
2023-08-03 00:43:05 -04:00
Maisam Arif e2a1fed08c Added Gen type to pcie info
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Icaa050a6f53fad608ed0353b2a0cbea33dee1dd2
Signed-off-by: Maisam Arif <maisarif@amd.com>


[ROCm/amdsmi commit: 82ac307f9b]
2023-08-02 23:42:48 -05:00
Charis Poag 65c425c77f [lib] Enhance Logger: gpu_metrics + enable console out
* Updates:
    - Env variable RSMI_LOGGING=0 or any other value
        -> all logging off
    - Env variable RSMI_LOGGING=1 -> logs only
    - Env variable RSMI_LOGGING=2 -> console only
    - Env variable RSMI_LOGGING=3 -> both logs + console
    - Metrics output includes hexdump of current file
      and decoded metrics (functions: logHexDump
      and log_gpu_metrics)
    - System info gathered, now includes if system's
      perceived endianness - little or big endian
      helpful for viewing decoded hexdump or any
      binary translation
    - Added templates for printing unsigned hex
      (print_unsigned_hex_and_int), unsigned integers
      (print_unsigned_int), and printing both unsigned
      hex and int with an optional header
      (print_unsigned_hex_and_int)
    - Fixed some build compile warnings/errors -
      ex. doing strncpys for sku or board names
      this operation is expected and needed
      and for temp file writes if unsuccessful
      we now properly send RSMI_STATUS_FILE_ERROR
    - Fixed on RHEL 8.8/9.x logrotate does not properly
      initialize

Change-Id: Ifa0f0218c9cafd0a8cd6aa8e7f94d61e9107200f
Signed-off-by: Charis Poag <Charis.Poag@amd.com>


[ROCm/amdsmi commit: 9c7eed7edc]
2023-08-01 21:46:19 -05:00
Maisam Arif fa9d79984b Added Error handling to generator
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I77e869624e4f0c7586dc2c018242b8e5737f7d4b


[ROCm/amdsmi commit: 8630b59b81]
2023-08-01 14:28:58 -04:00
Maisam Arif 14c5bbbaa2 Checks before adding Units to output
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ib3f2cd8595693dd033a69523ed69d5807dc83346


[ROCm/amdsmi commit: 6be5a69ef8]
2023-08-01 14:28:51 -04:00
Maisam Arif 9edae52b03 Updated Clock minimum values
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ia4c34eca18077c595248ac34afed1b844a1be727


[ROCm/amdsmi commit: 27388c6208]
2023-08-01 14:28:45 -04:00
Maisam Arif 9f4faaabd8 Removed cmdline options
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I3f98829e988468d657f280db6765f2f5e28ff5f1


[ROCm/amdsmi commit: d5ad387252]
2023-08-01 14:28:40 -04:00
Maisam Arif 907fcc53a1 Updated READMEs
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Idf34bc431184414a17c3cb50c06543151ce3cb56


[ROCm/amdsmi commit: a13d5be933]
2023-08-01 14:28:33 -04:00
Maisam Arif 9a98e0e317 Updated Versioning
corrected to amd-smi version from rocm-smi version
	Added newline characters in the gpu choices
	Updated cli versioning to 23.2.1.0 to match amd-smi

Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ia6db3a281e2349e05a09209bdcfdfa5ac48e3a86


[ROCm/amdsmi commit: ca59a60a9a]
2023-08-01 14:28:27 -04:00
Maisam Arif 294b2df38f ASIC serial updates
Corrected asic serial fallback to use rsmi's unique id
	Removed product serial due to duplication

Change-Id: Ib4e9ac00d2bf31ccbc35060bc84f7e79e5332d37
Signed-off-by: Maisam Arif <maisarif@amd.com>


[ROCm/amdsmi commit: d705801adf]
2023-08-01 14:28:19 -04:00
Bill(Shuzhou) Liu 14752945c0 Crash when ecc count sysfile cannot be read
Replace assert with error handling code.

Change-Id: I6500ae4d38a8caea87828aa7d76373d20c8354c7


[ROCm/amdsmi commit: 0522439ac2]
2023-07-31 08:36:53 -05:00
Deepak Mewar 263a9fb6f4 esmi library integration update v1.0
1. new class files for cpu socket and cpu core created
2. wrapper API's for getting energy monitoring, system
   statistics, power monitoring values implemented
3. modified amdsmi init & cleanup functions for esmi lib support
4. modified amdsmi system class for esmi lib support
5. sample test code created in example dir

Change-Id: Ic41f31641c283a681de696bb4346b557265bad42


[ROCm/amdsmi commit: 8a9771b225]
2023-07-27 17:29:27 -05:00
Deepak Mewar 12f4b83299 esmi library header changes
1. New processor types AMD_CPU_CORE, AMD_APU added to ENUM
2. esmi errorcodes, wrappers for structures and library APIs
3. Macro introduced to enable/disable the esmi library code

Change-Id: Ia64b29303c231d3f17ac6b40fcd09b09b4380903


[ROCm/amdsmi commit: 0187de61e2]
2023-07-27 16:21:24 -05:00
Marko Oblak 49f5f98560 SWDEV-413516 - [AMDSMI][Linux][BM] Changed mapping pcie speed from pcie type
Signed-off-by: Marko Oblak <Marko.Oblak@amd.com>
Change-Id: I5bcee99ec596bb831465d5a4e98a78681c24b20f


[ROCm/amdsmi commit: e0b84c5d1f]
2023-07-27 16:21:24 -05:00
Marko Oblak cff0c1374e SWDEV-412839 - PCIe speed - change in mapping
Signed-off-by: Marko Oblak <Marko.Oblak@amd.com>
Change-Id: If75530a8b2e1647d2cb31733decfba3837dac7bf


[ROCm/amdsmi commit: f9ce3925a4]
2023-07-27 16:21:24 -05:00
Bill(Shuzhou) Liu 0d0e10d677 Change reset power error message to logging
Since the reset will continue if the reset power and current power
is the same, error may confuse the user.

Change-Id: I35b9ef17afd47b5af5bd2b8882a44f63991fe509


[ROCm/amdsmi commit: aeb6c61f54]
2023-07-27 15:18:28 -05:00
Bill(Shuzhou) Liu 1f2d0cefb3 Handle csv output when the command is not based on the device
Fix the error only one csv line can be printed out when output
is not based on device.

Change-Id: Idacc5d98acc223e932fb3d46c888bfa04778b73c


[ROCm/amdsmi commit: 80d650b95a]
2023-07-26 15:28:18 -05:00
Maisam Arif 8c2266573f SWDEV-394316 - Handle not applicable vbios
Change-Id: I3390078a63c9a5eff67024b84a3be1369c4b1460
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>


[ROCm/amdsmi commit: c78ec46671]
2023-07-25 16:33:22 -05:00
Charis Poag c9cf6c5750 Merge branch 'amd-dev' into change-896675-1
Change-Id: I950d40ff0789f62595561196aea48203b00d165b


[ROCm/amdsmi commit: c139bd8dc0]
2023-07-25 10:02:37 -05:00
Shuzhou Liu f763a20f39 Merge "Make vbios optional in amd-smi" into amd-dev
[ROCm/amdsmi commit: 8d4370c08c]
2023-07-25 09:59:49 -04:00
Shuzhou Liu 08472f8417 Merge "Make vbios version optional when discover GPU" into amd-dev
[ROCm/amdsmi commit: eb5d1b786f]
2023-07-25 09:59:33 -04:00
Charis Poag 50a5e05798 Merge branch 'amd-dev' into change-895251-1
Change-Id: I778bda482973b292d6de1b3f266619cbc852c2f5


[ROCm/amdsmi commit: 98c607c8fd]
2023-07-24 17:23:31 -05:00
Maisam Arif 6d0f19bbd3 Make vbios optional in amd-smi
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I61d54ea8a01112818df9f431f319533f1bc36f27


[ROCm/amdsmi commit: 261de2ceab]
2023-07-24 16:11:19 -05:00
Maisam Arif 40de47081e Merge "Changed output font and text size" into amd-dev
[ROCm/amdsmi commit: 2ae95ba1da]
2023-07-24 16:51:45 -04:00
Bill(Shuzhou) Liu 473a370cd8 Make vbios version optional when discover GPU
Not all GPU has the vbios, make vbios_version optional.

Change-Id: Idc00a0c17baccadea8f26b955237c513bb9a14df


[ROCm/amdsmi commit: 41d0f4ad5c]
2023-07-24 12:28:34 -05:00
Sirb, Corina a43c2f1a71 Changed output font and text size
Change-Id: I4f544781dc6be581585737c129b5e986cc05b09f


[ROCm/amdsmi commit: 0fa1d1e068]
2023-07-21 10:57:08 -04:00
Bill(Shuzhou) Liu 4d4f8a4f8c Change API to get the driver date
Support the driver date from libdrm.

Change-Id: I88e694732b538220e11fdb4029712bb5a6f44380


[ROCm/amdsmi commit: 55bf9cbe13]
2023-07-21 08:28:06 -05:00
Charis Poag 702022bdd1 Merge branch 'amd-dev' back into rocm-smi merge
Change-Id: Id19cb9ac9cb1ad9ed98fc766c08a00a998ec2373


[ROCm/amdsmi commit: 53e36d3813]
2023-07-20 20:04:11 -05:00
Charis Poag 43075e2886 Update logging and README for other project usage
Updates:
    * [rocm-smi] Logging now can update files on
      per-project-basis for install/remove
    * [rocm-smi] README now has latest build
      instructions, including test builds
    * [rocm-smi] Updated README to include
      revision dates

Change-Id: Ifb19a6f32ccf6938f47225db53fef88021909264
Signed-off-by: Charis Poag <Charis.Poag@amd.com>


[ROCm/amdsmi commit: 4613e8dec3]
2023-07-20 19:09:11 -05:00
Marko Oblak 2cd3f6565e SWDEV-410048 - Remove --caps from tool
Signed-off-by: Marko Oblak <Marko.Oblak@amd.com>
Change-Id: I3b71c8210401cbbe28905371febe084a4fdaf4ba


[ROCm/amdsmi commit: 9077411fcb]
2023-07-20 15:56:53 +02:00
Charis Poag 9fbf58a0c9 Merge 'rocm-smi/amd-staging' into 'amd-smi/amd-dev'
Signed-off-by: Charis Poag <Charis.Poag@amd.com>
Change-Id: Id35c9807c45a965c968fb430e3ce4f3c7069c210


[ROCm/amdsmi commit: afa174c655]
2023-07-19 18:46:28 -05:00
Maisam Arif d4474f5bf2 Merge "[AMDSMI] [Linux] [BM] [Guest] Improve Python readme" into amd-dev
[ROCm/amdsmi commit: 1bbfb0af56]
2023-07-19 16:07:29 -04:00
Marko Oblak 1ffbaf3793 [AMDSMI] [Linux] [BM] [Guest] Improve Python readme
Signed-off-by: Marko Oblak <Marko.Oblak@amd.com>
Change-Id: Ic8c1ea2789407621d2155763a33cc7059cfe6729


[ROCm/amdsmi commit: 8f7e795b02]
2023-07-19 13:46:00 +02:00
Oliveira, Daniel bec2ebc893 Add revision to --showhw
Code changes related to the following:
  * Added 'rsmi_dev_revision_get()' related code
  * Test code
  * Functional tests

Change-Id: I8c2097c65384a028c8c8437b717d05d52fe45250
Signed-off-by: Oliveira, Daniel <daniel.oliveira@amd.com>


[ROCm/amdsmi commit: 573620f586]
2023-07-18 16:17:33 -05:00
Sirb, Corina a88074671e Update Copyright Date
Signed-off-by: Sirb, Corina <corina.sirb@amd.com>
Change-Id: I4b5dc49a5d756012e533ba7196b246836cf980f6


[ROCm/amdsmi commit: ebe0cecd9e]
2023-07-18 15:05:14 -04:00
Galantsev, Dmitrii 77d8364211 Fix sys and id tests
The following read tests were failing:
*.TestIdInfoRead
*.TestSysInfoRead

1. *.TestIdInfoRead failed because rsmi_dev_brand_get did not specify
   dependency on vbios_version.

2. *.TestSysInfoRead failed because the test didn't expect vbios_version to
   be missing. Which is a new behavior in Aqua Vanjaram.

Change-Id: I9ee88a12fcf6cff2032049e2ecdfb2957efb03ab
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: 8fe848d10e]
2023-07-17 15:52:23 -04:00
Galantsev, Dmitrii fa34ddea56 Add .cache to gitignore
Change-Id: Ida03bf1f50704bea44827d7578cd74c1896d4368
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: b0fe2fbd07]
2023-07-17 15:52:23 -04:00
Bill(Shuzhou) Liu c5d1e3f8c0 rocm-smi --showevents shows wrong gpuID
Use the gpuid returned from the event data instead.

Change-Id: I7f286cc105f7ea12985223e603504f0ef3d9724e


[ROCm/amdsmi commit: 0aeb6025bd]
2023-07-13 08:28:53 -05:00
Bill(Shuzhou) Liu fa6f0f5ea0 Fix unit test errors
Add unit test error handling for set freq and volt.

Change-Id: I5877f8300b942caac8f38e6efc03264bfc432def


[ROCm/amdsmi commit: 4307330cb0]
2023-07-12 09:39:39 -04:00
Vukasin Nedeljkovic c0bc09b2f7 SWDEV-407430 [AMDSMI][Tool][Linux][BM] PCIE unit update
Signed-off-by: Vukasin Nedeljkovic <Vukasin.Nedeljkovic@amd.com>
Change-Id: I7615cd1fcf504719e1032076bb836964fc44f4e0


[ROCm/amdsmi commit: 59b2b7bea4]
2023-07-12 08:36:29 +02:00
Vukasin Nedeljkovic 13377ac5ca SWDEV-407428 [AMDSMI][Tool][Linux][BM] static update to HEX
Signed-off-by: Vukasin Nedeljkovic <Vukasin.Nedeljkovic@amd.com>
Change-Id: I4db506a2467b460c9c635e4e2790dd1e8fd0a196


[ROCm/amdsmi commit: 3f0441a74c]
2023-07-11 13:05:41 +02:00
Galantsev, Dmitrii e925cc320e Simplify gitignore
Remove generic gitignore to simplify tracking of generated files

Change-Id: Idf1f9719b2cfd16b31332a3ed87be5943c2c1ce7
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: e6c42c6626]
2023-07-07 11:48:09 -04:00
Jeremy Newton b214d2047e Fix python loading of librocm_smi64
The librocm_smi64.so is used for development, while
librocm_smi64.so.MAJOR is used for runtime, thus the python front end
should not be loading the .so binary, but rather the .so.MAJOR binary.

As well, it's good not to hardcode "lib" as some distros will change
this.

rsmiBindings.py is now generated with CMake

Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
Change-Id: I7cb745f8936fdf10d3ebd6c1e606031f713184ca


[ROCm/amdsmi commit: 2d2c73a5e6]
2023-07-06 09:52:56 -04:00
Bill(Shuzhou) Liu fb7085441b Handle key not exists errors for voltage sensor
Check the key exists or not before access sensor map.

Change-Id: I0ac5d63ae981ec2f984b1d464e93508560a4d030


[ROCm/amdsmi commit: 7b107258ff]
2023-07-05 09:25:27 -04:00
Marko Oblak f877896d3a SWDEV-391188 - [AMDSMI][LinuxGuest] Added description in amdsmi header file for amdsmi_get_gpu_process_list, changed mentioned API in py_interface
Signed-off-by: Marko Oblak <Marko.Oblak@amd.com>
Change-Id: I8cb7f2c6595da6ab0263e6fa4365bde91d900979


[ROCm/amdsmi commit: 78faf411f8]
2023-07-03 06:35:12 -04:00
Jeremy Newton dd8eaa40b2 Only install asan license if enabled
Change-Id: I79c6fce84c23ed12e65db8e234a29dbfedd11f68
Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>


[ROCm/amdsmi commit: 828f46b445]
2023-06-30 23:34:43 -04:00
Jeremy Newton 9381fe711c Actually fix version string
There seems to be a scope issue with the existing variables, but just
putting in the pkg version string seems sufficient.

Change-Id: I4ccef872ff848a70cb2abc07bf605c5f29a608e8
Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>


[ROCm/amdsmi commit: 4f481dd7f3]
2023-06-30 23:34:14 -04:00