rohit pathania
189bd446b5
Modified memory atomics on non Large bar system and pool info test memcmp issue fix
...
Change-Id: I951fdb6c91508f43b1c51f7eb92870543fc58e53
[ROCm/ROCR-Runtime commit: d8e47ba115 ]
2018-06-11 18:49:29 +05:30
Chris Freehill
bb280f26f8
More emulator friendly tests/examples
...
Change-Id: I27ab26add14743dfb065238129c14b48913d9df8
[ROCm/ROCR-Runtime commit: 12a81ae96f ]
2018-06-08 17:58:37 -04:00
Chris Freehill
a2e031949f
Disable Signal tests
...
They are breaking Jenkins builds.
Change-Id: I1647049abee0ebc2a4751e66d9ceed56cadc4c3e
[ROCm/ROCR-Runtime commit: 8a6f0d6b24 ]
2018-06-08 15:47:09 -04:00
rohit pathania
1f1f69831e
Build failure issue in rocmaster 8386
...
Change-Id: I413abe0c9fbe16ab2e722cf3f7567aa2853e585b
[ROCm/ROCR-Runtime commit: c2ddd11979 ]
2018-06-07 13:05:39 +05:30
srinivas Charupally
c6b1838f36
Adding Signal Kernel tests
...
Change-Id: Ie34de41741a7c4731a0ff3761e940971b6f08745
[ROCm/ROCR-Runtime commit: f0a1b310fd ]
2018-06-06 16:25:18 +05:30
Felix Kuehling
c5c5622c4b
Prepare for hsakmt build system cleanup
...
These fixes are needed to find the hsakmt headers and libraries with
an upcoming hsakmt build system cleanup. It should continue to work
with the original hsakmt build system.
Change-Id: I6b3fcea8f2588698c130c9ec50952c66712afa6c
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com >
[ROCm/ROCR-Runtime commit: 5f25d024a8 ]
2018-06-05 16:01:03 -04:00
rohit pathania
1e991128f5
Concurrent testing for queue write index
...
Change-Id: If5b60b943a861d8f97d01b7fd8f757fdb36845c6
[ROCm/ROCR-Runtime commit: d0f6da277d ]
2018-06-05 11:57:38 +05:30
Chris Freehill
01433053cd
Make emulator friendly
...
Disable some tests that rely on features not typically available
in emulator and use smaller data and iteration sets
Change-Id: I587bf83162b114719e0361109ed44c6bf2adf34c
[ROCm/ROCR-Runtime commit: 2c8cbf61c3 ]
2018-06-04 18:51:09 -05:00
Chris Freehill
8b6b062957
Disable Aql_Barrier_* tests
...
Change-Id: Ibe08b88c101a60e4c6f0c61cda756e2cb5857d7d
[ROCm/ROCR-Runtime commit: 845a539478 ]
2018-06-04 11:46:08 -04:00
Felix Kuehling
da46bda904
Add fallback for GPUVM doorbell mapping
...
Upstream KFD doesn't support mapping doorbells to GPUVM yet. Fall
back to the old method.
Change-Id: I452a6fc59b88329b833844e3914c480c2f13c82d
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com >
[ROCm/ROCR-Runtime commit: 0462744965 ]
2018-05-31 13:17:27 -04:00
Felix Kuehling
c3c36d0afd
Cosmetic changes to kfd_ioctl.h
...
Make it more similar with upstream.
Change-Id: I982ccfd4045d96e3c30bc84d38d0e03db8de9b08
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com >
[ROCm/ROCR-Runtime commit: 7495e74257 ]
2018-05-31 13:17:27 -04:00
Felix Kuehling
212b7f50dd
Update KFD-Thunk ioctl ABI to match upstream
...
- Clean up and renumber scratch memory ioctl
- Renumber get_tile_config ioctl
- Renumber set_trap_handler ioctl
- Update KFD_IOC_ALLOC_MEM_FLAGS
- Renumber GPUVM memory management ioctls
- Remove unused SEP_PROCESS_DGPU_APERTURE ioctl
- Update memory management ioctls
Replace device_ids_array_size (in bytes) with n_devices. Fix error
handling and use n_success to update device_id arrays in objects.
This commit breaks the ABI and requires a corresponding KFD change.
Change-Id: Ibf0af5a5188e817c886eab388d1533130fc18293
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com >
[ROCm/ROCR-Runtime commit: 571e2cf7e4 ]
2018-05-31 13:17:27 -04:00
srinivas Charupally
15a708e717
Adding Aql tests
...
Change-Id: Id22dcafbf0ea0b346f3a03d4acef27350b706f36
[ROCm/ROCR-Runtime commit: a632bfddb2 ]
2018-05-31 15:29:37 +05:30
srinivas Charupally
87a76fb0ec
Adding Signal tests
...
Change-Id: I1815267a0e19614a84013e797bd3df3e77ee8179
[ROCm/ROCR-Runtime commit: 2c551d38b6 ]
2018-05-30 01:40:31 -04:00
Sean Keely
2a9f433d26
Move SDMA dependencies back to hardware.
...
SDMA poll packet preemption has been fixed.
Change-Id: I3da878c433d4594a169e3bc8f173d3651448fd2d
[ROCm/ROCR-Runtime commit: f09eb2e8c7 ]
2018-05-29 23:32:47 -04:00
Sean Keely
897666b665
Enable SDMA conditionally based on link atomic suport.
...
Avoids using non-atomic SDMA fences by default since that path can duplicate fences.
If HSA_ENABLE_SDMA is set this will override copy path selection and may use
non-atomic fences.
Change-Id: I4747e9a766f7f649d21ddf6bfded047ac26fd60e
[ROCm/ROCR-Runtime commit: c593dfc6bf ]
2018-05-29 23:32:34 -04:00
Shaoyun Liu
14ada05980
Thunk: Add gfx906 support on thunk
...
Signed-off-by: Shaoyun Liu <Shaoyun.Liu@amd.com >
Conflicts:
src/topology.c
Change-Id: I692d9295a954d4eda08eba301312014f7b3969cb
[ROCm/ROCR-Runtime commit: 93d07cf916 ]
2018-05-29 15:38:26 -04:00
rohit pathania
a9638cd006
Different Atomic operation tests on GPU and system memory
...
Change-Id: I04154b588086d49142a64c8fe4826d041ded2991
[ROCm/ROCR-Runtime commit: 044fb8dc27 ]
2018-05-28 22:18:48 +05:30
rohit pathania
d77f587d15
Queue validation tests and memory alignment tests
...
Change-Id: I96d8c2898795240288517bdcbc2b48ff2cc04f66
[ROCm/ROCR-Runtime commit: 08a253684b ]
2018-05-28 14:26:05 +05:30
srinivas Charupally
c35946cb79
Adding concurrent shutdown, reference count and max reference count tests
...
Change-Id: Ib6f40585bf1ab2b1d6f33bbb1675e13545a23a4e
[ROCm/ROCR-Runtime commit: 2c1919c681 ]
2018-05-28 00:51:05 -04:00
Qingchuan Shi
91b3e8d552
Add debug trap rocrtst.
...
Change-Id: I73682d7a2ad51eed9988075e012478a1afc76c7c
[ROCm/ROCR-Runtime commit: 3a46556dcc ]
2018-05-22 13:31:45 -04:00
Yong Zhao
84dfe5addf
Stop allocating eop buffer for SDMA queues
...
Change-Id: I9a4eaee05588292a797eb424503dd7b793c1408c
Signed-off-by: Yong Zhao <yong.zhao@amd.com >
[ROCm/ROCR-Runtime commit: ec440fb428 ]
2018-05-16 15:30:23 -04:00
Yong Zhao
c3fbe3d554
Improve the code readablity
...
The main point is to move update_ctx_save_restore_size() out of if()
condition.
Change-Id: I58a1a4f3edca2d1c510fdd0e31e59b5c41e92a14
Signed-off-by: Yong Zhao <yong.zhao@amd.com >
[ROCm/ROCR-Runtime commit: 43f119bcbc ]
2018-05-16 14:55:55 -04:00
rohit pathania
32ffaeb7d1
Memory Concurrent tests for pool Memory allocate, Memory free and get pool info
...
Change-Id: I6a1343348e400fe466e041d651adaa67be561a21
[ROCm/ROCR-Runtime commit: 47af1d673e ]
2018-05-14 01:30:54 -04:00
Jay Cornwall
3dc3806ab2
Handle llvm.trap only in gfx9 trap handler
...
llvm.debugtrap and other trap IDs are reserved and should not place
the queue into an error state.
Change-Id: I98193a35ac7da94c4a42ee75d87754ee552ebea0
[ROCm/ROCR-Runtime commit: 536823482b ]
2018-05-04 13:15:23 -05:00
Felix Kuehling
b6041b9b66
Remove redundant dev package build
...
No need to build the package in the build-dev target. This is taken
care of by package-dev. Removing the redundant packaging command
allows install-dev to work without building a package unnecessarily.
Also moved the rm command into the package-dev target.
Change-Id: I044871be03ebc5673146b44e4291b48b112f4440
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com >
[ROCm/ROCR-Runtime commit: 2915d521a1 ]
2018-05-04 14:04:19 -04:00
Evgeny
dd69a5edb6
Tool load failure report changing to unconditional print bcos it's already is controlled with the env var
...
Change-Id: I91b400ba94575a32005e825e6b41bda05c55b357
[ROCm/ROCR-Runtime commit: 0e0be791ec ]
2018-05-03 22:31:17 -05:00
Oak Zeng
ef7a732d0a
Use svm aperture for device memory allocate for gfx902 and after APU
...
Change-Id: Ib1d822adde30138a016e010bf581220465a087b9
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com >
[ROCm/ROCR-Runtime commit: dc1bbccc39 ]
2018-05-03 12:03:22 -04:00
Sean Keely
dec51d2db4
Relax large scratch cutoff.
...
Optimize for few queues rather than max.
Change-Id: I6531427319d3b2109b70d98fdb51daee7ffe4403
[ROCm/ROCR-Runtime commit: a20cceb425 ]
2018-04-30 07:25:22 -04:00
Sean Keely
57cbf865ce
Enable large scratch on GFX8.
...
Ensure system release fence is set on GFX8 large scratch using packets.
Change-Id: I13cfdcd35969482ea6e95e0b352f5cb3a0454b86
[ROCm/ROCR-Runtime commit: 5f25619bb7 ]
2018-04-30 07:24:53 -04:00
Evgeny
e3f55212ed
aqlprofile: get version API
...
Change-Id: I3a85c088bfff3f54d8829e17cdafd7dfcdfb0c1d
[ROCm/ROCR-Runtime commit: 0fcd2fa56e ]
2018-04-27 23:11:16 -04:00
Chris Freehill
43a9e81e4a
Added rocm-smi-lib calls with updated interface
...
Change-Id: I62b59dca5135ec012f11b249c78b04e5e8e2dd9a
[ROCm/ROCR-Runtime commit: 11e13704ea ]
2018-04-27 18:36:54 -04:00
Evgeny
cbc3c97252
aqlprofile: read API
...
Change-Id: I896b1fbf1c19608197ac0a99b9d467d8c1bee775
[ROCm/ROCR-Runtime commit: b37027e347 ]
2018-04-27 11:00:08 -05:00
Sean Keely
950dd4d89c
Workaround SDMA poll packet preemption.
...
Use async. signal handler to satisfy dependencies for SDMA blits.
Change-Id: Ifa8d3ee6810509f400a568ca2387ac6ab3ab7c36
[ROCm/ROCR-Runtime commit: 7cd6e366ed ]
2018-04-26 02:00:33 -05:00
srinivas Charupally
ee40fbd721
Adding concurrent init and init shutdown tests
...
Change-Id: Ifdbda16ae6c93a86373557f26eb414e40775d343
[ROCm/ROCR-Runtime commit: 8c8cd2dbd0 ]
2018-04-24 11:56:50 +05:30
rohit pathania
3cf867da15
Memory Allocation Negative tests
...
Change-Id: Icdd355f2351968dd76a3bc466636e223573cfb16
[ROCm/ROCR-Runtime commit: b1b036acb8 ]
2018-04-23 01:49:43 -04:00
Qingchuan Shi
286ca924f3
debug suport for queue error.
...
1/ Revised debug event handler to handle different events.
2/ Added queue error handler using the callback in queue create, which will print out wave info when queue in error state.
3/ Preempt queue instead of destory queue when queue error state.
Change-Id: Ib727d208de9caf1c72c76d42268483b24aaebde8
[ROCm/ROCR-Runtime commit: 49d2175c74 ]
2018-04-20 14:25:16 -04:00
Sean Keely
7c4cf726f7
Disable large scratch on GFX8.
...
Temporary pending firmware fix.
Change-Id: Id1b1ecef421bc97327fd0d2e6225549a6e81dba0
[ROCm/ROCR-Runtime commit: b66764e4c6 ]
2018-04-19 20:26:12 -05:00
Evgeny
94a6b2cd95
aqlprofile API: adding SQTT SE_MASK parameter
...
Change-Id: I0149692c2249c6d84ca710ce64e7346784ae593f
[ROCm/ROCR-Runtime commit: 5a6f47c475 ]
2018-04-16 16:39:42 -05:00
Hari Thangirala
28e79a42c2
Allow HSA_ENABLE_SDMA to override runtime defaults.
...
Change-Id: I2305304228010157bfb589c365f4a998577231cd
[ROCm/ROCR-Runtime commit: 3e0cd85d69 ]
2018-04-10 12:56:48 -04:00
Konstantin Zhuravlyov
683c95a3b7
Bring naming on par with the spec (hsa-runtime)
...
Change-Id: Ie1903c90a195cf95b186eb5552131a20af408adf
[ROCm/ROCR-Runtime commit: 7ef70f7eaa ]
2018-04-10 09:15:02 -04:00
Chris Freehill
51ac0cfd8c
Revert "Re-enable rocm-smi with new c api"
...
This reverts commit 075f246147 .
Change-Id: I9866610597a6de97a3c06ef9646f0afc85f149f4
[ROCm/ROCR-Runtime commit: 0d9e71a63a ]
2018-04-07 19:59:13 -04:00
Chris Freehill
075f246147
Re-enable rocm-smi with new c api
...
Change-Id: Idf393f31522bac8ac0c3c03a930ef66d97ce5fa2
[ROCm/ROCR-Runtime commit: 2e81d33395 ]
2018-04-07 18:55:30 -04:00
Ramesh Errabolu
f081e81976
Compute size of command buffer based on support for HDP Flush
...
Change-Id: I4987a262c191a91cd845fe18002c314a95a9ed8c
[ROCm/ROCR-Runtime commit: f25d59cab2 ]
2018-04-07 13:36:09 -04:00
Sean Keely
2b15fedb50
Support large scratch allocations and reclaim.
...
Also improve small_heap used for scratch region allocation.
Change-Id: Ib7311b663b38968d88ebc355b81e12c0863dc541
[ROCm/ROCR-Runtime commit: 7caf9633f6 ]
2018-04-05 21:51:56 -04:00
Jay Cornwall
185c1a9544
Support new first-level trap handler ABI
...
- Ignore exceptions passed to the second-level handler
- Restore SQ_WAVE_IB_STS and SQ_WAVE_STATUS before exiting trap
Change-Id: I872c111c030d94eae644ae073df3c2e508f42f45
[ROCm/ROCR-Runtime commit: df964343a3 ]
2018-04-04 11:01:14 -05:00
Sean Keely
379b5579a9
Respect new memory model requirements at queue destroy.
...
Spec requires GPU release fences and CPU acquire fences at queue destroy.
Also update the recognized status codes.
Change-Id: If9166f5149f65417c7057ff7c0f69f6ac094d6ab
[ROCm/ROCR-Runtime commit: b6f0248f53 ]
2018-04-04 08:13:00 -04:00
Sean Keely
acc31988f5
Sequence queue error callbacks with queue destroy.
...
HSA v1.2 update.
Change-Id: I13975e71b2c1ea5b7738236f5d02df84312ad00c
[ROCm/ROCR-Runtime commit: 6df9ba97ce ]
2018-04-04 08:12:58 -04:00
Konstantin Zhuravlyov
c427d8ef97
ROCRTST: Add missing hidden arguments
...
Change-Id: Idd5d58749f4dd740c96299c40e87d83840b6fb2b
[ROCm/ROCR-Runtime commit: c93584e725 ]
2018-04-02 18:19:24 -04:00
Ramesh Errabolu
de9064fc44
Enable sDMA packet HDP Flush on Gfx9 and later devices
...
Change-Id: I85922e5266883ef7e9eed3565e2c3b209009d294
[ROCm/ROCR-Runtime commit: 987f3f97aa ]
2018-04-02 11:47:59 -04:00