Suma Hegde
abad3305a1
amdsmi_esmi_intg_example.cc: Fix compilation warnings
...
remove unused variables, fix uninitialized variables
Change-Id: Ia0b529d3bb0ec8c541bcf1abd8b06d4237d593e8
2023-10-16 15:06:02 -04:00
Suma Hegde
597fb00bef
esmi: Clone open-source esmi repo as part of build
...
1. Remove esmi (internal gerrit) repo as git submodule
2. Clone esmi (open-source) repo during cmake using "git clone"
3. Download amd_hsmp.h header file during cmake build
TODO:
We can update the amd_hsmp.h to mainline linux kernel repo after
next Linux kernel release.
Change-Id: I763b5e287e24337c8e9e25f4e421cdb8698b9322
2023-10-16 15:06:02 -04:00
Maisam Arif
2468a6039c
Adjusting cli exception handling
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I37f44f0d07a8d1fc65e6109edf9b4cf7f30695a9
Signed-off-by: Maisam Arif <maisarif@amd.com >
2023-10-16 08:52:41 -04:00
Maisam Arif
ddc63db14c
Added custom help formatters for subparsers
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: Ib7209ad7188733fa2492cde302f5c82c9c9bfa42
2023-10-16 08:51:43 -04:00
Maisam Arif
a0c2735343
Added memory & compute partitions to cli tool
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I0db6e2b9e3ae2e19397a012e095173ec550c1e42
2023-10-16 08:50:38 -04:00
Maisam Arif
2076b2a736
Fixed ecc_correction_schema call in python interface
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I16e2bf566342a8272c07f30b8db4df4acb9c3649
2023-10-13 21:31:17 -05:00
Maisam Arif
1f8d9cb9ef
Added memory & compute partitions to amd-smi lib
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: If3acea6ad281298f1f05785b2e6d8e70fae8d89b
2023-10-13 21:47:59 -04:00
Deepak Mewar
ee890c5060
esmi: remove energy reporting, fix errors from clang compiler
...
Clang compiler reporting errors while generating python wrappers for esmi lib
Change-Id: I62352aba3b87f9a6b044c97af6b9fd649612b622
2023-10-13 14:45:25 -04:00
Maisam Arif
c7726bde3d
Fixed spacing in amd-smi tool output
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I83cb040b81a4d3653417ba7399160eb81e95ce33
2023-10-13 12:07:01 -04:00
Deepak Mewar
1f0f5ab63f
build issue fix with sample test code
...
Change-Id: I03890879253f1be74311cf613a9baad55d197f75
2023-10-13 08:17:43 -04:00
Maisam Arif
de892bab69
Add yaml as dependency for Ubuntu
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: Ie3da877522acbf320feac4d9d34fb9344d40f339
2023-10-13 02:20:48 -04:00
Maisam Arif
d72f9cca1b
Updated wrapper generation
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I2af5704ce62c7d58a13cbc51dcca92f3d35fc07a
2023-10-13 01:19:40 -05:00
Maisam Arif
f0e6f34bfe
Updated interface & wrapper to work with ras_feature
...
Change-Id: Iadd8c5e736f4dad2662dda2c9587454f00197474
Signed-off-by: Maisam Arif <maisarif@amd.com >
2023-10-13 02:06:14 -04:00
Bill(Shuzhou) Liu
d92d4e4b38
Add new API for RAS related information
...
The API to get the EEPROM version and ECC schema.
Change-Id: Iee6b3c555541a33bf16bf9ac1fd60100dfff5643
2023-10-13 02:06:14 -04:00
Galantsev, Dmitrii
69c35a4cff
CMAKE - Fix amdsmi lib version
...
This allows for lib version to change
before: libamd_smi.so.1.0
after: libamd_smi.so.23.4
Change-Id: Iaba991afac4e625d11df2bacdf6287c6f8bf5383
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
2023-10-12 22:13:30 -04:00
Galantsev, Dmitrii
c94036de21
Add wrapper generator
...
Change-Id: I34a191acfefbef2e40d0242eb121ba9af55cb9de
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
2023-10-12 22:12:56 -04:00
Maisam Arif
66eb3de5e4
Added static --cache to cli tool
...
Change-Id: I494d29aba7915a0b8815036977b2636a2da5264e
Signed-off-by: Maisam Arif <maisarif@amd.com >
2023-10-12 10:13:56 -04:00
Dmitrii Galantsev
cb9875b056
Merge "Merge rocmsmi/amd-staging into amd-dev 20231010" into amd-dev
2023-10-12 00:46:08 -04:00
Galantsev, Dmitrii
c988ff1730
Fix amdsmi.h and update wrapper
...
Having an unnamed struct confuses our wrapper generator.
Adding a name solved it.
Change-Id: Iab3e73317fb21fb3667beef04878d4f3da96eadf
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
2023-10-11 22:55:27 -04:00
Galantsev, Dmitrii
6d72d65c48
Merge rocmsmi/amd-staging into amd-dev 20231010
...
Change-Id: I492562094a004eb78b2cc2b52d14d013d9f97112
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
2023-10-11 18:58:12 -05:00
Maisam Arif
c6e54e09e7
Placeholders for new ras values
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I66cea253b19a5029172af0a3f4dd2f993c13b309
Signed-off-by: Maisam Arif <maisarif@amd.com >
2023-10-11 19:39:38 -04:00
Maisam Arif
262b5b0254
Added xgmi physical id to static --asic
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I9e9f5929da635d22495aa394f2a9e5e6ce441706
2023-10-11 13:28:27 -05:00
Galantsev, Dmitrii
3f0071599d
Fix rocm_smi.cc
...
Change-Id: Ib074dd542d8d37a6a618e10bd3bd389ad0cef108
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
2023-10-11 11:46:49 -05:00
Galantsev, Dmitrii
1b606acf73
Fix amdsmi.h and update wrapper
...
Having an unnamed struct confuses our wrapper generator.
Adding a name solved it.
Change-Id: Iab3e73317fb21fb3667beef04878d4f3da96eadf
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
2023-10-10 17:58:25 -05:00
Maisam Arif
b46ae13011
Corrected total ecc counts
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I48b85d6476b829604044daab420883f94551abe2
2023-10-10 13:23:45 -05:00
Maisam Arif
b47d028da2
Removed uncountable blocks from metric --ecc-block
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: Iab8ed3f80c8ebd7ffd3bfcf197e1a0b03782b498
2023-10-10 10:32:20 -05:00
Bill(Shuzhou) Liu
6ca95c1a2d
Add support to XGMI physical id
...
Get XGMI physical id from sysfs.
Change-Id: Ifd9e431bc2fbfd759d888a71b99046a5eb07b6ed
2023-10-10 09:29:05 -04:00
Charis Poag
31a1fcce7d
Add rsmi_dev_power_get
...
* Updates:
- [API] Added rsmi_dev_power_get(uint32_t dv_ind,
uint64_t *power,
RSMI_POWER_TYPE
*type)
provides generic get to average or
current power & provides backwards
compatibility
- Added a utility function to get MonitorTypes
(monitor_type_string(type)) &
RSMI_POWER_TYPE (power_type_string(type))
strings
- [Tests] Added rsmi_dev_power_get tests and
provided better verification of return values for
all power APIs
- [Tests] Updated power outputs to show correct
units
- [example] Now uses avg, current, and generic
power functions with type output response
Change-Id: I5ca06ca37fd5f61e100f2835b664d6cdd1ca42e6
Signed-off-by: Charis Poag <Charis.Poag@amd.com >
2023-10-10 00:34:19 -05:00
Deepak Mewar
192fb538be
added metric table wrapper APIS & test code
...
Change-Id: I24207b3c32d7294337140a1f5108b81f3bf33580
2023-10-10 00:03:11 -04:00
Deepak Mewar
7a2f3c8d56
Updated the sample test for esmi wrappers
...
Change-Id: Ie382b84a0aed4ae40f4befa0e922c19ae8a316c8
2023-10-10 00:03:11 -04:00
Maisam Arif
4c66db6b03
Updated human readable output for numa affinity
...
Change-Id: Id9767100061bd6e0f3b42cd2af80da7b588276b6
Signed-off-by: Maisam Arif <maisarif@amd.com >
2023-10-10 00:00:09 -04:00
Oliveira, Daniel
4e4ebde640
rocm_smi_lib: Fix Modernize and refactor gpu_metrics
...
Adds support for 'gpu_metrics_v1_4' and new counters
Code changes related to the following:
* rsmi gpu_metrics APIs
* rsmi gpu_metrics Logs
* The new gpu_metrics are now part of the Device
Build changes related to the following: None
Change-Id: Ie748e977cd0a01c6a2fb82260014c0699605dbb3
Signed-off-by: Oliveira, Daniel <daniel.oliveira@amd.com >
2023-10-09 21:43:22 -05:00
Maisam Arif
7ce46dcc24
Updated bad-page output error handling
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: Ibcf4129d1b1cbe0f3df1d4751c61f6a318bb1323
2023-10-09 17:41:08 -05:00
Maisam Arif
12882e7e39
Updated metrics --clock to include vclk0 & vclk1
...
Change-Id: I3b5df9da603fbd6be52a3d443ba7e0fe1a69fe6e
Signed-off-by: Maisam Arif <maisarif@amd.com >
2023-10-09 17:41:08 -05:00
Maisam Arif
3f6d677eb6
SWDEV-418008 - Added placeholders for pcie metric info
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I7975a6fdda3a480866c39253a33723e154a841ce
2023-10-09 17:41:08 -05:00
Maisam Arif
816a020873
Enabled static --board for guest systems
...
Change-Id: I80e496139e20d8e328a6669f59de8922484c4315
Signed-off-by: Maisam Arif <maisarif@amd.com >
2023-10-09 17:41:08 -05:00
Maisam Arif
02b4b67ca0
Added memory information to Guest
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I3e6b4bba3746c9498d34e6d2840461489eb3bc61
Signed-off-by: Maisam Arif <maisarif@amd.com >
2023-10-09 17:41:08 -05:00
Maisam Arif
669b9eaedd
Updated static --bus output building
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I8f75cfcf1dae96d567ad86bda1467f1cb54e744c
2023-10-09 17:41:08 -05:00
Charis Poag
b251bb0c9f
Rename NPS -> memory partition + compute partition node fix
...
* Updates:
- rocm_smi_lib + CLI:
Rename all "NPS mode" -> "memory partition"
related files/functions/API/CLI to align with correct
technical naming
- rocm_smi_main: fixed identifying primary card's unique id
utilize rsmi_dev_unique_id_get to map which
KFD nodes belong to it
- rsmi_dev_*_partition*: now have better logging output
- compute partition tests:
Added 20 sec delay for workaround until GPU
busy is confirmed as the issue
- CPPLint fixes/formatting
- [Example] Moved all endl to "\n" for efficiency
- [Example] Added Edge & Junction temperature examples
- [Example] Added rsmi_minmax_bandwidth_get() example - WIP
Change-Id: Ida6db6fda7e0ac9d696a34cb15b4746e69d58d51
Signed-off-by: Charis Poag <Charis.Poag@amd.com >
2023-10-06 11:51:09 -04:00
Galantsev, Dmitrii
8244a677db
Update package version
...
Change-Id: Ie094f75d028a09f862729094815f8a2b6ea8ad78
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
2023-10-05 12:49:11 -05:00
Bill(Shuzhou) Liu
1a233f93fb
APIs for the cache level and size
...
Read the cache level and size from topoogy sysfs file.
Change-Id: Id3c558c95bcb79139a19e4adbaa7ff333d06098f
2023-10-05 11:10:54 -05:00
Bill(Shuzhou) Liu
656f12e0f3
Read PCIe slot type from sysfs
...
Read the PCIe slot type from sysfs instead of libdrm.
Change-Id: I9392b9e18a209ac7332f6902bcafb3b6062c86c1
2023-10-05 09:58:36 -04:00
Galantsev, Dmitrii
3d3759061a
Merge remote-tracking branch 'rocmsmi/amd-staging' into amd-dev
...
Change-Id: I6037383a3efa777cc281a992fd9aa11d8e9ced28
2023-10-04 19:11:59 -05:00
Galantsev, Dmitrii
e962d3b281
TESTS - Don't fail on TestFrequenciesRead
...
- Return from freq_output function early if clock is unsupported
- Right-align frequencies
Change-Id: I799c9351dac8a5be161bc9243cd3816539728357
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
2023-10-04 18:24:56 -05:00
Maisam Arif
572bf563d1
Added driver_name to amdsmi_cli tool
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I8f3d52e0b23298443b2b16afec418cbbbc5f77e0
2023-10-04 08:54:19 -04:00
Galantsev, Dmitrii
6c8767a69a
TESTS - Disable same tests as in rocm-smi
...
Change-Id: I2587baf8a76e4e3a54880e73941b1d973440e7d3
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
2023-10-03 09:58:58 -04:00
Galantsev, Dmitrii
d862bee754
Add --version to CLI
...
Change-Id: Id2a8f10f544ed04e874db773820534eddd73f55d
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com >
2023-10-02 17:57:02 -05:00
Bill(Shuzhou) Liu
d665157cd1
rocm-smi shows wrong fwinfo
...
Add new fw block into the rocm-smi tool.
Change-Id: Id5c7ccc2fc491f7e5d0390aeb4c6f81fd12fa644
2023-10-02 16:28:31 -04:00
Maisam Arif
fadf1b6cc9
SWDEV-410230 - Added slot_type to amd-smi static --bus
...
Signed-off-by: Maisam Arif <maisarif@amd.com >
Change-Id: I2006a3525a8aa9091bf54501461d364f7237f00f
2023-10-02 10:15:34 -04:00
Maisam Arif
b58665e77b
Adjust static --board output to be inline with Host
...
Change-Id: Ia6dcca5be077ef9e04533b632628a62633b63556
Signed-off-by: Maisam Arif <maisarif@amd.com >
2023-10-02 09:30:25 -04:00