Commit Graph

175 Commits

Author SHA1 Message Date
Maisam Arif ad3ba88ba5 [SWDEV-474474] - Changed Monitor PCIE_REPLAY count to use gpu_metrics
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: I4351a23e8412875bb4b23b30747ac6d0bf3d3c56


[ROCm/amdsmi commit: 5b7be3bf99]
2024-07-18 17:53:49 -04:00
Maisam Arif 0865293d27 [SWDEV-472641] Set file opening and writing encoding to utf-8
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: Ic5cdca41b588341f7894de72dfe3d949378f9a61


[ROCm/amdsmi commit: c83bcb7ac9]
2024-07-12 09:46:44 -04:00
Maisam Arif 4d4ccf4bde SWDEV-446724 - Version command human readable output file format fix
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: I94de5b03355b503ade307f2a3881acd07266d6c7


[ROCm/amdsmi commit: 943c74b6ef]
2024-06-24 10:35:34 -05:00
Oliveira, Daniel 45652b301b fix: [SWDEV-466302] [rocm/amd_smi_lib]
Fixes `amdsmi_get_gpu_process_list` now requires sudo to access pid and memory information

Code changes related to the following:
  * amdsmi_get_gpu_process_list()
  * CLI

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


[ROCm/amdsmi commit: a20db864b8]
2024-06-24 00:38:17 -04:00
Maisam Arif 3ef31b3ed0 SWDEV-435197 - Add process table to CLI monitor subcommand
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: Ibe06f4a4be619ae9cba909c2474b0e482eeb87d5


[ROCm/amdsmi commit: 92f014059e]
2024-06-19 23:36:55 -05:00
Bill(Shuzhou) Liu f86ba0a7c4 Change the clean shader API to clean local data
To be align with the unified API.

Change-Id: I2819339fba6f528204cebd3e9605109e82cbc5b4


[ROCm/amdsmi commit: e3c63628e5]
2024-06-17 16:23:33 -05:00
Maisam Arif 807ca0ad89 SWDEV-466598 - Fixed CLI process outputs
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: I902e82b6e78311e99542b109435346889daa49fc


[ROCm/amdsmi commit: 9fb2c967de]
2024-06-08 18:31:08 -05:00
Maisam Arif e154b3c89b Removed Throttle Status from CLI Tool
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: I8eb8f30f821589003201d6d8bb96592ec5f8a483


[ROCm/amdsmi commit: 37c044696d]
2024-06-07 15:19:48 -05:00
Maisam Arif 99f0468803 Corrected voltage curve cli output in N/A case
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: I77e0888d94ba489eb4820cdd6c20e9f7de04241f


[ROCm/amdsmi commit: 2197a393f4]
2024-06-06 15:55:22 -04:00
Bill(Shuzhou) Liu b517f3c214 Change the name of clear sram to run cleaner shader
The function is to clean the local data in LDS/GPRs. The clear sram
is misleading.

Change-Id: I0385e6d6348602fe0f347d17e48ed8983f7ceb87


[ROCm/amdsmi commit: 4cf59c4edb]
2024-06-05 12:07:39 -05:00
Maisam Arif 7dfe4276cc Use different sysfs for soc_pstate and xmgi_plpd
The sysfs is changed to use the pm_policy folder with multiple
dpm_policy files.

Change-Id: I40fac8de2d0cb127950d238b8196f6d2416778d0


[ROCm/amdsmi commit: e5d1ba4621]
2024-05-31 01:38:41 -04:00
Dalibor Stanisavljevic 5153032416 SWDEV-457337 - Header aligment
Missing AMDSMI_STATUS prefix

Change-Id: I15d050a146c92f6897d48317d8fec51d046535d1
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>


[ROCm/amdsmi commit: 458dc8f180]
2024-05-30 15:35:38 -04:00
Maisam Arif 486db45f90 Moved --clear-sram-data to 'amd-smi reset'
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I46eaf7f887b15d6a8d8a31155bb3e448ef0ec04a


[ROCm/amdsmi commit: 927b9c644b]
2024-05-30 02:26:40 -05:00
Dalibor Stanisavljevic cdd24a7b0f SWDEV-457337 - Fix header alignment
Change-Id: I9f25f6c4f0d00c76b66d13162f30be11368f5b59
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>


[ROCm/amdsmi commit: 7b2463abe0]
2024-05-23 04:41:57 -04:00
Maisam Arif bbcff5221d SWDEV-458102 - Updates to pp_od_clk_voltage parsing
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I650dae1a99856dcde914fe66917cf9111f3ce0e2


[ROCm/amdsmi commit: 7d999aa34c]
2024-05-15 03:18:24 -05:00
Maisam Arif 48131e9481 Revert "SWDEV-458102 - Deprecated Voltage Curve API"
This reverts commit cc8eb17759.

Change-Id: I8a3eaf0a9f28200e09fb35d5260fbc070fe8a4a9


[ROCm/amdsmi commit: 11c72946eb]
2024-05-02 15:27:16 -05:00
Charis Poag f7d3417a7f SWDEV-450580 - Fix powercap set
Updates:
     * CLI - Added AMDSMIHelpers.convert_SI_unit() to help
       conversion of units
     * API - Reverted to uW for power cap limits
     * CLI - amd-smi static --limit now includes MIN_POWER
     * Tests now are all using uW units to keep W conversion
       to only happen in CLI
     * Python API now reflects same units as uW (what is seen
       in amdgpu driver)
     * CLI - amd-smi metric --power:
       Fixed power seen on gpu_metrics v1.3

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


[ROCm/amdsmi commit: c24d66740e]
2024-05-02 10:13:39 -05:00
Maisam Arif cc8eb17759 SWDEV-458102 - Deprecated Voltage Curve API
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I111c3ce26d2ab66d5e755432f4b8a9bfa631f805


[ROCm/amdsmi commit: 1423fb632e]
2024-05-02 02:53:29 -04:00
Maisam Arif 30ffa6feb0 SWDEV-453493 - Fix Null pointer reference in amd-smi bad-pages
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I10a1278b68cbb464dd0fb38a2de50413f6f43959


[ROCm/amdsmi commit: e6054be6e7]
2024-04-26 04:04:43 -05:00
Maisam Arif 83d5f67750 Updated monitor --pcie to use gpu_metrics pcie bandwidth
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Id37aebc0297317edcd0f459a4817f56a6030d902


[ROCm/amdsmi commit: 25ef420407]
2024-04-25 20:10:02 -04:00
khashaik d906f1891f amd-smi_cli: Fix issue for set core boost limit in CPU
Change-Id: I1af4e9d14b1667c5279fcf02cebb4103a92e162c


[ROCm/amdsmi commit: aad42d414a]
2024-04-25 02:05:41 -04:00
Bill(Shuzhou) Liu 5b0f4638c4 Process isolation and clean shader
A few APIs and command line options are added to support process
isolation and clean shader.

Change-Id: I98ad3fc9fc7429799a21798b7fca1c307de7f403


[ROCm/amdsmi commit: 7d2ab7970d]
2024-04-24 13:22:20 -04:00
Maisam Arif cebb07e795 Added new ecc blocks and adjusted metric --ecc-block filtering
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ib2f69c7d59ee5108024794434fb202b5e4f58738


[ROCm/amdsmi commit: 1bd18c1a65]
2024-04-18 15:01:41 -04:00
Maisam Arif 9b4f0f1d2b SWDEV-455131 - Updated process APIs
- Removed amdsmi_get_gpu_process_info from python API
  - Updated documentation
  - Aligned process --json output format to unit & value format

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


[ROCm/amdsmi commit: c551c3caed]
2024-04-18 14:00:59 -05:00
Maisam Arif bdf4a5da2f Removed fb_sharing fields from Linux BM
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ia2942b9d33699ced1683270454c479701bce1246


[ROCm/amdsmi commit: 9758a8bc33]
2024-04-05 03:01:24 -04:00
Charis Poag da77ac3975 SWDEV-445668 - Align topology JSON
Updates:
    - [CLI] Updated json output to provide format
      similar to host
      eg.
      [
    {
        "gpu": 0,
        "bdf": "0000:01:00.0",
        "links": [
            {
                "gpu": 0,
                "bdf": "0000:01:00.0",
                "weight": 0,
                "link_status": "ENABLED",
                "link_type": "SELF",
                "num_hops": 0,
                "bandwidth": "N/A",
                "fb_sharing": "ENABLED"
            },
            {
                "gpu": 1,
                "bdf": "0001:01:00.0",
                "weight": 15,
                "link_status": "ENABLED",
                "link_type": "XGMI",
                "num_hops": 1,
                "bandwidth": "50000-100000",
                "fb_sharing": "ENABLED"
            },
        ...
        ]
    },
    {
    ...

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


[ROCm/amdsmi commit: 08a3e76b26]
2024-04-01 18:37:06 -04:00
Oliveira, Daniel 9e2b1d8a09 fix: [SWDEV-442525] [rocm/amd_smi_lib]
Fixes gpu_process_list

Code changes related to the following:
  * amdsmi_get_gpu_process_list()
  * CLI
  * Examples
  * Unit tests
  * Changelog
  * Readme
  * rocm_smi_lib commit: 677433b367

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


[ROCm/amdsmi commit: 08e2e21bab]
2024-03-27 16:48:24 -05:00
Maisam Arif 980da3b329 SWDEV-445664 - Aligned metric --ecc & --ecc-blocks with Host
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I93cf2bdab8c4c066bacf0e910e5620d37b362b07


[ROCm/amdsmi commit: e2e4349bd2]
2024-03-26 16:30:31 -04:00
Maisam Arif 4d62fc8bd6 SWDEV-445664 - Aligned metric --clock with Host
Change-Id: Ib4dc372aed61f6301680ac746eccf448e9d0ed00
Signed-off-by: Maisam Arif <maisarif@amd.com>


[ROCm/amdsmi commit: 93b81e5012]
2024-03-26 16:30:31 -04:00
Bill(Shuzhou) Liu b9b958b82c Get and set the XGMI PLPD
Update the API and CLI to support XGMI Per-Link Power Down Policy.

Change-Id: Iaf04a771eb8bb0829a5b3088d803a7355a8dfd0b


[ROCm/amdsmi commit: e4085c6414]
2024-03-26 01:48:14 -05:00
Deepak Mewar 16b0ff1657 fix for cpu enable apb error
Signed-off-by: Deepak Mewar <deepak.mewar@amd.com>
Change-Id: I092b88484046671857c4adbbbeaba78180b103ab


[ROCm/amdsmi commit: 1ac1ee4b9a]
2024-03-25 06:46:42 -04:00
Oliveira, Daniel 51d25d8feb fix: [SWDEV-448201] [rocm/amd_smi_lib]
Adds Add PCIE Errors

Code changes related to the following:
  * amdsmi_get_pcie_info()
  * CLI
  * examples

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


[ROCm/amdsmi commit: 1310c767ce]
2024-03-24 23:33:32 -04:00
Maisam Arif 438fc0f692 SWDEV-438593 - Updated proccess output error handling
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I67747da06362428587dab7467d85d8c9296d442e


[ROCm/amdsmi commit: 06fa6580c4]
2024-03-21 15:34:36 -05:00
Bill(Shuzhou) Liu 46ab68f840 Set and get DPM policy for GPU device
Add new APIs to set and get dpm policy for the GPU device.

Change-Id: I26fa49cd17d0ce66bda3446c38945a6cf35717ff


[ROCm/amdsmi commit: 108e6d4ae6]
2024-03-12 10:32:31 -04:00
Maisam Arif 010d839dca SWDEV-443112 - Ensured dictionary output when static --bus is empty
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ibd61eeec417a9ff40cb868073b3e1eed2a87cc59


[ROCm/amdsmi commit: 2f8f34946e]
2024-03-11 15:25:28 -04:00
Maisam Arif 9326d1de19 Enabled ecc-blocks argument to linux VM
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I310c227ffa3ef45688a49cdedb43844aafe86339


[ROCm/amdsmi commit: dea4fac979]
2024-03-11 15:23:04 -04:00
Maisam Arif a807b8dc37 Revert is not None check for static & metric arugment checks
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I351c88d53c9a626ad4305a7c61dc18b976b853f2


[ROCm/amdsmi commit: c8c03dfab0]
2024-03-04 11:02:50 -06:00
Maisam Arif ab907b4fd8 SWDEV-448626 - Removed gpu prefix in non-csv formats
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I77fc58828a978080482e6ab01ff89f1f5a554dc5


[ROCm/amdsmi commit: 463817f344]
2024-03-01 09:09:23 -06:00
Maisam Arif b390bbec7a Bump Version to 24.4.0.0 & Corrected argument checks for set subcommand
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I651f8ca652c764f30845503dd869f435f728d5ba


[ROCm/amdsmi commit: 69caba8727]
2024-02-23 20:47:19 -06:00
Maisam Arif 60a86065c0 SWDEV-436792 - Add XGMI Table
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ia7a43b2b6d01fd32ece00cc26c28ba3088f3aa9e


[ROCm/amdsmi commit: 4ca326d824]
2024-02-22 23:10:57 -06:00
Maisam Arif 06d32ac405 Align to Host left adjusted topology output
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I8e56156200d5eface7f069ccf82a6b7503e1a48c


[ROCm/amdsmi commit: 16c34e91ac]
2024-02-22 23:10:57 -06:00
Maisam Arif 4cf9c0eb03 SWDEV-436992 - Added Units of Measure to JSON Output
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I0aba1533bc2919b7354ef6cad5ae4ae5d23e92a7


[ROCm/amdsmi commit: 794354dad9]
2024-02-22 07:16:13 -05:00
Maisam Arif 8c4518eb66 SWDEV-445664 - Aligned Metric Command with Host
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I905ee72272bb4c5ccde3e237d2663ec6e0e55034


[ROCm/amdsmi commit: 542bfc0c77]
2024-02-22 07:15:17 -05:00
Maisam Arif 13e9ab4ad6 SWDEV-445396 - Aligned Static Command with Host
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I4182b9104e173f54830fc44819a61d74d31d65d7


[ROCm/amdsmi commit: a719ae9707]
2024-02-22 03:35:00 -05:00
Bill(Shuzhou) Liu 21cf0c1b5c Unify the amdsmi_get_pcie_info python interface
Make the python interface consistent with the C interface.

Change-Id: Idda08f888947c757e475d5a024b0ec3d8e1d846a


[ROCm/amdsmi commit: db33cda0c1]
2024-02-22 03:33:59 -05:00
Maisam Arif 2c3537e389 Refactor ESMI Initialization and Argument Parsing
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Iefab3a8110e0d3c525ee0cef1bdef9101550e9de


[ROCm/amdsmi commit: f58613561c]
2024-02-21 19:02:14 -05:00
Maisam Arif c3bfdbe806 Aligned cache property enum with Host
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ie64a33f55c9a9a7cc8c806419509897351f37c70


[ROCm/amdsmi commit: 703fdb0ed2]
2024-02-20 05:48:53 -06:00
Maisam Arif 4728d05c5f Align list and cache_info to Host
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I4fa55b360b74d5a202d0b9b4eb7aee660b0a1bcf


[ROCm/amdsmi commit: 77710921a4]
2024-02-15 01:47:59 -05:00
Maisam Arif b6f62bb651 Renamed amdsmi_get_metrics_table to amdsmi_get_cpu_metrics_table
Renamed structs to be more conistent with what they are calling

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


[ROCm/amdsmi commit: f831cf49f7]
2024-02-12 16:30:18 -06:00
Maisam Arif aa633783aa SWDEV-439217 - Updated amdsmi_get_gpu_asic_info python api
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Iafcfb10bec9a9a04574afdd95f10971f537e433b


[ROCm/amdsmi commit: 7a19dbbfe6]
2024-02-12 15:37:45 -05:00