Amber Lin
c1fbcd5c63
Enable GFXIP version info for dGPU
...
Add GFXIP version 8.0.2(major.minor.stepping) for gfx802 and 8.0.3 for gfx803.
Change-Id: Icc7cac6b2e8a78d9cff4105aeb2bfcd2c7759027
[ROCm/ROCR-Runtime commit: f7fffdc2be ]
2015-09-22 15:04:43 -04:00
Ben Goz
eaed099317
Adding support for local memory on dGPU
...
Change-Id: I1a926b11730ba295605eeb37c9b1fc438bed8a64
Signed-off-by: Ben Goz <ben.goz@amd.com >
[ROCm/ROCR-Runtime commit: 6170080cf6 ]
2015-09-21 14:13:15 -04:00
Ben Goz
1b2fd315ac
Adding new memory allocation IOCTL
...
Change-Id: I0eb1924811a2e1e436296ebe632d8f112a61637d
Signed-off-by: Ben Goz <ben.goz@amd.com >
[ROCm/ROCR-Runtime commit: 692e004047 ]
2015-09-21 13:58:32 -04:00
Harish Kasiviswanathan
9cf5049f77
Revert "Topology, memory allocation, cleanup issue for gGPU"
...
This reverts commit 0dc4437390 .
Change-Id: I92a4ed91bf566259916d1a96207e1fe9a6099c31
Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com >
[ROCm/ROCR-Runtime commit: 3e9773ff2c ]
2015-09-21 10:47:30 -04:00
Harish Kasiviswanathan
0dc4437390
Topology, memory allocation, cleanup issue for gGPU
...
Patch submitted by Besar Wicaksono
1. Bug on detecting local memory size interpreted as 32 bit value
instead of 64. The bug causes thunk to go into an infinite loop trying
to reserve virtual address range for dgpu system memory.
2. SIMD count in the node property is 0. Runtime use this attribute to
find a gpu device.
Regarding other attributes of intel+tonga topology, Harish started a
discussion on August iirc, could you please share an update ?
This would help me progress with more tests such as scratch memory,
which require the scratch aperture information in order to construct a
buffer srd in gpuvm space.
3. Bug on releasing memory via fmm_release, where no actual release is
being done. The vm_object can't be found because the memory size does
not match due to the allocation padded the size with 32KB.
4. Pointer arithmetic on vm_area allocation/release. The value of
vm_area_t::end seems to be interpreted inconsistently whether it is
(start + size -1) or (start + size).
One example of potential issue I see is the logic could report
larger size of the hole in the vm area list.
5. Resource cleanup on multiple library load/unload within a single
process.
- Any memory allocation on subsequent library load will result
an error "va above limit". To my understanding this is due to
the reserved memory for the system memory not being released on unload.
- The static variable events_page needs to be invalidated
appropriately on library unload so the next load could
reinitialize it.
6. Could you please update if AQL queue is ready to test with the stg
kfd/kmt ?
7. The system memory allocation with size larger than 32KB seems to be
padded by an extra 32KB. I was wondering if we could remove this
overhead.
Change-Id: I039988d36637525089c7569dc3b77e58750e2121
[ROCm/ROCR-Runtime commit: ee08f537a7 ]
2015-09-15 13:15:04 -04:00
David Ogbeide
7ea9567094
libhsakmt: specify build output via variable
...
Makefile currently sends build output a default location.
Allow choice of build output location if so desired
using a variable.
Signed-off-by: David Ogbeide <davidboyowa.ogbeide@amd.com >
[ROCm/ROCR-Runtime commit: 8a01cd1212 ]
2015-09-01 14:30:53 -04:00
Ben Goz
9db147f2d4
Support gfx802 dGPU
...
Signed-off-by: Ben Goz <ben.goz@amd.com >
[ROCm/ROCR-Runtime commit: fb8378a18b ]
2015-08-30 14:13:53 +03:00
shaoyunl
779c76a4e7
Minor fix in libhsathunk for KFDMemory test
...
Signed-off-by: shaoyun liu(shaoyun.liu@amd.com )
Reviewed-by: Ben Goz(Ben.Goz@amd.com )
[ROCm/ROCR-Runtime commit: 2dff5cabfa ]
2015-08-05 17:32:00 -04:00
Ben Goz
918ad5eac6
Revert "Enable creating SDMA queue."
...
This reverts commit fcf6e22216 .
[ROCm/ROCR-Runtime commit: bb4a5cddd9 ]
2015-08-05 13:33:42 +03:00
Amber Lin
92e34fcda6
Enable version info via thunk interface
...
- Replace HSAuint32 with HSA_ENGINE_ID for EngineId type so it explicitely
presents version information for ucode and GfxIP
- Created a GfxIP lookup table to pass the version information. This lookup
searches for matching device ID.
Signed-off-by: Amber Lin <Amber.Lin@amd.com >
Acked-by: John Bridgman <John.Bridgman@amd.com >
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com >
[ROCm/ROCR-Runtime commit: a3925a3a19 ]
2015-07-31 14:56:33 -04:00
Flora Cui
0f0e28cbdb
Add interface to set CU mask
...
Signed-off-by: Flora Cui <flora.cui@amd.com >
Acked-by: Ben Goz <ben.goz@amd.com >
[ROCm/ROCR-Runtime commit: fc4e07daa3 ]
2015-07-23 15:44:01 +08:00
Moses Reuben
9faf7b957c
adding support for scratch memory
...
Signed-off-by: Moses Reuben <moses.reuben@amd.com >
[ROCm/ROCR-Runtime commit: 29c083f695 ]
2015-07-21 16:43:23 +03:00
Oded Gabbay
b7d9879a36
increase event limit to provide 4K events
...
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: 2e76017278 ]
2015-05-18 11:01:42 +03:00
Oded Gabbay
b4d4c4b83d
Don't report local mem aperture if local mem size is 0
...
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: 8aa0791ddb ]
2015-05-05 10:51:50 +03:00
Oded Gabbay
703ffebb96
Increase limit of signal events to 4096
...
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com >
Reviewed-by: Ben Goz<ben.goz@amd.com >
[ROCm/ROCR-Runtime commit: a70a98b30b ]
2015-05-03 13:58:10 +03:00
Oded Gabbay
99b25b95c7
Add missing DoorbellType field to HSA_CAPABILITY
...
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: eb2d3cfcdf ]
2015-05-02 12:10:04 +03:00
Oded Gabbay
b6c7551747
Revert "Add execution property in register memory for gfx801."
...
This reverts commit abf7770d46 .
[ROCm/ROCR-Runtime commit: 4c4df38035 ]
2015-04-28 17:50:00 +03:00
Xihan Zhang
fcf6e22216
Enable creating SDMA queue.
...
Signed-off-by: Xihan Zhang <xihan.zhang@amd.com >
Reviewed-by: Ben Goz<ben.goz@amd.comt >
[ROCm/ROCR-Runtime commit: 112f7e751a ]
2015-04-28 23:42:49 +08:00
Xihan Zhang
abf7770d46
Add execution property in register memory for gfx801.
...
Signed-off-by: Xihan Zhang <xihan.zhang@amd.com >
[ROCm/ROCR-Runtime commit: 5ed05c99b3 ]
2015-04-10 22:26:44 +08:00
Xihan Zhang
7fd679ab27
Add Performance Counter Support on gfx801.
...
Signed-off-by: Xihan Zhang <xihan.zhang@amd.com >
Acked-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: 30eb386026 ]
2015-04-09 00:00:42 +08:00
Ben Goz
d8a1df836d
Adding support for mmap events page from Thunk
...
Signed-off-by: Ben Goz <ben.goz@amd.com >
[ROCm/ROCR-Runtime commit: b27de08442 ]
2015-03-24 17:55:54 +02:00
Oded Gabbay
21f01aaf02
Fix return value when local memory alloc fails
...
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com >
Reviewed-by: Ben Goz <ben.goz@amd.com >
[ROCm/ROCR-Runtime commit: ac56c6baff ]
2015-03-19 10:49:27 +02:00
Oded Gabbay
996785d178
Call __fmm_release with gpu id and not index
...
__fmm_release expects gpu_id as parameter. fmm_release passed it instead the
index of the GPU in the gpu_mem array.
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: aba396bc52 ]
2015-03-03 15:23:57 +02:00
Oded Gabbay
7a243604ad
Disable SDMA queue creation
...
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: 13e0d87733 ]
2015-03-01 14:40:16 +02:00
Oded Gabbay
ecf262fd54
Revert "Disable SDMA queue creation"
...
This reverts commit c1cfb2a540 .
[ROCm/ROCR-Runtime commit: 417e6f7501 ]
2015-03-01 14:36:45 +02:00
Oded Gabbay
c1cfb2a540
Disable SDMA queue creation
...
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: f3ac33230e ]
2015-03-01 11:08:46 +02:00
Oded Gabbay
af87268c5c
Don't alloc/free VRAM in map/unmap paths
...
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: e62d46ba1c ]
2015-02-25 22:49:11 +02:00
Oded Gabbay
686f0ceee4
reformat memory and fmm functions according to kernel coding style
...
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: 027ca02f2e ]
2015-02-25 22:49:08 +02:00
Oded Gabbay
9a511e8e1e
Revert "Workaround for non cached memory issue on gfx801 A0"
...
This reverts commit b494094790 .
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com >
Acked-by: Ben Goz <ben.goz@amd.com >
Conflicts:
include/linux/kfd_ioctl.h
src/queues.c
[ROCm/ROCR-Runtime commit: 5c0f8660b6 ]
2015-02-16 17:22:45 +02:00
Yair Shachar
b6d2361169
Modify HW dbg thunk,to adapt to new KFD-thunk interface
...
Signed-off-by: Yair Shachar <yair.shachar@amd.com >
[ROCm/ROCR-Runtime commit: 89188a6d6c ]
2015-02-08 21:44:47 +02:00
Oded Gabbay
6afb37dbca
Match as much as possible hsakmt.h and hsakmttypes.h to p4
...
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: f0a7fcccc9 ]
2015-02-03 11:13:13 +02:00
Ben Goz
1391a75289
Supporting new thunk spec - adding relevant memflags
...
Signed-off-by: Ben Goz <ben.goz@amd.com >
Reviewed-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: 25441796bd ]
2015-02-01 14:33:33 +02:00
Oded Gabbay
e1a60944a7
fix return value in Map/Unmap functions
...
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com >
Reviewed-by: Yair Shachar <yair.shachar@amd.com >
[ROCm/ROCR-Runtime commit: f24aa620ed ]
2015-01-29 16:55:14 +02:00
Ben Goz
0988ad6b0d
Check if event is not null before handling events
...
Signed-off-by: Ben Goz <ben.goz@amd.com >
Reviewed-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: 930ec8f04d ]
2015-01-29 16:45:36 +02:00
Oded Gabbay
a4c4246694
match kfd_ioctl.h to kernel repo
...
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: 8cc0b16293 ]
2015-01-19 17:18:47 +02:00
Ben Goz
a22e054980
fix a bug in rptr page release
...
Adjust to new ioctl format
Signed-off-by: Ben Goz <ben.goz@amd.com >
Reviewed-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: e7a5cda5a5 ]
2014-12-14 13:49:41 +02:00
Alexey Skidanov
d2c763e4e1
Adding memory exception notification through hsaKmtWaitOnMultipleEvents
...
Signed-off-by: Alexey Skidanov <Alexey.Skidanov@amd.com >
Reviewed-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: c3b51fd827 ]
2014-11-27 16:24:06 +02:00
Alexey Skidanov
dac51f6c40
IOCTL: Adding memory exception data
...
Signed-off-by: Alexey Skidanov <Alexey.Skidanov@amd.com >
Reviewed-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: d7196d4122 ]
2014-11-27 16:21:53 +02:00
Alexey Skidanov
710e9fbf63
Adding memory event type and definition of memory exception data
...
Signed-off-by: Alexey Skidanov <Alexey.Skidanov@amd.com >
Reviewed-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: 36ccd7f867 ]
2014-11-27 15:54:21 +02:00
Ben Goz
b494094790
Workaround for non cached memory issue on gfx801 A0
...
Signed-off-by: Ben Goz <ben.goz@amd.com >
Adjust to new ioctl format
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: 402ff3f881 ]
2014-12-07 14:51:53 +02:00
Ben Goz
75895e0f5e
Supporting QCM for gfx801
...
Signed-off-by: Ben Goz <ben.goz@amd.com >
[ROCm/ROCR-Runtime commit: c5585b0f26 ]
2014-12-07 14:50:28 +02:00
Ben Goz
46e4e856ed
Adding support in allocating executable memory
...
Signed-off-by: Ben Goz <ben.goz@amd.com >
[ROCm/ROCR-Runtime commit: bd7e10b0ec ]
2014-12-07 14:36:21 +02:00
Alexey Skidanov
a7bdd0fdff
Add GPU local memory module
...
Add graphic interop support
Local memory rework
Signed-off-by: Alexey Skidanov <Alexey.Skidanov@amd.com >
Reviewed-by: Oded Gabbay <oded.gabbay@amd.com >
Adjust to new ioctl format
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: 5d82c65602 ]
2014-10-13 11:29:39 +03:00
Oded Gabbay
ec3149aeb7
kfd_ioctl: interop
...
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: 7972bb00c5 ]
2014-12-08 10:02:34 +02:00
Oded Gabbay
cb29071e77
Add new definitions of HSA functions and types
...
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: d995344ae7 ]
2014-10-20 08:48:28 +03:00
Oded Gabbay
06d3f9c375
kfd_ioctl: local memory
...
Add two new IOCTLs
Remove old IOCTLs
Signed-off-by: Alexey Skidanov <Alexey.Skidanov@amd.com >
Reviewed-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: d14eb7aa00 ]
2014-12-08 10:02:27 +02:00
Yair Shachar
c146ef74c2
Add H/W debug module
...
Signed-off-by: Yair Shachar <yair.shachar@amd.com >
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com >
Adjust to new ioctl format
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: 39f693aec0 ]
2014-10-13 11:29:03 +03:00
Oded Gabbay
8a4fd73eaf
kfd_ioctl: debug
...
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: f7c3c3bd1b ]
2014-12-08 10:02:12 +02:00
Andrew Lewycky
82c89fc12b
Add HSA Signals module
...
Signed-off-by: Andrew Lewycky <Andrew.Lewycky@amd.com >
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com >
Adjust to new ioctl format
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: f66e7d71b1 ]
2014-10-13 11:30:18 +03:00
Oded Gabbay
b4df6bc3aa
kfd_ioctl: events
...
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: 03604633ca ]
2014-12-08 10:01:26 +02:00