Commit Graph

8920 Commits

Author SHA1 Message Date
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 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 ed68e4c432 Merge "tests: remove TCC_EA_* counters to support gfx8" into amd-master 2019-07-24 14:20:14 -04:00
Evgeny 86c6f93536 sys trace support
Change-Id: I7297a0bf73c2895b1751c97f9ee9bbd1c1c2aa93
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
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 657241e848 Merge "xml: add extra events for gfx906 GPUs" into amd-master 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
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
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
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
Sean Keely 0721dfd2e7 Update README build instructions.
Change-Id: I595e629117adfb44afb2e829d1f975782238277e
2019-07-19 14:17:47 -04:00
Sean Keely 4fafdcb00c Add deallocation callback test to rocrtst.
Change-Id: Ia20abd8f1f64213eea0c3c1c771cc229cf38fd5d
2019-07-19 14:17:21 -04:00
Sean Keely 6e07bc8dc4 Adjust agentOwner in pointer info queries for locked memory.
agentOwner from thunk reflects the GPU which holds the device alias.
We need to return a CPU to better reflect that the memory is system memory.

Change-Id: I9233f8779a4bfd471f68dbbbce07ae4528412e18
2019-07-19 14:17:13 -04:00
shaoyunl b4e834ab61 KFDTest: remove the usage global g_TestGPUFamilyId
Adjust the KFDTest for multi-gou support

Change-Id: Ib3491e3f645d35fdba6ab702d65fcc86f48d3958
Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
2019-07-19 13:26:49 -04:00
shaoyunl e9882daf11 KFDTest : Add gfx1xxx release_mem and acquire_mem packet support
use family ID as parameter when construct the packets

Change-Id: I6c1706954ab7b8cbb8bef2aab16edf21f5e1abf0
Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
2019-07-18 10:43:48 -04:00
Xianwei Zhang a5a56425bb tests: add top-level Makefile and run.sh
Change-Id: Ieaef51422c11ec27d56ff19953f9a5dd1f563353
2019-07-18 05:21:20 -05:00
Evgeny 579e44c50c adding sys trace 2019-07-18 00:48:16 -05:00
Evgeny 4ef7d7d156 sys trace adding
Change-Id: I8d0a3a34e14f897e635a42faa42eedc1a1f86ace
2019-07-18 00:41:49 -05:00
shaoyunl ff82d3a354 kfdtest: Add Gfx10 pm4 packet format
Add release_mem and acquire_mem pm4 packet format for nv

Change-Id: I172407c3418005922c17937e1e43f57d153ea732
Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
2019-07-17 10:42:32 -04:00
Evgeny a83f2d3c56 hip api events buffering fix 2019-07-16 23:36:41 -05:00
Sean Keely 465a8eb40b PR from github user DiamondLovesYou.
Allow user specified profiles if the HSAIL note is not found.

Konstantin reviewed and approved.  HSAIL note is not generated by LLVM.

Change-Id: I40fbfbaedd6787b6a716507918f698d02007afe1
2019-07-16 13:55:38 -05:00
Xianwei Zhang ca9a714b77 xml: add extra events for gfx906 GPUs
Compard to gfx900, e.g., Vega 10, gfx906 adds extra counter events.
A typical difference is on TCC-EA that gfx906 (e.g., Vega 20) has 2
EAs per TCC, while only one single EA/TCC on gfx900. As such,
additional counters must be profiled to get correct results. This
patch adds one extra events to specifically handle gfx906.

Change-Id: Id6c9d37548a102c80bbfddcfa11e77d20f17431a
2019-07-16 12:56:45 -05:00
Xianwei Zhang 8b445d2c00 test: add tests to validate cache/mem blocks
To validate cache and memory blocks profiling, this patch prepares
tests to profile dedicated kernels using specified counters, to
compare the profiled results against expected ones, and further
show the test is a fail or pass.  Tests here are focusing on cache
hit/miss, memory fetch/write size.

Change-Id: Icbc8096a6e15256dec66297597a57c7665a533b8
2019-07-16 12:39:38 -05:00
Evgeny Shcherbakov b677eebfd7 Merge "adding xml inheritance" into amd-master 2019-07-16 19:49:11 -04:00
Evgeny 46fd670818 adding xml inheritance
Change-Id: Iafbfb8a6fb1936cf1315c1f5215879e99187da77
2019-07-16 09:20:53 -07:00
Evgeny de7076b7b8 strdup isa_from_name:name 2019-07-16 02:13:00 -05:00
Chris Freehill 141592e4f3 Correct check for video group membership
* Continue with rocminfo even if video and kfd check fail.
* Color code informational lines (white) and warnings (red)

Change-Id: I739034c932fffca0924abc93ae9a929664a3e182
2019-07-15 23:14:12 -05:00
Evgeny d3837bbf69 default HIP/HCC paths
Change-Id: Icad4c126e6aaa1212093f4a1765a6cc91e4be870
2019-07-15 15:08:51 -05:00
Evgeny 9ad1269ae8 trace buffer flush on destruct 2019-07-15 12:39:46 -05:00
Evgeny b33389b30f trace buffer wrapping 2019-07-13 00:38:12 -05:00
Ramesh Errabolu 4daee0c8a1 Allocate fine-grained regions for Gpu devices that are members of Hives
Change-Id: Ibbed393aeac691793845d16d2f3fe2c3e5a7ec40
2019-07-13 01:12:53 -04:00
Chris Freehill dea44dee54 Merge "Make git-describe find annotated and non-annotated tags" into amd-master 2019-07-12 21:11:59 -04:00
Evgeny f3d27ef21c hsa-trace fix for no-kernel dispatching scenario
Change-Id: I2833964222b285de8fcf93b0b69e9f12ee4a41d8
2019-07-12 11:22:57 -05:00
Evgeny 197c615204 hip api trace buffering 2019-07-11 21:43:24 -05:00
Felix Kuehling 4e9ff4393d kfdtest: MMBench: Test a more useful range of buffer sizes
Currently the test only covers relatively small buffers sizes. It's
useful to test buffer sizes up to 1GB to see the impact of features
that target the efficiency of large buffer allocations and mappings.

Change-Id: I2e8d5afd482894dbe2166f32d38091199b9c15e6
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
2019-07-11 17:15:39 -04:00
shaoyunl 02ccb9eb57 Thunk: Add gfx1010 initial support
Add gfx1010 basic support on Thunk

Change-Id: Ie4c0922158c7f5e2951f8694f4b204f371f1aa23
Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
2019-07-11 17:08:11 -04:00
Harish Kasiviswanathan 904ea5fc27 Test rsmi_dev_drm_render_minor_get()
Change-Id: I5c0702efc8ed1bc155292e4c3a73d74e5c66204e
Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
2019-07-11 13:13:03 -04:00