Commit Graph

13501 Commits

Author SHA1 Message Date
Evgeny d64b02c012 fixing clang error
[ROCm/roctracer commit: a8c5e2edce]
2019-10-02 15:29:09 -05: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 cd7f1777c8 Merge pull request #17 from rkebichi/kfd2_9_27
Add KFD support.

[ROCm/roctracer commit: 8a43ddfc82]
2019-09-27 17:43:01 -05:00
Rachida Kebichi 586586e325 Fixing if macro.
[ROCm/roctracer commit: c39cdbbbc2]
2019-09-27 18:48:57 -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 3da4951471 Add KFD support (3rd try).
[ROCm/roctracer commit: e8a5f32039]
2019-09-27 18:43:01 -04:00
Rachida Kebichi e8a5f32039 Add KFD support (3rd try). 2019-09-27 18:43:01 -04:00
Rachida Kebichi 0c407e3cf4 Add KFD support.
[ROCm/roctracer commit: 315a547cc4]
2019-09-27 18:32:54 -04:00
Rachida Kebichi 315a547cc4 Add KFD support. 2019-09-27 18:32:54 -04:00
Evgeny 7eb12e97de kfd wrapper generating fix
[ROCm/roctracer commit: 9b620591aa]
2019-09-27 16:30:15 -05:00
Evgeny 9b620591aa kfd wrapper generating fix 2019-09-27 16:30:15 -05:00
shaoyunl a1e399a3ff Thunk : Add gfx1011 support from thunk side
Change-Id: I6b202b75fc1ad0e69576a35a6a3e499818137e04
Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
2019-09-25 11:02:33 -04:00
Evgeny 482e665b2a roctacer mark fix
[ROCm/roctracer commit: 389496265e]
2019-09-24 20:35:58 -05:00
Evgeny 389496265e roctacer mark fix 2019-09-24 20:35:58 -05:00
Chris Freehill 551b15182b Add functions that tell what capabilities are supported
The new functions added in this commit allow a caller to tell up
front what functions, function variants and monitors are
supported.

Also,
* fixed a few documentation/formatting issues
* fixed a process_info test issue

Change-Id: I2184ab1a4a6898f847e791f273e2185d556e78e9
2019-09-23 13:30:47 -05:00
Evgeny 24b9c79412 hip test update
[ROCm/roctracer commit: a7c0e80701]
2019-09-23 09:54:54 -05:00
Evgeny a7c0e80701 hip test update 2019-09-23 09:54:54 -05:00
Evgeny df646d4712 fixing tracing api name
[ROCm/roctracer commit: 3ba5d6b34c]
2019-09-20 12:43:12 -05:00
Evgeny 3ba5d6b34c fixing tracing api name 2019-09-20 12:43:12 -05:00
Evgeny Shcherbakov 363107b09e Merge "tests: replace 'bc' with 'awk' to be more portable" into amd-master 2019-09-17 17:39:21 -04:00
Evgeny Shcherbakov 4efbfe6ce8 Merge "tests: replace 'bc' with 'awk' to be more portable" into amd-master
[ROCm/rocprofiler commit: 363107b09e]
2019-09-17 17:39:21 -04:00
Philip Yang 71cf3cf5d3 libhsakmt: correct number of NUMA nodes calculation
numa_max_node() return the highest node number available on the current
system, number of NUMA nodes should be numa_max_node() + 1.

Change-Id: I20a6c17af071e73e853cb5ea6d0304c8aca52681
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
2019-09-16 16:25:57 -04:00
Philip Yang 69d8f2d734 kfdtest: use flag NoNUMABind to allocate system memory
Allocate system memory from node id 0 will fail on NUMA system which has
no memory on node 0. Change to use new flag NoNUMABind to allocate
system memory from NUMA nodes which have free memory.

Change-Id: I8ef9ca28fc2ab5dd31d07a2d3eaf1d5886e798a0
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
2019-09-16 12:25:01 -04:00
Evgeny f33be98f5a fixing overloaded functions as macro
[ROCm/roctracer commit: 9e2f37bf77]
2019-09-16 11:19:04 -05:00
Evgeny 9e2f37bf77 fixing overloaded functions as macro 2019-09-16 11:19:04 -05:00
Philip Yang 42392f093f libhsakmt: handle NUMA system with no memory on node 0
on NUMA system, node 0 may have no memory, application pass node id
0 to hsaKmtAllocMemory will fail because mbind to specify the allocation
from node 0 return EINVAL.

Add new flag NoNUMABind for application to pass it to hsaKmtAllocMemory
to skip mbind.

hsaKmtCreateEvent and hsaKmtCreateQueue specify the new flag NoNUMABind
to allocate system memory for event page and CWSR area, don't bind the
system memory to a specific NUMA node.

Change-Id: I854e5a57502c7807c4c5ff2e441d499ae515c309
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
2019-09-16 11:30:24 -04:00
Jay Cornwall 906cd84186 Disable SDMA HDP flush on gfx10
Not currently functional, triggering SRBM write protection.

Change-Id: Ib0b832357e3df5a6a0d0b46648515ec9bd70f017
2019-09-14 14:08:47 -04:00
Jay Cornwall e0358d7dc2 Set MTYPE field in SDMA fence command on gfx10
This is the only SDMA command with an MTYPE field.

Change-Id: Ice146ace9c3e8e7aff038e1e004be73c070f48fe
2019-09-14 14:07:57 -04:00
Jay Cornwall 32a9a5dbb0 Add gfx1010, gfx1011, gfx1012 ELF types to loader
Change-Id: I23a1159fb10f60881ea6830ba13ee73bd373bfc9
2019-09-14 14:07:16 -04:00
Jay Cornwall 5b64fbd0e5 Implement code cache (SQC I$, SQC K$, TCP, GL1, GL2) invalidation for gfx10
Change-Id: I8b2a59118094fbb55e3f575fa9f79959d3725d7d
2019-09-14 14:06:31 -04:00
Jay Cornwall d1c5a079cd Add binary shaders for gfx10
Change-Id: Iaf586a15a2f2aebc266da5148aa8637b092c1002
2019-09-14 14:05:35 -04:00
Chris Freehill 0afe6618a6 Add gfx10,11,12 old to new name format conversion
Change-Id: I792c840d8d819d1d48f95fc4167b2e25c6beec23
2019-09-14 10:37:19 -04:00
Evgeny d2bb3be7f9 fixing build instructions
Change-Id: I7a8e2a04f7a048864f4f8fd89a92fceccfcc867f
2019-09-13 16:41:15 -05:00
Evgeny e55912b026 fixing build instructions
Change-Id: I7a8e2a04f7a048864f4f8fd89a92fceccfcc867f


[ROCm/rocprofiler commit: d2bb3be7f9]
2019-09-13 16:41:15 -05:00
Jay Cornwall f8d0ccd159 Support wave32/wave64 scratch allocations on gfx10
- Use new buffer resource descriptor layout
- Handle wave32 scratch allocation error from CP
- Make wavefront size a property of scratch allocation requests
- Repurpose wave64-specific amd_queue_t.scratch_workitem_byte_size field
- Clear index_stride field in V# on gfx10, calculated per-dispatch by CP

Change-Id: If2acdf6430772abd4d6a8c792fc8c11260764dda
2019-09-13 17:22:59 -04:00
Evgeny efe3523ac4 mark and range push aliases
[ROCm/roctracer commit: 7b779f8409]
2019-09-13 15:58:40 -05:00
Evgeny 7b779f8409 mark and range push aliases 2019-09-13 15:58:40 -05:00
Philip Yang 4da09813a3 libhsakmt: fix mbind failed on docker
Docker seccomp by default blocks mbind system call, so mbind return
failed on docker. thunk should not fail this otherwise application
cannot allocate system memory on docker.

Use pr_warn_once and pr_err_once to avoid duplicate same error messages



Change-Id: I61a7c0e4abaa3dcfe7abf2ea48db90f669f9638a
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
2019-09-13 15:01:47 -04:00
Chris Freehill 08841faf4c Update addrlib to pull in gfx10
This is mostly un-edited from Perforce. We will make other required
edits in future commits.

Change-Id: I55a809f2f23f03d60e4dcd1fb947ad558e737027
2019-09-13 11:44:23 -04:00
Chris Freehill 0ec781478d Make gfx10 use OSS defined packet fields
Change-Id: Icf622c22a17005aaeafb24f80a414319bebb891f
2019-09-13 08:14:24 -04:00
Chris Freehill b104031628 Add gfx10 as a target ID
Change-Id: Ib9a78776af9f26ff9278a06b059cb8b7ee216ee2
2019-09-12 20:24:40 -05:00
Chris Freehill 6ebdad5896 Initial support for gfx1010, gfx1011, gfx1012
Change-Id: I9ec398070c85db08aea72947557c6e1b5f7d541d
2019-09-12 20:24:30 -05:00
Yong Zhao ec1375ac66 kfdtest: Automate the gtest filter name generation
This will emilinate the need of updating the run_kfdtest.sh every time
a new platform is added.

Change-Id: I584d65b462de36a685fa2d29d43962078ba511dc
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
2019-09-12 15:57:20 -04:00
Evgeny 6f6208f06d scripts fixes
Change-Id: I1d51bf4fe2ba62f26bafc251ae702e1064a3e5e3
2019-09-11 19:22:26 -05:00
Evgeny 24167d0704 scripts fixes
Change-Id: I1d51bf4fe2ba62f26bafc251ae702e1064a3e5e3


[ROCm/rocprofiler commit: 6f6208f06d]
2019-09-11 19:22:26 -05:00
eshcherb b1d33ba719 Merge pull request #14 from rkebichi/amd-master
corrected return value from Pop API call

[ROCm/roctracer commit: 450a4802df]
2019-09-09 13:26:22 -05:00
eshcherb 450a4802df Merge pull request #14 from rkebichi/amd-master
corrected return value from Pop API call
2019-09-09 13:26:22 -05:00