Commit Graph

13501 Commits

Author SHA1 Message Date
Felix Kuehling 4d7b0990e4 libhsakmt: Sanity check node_id for NUMA binding
Ignore requests to bind to invalid NUMA nodes. This affects only
legacy applications (such as KFDTest) that allocate system memory
as paged memory with a GPU node ID.

Change-Id: I81e514af6d0c1ab2ed5229adeeca1fa0ab2a0685
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
2019-07-31 11:29:52 -04:00
Evgeny 16eec37fb4 fixing typo in comments
[ROCm/roctracer commit: 8ce5ece6d4]
2019-07-31 00:52:39 -05:00
Evgeny 8ce5ece6d4 fixing typo in comments 2019-07-31 00:52:39 -05:00
Cole Nelson 20cd954fe8 KFDTest: restore KFDMemoryTest.BigBufferStressTest on gfx900
Addressed by:
4066dcd kfdtest: increase BigBufStressTest timeout and avoid VM fault
36776e9 kfdtest: avoid BigBufStressTest run on NUMA node 0





Change-Id: If21c6e42b4cf6aada1f74e77f0d8d1a2fdebcdb8
Signed-off-by: Cole Nelson <cole.nelson@amd.com>
2019-07-30 12:05:53 -04:00
shaoyunl 78e754ca5b KFDTest: Make shader compatiable for gfx9 and gfx10
Remove the CHIP name from the shader ISA and add wave_size(32) to make the same
shader can be  used for both  GFX9 and GFX10

Change-Id: I16ea72f87980c3d9c11298e20c06a0a073fe9a28
Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
2019-07-30 10:56:19 -04:00
Evgeny 3cc200d224 roctx loader
[ROCm/roctracer commit: 91bcc4cc74]
2019-07-27 06:19:35 -05:00
Evgeny 91bcc4cc74 roctx loader 2019-07-27 06:19:35 -05:00
Evgeny 855a801ae7 adding gfx908 namespace
Change-Id: Ifd45385777be5066c8bfef23ee24bbabadf4dffa
2019-07-27 03:06:10 -05:00
Evgeny 05f8d9ebca adding gfx908 namespace
Change-Id: Ifd45385777be5066c8bfef23ee24bbabadf4dffa


[ROCm/rocprofiler commit: 855a801ae7]
2019-07-27 03:06:10 -05:00
Evgeny 9678e5f680 fixing libraries pathes
Change-Id: Ife3186ed10309ac674dd8f112b3a6647dce06c7b
2019-07-26 22:13:58 -05:00
Evgeny fab2d5d4cd fixing libraries pathes
Change-Id: Ife3186ed10309ac674dd8f112b3a6647dce06c7b


[ROCm/rocprofiler commit: 9678e5f680]
2019-07-26 22:13:58 -05:00
Philip Cox b6f6d9da1c Enable KFDGraphicsInterop.RegisterForeignDeviceMem
KFDGraphicsInterop.RegisterForeignDeviceMem looks like it is running
now. Re-enable it for kfdtest for all platforms.

Change-Id: I6f6ee9cd11da793c5d525d8676bfc6d5bd8007bb
Signed-off-by: Philip Cox <Philip.Cox@amd.com>
2019-07-25 14:18:03 -04:00
shaoyunl c0663be7e8 KFDTest: Enable KFDEvictTest.QueueTest for gfx1010
v_add_u32 was removed from gfx10, use carry-out explicit instruction
v_add_co_u32 instead on both gfx9 and gfx10

Change-Id: I1fcd5956844457a676757ad13bdce7f5304bb34b
Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
2019-07-25 10:56:17 -04:00
shaoyunl 157f5b945f KFDTest: Add CWSR test for gfx1010
Change-Id: I708b2fd5f06e0c7591ebe04c40576845cf2a891a
Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
2019-07-25 10:55:01 -04:00
shaoyunl 33bd5c520b KFDTest: Test 8 SDMA queues per engine for gfx1010
Change-Id: I709112ab10b1f5684e6411f44682bdef14745b50
Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
2019-07-25 10:54:44 -04:00
shaoyunl 85a9821519 KFDTest: Shader modification for gfx10
Modified shaders in KFD memory test to support gfx10.
There is no gprs register for flat_scratch on gfx10.
Use s_setreg_b32 instruction to set flat scratch base
address register

Change-Id: I505156a046056b61ce2d873343feb50ce635274a
Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
2019-07-25 10:54:30 -04:00
Evgeny Shcherbakov cb1a7f6481 Merge "sys trace support" into amd-master 2019-07-24 16:46:34 -04:00
Evgeny Shcherbakov 03518b6ba6 Merge "sys trace support" into amd-master
[ROCm/rocprofiler commit: cb1a7f6481]
2019-07-24 16:46:34 -04:00
Evgeny 1c82aeda37 empty src/kfd directory
[ROCm/roctracer commit: 31b643f00c]
2019-07-24 15:18:51 -05:00
Evgeny 31b643f00c empty src/kfd directory 2019-07-24 15:18:51 -05:00
Evgeny Shcherbakov 8092bd9b2b Merge "tests: make tests print msg and exit on errors" into amd-master 2019-07-24 14:20:25 -04:00
Evgeny Shcherbakov 2761dff93f Merge "tests: make tests print msg and exit on errors" into amd-master
[ROCm/rocprofiler commit: 8092bd9b2b]
2019-07-24 14:20:25 -04:00
Evgeny Shcherbakov ed68e4c432 Merge "tests: remove TCC_EA_* counters to support gfx8" into amd-master 2019-07-24 14:20:14 -04:00
Evgeny Shcherbakov 8fc21a61c7 Merge "tests: remove TCC_EA_* counters to support gfx8" into amd-master
[ROCm/rocprofiler commit: ed68e4c432]
2019-07-24 14:20:14 -04:00
Evgeny 86c6f93536 sys trace support
Change-Id: I7297a0bf73c2895b1751c97f9ee9bbd1c1c2aa93
2019-07-24 13:15:25 -05:00
Evgeny 5c8feac0de sys trace support
Change-Id: I7297a0bf73c2895b1751c97f9ee9bbd1c1c2aa93


[ROCm/rocprofiler commit: 86c6f93536]
2019-07-24 13:15:25 -05:00
Kent Russell 79a3995816 Restore PM4EventInterrupt to non-gfx803 testing
The test is viable still on VG10/20. Phil is investigating why it takes
so long on gfx803 

Change-Id: I61669b29dc0e8407858a5c73cfa69c5ea923846f
2019-07-24 07:38:27 -04:00
Kent Russell 1ca1825b84 Remove KFDDBGTest.BasicAddressWatch
This functionality doesn't work on GFX9+, and was disabled for gfx802.
Remove the test altogether for now, especially since some kernel changes
broke it on gfx803, and the functionality is deprecated now anyways. Leave
the code for reference, but "#if 0" it to prevent it from compiling or
being in the kfdtest binary

Change-Id: I848b4f23201f18612cbdc122a5b46e4010c4af2a
2019-07-24 07:36:19 -04:00
Xianwei Zhang 87e46dde4e tests: make tests print msg and exit on errors
Change-Id: Ie5af942551a6970a7414c30988a47ed57a9baf27
2019-07-23 17:18:54 -04:00
Xianwei Zhang 49fb7711b1 tests: make tests print msg and exit on errors
Change-Id: Ie5af942551a6970a7414c30988a47ed57a9baf27


[ROCm/rocprofiler commit: 87e46dde4e]
2019-07-23 17:18:54 -04:00
Evgeny 1d740b6a73 adding kfd wrapper library and generator; adding roctx code annotation library;
[ROCm/roctracer commit: d2568d7a9f]
2019-07-23 15:32:58 -05:00
Evgeny d2568d7a9f adding kfd wrapper library and generator; adding roctx code annotation library; 2019-07-23 15:32:58 -05:00
Evgeny Shcherbakov 710a9de411 Merge "integrating memory_validation bench in cmake build" into amd-master 2019-07-23 14:49:50 -04:00
Evgeny Shcherbakov 907bb900b6 Merge "integrating memory_validation bench in cmake build" into amd-master
[ROCm/rocprofiler commit: 710a9de411]
2019-07-23 14:49:50 -04:00
Evgeny Shcherbakov 657241e848 Merge "xml: add extra events for gfx906 GPUs" into amd-master 2019-07-23 12:40:39 -04:00
Evgeny Shcherbakov bd0b7c6c07 Merge "xml: add extra events for gfx906 GPUs" into amd-master
[ROCm/rocprofiler commit: 657241e848]
2019-07-23 12:40:39 -04:00
Evgeny 6c5ca62575 integrating memory_validation bench in cmake build
Change-Id: I90ad85c7b1517c162804a00d5abb75007bf831fe
2019-07-23 11:14:44 -05:00
Evgeny 8b16b3b733 integrating memory_validation bench in cmake build
Change-Id: I90ad85c7b1517c162804a00d5abb75007bf831fe


[ROCm/rocprofiler commit: 6c5ca62575]
2019-07-23 11:14:44 -05:00
Chris Freehill 04da198a31 Fix gfx908 build
Includes
-"Report SRAM ECC errors through the system event handler."
  (bf6af52892b1f677697309a7946f651bfe8e9061)
-"Fix async memory test; temporarily disable NUMA memory test"
  (626f13a88b)
-Temporary disable of rocrtst

Change-Id: Ide9fc999b01ab810f00a56fc3733d07be45117c7
2019-07-23 07:37:40 -04:00
Xianwei Zhang 6152563612 tests: remove TCC_EA_* counters to support gfx8
TCC_EA_* counters are only available on gfx9 devices, and thus
the memory validation tests fail on gfx8. To fix the issue,
this patch removes TCC_EA_* metrics and keeps only the ones
supported by both gfx8 and gfx9.

Change-Id: Ib3889435b88f2e6970981304a72cee75d5343d4b
2019-07-23 05:00:28 -05:00
Xianwei Zhang 82b1bfabed tests: remove TCC_EA_* counters to support gfx8
TCC_EA_* counters are only available on gfx9 devices, and thus
the memory validation tests fail on gfx8. To fix the issue,
this patch removes TCC_EA_* metrics and keeps only the ones
supported by both gfx8 and gfx9.

Change-Id: Ib3889435b88f2e6970981304a72cee75d5343d4b


[ROCm/rocprofiler commit: 6152563612]
2019-07-23 05:00:28 -05:00
Chris Freehill 6588165de1 gfx908 loader/isa related changes
Change-Id: I638d4b2b300ac5a99d4d31d4fadcfe9e1e3c7748
2019-07-23 03:41:27 -04:00
Chris Freehill 2c15bcac9d Add ISAREG entry for gfx908 for ECC not supported
* Also, re-enable rocrtst

Change-Id: I70106c5a1788818387e46f240d577cbe59bc89f4
2019-07-22 21:50:09 -04:00
Chris Freehill 447a30e985 Initial gfx908 updates
Change-Id: I3d6307d6613a38861a95561b9ac68abaa5964b48
2019-07-22 17:25:06 -04:00
shaoyunl 5b44be1907 KFDTest: Added gfx1010 SDMA fence packet support
Change-Id: I33d824353d77317363b73ddc52cd182f86b8bc66
Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
2019-07-22 16:37:02 -04:00
shaoyunl 395750264d KFDTest : Add family ID when building SDMA packet
Some SDMA packet format might be different among asic versions

Change-Id: Ic7eda7554c23e3972e168480874ca67a92677346
Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
2019-07-22 16:36:49 -04:00
Evgeny Shcherbakov 1d9b6b4d4f Merge "tests: add top-level Makefile and run.sh" into amd-master 2019-07-22 16:09:47 -04:00
Evgeny Shcherbakov 283347f22a Merge "tests: add top-level Makefile and run.sh" into amd-master
[ROCm/rocprofiler commit: 1d9b6b4d4f]
2019-07-22 16:09:47 -04:00
Chris Freehill cf13d6f4d8 Add rsmi_dev_serial_number_get()
Also correct whitespace issues

Change-Id: I7ffe23672304c31ed08d7148b04a19a7d4c3d7ef
2019-07-22 07:09:53 -05:00
Yong Zhao 4baeef356f kfdtest: Sumbit to SDMA ring when using libdrm command submission
Because not all ASICs (like gfx908) have GFX rings, we should use SDMA
rings instead of GFX rings.

Change-Id: Ibcc9f9e555302ba4ce25ac76c2ca73b8c3962a58
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
2019-07-19 16:58:22 -04:00