Commit Graph

13501 Commits

Author SHA1 Message Date
limeng12 016a1d9d39 [SWDEV-230863] Improve the functionality of RdcSmiHealth module.
Memory check:get the threshold of retired page number
EEPROM check:read and verify the checksum
Power/Thermal check: power/thermal throttle status counter

Signed-off-by: Meng Li <li.meng@amd.com>
Change-Id: Id2c751416eb5bf007e6e1da8dc05966a6ba1324e
2025-01-14 08:14:36 +08:00
Mallya, Ameya Keshava 437d6e584f Merge pull request #1 from AMD-ROCm-Internal/amd-master
Test PR

[ROCm/roctracer commit: b28af2f508]
2025-01-13 13:43:55 -08:00
Mallya, Ameya Keshava b28af2f508 Merge pull request #1 from AMD-ROCm-Internal/amd-master
Test PR
2025-01-13 13:43:55 -08:00
Mallya, Ameya Keshava 1ff572c3ee Create rocm-ci-caller.yml
[ROCm/roctracer commit: 7c278f090a]
2025-01-13 13:43:22 -08:00
Mallya, Ameya Keshava 7c278f090a Create rocm-ci-caller.yml 2025-01-13 13:43:22 -08:00
Mallya, Ameya Keshava f5267f7ab0 Merge pull request #1 from AMD-ROCm-Internal/amd-master
Test PR
2025-01-13 13:41:36 -08:00
Mallya, Ameya Keshava 457e61fad0 Merge pull request #1 from AMD-ROCm-Internal/amd-master
Test PR

[ROCm/rocprofiler commit: f5267f7ab0]
2025-01-13 13:41:36 -08:00
Mallya, Ameya Keshava bce807a560 Create rocm-ci-caller.yml 2025-01-13 13:40:41 -08:00
Mallya, Ameya Keshava fb7aefe2cf Create rocm-ci-caller.yml
[ROCm/rocprofiler commit: bce807a560]
2025-01-13 13:40:41 -08:00
Apurv Mishra ecf57310ca hsakmt: move 'counter_id' array to heap
local variable 'counter_id' exceeded the max single
use of stack, thus move to heap to prevent overflow

also, use of a contiguous memory block for 2D array
to reduce space complexity, add error messages for
NO_MEMORY exits and check MAX_COUNTER limit for IDs

Change-Id: Id0249ca767a336b31c759c693a82d3f5c950a2fa
Signed-off-by: Apurv Mishra <apurv.mishra@amd.com>
2025-01-13 16:29:16 -05:00
Harish Kasiviswanathan 1d71975fcc kfdtest: Fix KFDASMTest failure on older ASICs
HW_REG_HW_ID1 is only available from gfx12 onwards

Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Change-Id: Ibf4bd62e01ada3dee6dd88762ccb853bab63ff87
2025-01-13 15:22:20 -05:00
Harish Kasiviswanathan f8ae5c47ba kfdtest: Add gfx12 to TargetList for AssembleShaders
Add gfx12 so that it gets tested when KFDASMTest.AssembleShaders is run.
GWS support has been removed for gfx12. Modify shaders to take that into
account.

Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Change-Id: I70e87febb6388852ea54d69cf9201339a7910581
2025-01-13 15:22:15 -05:00
Chris Freehill b1d6cacf79 rocr: Remove RuntimeCleanup and use of loaded()
The recent static initialization changes cause this clean up to
happen when it previously never did. The result of ~RuntimeCleanup()
being executed is that the static global "loaded_" is set to false,
which in turn prevents hsa_init() from executing again. Clean up
already happens when hsa_shut_down() occurs.

Change-Id: Ib5cefb80d82880c1945e04eb6ec246bc2c7d2324
2025-01-13 09:18:13 -05:00
Lang Yu fe5f12342d kfdtest: consolidate LoopIsa
1, Initialize the registers before using them is the best practice.
Though the use case here doesn't care whether the registers are
initialized or not, some emulators complain the "read_before_write"
behavior. Initialize the registers used to silence these complaints.

2, Update s_wait stuff for gfx12.

Change-Id: I462b2b0b5017dd2876a5954169d3b6b2f1c2a75b
Signed-off-by: Lang Yu <lang.yu@amd.com>
2025-01-10 21:27:23 -05:00
Baraldi, Giovanni 8abb65b166 Adding source snapshot and partial serialization (#99)
* Adding source snapshot

* Adding option to serialize only on target kernel

* Fix for tidy

* Formatting

* Testing the new flag

---------

Co-authored-by: Giovanni Baraldi <gbaraldi@amd.com>

[ROCm/rocprofiler-sdk commit: a2fa188e14]
2025-01-10 15:43:06 -08:00
Baraldi, Giovanni a2fa188e14 Adding source snapshot and partial serialization (#99)
* Adding source snapshot

* Adding option to serialize only on target kernel

* Fix for tidy

* Formatting

* Testing the new flag

---------

Co-authored-by: Giovanni Baraldi <gbaraldi@amd.com>
2025-01-10 15:43:06 -08:00
Chris Freehill 7f417dc598 Support for generic ISAs in rocm_agent_enumerator
Change-Id: Ie6cf2f1930e27afd6564250e108af1f10864946e
2025-01-10 10:46:15 -06:00
Galantsev, Dmitrii 83f36f1673 Include assert.h during C compilation (#4)
Fix for https://github.com/ROCm/ROCm/issues/3997. When compiling a C program that includes rdc/rdc.h, multiple assertion errors are thrown without this header included.

Change-Id: Ie5b5c1a1a17c8207cf9b1be23b31193e260d5c1a

Co-authored-by: harkgill-amd <harkgill@amd.com>
2025-01-10 11:29:15 -05:00
Baraldi, Giovanni e226e2a11a SWDEV-508485: Adding MFMA F8 metric (#112)
Co-authored-by: Giovanni Baraldi <gbaraldi@amd.com>

[ROCm/rocprofiler-sdk commit: 27266eb242]
2025-01-09 15:27:16 -06:00
Baraldi, Giovanni 27266eb242 SWDEV-508485: Adding MFMA F8 metric (#112)
Co-authored-by: Giovanni Baraldi <gbaraldi@amd.com>
2025-01-09 15:27:16 -06:00
srawat 0e53160bee Update LICENSE 2025-01-09 13:12:24 -06:00
Giovanni Baraldi f19bed4c8c SWDEV-508485: Adding MFMA F8 metric
Change-Id: I947d2645e8dc1544d198a4e0a02500feee10d89d
2025-01-09 12:18:02 -06:00
Giovanni Baraldi d63f98bd00 SWDEV-508485: Adding MFMA F8 metric
Change-Id: I947d2645e8dc1544d198a4e0a02500feee10d89d


[ROCm/rocprofiler commit: f19bed4c8c]
2025-01-09 12:18:02 -06:00
Kent Russell cc7ff73e7f kfdtest: Can't initialize variable-sized objects
Do a memset, since we can't initialize variable-sized objects

Change-Id: I57faf4a0581a29f9d30391aa387812c2b7bb5011
Signed-off-by: Kent Russell <kent.russell@amd.com>
2025-01-09 10:36:06 -05:00
Galantsev, Dmitrii 207cb06783 OTF2 - Fix lib vs lib64 location on some systems (#68)
On my dev machine I use OpenSUSE Tumbleweed. For some reason OTF2 gets
installed into BUILD/external/otf2/lib64/, while cmake for the lib
searches BUILD/external/otf2/lib and cannot find it.

My fix sets the location to always match CMAKE_INSTALL_LIBDIR

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

[ROCm/rocprofiler-sdk commit: 271f017251]
2025-01-08 22:47:44 -06:00
Galantsev, Dmitrii 271f017251 OTF2 - Fix lib vs lib64 location on some systems (#68)
On my dev machine I use OpenSUSE Tumbleweed. For some reason OTF2 gets
installed into BUILD/external/otf2/lib64/, while cmake for the lib
searches BUILD/external/otf2/lib and cannot find it.

My fix sets the location to always match CMAKE_INSTALL_LIBDIR

Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2025-01-08 22:47:44 -06:00
Madsen, Jonathan 247ba0afa1 Download perfetto trace_processor_shell (#105)
* Download perfetto trace_processor_shell

* Upgrade to perfetto-trace-processor-shell v0.0.4

* Fix run-ci.py warning

- warning message:

CMake Warning (dev) at /.../build/CTestCustom.cmake:16:
  Syntax Warning in cmake code at column 77
  Argument not separated from preceding token by whitespace.

* Update tests/pytest-packages/pytest_utils/perfetto_reader.py

---------

Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>

[ROCm/rocprofiler-sdk commit: 2c3bdeaed9]
2025-01-08 20:32:48 -06:00
Madsen, Jonathan 2c3bdeaed9 Download perfetto trace_processor_shell (#105)
* Download perfetto trace_processor_shell

* Upgrade to perfetto-trace-processor-shell v0.0.4

* Fix run-ci.py warning

- warning message:

CMake Warning (dev) at /.../build/CTestCustom.cmake:16:
  Syntax Warning in cmake code at column 77
  Argument not separated from preceding token by whitespace.

* Update tests/pytest-packages/pytest_utils/perfetto_reader.py

---------

Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
2025-01-08 20:32:48 -06:00
Tim Huang 7bad0cb4a1 kfdtest: add blacklist for gfx1153
Change-Id: I1f132858cb79c6d0561477fe8ce69aafd93ad351
Signed-off-by: Tim Huang <tim.huang@amd.com>
2025-01-08 21:20:17 -05:00
Galantsev, Dmitrii 5861ec7663 RVS - Add IET and PEBB tests
Change-Id: Ia032901d74c882e5cbfa5a3164199cd4d571341f
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2025-01-08 18:23:13 -06:00
Galantsev, Dmitrii b058cbecf1 RVS - Add memory bandwidth test
Change-Id: I4c8990170861f6a0f3853615db68634fdaa7a622
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2025-01-08 18:23:13 -06:00
David Belanger 9667af97d9 kfdtest: Add ExtendedCuMasking test case
New implementation of CU mask testing that focuses on correctness of
masking.  Unlike previous implementations, this new implementation does not
rely on performance measurements to decide on the results of the test.
Instead, this implementation checks if waves were executed on all the CUs
enabled and only the CUs enabled.

Test case initially supported on GFX12.

Signed-off-by: David Belanger <david.belanger@amd.com>
Change-Id: I5af8b890179bc9a415fc7f47e736f4971fc40c4a
2025-01-08 17:36:59 -05:00
Elwazir, Ammar be43e753c6 Update Github Workflows (#2)
* Update sync-mainline.yaml

* Update sync-staging.yaml

* Update formatting.yml

[ROCm/rocprofiler-register commit: 11c9259043]
2025-01-08 09:50:04 -06:00
Elwazir, Ammar 11c9259043 Update Github Workflows (#2)
* Update sync-mainline.yaml

* Update sync-staging.yaml

* Update formatting.yml
2025-01-08 09:50:04 -06:00
Choudhary, Rahul bb122efeae Merge pull request #1 from AMD-ROCm-Internal/rahchoud_amdeng-patch-1
Create rocm_ci_caller.yml init file to call shared workflow
2025-01-07 12:11:25 -08:00
Choudhary, Rahul 3c01c13dfd Create rocm_ci_caller.yml init file to call shared workflow 2025-01-07 11:53:58 -08:00
Choudhary, Rahul a95f011749 Create rocm_ci_caller.yml
[ROCm/rocprofiler-register commit: f809f21740]
2025-01-07 11:32:19 -08:00
Choudhary, Rahul f809f21740 Create rocm_ci_caller.yml 2025-01-07 11:32:19 -08:00
Kent Russell eda54222ea kfdtest: Explicitly include tuple in KFDCWSR
We can inherit it from gtest, but not in ASAN builds. And we should be
including what we use, instead of hoping to inherit it through other
headers

Change-Id: Id47ab06a57e1c71c88f72da5f21a71f37db8a2f3
Signed-off-by: Kent Russell <kent.russell@amd.com>
2025-01-07 13:57:36 -05:00
gobhardw 485513e7af SWDEV-505232 README updated for kernel filteration
Change-Id: Id0176ca748e89778a49f8b5302ea25e8d5bdd07a
2025-01-08 00:09:02 +05:30
gobhardw fcf92aa257 SWDEV-505232 README updated for kernel filteration
Change-Id: Id0176ca748e89778a49f8b5302ea25e8d5bdd07a


[ROCm/rocprofiler commit: 485513e7af]
2025-01-08 00:09:02 +05:30
Choudhary, Rahul 06ac2cdc68 Delete .github/workflows/force-sync.yml
[ROCm/rocprofiler-sdk commit: 67e00e63b8]
2025-01-07 10:29:31 -08:00
Choudhary, Rahul 67e00e63b8 Delete .github/workflows/force-sync.yml 2025-01-07 10:29:31 -08:00
stali a76760db8c fix group policy reg issue 2025-01-07 15:02:17 +08:00
gobhardw 0a88e8b35a Re-enable kernel-info tests
Change-Id: Idd94c0993e9608431add169df15055a46dbe30e4
2025-01-07 00:08:34 -05:00
gobhardw 28fc7b2b47 Re-enable kernel-info tests
Change-Id: Idd94c0993e9608431add169df15055a46dbe30e4


[ROCm/rocprofiler commit: 0a88e8b35a]
2025-01-07 00:08:34 -05:00
James Zhu b07a80e505 libhsakmt: add spm buffer header
to send data back to user.

Change-Id: If11fb4147e32c0eed319ccf76bcde9d76815ff67
Signed-off-by: James Zhu <James.Zhu@amd.com>
2025-01-06 14:40:05 -05:00
Baraldi, Giovanni 1a90147c48 SWDEV-490031: Adding new rdc ops metrics (#96)
Co-authored-by: Giovanni Baraldi <gbaraldi@amd.com>

[ROCm/rocprofiler-sdk commit: fddd8ac4aa]
2025-01-06 11:02:23 +00:00
Baraldi, Giovanni fddd8ac4aa SWDEV-490031: Adding new rdc ops metrics (#96)
Co-authored-by: Giovanni Baraldi <gbaraldi@amd.com>
2025-01-06 11:02:23 +00:00
Li, Star bd7d7c99c1 Fix unit issue in policy feature (#78)
1. For temperature the unit in milli Celsius
2. For power the unit in microwatts.
3. Fix second register call to rdcd doesn't functional because start flag

Co-authored-by: Chao Fei <chao.fei@amd.com>
2025-01-06 09:21:08 +08:00