Commit Graph

13501 Commits

Author SHA1 Message Date
xinhui pan 8fbf4a26ec thunk: fix a vm area release issue
On some asics, like tonga, the memory alignment size is as big as 0x8000.

fmm_allocate* alloc vm area with size passed in which is not aligned mostly.
But __fmm_release free vm area with vm_object_t->size which is aligned.

That might cause aperture_release_area fail to free the vm area as the
size might be bigger than zone itself or it just free another vm area
nearby unexpected.

This patch somehow will alloc more space than it needed on tonga.
gfx900+ is not affected.

Change-Id: I5a88c92b08c4e6f6bc05881798f769b55d6debe9
Signed-off-by: xinhui pan <xinhui.pan@amd.com>
2018-08-09 06:08:15 -04:00
Evgeny b8d4223665 licensing annotation
[ROCm/roctracer commit: a27f63b110]
2018-08-08 15:47:30 -05:00
Evgeny a27f63b110 licensing annotation 2018-08-08 15:47:30 -05:00
Evgeny 0b7a1a9d71 update
[ROCm/roctracer commit: db0c1959b1]
2018-08-08 13:43:01 -05:00
Evgeny db0c1959b1 update 2018-08-08 13:43:01 -05:00
Yong Zhao fe04dd6890 Calculate and store the first gpu mem during initializaiton
Previously we used the first dgpu mem, but after careful examination, we
found it only needs to be a GPU, so we modify the code to reflect that as
well.

Change-Id: I069d9b8e247aed55c1f885b79f743ea8e03ddf93
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
2018-08-08 13:54:09 -04:00
Jay Cornwall 5e1ccdc4a9 Extend SDMA disable list until firmware stability resolved
Change-Id: I5e21cb761ae970ba2b68edd97b1564b36ca1f0f4
2018-08-08 11:20:14 -05:00
xinhui pan 9d6d0911e4 kfdtest: make p2ptest go through all gpus
Implement sDMA copy packet broadcast.

Each time sDMA will copy its local vram to sysbuf and next GPU's vram.
That will verify where the p2p link is broken.
Currently we just test push of p2p.

test result on 2 cpus, 4 gpus, numa enabled system.
[ RUN      ] KFDQMTest.P2PTest
[          ] Test 2 -> 3
[          ] PASS 2 -> 3
[          ] Test 3 -> 4
[          ] PASS 3 -> 4
[          ] Test 4 -> 5
[          ] PASS 4 -> 5
[          ] Test 5 -> 0
[          ] PASS 5 -> 0
[       OK ] KFDQMTest.P2PTest (190 ms)

Change-Id: Ie6fb2604109e39465b8a873b3bb42abc6259825a
2018-08-07 21:13:37 -04:00
Yong Zhao 4bb90d048c Remove the use of IS_DGPU()
The information can be obtained directly from node id. Also improve the
whole logic for future compatibility.

Change-Id: I130733be4e7930d5953d5e81409905e60c2ec35e
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
2018-08-07 18:07:04 -04:00
Evgeny 1a465687a1 adding prof-protocol layer
[ROCm/roctracer commit: c7f4758675]
2018-08-07 03:25:55 -05:00
Evgeny c7f4758675 adding prof-protocol layer 2018-08-07 03:25:55 -05:00
Felix Kuehling c21927f425 libhsakmt: Fix problems init_svm_apertures
Unset ret_addr when unmapping the address space reservation. Otherwise
it may try to unmap it again later.

Remember the actual map_size and use it instead of len outside the
reservation loops.

Change-Id: I1a6b3fecfb59e22a713e5ed49c3ed37914cb6fb5
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
2018-08-03 22:09:52 -04:00
Felix Kuehling dd6f34b7f5 libhsakmt: Fix pkg-config file paths
Both the include and libpath were incorrect after recent build
system changes. Use the proper GNUInstallDirs definitions in
libhsakmt.pc.in to write the proper locations.

This is needed for end users building KFDTest, which depends on
correct pkg-config information.

Change-Id: Ia45f36f054c2a607a77e7ecbcbd9eb7edd067348
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
2018-08-03 20:17:09 -04:00
Felix Kuehling 5c742f3e5e kfdtest: Blacklist Fragmentation test on all chips
This test has been intermittently failing for various reasons and
was already disabled on all chips except Ellesmere. It stresses
memory management in unusual ways by having lots of memory allocated
but +# not mapped, which is not relevant to compute applications over
ROCr.



Change-Id: I6b791ca7e2e0fcfe93fc720063b4b56acfded751
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
2018-08-03 20:14:46 -04:00
Eric Huang 3167e3b964 KFDEvictTest: change buffer size and add GFX vram allocation
This is to coordinate kfd kernel vram limit change, and adding
GFX vram allocation with submission of command nop is to
trigger eviction.



Change-Id: I18615cd13cfde034aae09c188ae3a82babde97b9
Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com>
2018-08-03 15:44:32 -04:00
Eric Huang f8d19104aa Kfdtest: Change and move drm device function into KFDBaseComponentTest
It is for other test to reuse this function.

Change-Id: Ib0dbc1a267a5bbcd8078ab3265677b53531f86f3
Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com>
2018-08-03 15:43:28 -04:00
Yong Zhao 08b6685dd5 Change the confusing type and name in topology
node is used repeatedly and excessively, which caused unnecessary confusion.

Change-Id: I4ae4171887df5e5b85209a5af8a636e6d72e5e82
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
2018-08-03 12:00:17 -04:00
Kent Russell b629dd1888 spec: Only remove ldconf file if uninstalling
$1 is passed in during install/upgrade/uninstall. If this is an
uninstall, remove the ldconf file, otherwise leave it. In yum-based
systems, the uninstall from the old package is executed after the
post-install of the newer package, which will undo the ldconf work from
the newer package.

Change-Id: I1681cb3bc65f0bd802bce5703187ae5f4d3f3530
2018-08-03 07:33:26 -04:00
Yong Zhao f3e7870784 kfdtest: Evaluate whether a node is APU based on spec
This will facilitate the user cases that some APU asics is used as dGPU.

Change-Id: Ib3a79ae31a03e7a618c7785166f56282a7617127
Signed-off-by: Yong Zhao <yong.zhao@amd.com>
2018-08-02 11:36:40 -04:00
Gregory Stoner 87e7a6fad4 Update README.md 2018-08-01 21:12:56 -05:00
Evgeny 707b9cfba8 update
Change-Id: If8a32e848cddf77d5777839a5cf174b6bafe67bb
2018-08-01 10:46:19 -05:00
Evgeny 49474b7739 update
Change-Id: If8a32e848cddf77d5777839a5cf174b6bafe67bb


[ROCm/rocprofiler commit: 707b9cfba8]
2018-08-01 10:46:19 -05:00
xinhui pan 86552aba4b kfdtest: make the output of QueueLatency test more readable
Change-Id: Ib33ac25509b23f2e5869bde126e3f11ef60f017e
Signed-off-by: xinhui pan <xinhui.pan@amd.com>
2018-08-01 10:06:33 +08:00
Yong Zhao 1d43938ac7 kfdtest: Add run utility files for kfdtest
A README.txt file is added to help the opensource community to use kfdtest
effectively.

After building, run_kfdtest.sh in the building output folder can be used
to run the test.

Change-Id: I9612d9d5a63bd4cdc3a328efd9961d3cc92a6ba5
Signed-off-by: Yong Zhao <yong.zhao@amd.com>
2018-07-31 00:02:04 -04:00
Yong Zhao f8472a055c kfdtest: Use libhsakmt to replace all the occurrences of thunk
Thunk is an internal name and we'd better reference it using the library name.

Change-Id: I20042bda546e5249530311d3de30c71d99379033
Signed-off-by: Yong Zhao <yong.zhao@amd.com>
2018-07-31 00:02:04 -04:00
Yong Zhao 6df62c78b8 kfdtest: Add kfdtest source code
The code is a snapshot up to this commit around July 31 2018.

commit b00fadff36a3
Author: xinhui pan <xinhui.pan@amd.com>
Date:   Mon Jul 30 09:53:03 2018 +0800

    kfdtest: skip MMapLarge test on apu

    

Change-Id: I40e9a5a18e5c8f075e5290bb80532f1a3f689058
Signed-off-by: Yong Zhao <yong.zhao@amd.com>
2018-07-31 00:00:34 -04:00
Evgeny 2cccdb566e compiling for CentOS support
Change-Id: I0c01b4f34ac3701b5cea324e2e2a34835163aee0
2018-07-27 15:06:26 -05:00
Evgeny f35caeda00 compiling for CentOS support
Change-Id: I0c01b4f34ac3701b5cea324e2e2a34835163aee0


[ROCm/rocprofiler commit: 2cccdb566e]
2018-07-27 15:06:26 -05:00
Kent Russell 3719ec2557 RPM: Add /opt/rocm/lib64 to lib path
CentOS+cmake suffix the "lib" folder with 64 when building 64-bit
packages

Fixes: 9434223752: Clean up cmake install and package



Change-Id: If029afd6e198b812116f3d3b3921b5486a1be355
2018-07-25 20:00:44 -04:00
Evgeny a6480a825f cleanup
Change-Id: Ia132b381230bf7ddae4d951911be177a928143df
2018-07-25 16:29:18 -05:00
Evgeny b29a2616b0 cleanup
Change-Id: Ia132b381230bf7ddae4d951911be177a928143df


[ROCm/rocprofiler commit: a6480a825f]
2018-07-25 16:29:18 -05:00
Evgeny 4d790c8eee adding tracker handler
Change-Id: Iea47c25b3c9b6e1eadf097c34323727181975cca
2018-07-25 14:55:21 -05:00
Evgeny 1027ae42f5 adding tracker handler
Change-Id: Iea47c25b3c9b6e1eadf097c34323727181975cca


[ROCm/rocprofiler commit: 4d790c8eee]
2018-07-25 14:55:21 -05:00
Evgeny afba272ccd minor refactoring
[ROCm/roctracer commit: eb2e63aa28]
2018-07-17 00:08:41 +00:00
Evgeny eb2e63aa28 minor refactoring 2018-07-17 00:08:41 +00:00
James Edwards 4d7d50feba Add tools headers and library back to packaging.
Change-Id: If6c9befe50fc111eb154bd5b4eb5c7858f5d510b
2018-07-16 16:51:12 -04:00
Sean Keely 35a270ef7e Do not initialize runtime internal queues based on mapping memory to a GPU.
Conserves VMIDs when multiple processes are in use and memory operations
are not GPU specific.  For instance HIP API hipHostMalloc does not accept
a target GPU so when used with one process per GPU (ie GPU == MPI rank) we can
quickly exceed the available VMID slots if every process consumes a VMID on
every GPU.

Change-Id: Ib6fa051290089f71581029c09f9a44b9992237d1
2018-07-13 19:58:45 -04:00
Evgeny 2f83829f4f adding -Werror=unused-result compilation flag
Change-Id: I2869d0a150918ad56cefed07d278cbcc6ef5a4b4
2018-07-13 16:15:48 -05:00
Evgeny 379e305ebd adding -Werror=unused-result compilation flag
Change-Id: I2869d0a150918ad56cefed07d278cbcc6ef5a4b4


[ROCm/rocprofiler commit: 2f83829f4f]
2018-07-13 16:15:48 -05:00
James Edwards 98bae77eea Fix build break for logger.h.
Change-Id: I4b783a1ca668e1c2b2712c31ed4904258b1e3af7
2018-07-13 15:34:25 -05:00
James Edwards d397625ae5 Fix build break for logger.h.
Change-Id: I4b783a1ca668e1c2b2712c31ed4904258b1e3af7


[ROCm/rocprofiler commit: 98bae77eea]
2018-07-13 15:34:25 -05:00
Chris Freehill 65c3cf27f5 Use the new name of the rocm_smi library
Change-Id: I7358b7b819826f1d3d3b0ca99fc5fd1a4e6d9536
2018-07-13 11:46:49 -04:00
Chris Freehill 3cca09ccca Fix NUMA async copy test
Change-Id: I64b5bd1ac5bf9b58d86c3dfc170bcf06a39abee4
2018-07-11 19:20:13 -04:00
Evgeny 013721eb62 adding session log
Change-Id: I3e1568f711ca1e863f8d912ba4598ac3ede5a46f
2018-07-11 11:39:15 -05:00
Evgeny 624dbeb708 adding session log
Change-Id: I3e1568f711ca1e863f8d912ba4598ac3ede5a46f


[ROCm/rocprofiler commit: 013721eb62]
2018-07-11 11:39:15 -05:00
Sean Keely c6cf161125 Fix git describe command to retrieve version tags correctly.
Change-Id: I904f5ccdb88c1e28d5eeffd104174fcd57626ee7
2018-07-10 20:19:04 -05:00
Sean Keely 63f2a0d280 Fix git describe command to retrieve version tags correctly.
Change-Id: I33282e8130d092e2f56b2f5947946d3c0ee22c60
2018-07-10 19:49:00 -05:00
Evgeny 7ba92e192b queue profiled API
Change-Id: I08f496fa76903738e937d2f29dc558ed9def3e0a
2018-07-10 16:56:27 -05:00
Evgeny 0f28f1b684 queue profiled API
Change-Id: I08f496fa76903738e937d2f29dc558ed9def3e0a


[ROCm/rocprofiler commit: 7ba92e192b]
2018-07-10 16:56:27 -05:00
Evgeny bc7a052294 adding counters instancing info
Change-Id: Idccc776ed91cafe9662b84bfad4149dde0c82caf
2018-07-09 13:48:57 -05:00