Commit Graph

68445 Commits

Author SHA1 Message Date
foreman cf9c762159 P4 to Git Change 1201608 by emankov@em-hsa-amd on 2015/10/20 14:12:09
SWDEV-79234 - ORCA RT: Fix memory leak in Program::addDeviceProgram() on redundant call of createProgram()

	[Synopsis]
	Leak has been observed since CL 1191713:
	ECR #304775 - Remove EG/NI support - Remove devProgramsNoOpt_ field

	[Testing] pre check-in
	          http://ocltc.amd.com:8111/viewModification.html?modId=60549&personal=true&buildTypeId=&tab=vcsModificationBuilds&show_all_builds=true

	[Reviewer] German Andryeyev
	           http://ocltc.amd.com/reviews/r/8741/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/platform/program.cpp#72 edit
2015-10-20 14:32:02 -04:00
foreman c39ed65e6e P4 to Git Change 1201593 by kzhuravl@linu-kzhuravl-oclhsa on 2015/10/20 13:37:07
SWDEV-76911 - Boltzmann loader support

	[Loader]
	  - Introduce Context::SegmentFreeze
	    - Called by loader once executable is being frozen
	    - [HRT] Causes memory transfer to appropriate system or local memory
	    - [ORT] Does nothing
	  - Change loading of kernel symbol to read values from the code object
	  - Change debugger backdoor initialization to use Context::SegmentCopy

	[HSA RT]
	  - Remove outdated code
	  - Introduce SegmentMemory, BaseProfileMemory, FullProfileMemory classes
	    - Manage memory allocation/deallocation/copying/freezing
	  - Minor cleanups

	[ORCA RT]
	  - Add empty ORCAHSALoaderContext::SegmentFreeze

	Testing: precheckin (http://ocltc.amd.com:8111/viewModification.html?modId=60551&personal=true&tab=vcsModificationBuilds)
	ReviewBoardURL: http://ocltc.amd.com/reviews/r/8681/

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/ext/loader/executable.cpp#14 integrate
... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/ext/loader/executable.hpp#10 integrate
... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/ext/loader/loaders.cpp#4 integrate
... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/ext/loader/loaders.hpp#4 integrate
... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/include/amd_hsa_loader.hpp#6 integrate
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.hpp#62 edit


[ROCm/clr commit: e3ff5a9c7d]
2015-10-20 13:54:35 -04:00
foreman e3ff5a9c7d P4 to Git Change 1201593 by kzhuravl@linu-kzhuravl-oclhsa on 2015/10/20 13:37:07
SWDEV-76911 - Boltzmann loader support

	[Loader]
	  - Introduce Context::SegmentFreeze
	    - Called by loader once executable is being frozen
	    - [HRT] Causes memory transfer to appropriate system or local memory
	    - [ORT] Does nothing
	  - Change loading of kernel symbol to read values from the code object
	  - Change debugger backdoor initialization to use Context::SegmentCopy

	[HSA RT]
	  - Remove outdated code
	  - Introduce SegmentMemory, BaseProfileMemory, FullProfileMemory classes
	    - Manage memory allocation/deallocation/copying/freezing
	  - Minor cleanups

	[ORCA RT]
	  - Add empty ORCAHSALoaderContext::SegmentFreeze

	Testing: precheckin (http://ocltc.amd.com:8111/viewModification.html?modId=60551&personal=true&tab=vcsModificationBuilds)
	ReviewBoardURL: http://ocltc.amd.com/reviews/r/8681/

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/ext/loader/executable.cpp#14 integrate
... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/ext/loader/executable.hpp#10 integrate
... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/ext/loader/loaders.cpp#4 integrate
... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/ext/loader/loaders.hpp#4 integrate
... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/include/amd_hsa_loader.hpp#6 integrate
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.hpp#62 edit
2015-10-20 13:54:35 -04:00
foreman 3abda1bcae P4 to Git Change 1201490 by xcui@merged_opencl_jxcwin on 2015/10/20 10:47:18
SWDEV-41018 -  if system is equal to or less than 2GB memory, disable CPU and APU for OpenCL, and force the device to be 1.2 if it is a discrete GPU.

	precheckin:
	http://ocltc.amd.com:8111/viewModification.html?modId=60516&personal=true&buildTypeId=&tab=vcsModificationBuilds&show_all_builds=true
	code review:
	http://ocltc.amd.com/reviews/r/8738/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/cpu/cpudevice.cpp#277 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#531 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.cpp#331 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.hpp#95 edit


[ROCm/clr commit: 25bfbb8085]
2015-10-20 11:02:14 -04:00
foreman 25bfbb8085 P4 to Git Change 1201490 by xcui@merged_opencl_jxcwin on 2015/10/20 10:47:18
SWDEV-41018 -  if system is equal to or less than 2GB memory, disable CPU and APU for OpenCL, and force the device to be 1.2 if it is a discrete GPU.

	precheckin:
	http://ocltc.amd.com:8111/viewModification.html?modId=60516&personal=true&buildTypeId=&tab=vcsModificationBuilds&show_all_builds=true
	code review:
	http://ocltc.amd.com/reviews/r/8738/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/cpu/cpudevice.cpp#277 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#531 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.cpp#331 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.hpp#95 edit
2015-10-20 11:02:14 -04:00
foreman f996550c29 P4 to Git Change 1201357 by johtaylo@johtaylo-JTBUILDER03-increment on 2015/10/20 03:00:10
SWDEV-2 - Change OpenCL version number from 1918 to 1919.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1665 edit


[ROCm/clr commit: 3b9fcfeb89]
2015-10-20 03:13:34 -04:00
foreman 3b9fcfeb89 P4 to Git Change 1201357 by johtaylo@johtaylo-JTBUILDER03-increment on 2015/10/20 03:00:10
SWDEV-2 - Change OpenCL version number from 1918 to 1919.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1665 edit
2015-10-20 03:13:34 -04:00
foreman ccf1cea91c P4 to Git Change 1201301 by skudchad@skudchad_test_win_opencl2 on 2015/10/19 19:19:44
SWDEV-77172 - IOMMUv2 changes for Windows 10
	- Pass the GPUVM offset to MonitoredFence GPUVA as well
	- Other minor changes for SVM

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/8729/diff/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#148 edit


[ROCm/clr commit: 4da269fbb6]
2015-10-19 19:29:07 -04:00
foreman 4da269fbb6 P4 to Git Change 1201301 by skudchad@skudchad_test_win_opencl2 on 2015/10/19 19:19:44
SWDEV-77172 - IOMMUv2 changes for Windows 10
	- Pass the GPUVM offset to MonitoredFence GPUVA as well
	- Other minor changes for SVM

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/8729/diff/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#148 edit
2015-10-19 19:29:07 -04:00
Felix Kuehling 39bde26c9b Reserve more SVM process address space
Try to reserve as much SVM address space as GPUVM can address.
Implement a fallback scheme to smaller sizes if larger allocations
fail or are not addressable by the GPU, down to an (arbitrary)
minimum of 4GB.

Change-Id: I770177834cc9e6ddd6ef4f20d789eab63c8055cb
2015-10-19 17:44:23 -04:00
Felix Kuehling ebf6ec1806 Reserve more SVM process address space
Try to reserve as much SVM address space as GPUVM can address.
Implement a fallback scheme to smaller sizes if larger allocations
fail or are not addressable by the GPU, down to an (arbitrary)
minimum of 4GB.

Change-Id: I770177834cc9e6ddd6ef4f20d789eab63c8055cb


[ROCm/ROCR-Runtime commit: 39bde26c9b]
2015-10-19 17:44:23 -04:00
foreman c84b3479f8 P4 to Git Change 1201249 by jatang@jatang-opencl-hsa-stg2 on 2015/10/19 16:47:00
SWDEV-78799 - Fix a division by 0 error.

	Occasionally the profiling duration of some light weight kernel is 0, and would cause division by 0 error to the WLAlgorithmSmooth algorithm. We can just skip collecting this duration for the adaption algorithm.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuwavelimiter.cpp#11 edit


[ROCm/clr commit: b06ee3a1a9]
2015-10-19 17:41:21 -04:00
foreman b06ee3a1a9 P4 to Git Change 1201249 by jatang@jatang-opencl-hsa-stg2 on 2015/10/19 16:47:00
SWDEV-78799 - Fix a division by 0 error.

	Occasionally the profiling duration of some light weight kernel is 0, and would cause division by 0 error to the WLAlgorithmSmooth algorithm. We can just skip collecting this duration for the adaption algorithm.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuwavelimiter.cpp#11 edit
2015-10-19 17:41:21 -04:00
foreman 2eed23e6b8 P4 to Git Change 1201004 by johtaylo@johtaylo-JTBUILDER03-increment on 2015/10/19 03:00:10
SWDEV-2 - Change OpenCL version number from 1917 to 1918.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1664 edit


[ROCm/clr commit: 8b5af23596]
2015-10-19 05:36:26 -04:00
foreman 8b5af23596 P4 to Git Change 1201004 by johtaylo@johtaylo-JTBUILDER03-increment on 2015/10/19 03:00:10
SWDEV-2 - Change OpenCL version number from 1917 to 1918.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1664 edit
2015-10-19 05:36:26 -04:00
foreman de1cd3a012 P4 to Git Change 1200947 by johtaylo@johtaylo-JTBUILDER03-increment on 2015/10/18 03:00:12
SWDEV-2 - Change OpenCL version number from 1916 to 1917.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1663 edit


[ROCm/clr commit: 7a1f3e4bc4]
2015-10-18 03:11:22 -04:00
foreman 7a1f3e4bc4 P4 to Git Change 1200947 by johtaylo@johtaylo-JTBUILDER03-increment on 2015/10/18 03:00:12
SWDEV-2 - Change OpenCL version number from 1916 to 1917.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1663 edit
2015-10-18 03:11:22 -04:00
foreman 8569f11ad6 P4 to Git Change 1200936 by johtaylo@johtaylo-JTBUILDER03-increment on 2015/10/17 03:00:10
SWDEV-2 - Change OpenCL version number from 1915 to 1916.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1662 edit


[ROCm/clr commit: 9ab565c5e1]
2015-10-17 03:11:14 -04:00
foreman 9ab565c5e1 P4 to Git Change 1200936 by johtaylo@johtaylo-JTBUILDER03-increment on 2015/10/17 03:00:10
SWDEV-2 - Change OpenCL version number from 1915 to 1916.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1662 edit
2015-10-17 03:11:14 -04:00
Andres Rodriguez 0df346aaf9 make: add 'deb' target for creating deb packages
When 'make deb' is run create a libhsakmt.deb archive that installs
libhsakmt into the appropriate folder on the target where the dymanic
linker can find it.

Change-Id: I32de7198975f7831e509a67371e78456982b5c42
2015-10-16 19:13:51 -04:00
Andres Rodriguez f6eba4d367 make: add 'deb' target for creating deb packages
When 'make deb' is run create a libhsakmt.deb archive that installs
libhsakmt into the appropriate folder on the target where the dymanic
linker can find it.

Change-Id: I32de7198975f7831e509a67371e78456982b5c42


[ROCm/ROCR-Runtime commit: 0df346aaf9]
2015-10-16 19:13:51 -04:00
foreman 4da631e2e2 P4 to Git Change 1200905 by bdhanase@bala_workpc_ocl on 2015/10/16 18:57:48
SWDEV-78103 - If USWC size is less than 1.5 GB, then report 50% else report 75%.

	Reviewed by: German

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#530 edit


[ROCm/clr commit: 54aed91b3b]
2015-10-16 19:04:45 -04:00
foreman 54aed91b3b P4 to Git Change 1200905 by bdhanase@bala_workpc_ocl on 2015/10/16 18:57:48
SWDEV-78103 - If USWC size is less than 1.5 GB, then report 50% else report 75%.

	Reviewed by: German

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#530 edit
2015-10-16 19:04:45 -04:00
foreman df9060dc93 P4 to Git Change 1200677 by mbareghe@mbareghe_stg_win30 on 2015/10/16 10:11:30
SWDEV-78915 - SYCL - segfault building SPIR binary where the kernel name exceeds 255 characters - changed kernel/arg name type from char[] to string to avoid the 256 character limitation.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#304 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.hpp#122 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.cpp#211 edit


[ROCm/clr commit: fab877c56d]
2015-10-16 10:20:54 -04:00
foreman fab877c56d P4 to Git Change 1200677 by mbareghe@mbareghe_stg_win30 on 2015/10/16 10:11:30
SWDEV-78915 - SYCL - segfault building SPIR binary where the kernel name exceeds 255 characters - changed kernel/arg name type from char[] to string to avoid the 256 character limitation.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#304 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.hpp#122 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.cpp#211 edit
2015-10-16 10:20:54 -04:00
foreman 2ca4a95672 P4 to Git Change 1200565 by johtaylo@johtaylo-JTBUILDER03-increment on 2015/10/16 03:00:12
SWDEV-2 - Change OpenCL version number from 1914 to 1915.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1661 edit


[ROCm/clr commit: 108aa6e8ee]
2015-10-16 03:13:47 -04:00
foreman 108aa6e8ee P4 to Git Change 1200565 by johtaylo@johtaylo-JTBUILDER03-increment on 2015/10/16 03:00:12
SWDEV-2 - Change OpenCL version number from 1914 to 1915.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1661 edit
2015-10-16 03:13:47 -04:00
Harish Kasiviswanathan 5cc56a2647 Fix init process apertures
Kernel ioctl AMDKFD_IOC_GET_PROCESS_APERTURES returns process apertures
only for GPU nodes. The current implementation assumed that this list of
GPU nodes returned by the ioctl has one to one correpondence to sysfs
topology nodes. This fails when non-GPU nodes exist in topology as in
case of Intel + gfx802

Fix this by using gpu_id (./sys/.../kfd/topology/nodes/1/gpu_id) to map
information obtained from kernel ioctl call.

Change-Id: I4ab8ae5354f12cf0b6609fc4b24182b82eb3677f
2015-10-15 15:38:14 -04:00
Harish Kasiviswanathan d38a3f1438 Fix init process apertures
Kernel ioctl AMDKFD_IOC_GET_PROCESS_APERTURES returns process apertures
only for GPU nodes. The current implementation assumed that this list of
GPU nodes returned by the ioctl has one to one correpondence to sysfs
topology nodes. This fails when non-GPU nodes exist in topology as in
case of Intel + gfx802

Fix this by using gpu_id (./sys/.../kfd/topology/nodes/1/gpu_id) to map
information obtained from kernel ioctl call.

Change-Id: I4ab8ae5354f12cf0b6609fc4b24182b82eb3677f


[ROCm/ROCR-Runtime commit: 5cc56a2647]
2015-10-15 15:38:14 -04:00
foreman c296a56b07 P4 to Git Change 1200252 by jatang@jatang-opencl-hsa-stg1 on 2015/10/15 11:56:48
SWDEV-56468 - Back out changelist 1200206

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#303 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.hpp#121 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#387 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuwavelimiter.cpp#10 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuwavelimiter.hpp#7 edit


[ROCm/clr commit: 4b286ad468]
2015-10-15 12:08:34 -04:00
foreman 4b286ad468 P4 to Git Change 1200252 by jatang@jatang-opencl-hsa-stg1 on 2015/10/15 11:56:48
SWDEV-56468 - Back out changelist 1200206

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#303 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.hpp#121 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#387 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuwavelimiter.cpp#10 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuwavelimiter.hpp#7 edit
2015-10-15 12:08:34 -04:00
foreman 5a8f670bc5 P4 to Git Change 1200206 by jatang@jatang-opencl-hsa-stg1 on 2015/10/15 10:08:51
SWDEV-56468 - Support wave limiter in HSAIL path.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#302 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.hpp#120 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#386 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuwavelimiter.cpp#9 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuwavelimiter.hpp#6 edit


[ROCm/clr commit: 19ecdf3fd1]
2015-10-15 10:21:27 -04:00
foreman 19ecdf3fd1 P4 to Git Change 1200206 by jatang@jatang-opencl-hsa-stg1 on 2015/10/15 10:08:51
SWDEV-56468 - Support wave limiter in HSAIL path.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#302 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.hpp#120 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#386 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuwavelimiter.cpp#9 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuwavelimiter.hpp#6 edit
2015-10-15 10:21:27 -04:00
foreman 284ed2054e P4 to Git Change 1200078 by johtaylo@johtaylo-JTBUILDER03-increment on 2015/10/15 03:00:12
SWDEV-2 - Change OpenCL version number from 1913 to 1914.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1660 edit


[ROCm/clr commit: 4996170c79]
2015-10-15 03:14:10 -04:00
foreman 4996170c79 P4 to Git Change 1200078 by johtaylo@johtaylo-JTBUILDER03-increment on 2015/10/15 03:00:12
SWDEV-2 - Change OpenCL version number from 1913 to 1914.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1660 edit
2015-10-15 03:14:10 -04:00
Harish Kasiviswanathan b6c6f79143 Fix hard-coded usage of Node 0
Use appropriate NodeId instead

Change-Id: I46af93b76978fea7bedb34457fcc0864ed4fe2d4
2015-10-14 17:27:38 -04:00
Harish Kasiviswanathan 462a775ec3 Fix hard-coded usage of Node 0
Use appropriate NodeId instead

Change-Id: I46af93b76978fea7bedb34457fcc0864ed4fe2d4


[ROCm/ROCR-Runtime commit: b6c6f79143]
2015-10-14 17:27:38 -04:00
foreman fa50aea123 P4 to Git Change 1199594 by johtaylo@johtaylo-JTBUILDER03-increment on 2015/10/14 03:00:22
SWDEV-2 - Change OpenCL version number from 1912 to 1913.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1659 edit


[ROCm/clr commit: 9e6ad02828]
2015-10-14 03:10:19 -04:00
foreman 9e6ad02828 P4 to Git Change 1199594 by johtaylo@johtaylo-JTBUILDER03-increment on 2015/10/14 03:00:22
SWDEV-2 - Change OpenCL version number from 1912 to 1913.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1659 edit
2015-10-14 03:10:19 -04:00
Felix Kuehling 6a5ca4bc5a Fix various dgpu memory management issues
Fix TONGA_PAGE_SIZE value and move it to libhsakmt.h for usiing it
consistently in all places that require the same alignment for the
same reason. Create a generic alignment helper macro to replace some
incorrect hand-coded size alignments.

Move virtual address and size alignments down into aperture management
functions. Alignment is a per-aperture property that is set during
fmm_init_process_apertures. Doing the alignment there ensures that
all allocations in the same aperture are aligned the same way. Finding
objects by size and address can take the alignment into account.

Also align the size of physical allocations to back aligned virtual
address allocations. CPU mappings do not need to be aligned.

Map anonymous pages over released memory mappings to allow the
backing pages to be released, while keeping the address space
reserved.

Add alignment parameter to free_exec_aligned_memory_gpu to match the
interface of allocate_exec_aligned_memory_cpu. It doesn't make sense
to allow an alignment parameter in one but assume a specific
alignment in the other.

Change-Id: I74226ca6938f4948f643e5aee1d474720cd89e78
2015-10-13 19:14:56 -04:00
Felix Kuehling 574fcdd340 Fix various dgpu memory management issues
Fix TONGA_PAGE_SIZE value and move it to libhsakmt.h for usiing it
consistently in all places that require the same alignment for the
same reason. Create a generic alignment helper macro to replace some
incorrect hand-coded size alignments.

Move virtual address and size alignments down into aperture management
functions. Alignment is a per-aperture property that is set during
fmm_init_process_apertures. Doing the alignment there ensures that
all allocations in the same aperture are aligned the same way. Finding
objects by size and address can take the alignment into account.

Also align the size of physical allocations to back aligned virtual
address allocations. CPU mappings do not need to be aligned.

Map anonymous pages over released memory mappings to allow the
backing pages to be released, while keeping the address space
reserved.

Add alignment parameter to free_exec_aligned_memory_gpu to match the
interface of allocate_exec_aligned_memory_cpu. It doesn't make sense
to allow an alignment parameter in one but assume a specific
alignment in the other.

Change-Id: I74226ca6938f4948f643e5aee1d474720cd89e78


[ROCm/ROCR-Runtime commit: 6a5ca4bc5a]
2015-10-13 19:14:56 -04:00
foreman 512a7c282c P4 to Git Change 1199371 by lmoriche@lmoriche_opencl_dev on 2015/10/13 16:29:28
SWDEV-78467 - Add the LiquidFlashFile implementation (except for readBlocks)

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/build/Makefile.api#121 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_lqdflash_amd.cpp#2 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_lqdflash_amd.h#2 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.0/CL/cl_ext.h#19 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/object.hpp#16 edit


[ROCm/clr commit: d53303025f]
2015-10-13 16:47:28 -04:00
foreman d53303025f P4 to Git Change 1199371 by lmoriche@lmoriche_opencl_dev on 2015/10/13 16:29:28
SWDEV-78467 - Add the LiquidFlashFile implementation (except for readBlocks)

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/build/Makefile.api#121 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_lqdflash_amd.cpp#2 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_lqdflash_amd.h#2 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.0/CL/cl_ext.h#19 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/object.hpp#16 edit
2015-10-13 16:47:28 -04:00
foreman f5481fdfa3 P4 to Git Change 1199371 by lmoriche@lmoriche_opencl_dev on 2015/10/13 16:29:28
SWDEV-78467 - Add the LiquidFlashFile implementation (except for readBlocks)

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/build/Makefile.api#121 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_lqdflash_amd.cpp#2 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_lqdflash_amd.h#2 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.0/CL/cl_ext.h#19 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/object.hpp#16 edit


[ROCm/clr commit: ff337b0409]
2015-10-13 16:47:28 -04:00
foreman ff337b0409 P4 to Git Change 1199371 by lmoriche@lmoriche_opencl_dev on 2015/10/13 16:29:28
SWDEV-78467 - Add the LiquidFlashFile implementation (except for readBlocks)

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/build/Makefile.api#121 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_lqdflash_amd.cpp#2 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_lqdflash_amd.h#2 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.0/CL/cl_ext.h#19 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/object.hpp#16 edit
2015-10-13 16:47:28 -04:00
foreman 11f76998d2 P4 to Git Change 1199058 by johtaylo@johtaylo-JTBUILDER03-increment on 2015/10/13 03:00:10
SWDEV-2 - Change OpenCL version number from 1911 to 1912.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1658 edit


[ROCm/clr commit: 042540f231]
2015-10-13 03:07:51 -04:00
foreman 042540f231 P4 to Git Change 1199058 by johtaylo@johtaylo-JTBUILDER03-increment on 2015/10/13 03:00:10
SWDEV-2 - Change OpenCL version number from 1911 to 1912.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1658 edit
2015-10-13 03:07:51 -04:00
foreman 08a0eaacf7 P4 to Git Change 1198818 by johtaylo@johtaylo-JTBUILDER03-increment on 2015/10/12 03:00:12
SWDEV-2 - Change OpenCL version number from 1910 to 1911.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1657 edit


[ROCm/clr commit: bb8e739493]
2015-10-12 03:41:45 -04:00
foreman bb8e739493 P4 to Git Change 1198818 by johtaylo@johtaylo-JTBUILDER03-increment on 2015/10/12 03:00:12
SWDEV-2 - Change OpenCL version number from 1910 to 1911.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1657 edit
2015-10-12 03:41:45 -04:00
foreman 22ca65a9a5 P4 to Git Change 1198720 by johtaylo@johtaylo-JTBUILDER03-increment on 2015/10/11 03:00:10
SWDEV-2 - Change OpenCL version number from 1909 to 1910.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1656 edit


[ROCm/clr commit: 9cc03f252a]
2015-10-11 03:11:37 -04:00