Commit Graph

13501 Commits

Author SHA1 Message Date
eshcherb 4a75bda819 Merge pull request #13 from rkebichi/amd-master
Update roctx.cpp

[ROCm/roctracer commit: 2ef3889b51]
2019-09-09 13:15:26 -05:00
eshcherb 2ef3889b51 Merge pull request #13 from rkebichi/amd-master
Update roctx.cpp
2019-09-09 13:15:26 -05:00
Sean Keely f2599fccb6 Enable trap handler on APUs.
Change-Id: Ifdc8c2782498b3fbe238d773120d378c47918d07
2019-09-06 18:10:20 -04:00
Sean Keely f9d3796db8 Correct doorbell_queue_map allocation.
doorbell_queue_map should always be allocated or we will need to
add branches around all accesses.

Change-Id: I994c0eaf4be62c1a4a37bd06894272dba1fc1da6
2019-09-06 18:10:20 -04:00
Yong Zhao baa2957895 kfdtest: Add gfx1012 initial test coverage
Change-Id: I983d4dd6c17b2eaadd5abf4b71e090a14cace303
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
2019-09-06 14:42:43 -04:00
Yong Zhao 3ecd83e52d libhsakmt: Support gfx1012
The gfx version item is yet to be added.

Change-Id: Ia6c487447e5a5df80c0c12fe150939175068024b
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
2019-09-06 14:42:32 -04:00
Yong Zhao d6539ddc24 libhsakmt: Implement HSA_FORCE_ASIC_TYPE to overwrite asic type
Force all the GPUs to a certain type, use the below command:
HSA_FORCE_ASIC_TYPE="10.1.0 1 gfx1010 14"
meaning major.minor.step dgpu asic_name asic_id

This will faciliate the cooperation across the teams for bringing up
ASICs which reuse existing device IDs.

Change-Id: I40fe4c9b46d3ccb3e38ea52250e80e82fb50fb0f
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
2019-09-06 12:12:42 -04:00
Yong Zhao 09d192802a kfdtest: Remove useless test cases
Those tests are actually did not function up to its expectation because
some underlying functions such as suspend/resume and disable/enable KFD
were not implemented. Those interfaces would never be implemented, so
delete them.

Change-Id: Ib5872ba2f35e307221e43791cda1782c6b6bb4d1
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
2019-09-06 11:12:17 -04:00
Yong Zhao 9048fb5a1a kfdtest: Implement SuspendAndWakeUp()
Change-Id: I16384cd0ca35f15841344ded4d4237a0a862a934
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
2019-09-06 11:11:49 -04:00
rkebichi de29108439 Update roctx.cpp
[ROCm/roctracer commit: c15059cb2b]
2019-09-06 10:56:25 -04:00
rkebichi c15059cb2b Update roctx.cpp 2019-09-06 10:56:25 -04:00
rkebichi b754b9a965 Update roctx.cpp
[ROCm/roctracer commit: 5b444aaef3]
2019-09-06 10:45:25 -04:00
rkebichi 5b444aaef3 Update roctx.cpp 2019-09-06 10:45:25 -04:00
Evgeny 258c868a49 setting hip backend library by env HIP_BACKEND_LIB for VDI support
[ROCm/roctracer commit: 3aad90a320]
2019-09-05 20:20:38 -05:00
Evgeny 3aad90a320 setting hip backend library by env HIP_BACKEND_LIB for VDI support 2019-09-05 20:20:38 -05:00
Evgeny c49830319e cmake for roctx test
[ROCm/roctracer commit: ad4214f4d2]
2019-09-05 20:19:06 -05:00
Evgeny ad4214f4d2 cmake for roctx test 2019-09-05 20:19:06 -05:00
rkebichi b47e0a38a3 Update roctx.cpp
[ROCm/roctracer commit: 78871331d5]
2019-09-05 16:17:02 -04:00
rkebichi 78871331d5 Update roctx.cpp 2019-09-05 16:17:02 -04:00
eshcherb 441debb552 Merge pull request #12 from rkebichi/amd-master
Update roctx.cpp

[ROCm/roctracer commit: 3088073037]
2019-09-05 10:44:13 -05:00
eshcherb 3088073037 Merge pull request #12 from rkebichi/amd-master
Update roctx.cpp
2019-09-05 10:44:13 -05:00
eshcherb 8de50d9b53 Merge branch 'amd-master' into amd-master
[ROCm/roctracer commit: 0bee220b64]
2019-09-05 10:44:00 -05:00
eshcherb 0bee220b64 Merge branch 'amd-master' into amd-master 2019-09-05 10:44:00 -05:00
Evgeny 0376e89fd9 roctracer extension APIs: mark, external id push/pop
[ROCm/roctracer commit: 719e9221a5]
2019-09-05 09:55:29 -05:00
Evgeny 719e9221a5 roctracer extension APIs: mark, external id push/pop 2019-09-05 09:55:29 -05:00
rkebichi 548e9464b8 Update MatrixTranspose.cpp
[ROCm/roctracer commit: 7a46f29e96]
2019-09-05 10:36:55 -04:00
rkebichi 7a46f29e96 Update MatrixTranspose.cpp 2019-09-05 10:36:55 -04:00
rkebichi 0bb02f32de Update roctx.cpp
[ROCm/roctracer commit: 6e1fbda1c7]
2019-09-05 10:35:28 -04:00
rkebichi 6e1fbda1c7 Update roctx.cpp 2019-09-05 10:35:28 -04:00
Christian Sigg 00b0ee15b3 Add missing include to lazy_ptr.h
Change-Id: I5b061692a4ec6def631d7c3182e5b644b6b9c519
2019-09-05 02:44:27 -04:00
Christian Sigg 1f177cf9c2 Change #include of libelf.h from quote to angle.
Change-Id: Ie940ed0f78e95224e42978381c552861e6d58ee4
2019-09-05 02:43:54 -04:00
Christian Sigg 912c23a6d5 Adding missing includes to sdma_registers.h
Change-Id: Idb2a54f45c810508ae0ebac0ca12853df8025c7a
2019-09-04 20:15:13 -04:00
rkebichi 85b8b91e56 Update MatrixTranspose.cpp
[ROCm/roctracer commit: c6a035577f]
2019-09-04 15:56:46 -04:00
rkebichi c6a035577f Update MatrixTranspose.cpp 2019-09-04 15:56:46 -04:00
rkebichi 2097038ba8 Update roctx.cpp
Added roctxRangePushA and roctxRangePop fcts

[ROCm/roctracer commit: 226240ea40]
2019-09-04 15:46:01 -04:00
rkebichi 226240ea40 Update roctx.cpp
Added roctxRangePushA and roctxRangePop fcts
2019-09-04 15:46:01 -04:00
Felix Kuehling 01957d4da3 kfdtest: Use CoarseGrain for VRAM buffers
Change-Id: I320099e61fc8f1012184fc68c248da4e224bc3ca
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
2019-09-04 14:45:01 -04:00
eshcherb 530fd93682 Update README.md
[ROCm/roctracer commit: 9e91c8fee6]
2019-09-04 12:04:27 -05:00
eshcherb 9e91c8fee6 Update README.md 2019-09-04 12:04:27 -05:00
Evgeny a00f8541f1 roctx domain is enabled check
[ROCm/roctracer commit: a239e366ff]
2019-09-03 15:25:06 -05:00
Evgeny a239e366ff roctx domain is enabled check 2019-09-03 15:25:06 -05:00
eshcherb a5d0c57add Fixing env HCC_HOME and HIP_PATH
[ROCm/roctracer commit: 2007136c1c]
2019-09-02 22:45:58 -05:00
eshcherb 2007136c1c Fixing env HCC_HOME and HIP_PATH 2019-09-02 22:45:58 -05:00
Felix Kuehling 8f91d6a222 kfdtest: Enable more tests on gfx802
A number of tests are no longer broken on gfx802.

Change-Id: If70c77423f8f14de59490ab8ca156b0c4e7b5cf1
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
2019-08-30 19:06:24 -04:00
Felix Kuehling e320913e9e libhsakmt: Fix userptr mappings on gfx802
The memory size alignment workaround for a TLB bug on gfx802 was
breaking userptrs because it would attempt to get_user_pages beyond
the end of a VMA. Refine this workaround based on our understanding
of the HW bug. It only affects L2 cacheline allocation, which is
decided by the last page in the cache line (8 entries = 32KB of
address space). Thus aligning memory allocation so that the last
page falls on the end of a 8 entry TLB cache line allows caching
to work correctly.

Imported images require specific alignments. If their size is not
naturally aligned with 8 cache lines, it may have bad TLB cache
performance.

This patch will only have the desired effect if redundant size
padding in KFD is also removed.

Change-Id: I984cbe7fa61fec04d70fa387aaf9aab370eabeb9
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
2019-08-30 19:06:24 -04:00
Evgeny 1e9061fe56 roctx marka implementation
[ROCm/roctracer commit: 231e25747f]
2019-08-30 08:53:34 -05:00
Evgeny 231e25747f roctx marka implementation 2019-08-30 08:53:34 -05:00
Sean Keely ec5ac95dce Remove sdma ts pool.
sdma end ts must be 256 bit aligned in oss 3.0 and prior.  Using
the ts pool requires copying into the signal and is a significant
performance penalty for small copies.

SharedSignal is 128 bytes due to alignment so can host the end ts.
Move sdma end ts into SharedSignal and remove ts pool and ts copy.

Change-Id: I7899bda36ebc9adcaad1d3a3d2b7a489857cc9e8
2019-08-29 20:24:05 -05:00
Craig Andrews ec1461b84b hsakmt-dev should not install linux kernel headers
hsakmt-dev should not install include/linux/* (currently just kfd_ioctl.h)
as those are linux kernel headers provided by the linux kernel header
packages (`linux-headers-*` on Debian/Ubuntu or `kernel-headers-*` on
Red Hat / Fedora)

Change-Id: Ib6e62ca2f3582c5ad7351225f5827081bf8e05c0
Signed-off-by: Craig Andrews <candrews@integralblue.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
2019-08-29 19:22:47 -04:00
Craig Andrews eebbb5a0ea Install libhsakmt.pc to the standard location
pkgconfig files should be installed to /usr/share/pkgconfig/, not /usr/libhsakmt/

Change-Id: Ifd08f612addb375de1d00282ee9e7c257528bf74
Signed-off-by: Craig Andrews <candrews@integralblue.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
2019-08-29 19:22:47 -04:00