Commit Graph

13501 Commits

Author SHA1 Message Date
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 a3f63dc67f Delete genOstreamOps.py
[ROCm/roctracer commit: 9b1bcd5b01]
2019-10-10 10:00:56 -04:00
rkebichi 9b1bcd5b01 Delete genOstreamOps.py 2019-10-10 10:00:56 -04:00
rkebichi 8576ede945 Create gen_ostream_ops.py
[ROCm/roctracer commit: 013cbe59db]
2019-10-10 10:00:27 -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 3e6441d470 roctx rocprof integration
Change-Id: Ia5e3a60c8d89ef0b04a83f09be361454a95e9689


[ROCm/rocprofiler commit: 8ebf2fc5fa]
2019-10-09 23:39:59 -05:00
Evgeny d7591ee8aa roctx tool support integration
[ROCm/roctracer commit: eb232e7e3c]
2019-10-09 23:32:01 -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 a80892e8f3 custom metrics file rocprof option
Change-Id: I3914740a7640a291558cbe70ca1bdb0400ff7cee


[ROCm/rocprofiler commit: 484a8402e1]
2019-10-09 18:03:04 -05:00
Evgeny c783e62230 --trace-period option
Change-Id: I29bce7763e62659d22d6abe144b8d970ab4f41c3
2019-10-09 18:34:48 -04:00
Evgeny 6ae534323b --trace-period option
Change-Id: I29bce7763e62659d22d6abe144b8d970ab4f41c3


[ROCm/rocprofiler commit: c783e62230]
2019-10-09 18:34:48 -04:00
rkebichi 9d05cf6bc0 Update genOstreamOps.py
[ROCm/roctracer commit: 14c933bedb]
2019-10-09 15:28:59 -04:00
rkebichi 14c933bedb Update genOstreamOps.py 2019-10-09 15:28:59 -04:00
rkebichi 2945337ddf Update CMakeLists.txt
[ROCm/roctracer commit: c342215416]
2019-10-09 15:27:43 -04:00
rkebichi c342215416 Update CMakeLists.txt 2019-10-09 15:27:43 -04:00
Evgeny 8e998410b7 output cosmetic fix
[ROCm/roctracer commit: 2a480667ae]
2019-10-09 13:00:27 -05:00
Evgeny 2a480667ae output cosmetic fix 2019-10-09 13:00:27 -05:00
rkebichi eb3102077a Create genOstreamOps.py
[ROCm/roctracer commit: 3e8f5f2058]
2019-10-09 13:50:55 -04:00
rkebichi 3e8f5f2058 Create genOstreamOps.py 2019-10-09 13:50:55 -04:00
Evgeny a88c2c7f93 tool tracing control integration
[ROCm/roctracer commit: 9a5a603440]
2019-10-09 10:56:19 -05:00
Evgeny 9a5a603440 tool tracing control integration 2019-10-09 10:56:19 -05:00
Evgeny 3f73d90d61 start/stop API
[ROCm/roctracer commit: 72b5494f0b]
2019-10-09 01:00:05 -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 70abcbb7d7 Update roctracer_kfd.h
[ROCm/roctracer commit: af41d4ae2e]
2019-10-08 16:38:03 -04:00
rkebichi af41d4ae2e Update roctracer_kfd.h 2019-10-08 16:38:03 -04:00
Evgeny 70c748bdda activity records stack
[ROCm/roctracer commit: b5a9dc7dd6]
2019-10-06 23:13:57 -05: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 d58317c710 Update kfdap.py
[ROCm/roctracer commit: 9f304d364f]
2019-10-03 15:46:09 -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
Evgeny ad87c36d4e fixed querying of available metrics to use correct agnet name
Change-Id: Ic2c82d5cba760ba5b0caa373e5309f17c908b8e9


[ROCm/rocprofiler commit: d8bd1f5ae5]
2019-10-03 13:30:33 -04:00
rkebichi 21811e45bd Update MatrixTranspose.cpp
[ROCm/roctracer commit: c14c073d3f]
2019-10-02 19:26:41 -04:00
rkebichi c14c073d3f Update MatrixTranspose.cpp 2019-10-02 19:26:41 -04:00
rkebichi 151af89618 Update Makefile
[ROCm/roctracer commit: 971b442df8]
2019-10-02 19:25:37 -04:00
rkebichi 971b442df8 Update Makefile 2019-10-02 19:25:37 -04:00
rkebichi 7dd7e0235a Update roctracer_kfd.h
[ROCm/roctracer commit: 314a9de931]
2019-10-02 19:04:00 -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