Commit Graph

12605 Commits

Author SHA1 Message Date
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
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
Xianwei Zhang 19a2bdc734 tests: add top-level Makefile and run.sh
Change-Id: Ieaef51422c11ec27d56ff19953f9a5dd1f563353


[ROCm/rocprofiler commit: a5a56425bb]
2019-07-18 05:21:20 -05:00
Evgeny 095e3725d3 adding sys trace
[ROCm/roctracer commit: 579e44c50c]
2019-07-18 00:48:16 -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
Evgeny 47f13b0326 sys trace adding
Change-Id: I8d0a3a34e14f897e635a42faa42eedc1a1f86ace


[ROCm/rocprofiler commit: 4ef7d7d156]
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 c539d8d5fe hip api events buffering fix
[ROCm/roctracer commit: a83f2d3c56]
2019-07-16 23:36:41 -05: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 62b33801c4 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


[ROCm/rocprofiler commit: ca9a714b77]
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
Xianwei Zhang f5b54bff3d 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


[ROCm/rocprofiler commit: 8b445d2c00]
2019-07-16 12:39:38 -05:00
Evgeny Shcherbakov f55ccaf38e Merge "adding xml inheritance" into amd-master
[ROCm/rocprofiler commit: b677eebfd7]
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 4c1a1ce831 adding xml inheritance
Change-Id: Iafbfb8a6fb1936cf1315c1f5215879e99187da77


[ROCm/rocprofiler commit: 46fd670818]
2019-07-16 09:20:53 -07:00
Evgeny 0321409269 strdup isa_from_name:name
[ROCm/roctracer commit: de7076b7b8]
2019-07-16 02:13:00 -05: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 fe62c37cc1 default HIP/HCC paths
Change-Id: Icad4c126e6aaa1212093f4a1765a6cc91e4be870


[ROCm/rocprofiler commit: d3837bbf69]
2019-07-15 15:08:51 -05:00
Evgeny c925a36edb trace buffer flush on destruct
[ROCm/roctracer commit: 9ad1269ae8]
2019-07-15 12:39:46 -05:00
Evgeny 9ad1269ae8 trace buffer flush on destruct 2019-07-15 12:39:46 -05:00
Evgeny 056099904c trace buffer wrapping
[ROCm/roctracer commit: b33389b30f]
2019-07-13 00:38:12 -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 a701cd90ed hsa-trace fix for no-kernel dispatching scenario
Change-Id: I2833964222b285de8fcf93b0b69e9f12ee4a41d8


[ROCm/rocprofiler commit: f3d27ef21c]
2019-07-12 11:22:57 -05:00
Evgeny 64599a8729 hip api trace buffering
[ROCm/roctracer commit: 197c615204]
2019-07-11 21:43:24 -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
Harish Kasiviswanathan 68cb303a44 Add rsmi_dev_drm_render_minor_get()
Function to get the drm minor number associated with ROCm device

Change-Id: I9356b9ca75151882acbb075076bc072f08b73aae
Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
2019-07-11 13:12:34 -04:00
Chris Freehill 29353aa314 Make git-describe find annotated and non-annotated tags
Change-Id: I56f67e9a0a69fce3c825577160ab7380c297d243
2019-07-10 22:41:44 -05:00
Felix Kuehling 67c4fe230b kfdtest: Disable CheckZeroInitializationVram test
KFD will soon stop initializing VRAM allocations.

Change-Id: I901c736886bb3bd3b1b54a21d383ccd7907928fd
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
2019-07-10 17:05:57 -04:00
Felix Kuehling 5475e618e5 kfdtest: Add multi-process oversubscription test
This test is designed to reproduce soft-hangs cause by HWS running
with oversubscription.


Change-Id: I49861522b3ff5ba50df5ddc968545c35ccb25353
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
2019-07-10 17:05:57 -04:00