Ben Goz
a511b7c4f7
Adding support for new AQL Queue Memory allocation
...
Change-Id: If84fc4b961627dbdd0b77b1c509a3c9a4c709b9f
Signed-off-by: Ben Goz <ben.goz@amd.com >
[ROCm/ROCR-Runtime commit: e61500c46e ]
2015-10-22 13:13:54 +03:00
Felix Kuehling
8f0b7e6a76
Update HsaMemFlags.ui32.CoarseGrain comment
...
As advised by Paul Blinzer
Change-Id: Icabf4acd94866ddbbe53faf48a71e1113f0c76b6
[ROCm/ROCR-Runtime commit: b94ae66c62 ]
2015-10-05 16:48:50 -04:00
Felix Kuehling
048207626a
Add CoarseGrain memory flag
...
Change-Id: If8ac0339ae8c809c6e6a4f56592a4061d110ea94
[ROCm/ROCR-Runtime commit: f2f45cc0e4 ]
2015-09-30 18:07:04 -04:00
shaoyunl
d30daaba5d
Initiali support for CWSR on thunk
...
1. Add IOCTL defines to set trap handler
2. Add control stack size information on create queue argument.
3. Increase the total save&restore area size for carrizo to include the control stack size.
Signed-off-by: Shaoyun Liu <Shaoyun.liu@amd.com >
Change-Id: Iccf15e073b7db2519e96e7f7b46a89d57ab9a4df
[ROCm/ROCR-Runtime commit: 2d63ee7b8f ]
2015-09-25 15:12:25 -04:00
Amber Lin
2470a3e67b
Sync up HSA_ENGINE_ID type with Windows/Perforce
...
HSA_ENGINE_ID in Perforce added ui32 to the typedef while in Git it doesn't.
This causes conflicts to RT applications. Decision being made is to change Git
to match Perforce.
Change-Id: I7e9c6437b023bb23ec9578737f8534e9453589b9
[ROCm/ROCR-Runtime commit: 082f8314c4 ]
2015-09-24 00:10:52 -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
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
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
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
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
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
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
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
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
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
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
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
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
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
Oded Gabbay
edd2d65809
set thunk-kfd version to match stg
...
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: 0a8bc868b5 ]
2014-12-08 10:04:31 +02:00
Oded Gabbay
f231b71743
Change names of IOCTLS
...
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: 9f647b07ff ]
2014-12-29 13:34:32 +02:00
Oded Gabbay
5b7d807b42
Add definitions of HSA functions and types
...
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: 813af2b89a ]
2014-07-29 10:55:52 +03:00
Oded Gabbay
5935d171b6
Add IOCTL set definitions of amdkfd
...
- KFD_IOC_GET_VERSION:
Retrieves the interface version of amdkfd
- KFD_IOC_CREATE_QUEUE:
Creates a usermode queue that runs on a specific GPU device
- KFD_IOC_DESTROY_QUEUE:
Destroys an existing usermode queue
- KFD_IOC_SET_MEMORY_POLICY:
Sets the memory policy of the default and alternate aperture of the
calling process
- KFD_IOC_GET_CLOCK_COUNTERS:
Retrieves counters (timestamps) of CPU and GPU
- KFD_IOC_GET_PROCESS_APERTURES:
Retrieves information about process apertures that were initialized
during the open() call of the amdkfd device
- KFD_IOC_UPDATE_QUEUE:
Updates configuration of an existing usermode queue
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com >
[ROCm/ROCR-Runtime commit: b0b875964f ]
2014-07-29 10:52:32 +03:00