Commit graph

8920 Commits

Autor SHA1 Nachricht Datum
Yong Zhao 1c7755d2da libhsakmt: Add gfx1012 device IDs
Now the gfx1012 device IDs are okay to reveal.

Change-Id: I9da2a036b74ec7b6b8b1fb7587597a5847f02205
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
2019-10-17 12:35:22 -04:00
Yong Zhao 16fa78b134 libhsakmt: Print an error message when map_mmio failes
Without this change, the failure was hard to notice when it happened.

Change-Id: I99c3e8cea0d0cbd3bcfe79069410e6e870e225bf
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
2019-10-17 12:32:32 -04:00
Amber Lin 23541e0289 libhsakmt: handle CPU cache info on non-NUMA sys
When CONFIG_NUMA is not enabled in the kernel config, only one CPU node
presents on the system and /sys/devices/system/node/nodeX directories
don't exist. Read CPU cache information from /sys/devices/system/cpu in
this situation.

Change-Id: I017ff17dd72678a0551edcc77446664501aa42ca
Signed-off-by: Amber Lin <Amber.Lin@amd.com>
2019-10-17 11:53:19 -04:00
Eric Huang 0174377351 kfdtest: add xgmi path for p2p tests
When large bar is not available, we can use
xgmi to do p2p tests.

Change-Id: Ib7b59fb8a4d41f605739a0428973f6b2f1a3450f
Signed-off-by: Eric Huang <JinhuiEric.Huang@amd.com>
2019-10-17 10:21:10 -04:00
Chris Freehill ee13e85265 Correct README Markdown formatting
Change-Id: Id63618fc7fa7fa7cdc68bcd451cbe89ef2c04469
2019-10-17 08:38:50 -05:00
rkebichi 30c4351378 Update kfdap.py
Fix for handling any api return types.
2019-10-16 16:40:40 -04:00
Evgeny c2cb1f2ab9 KFD_WRAPPER macro 2019-10-16 12:18:13 -05:00
Chris Freehill 53228ad819 Add some gfx1xxx targets
This is to fix 

Change-Id: I69a87884d8174733905e4c007cf0f19b5103482a
2019-10-16 09:01:22 -04:00
Evgeny b2c23f63d5 conditional building of kfd wrapper 2019-10-15 11:15:48 -05:00
Evgeny 00ca6d8a78 changing trace control to <delay:length:rate>
Change-Id: I6eca07257ab8d06972e4eba6ee04ae1200b50fe9
2019-10-10 19:04:30 -05:00
Evgeny b10ec59e6c changing trac control to <delay:length:rate> 2019-10-10 19:02:40 -05:00
Philip Cox 6933540c81 Remove debugger data reg accesses
The debug trap accesses the data0/data1 registers, so we do not
want the userspace to write values to it.  We remove the calls to
set the data0/data1 register values.

Change-Id: Iaba842a4c445f339f16a39fe1994526ff78a2f3c
Signed-off-by: Philip Cox <Philip.Cox@amd.com>
2019-10-10 14:32:54 -04:00
Philip Cox efe3769835 kfdtest: Check kfd debugger version in tests
Need to check the kfd debugger version of the kernel before
calling kfd debugger tests in kfdtest.  If they are out of sync,
the tests may fail.

Change-Id: I1df5e89fb1199304e6fbe8973c60b76062514c03
Signed-off-by: Philip Cox <Philip.Cox@amd.com>
2019-10-10 14:32:54 -04:00
Philip Cox dbbd189b33 Add functions to get the kfd debugger version info
To support adding new features to the kfd debugger, and not break
functionality, we need to be able to check the kfd debugger support
version info from the kernel.

Change-Id: Icd88e4edab8430c35eaed588e62d892c1b5c62ec
Signed-off-by: Philip Cox <Philip.Cox@amd.com>
2019-10-10 14:32:54 -04:00
Philip Cox 35d56297d3 Add kfd debugger version support
To check the KFD debugger API support, we need to be able to check
the major/minor version of the kfd debugger version, so we need to
expose this function from the kernel.

Change-Id: I8a3dc617607e2efa9e65306d08b8583b8b1a2172
Signed-off-by: Philip Cox <Philip.Cox@amd.com>
2019-10-10 14:32:54 -04:00
Philip Cox b48f7d6ea3 kfdtest: Disable kfd debugger tests on gfx10
The KFD debugger is only supported on gfx9 platforms, so we need to
restrict it from running on gfx10 platforms until it is supported.

Change-Id: I500f0e20fda71021f2cce70a67fc8d9d042209fe
Signed-off-by: Philip Cox <Philip.Cox@amd.com>
2019-10-10 12:50:12 -04:00
rkebichi 9b1bcd5b01 Delete genOstreamOps.py 2019-10-10 10:00:56 -04:00
rkebichi 013cbe59db Create gen_ostream_ops.py 2019-10-10 10:00:27 -04:00
Evgeny 8ebf2fc5fa roctx rocprof integration
Change-Id: Ia5e3a60c8d89ef0b04a83f09be361454a95e9689
2019-10-09 23:39:59 -05:00
Evgeny eb232e7e3c roctx tool support integration 2019-10-09 23:32:01 -05:00
Evgeny 484a8402e1 custom metrics file rocprof option
Change-Id: I3914740a7640a291558cbe70ca1bdb0400ff7cee
2019-10-09 18:03:04 -05:00
Evgeny c783e62230 --trace-period option
Change-Id: I29bce7763e62659d22d6abe144b8d970ab4f41c3
2019-10-09 18:34:48 -04:00
rkebichi 14c933bedb Update genOstreamOps.py 2019-10-09 15:28:59 -04:00
rkebichi c342215416 Update CMakeLists.txt 2019-10-09 15:27:43 -04:00
Evgeny 2a480667ae output cosmetic fix 2019-10-09 13:00:27 -05:00
rkebichi 3e8f5f2058 Create genOstreamOps.py 2019-10-09 13:50:55 -04:00
Evgeny 9a5a603440 tool tracing control integration 2019-10-09 10:56:19 -05:00
Evgeny 72b5494f0b start/stop API 2019-10-09 01:00:05 -05:00
Oak Zeng da789a2584 Fix memory map issue in KFDMemoryTest.CacheInvalidationOnRemoteWrite
The memory need to be mapped for both local and remote GPU access

Change-Id: I4aeaffc0851b6107fc91e9eaa6150764b06f5ca9
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
2019-10-08 16:33:51 -05:00
rkebichi af41d4ae2e Update roctracer_kfd.h 2019-10-08 16:38:03 -04:00
Evgeny b5a9dc7dd6 activity records stack 2019-10-06 23:13:57 -05:00
Chris Freehill 68d25e82fd Support checking for specific device-getter api support
For device-getter functions, allow users to specify a nullptr
for the provided buffer. In those cases, the function will return
RSMI_STATUS_NOT_SUPPORTED if the hardware or system software does
not support the function. If the function is supported, then
RSMI_STATUS_INVALID_ARGS will be returned, unless a different
error is encountered.

Additionally, tests and documentation were updated to reflect
this change.

Change-Id: Ie7db3a4c8c66af97ebd7ee1e3b95cd331ace9d9c
2019-10-05 15:55:18 -05:00
Ori Messinger 2412dff6a2 Display GPU vram vendor
Add support and testing for reading the vram vendor associated with
the GPU. The vram vendor can be found as a separate sysfs file at:
/sys/class/drm/card[X]/device/mem_info_vram_vendor
The vram vendor is displayed as a string value.

Change-Id: I12c8e56e57f45aa08d7d6c25338c4e468ed1c7fc
Signed-off-by: Ori Messinger <Ori.Messinger@amd.com>
2019-10-04 11:51:30 -04:00
Oak Zeng dadbbbb03c Disable KFDMemoryTest.CacheInvalidateOnRemoteWrite temporarily
This is some data fabric/vbios issue that causing system hard hang
while running this test. Will enable it after the HW/vibos fix.

Change-Id: Ic0753c2d92e9e4863c310da9a595b2af302f17f8
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
2019-10-04 11:09:19 -04:00
Oak Zeng d7c53bb1fa Test new RW mtype for gfx908
Change-Id: Ia859c8f2e3c486f119772231a2d887f6783caf36
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
2019-10-04 10:49:15 -04:00
Oak Zeng 51388973a1 Add gfx908 to asic family
Change-Id: I838aa4be45ddfb34c5d36c519e28b4218fc32ba4
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
2019-10-04 10:45:02 -04:00
rkebichi 9f304d364f Update kfdap.py 2019-10-03 15:46:09 -04:00
Evgeny d8bd1f5ae5 fixed querying of available metrics to use correct agnet name
Change-Id: Ic2c82d5cba760ba5b0caa373e5309f17c908b8e9
2019-10-03 13:30:33 -04:00
rkebichi c14c073d3f Update MatrixTranspose.cpp 2019-10-02 19:26:41 -04:00
rkebichi 971b442df8 Update Makefile 2019-10-02 19:25:37 -04:00
rkebichi 314a9de931 Update roctracer_kfd.h 2019-10-02 19:04:00 -04:00
Cole Nelson 1ac8b5538c kfdtest.exclude: blacklist KFDEvictTest.BurstyTest for gfx908 (gfx908)
Change-Id: I5e1ac25c066ee20e34e102043d27eeab73313c6f
Signed-off-by: Cole Nelson <cole.nelson@amd.com>
2019-10-02 14:06:50 -07:00
Evgeny a8c5e2edce fixing clang error 2019-10-02 15:29:09 -05:00
Oak Zeng 63eb3948be More parameter check in HsaMemoryBuffer constructor
if parameter "zero" is set, check buffer host access.

Change-Id: I9893062726fc240777405167a638cbea18fdf559
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
2019-10-01 14:44:29 -04:00
Amber Lin 5a09880620 libhsakmt: fix typo in error message
When fail to get CPU dirs from //sys/devices/system/node/nodeX directory,
the error message should print node_dir, not path.

Change-Id: If76a51918c8dd55fa6605a62f3d29f9efc6fadb3
Signed-off-by: Amber Lin <Amber.Lin@amd.com>
2019-09-30 14:29:39 -04:00
eshcherb 8a43ddfc82 Merge pull request #17 from rkebichi/kfd2_9_27
Add KFD support.
2019-09-27 17:43:01 -05:00
Rachida Kebichi c39cdbbbc2 Fixing if macro. 2019-09-27 18:48:57 -04:00
Rachida Kebichi e8a5f32039 Add KFD support (3rd try). 2019-09-27 18:43:01 -04:00
Rachida Kebichi 315a547cc4 Add KFD support. 2019-09-27 18:32:54 -04:00
Evgeny 9b620591aa kfd wrapper generating fix 2019-09-27 16:30:15 -05:00