Commit Graph

13501 Commits

Author SHA1 Message Date
Evgeny 39bd7ee6af removing HCC_PATH
[ROCm/roctracer commit: d4f03f0244]
2018-11-09 23:56:28 -06:00
Evgeny d4f03f0244 removing HCC_PATH 2018-11-09 23:56:28 -06:00
Sean Keely 936ecd1885 Remove legacy SVM region concept.
Also rename blit_agent to region_gpu and add comments to clarify
its role in deprecated region API support rather than to do blits.

Change-Id: I80b1043db2e1c5d40a58fc801eef70a688ea9169
2018-11-09 06:27:53 -06:00
Sean Keely dda9c17b45 Move VM fault handler init to after all devices are registered.
During registration we must not call any function that depends on registered
data as the lists are not yet complete.  This includes signal allocation since
allocating shared GPU mapped memory depends on the list of GPUs.

Change-Id: I94d59e847802c546c2a5a0d9f55fe5ac3fd1d878
2018-11-09 03:10:08 -06:00
Evgeny bca6202b73 hip_prof_(api/str).h moving under hcc_detail dir
[ROCm/roctracer commit: 06e268fbc1]
2018-11-08 05:01:01 -06:00
Evgeny 06e268fbc1 hip_prof_(api/str).h moving under hcc_detail dir 2018-11-08 05:01:01 -06:00
Evgeny 1d55085060 cosmetic changes
Change-Id: Ie9c730305c8a882e250f28cc60d640c70d899572
2018-11-08 03:54:09 -06:00
Evgeny a4c804a33c cosmetic changes
Change-Id: Ie9c730305c8a882e250f28cc60d640c70d899572


[ROCm/rocprofiler commit: 1d55085060]
2018-11-08 03:54:09 -06:00
Mike Li 3afce42b57 Changed scripts to include running kfdtest in docker container
Change-Id: I822ff4869610df6abad846542d7c290b7a5aae79
2018-11-07 16:09:12 -05:00
Evgeny 4bdb8407f8 tracker handlers ordering
Change-Id: I998ff13380eaa3d920a0037951acef596d850dfd
2018-11-06 00:53:09 -06:00
Evgeny 6ca0ab0c51 tracker handlers ordering
Change-Id: I998ff13380eaa3d920a0037951acef596d850dfd


[ROCm/rocprofiler commit: 4bdb8407f8]
2018-11-06 00:53:09 -06:00
Chris Freehill 59a952666f Add rsmi_dev_pci_id_get() to return BDFID for given device
Also:
* add some exception handling;
* chop newline character off of device name returned from
rsmi_dev_id_get()
2018-11-05 11:22:12 -06:00
Evgeny 728c88403f API normalizing
[ROCm/roctracer commit: dd19d85644]
2018-11-05 02:31:37 -06:00
Evgeny dd19d85644 API normalizing 2018-11-05 02:31:37 -06:00
Evgeny 812c17ed77 rpl_run data extracting error message; comments for intermediate metrics
Change-Id: I4d9f97ed475d3ec328aafae40f1bc80b6bf69bcc
2018-11-01 13:38:01 -05:00
Evgeny cde69c4b14 rpl_run data extracting error message; comments for intermediate metrics
Change-Id: I4d9f97ed475d3ec328aafae40f1bc80b6bf69bcc


[ROCm/rocprofiler commit: 812c17ed77]
2018-11-01 13:38:01 -05:00
Gang Ba c54c1dbdcb Add code to support packet capture and replay in the Thunk
This feature only support dgpu for now.

Change-Id: Ic766ec06892c955dd605ecc335a776335edc0df2
Signed-off-by: Gang Ba <gaba@amd.com>
2018-10-31 16:53:46 -04:00
Evgeny f977ac2fbf rpl_run w/o input file; queue create callback; test for n gpus and n threads
Change-Id: I37157c49cf6454de591cae97b5cc43287ea95956
2018-10-30 14:19:45 -05:00
Evgeny 0202229629 rpl_run w/o input file; queue create callback; test for n gpus and n threads
Change-Id: I37157c49cf6454de591cae97b5cc43287ea95956


[ROCm/rocprofiler commit: f977ac2fbf]
2018-10-30 14:19:45 -05:00
Harish Kasiviswanathan c1994e28f0 libhsakmt: Support device controller cgroup
Device whiltelist controller cgroup allows to track and enforce open and
mknod restrictions on device files. Tasks should works with
/dev/dri/renderN devices that are whitelisted for its cgroup. If a
certain node is not whitelisted it is not an error condition.

Change-Id: I0b997423ccdc00aee98df5b6f04ed6794549604e
Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
2018-10-30 11:31:53 -04:00
Chris Freehill 62ba2f578e Use sysfs file to get average power instead of debugfs 2018-10-29 17:59:24 -05:00
Jenkins 460f2e6b1c Merge 'master' into 'amd-master'
Change-Id: I3ef383f30735dea9eaa62e114cc39aa35f7cc741
2018-10-26 04:09:48 -05:00
Chris Freehill 0c84f5117e Merge "Merge 'master' into 'amd-master'" into amd-master 2018-10-25 15:42:28 -04:00
Chris Freehill 767fa53d8c Add support for new performance levels
Also added tests for new performance levels and clean up some
formatting/style issues.
2018-10-25 14:13:55 -05:00
Kent Russell 10edccb912 Specify requirement of NUMA libs for Thunk
Add the numa libs to the thunk specs for DEB/RPM, so we can remove the
manual installation requirement


Change-Id: I5aadcf581b64e9a20aee9c1e1204af4715d1e990
2018-10-25 07:37:07 -04:00
Jenkins 6d30a7f126 Merge 'master' into 'amd-master'
Change-Id: Ia3824075144415287fbe67fff68a52e12f10f5c5
2018-10-25 04:09:39 -05:00
Jenkins 41eb15e424 Merge 'master' into 'amd-master'
Change-Id: Idf74c08d56275eea693955c9380a5330d54def67
2018-10-24 17:39:24 -05:00
Chris Freehill b9c6a5a443 Add gtest based testing 2018-10-24 11:57:03 -05:00
Philip Cox 105edd4bb4 Fix Debug Thunk spec mismatch
Move debug trap support capabilities to their own
structure to fix thunk spec vs header mismatch.



Change-Id: I6694601bfa36097502c8ab932e082d7a4645d5b2
Signed-off-by: Philip Cox <Philip.Cox@amd.com>
2018-10-24 11:32:12 -04:00
Sean Keely 9ec37b5103 Ensure runtime cleanup when hsa_init ref count reaches 0.
Delete the runtime object when the last hsa_shut_down occurs.

Change-Id: I2005d52d06702eaef166714fd5e471cc277924db
2018-10-22 19:32:00 -05:00
Chris Freehill b2f1ee1764 Comment corrections, debug output and assert added 2018-10-22 17:26:38 -05:00
Evgeny d788a53972 aqlprofile extension version check
Change-Id: If824764f199eca15a0341cdf6177d8d6353e29f3
2018-10-22 15:36:57 -04:00
Sean Keely 757502ccd6 Report internal queue creation to tools.
Debug agent requires handles to internal queues for single step debugging.
Added tools only API hsa_amd_runtime_queue_create_register for reporting.

hsa_amd_runtime_queue_create_register sets a callback which is invoked
when internal queues are created.

Change-Id: Ia5190ae724fadba686c15f25b2cd085350eeff0e
2018-10-20 23:12:27 -04:00
Sean Keely 5975c465ad Fully initialize GPU agents before loading tools.
Required for debug agent requires copy API and trap handler to be initalized
prior to loading.  Existing tools do not make use of internal queue or scratch
memory intercept which is what PostToolsInit allows.

PostToolsInit() will be removed in a following cleanup change.

Change-Id: If43377843808e3eff0defd9204910a67a852902f
2018-10-20 23:12:14 -04:00
Sean Keely 6852282a07 Refactor of Runtime::CopyMemory()
Change-Id: I32a7cb24d00660ff4471d121ef7b3c2eec8fced2
2018-10-20 14:38:50 -04:00
xinhui pan 7a13bb4d66 kfdtest: blacklist KFDQMTest.SdmaEventInterrupt
On gfx900+, the test sometimes timeout due to cp fw bug.
Blacklist it until we address the root cause and have a fix.

Change-Id: Iff600a6f6dbd86c56e034f530484205520bced32
Signed-off-by: xinhui pan <xinhui.pan@amd.com>
2018-10-19 15:29:54 -04:00
xinhui pan ab4610cff7 kfdtest: Add more debug information of sdma event interrupt test
We observe this test fails on gfx900+. Looks like the sdma packets are not
executed at all after we submit sometimes.

Run it with timeout 2s on gfx900.
[ RUN      ] KFDQMTest.SdmaEventInterrupt
[----------] SDMACopyData FAIL! 1485262707170 VS 1485262747814
[----------] Event On Queue 1:0 Timeout, try to resubmit packets!
[----------] The timeout event is signaled!
[          ] Time Consumption (ns)
[          ] 1: 1859427148
[          ] 2: 680148
[          ] 3: 6370
[          ] 4: 5481
/home/pp/code/compute/libhsakmt/tests/kfdtest/src/KFDQMTest.cpp:1670: Failure
Value of: (ret)
  Actual: 31
Expected: HSAKMT_STATUS_SUCCESS
Which is: 0
[----------] SDMACopyData FAIL! 1485367669958 VS 1485367750022
[----------] Event On Queue 2:1 Timeout, try to resubmit packets!
[----------] The timeout event is signaled!
[          ] Time Consumption (ns)
[          ] 1: 1881615148
[          ] 2: 673629
[          ] 3: 6074
[          ] 4: 5481
/home/pp/code/compute/libhsakmt/tests/kfdtest/src/KFDQMTest.cpp:1670: Failure
Value of: (ret)
  Actual: 31
Expected: HSAKMT_STATUS_SUCCESS
Which is: 0
[----------] SDMACopyData FAIL! 1485427671250 VS 1485427751238
[----------] Event On Queue 2:1 Timeout, try to resubmit packets!
[----------] The timeout event is signaled!
[          ] Time Consumption (ns)
[          ] 1: 1881508777
[          ] 2: 741629
[          ] 3: 6074
[          ] 4: 5481
/home/pp/code/compute/libhsakmt/tests/kfdtest/src/KFDQMTest.cpp:1670: Failure
Value of: (ret)
  Actual: 31
Expected: HSAKMT_STATUS_SUCCESS
Which is: 0
[  FAILED  ] KFDQMTest.SdmaEventInterrupt (23675 ms)

Change-Id: I7c1b752537d89782570df20838bf976578614f75
Signed-off-by: xinhui pan <xinhui.pan@amd.com>
2018-10-19 15:29:54 -04:00
Yong Zhao d7e6d4706c kfdtest: Clean up the indentations in PM4ReleaseMemoryPacket::InitPacket()
Change-Id: I7f6b08697f6a68bf8c4a388c9f1cf3c3c8e6c81f
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
2018-10-17 14:28:15 -04:00
Yong Zhao 77bab8596f kfdtest: Improve the SignalEvent test
Create an extra event so that the event id to test is non zero. That
way we can be sure the context id received in kernel ISR is non zero, which
is different from the default value 0 when context id is not set at all.

Change-Id: I7e261d1bbb783d5afd15558c7ac00493b1218cef
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
2018-10-17 14:27:54 -04:00
Evgeny c05bded17c dispatch data th-id, queue-id, kernel-object
Change-Id: Ic5593603c6587cad17be33618d011a9aefc648ab
2018-10-16 19:33:48 -05:00
Evgeny 924d3a8f03 dispatch data th-id, queue-id, kernel-object
Change-Id: Ic5593603c6587cad17be33618d011a9aefc648ab


[ROCm/rocprofiler commit: c05bded17c]
2018-10-16 19:33:48 -05:00
Konstantin Zhuravlyov 509bb777e0 Loader: Update license for AMDHSAKernelDescriptor.h
Change-Id: I3a48b595ba089ca8a25f878c056b04a417a2364f
2018-10-12 14:51:05 -04:00
Sean Keely 1e0d690948 Use ptrinfo rather than apertures in hsa_memory_copy
Apertures now overlap with the change to 48bit addressing which
precludes using aperture checks to discover buffer ownership.
Switches to ptrinfo to decide which device a buffer owned by.

This corrects faults in the legacy hsa_memory_copy api.

Change-Id: I5c7ce0216e1cdc96f836fc6fec9c3defdf4b9d90
2018-10-11 13:34:53 -04:00
Konstantin Zhuravlyov 386874da55 Loader: Add support for v3 object code.
Change-Id: I7215bd0c1277c2036bf0fadf5b23cb57fdf7f665
2018-10-06 14:01:59 -04:00
cfreehill e046fbdddf Merge pull request #3 from RadeonOpenCompute/roc-1.9.x
Correct the number of allowable power profiles
2018-10-05 23:14:47 -05:00
Chris Freehill f083c9c919 Correct the number of allowable power profiles 2018-10-05 23:09:28 -05:00
Evgeny 13fe0f9f69 fix the scenario with timestamps enabled only with rabge enabled
Change-Id: I5c96fdec5e92275b1154208a4c8a1605caa1639f
2018-10-05 19:32:13 -05:00
Evgeny 4f7e68ada5 fix the scenario with timestamps enabled only with rabge enabled
Change-Id: I5c96fdec5e92275b1154208a4c8a1605caa1639f


[ROCm/rocprofiler commit: 13fe0f9f69]
2018-10-05 19:32:13 -05:00
Jay Cornwall f1ffbc3286 Revert "Extend SDMA disable list until firmware stability resolved"
This reverts commit 5e1ccdc4a9.

Change-Id: I17b379e4d0e49a79dc8d4a60f01ea424fda24f02
2018-10-05 15:17:27 -04:00
Kent Russell ed9baefd75 Only remove ldconf on uninstall
On update, the removal will occur AFTER the new package is installed,
due to some stupidity with how yum/rpm does things. Only remove it if
we're doing a pure uninstall

Change-Id: I4982610828d8bc1f2d8691b1e4ee1718c89413cc
2018-10-03 08:10:06 -04:00