Ioannis Assiouras
d05ecea253
SWDEV-508435 - Added a fix for double free of hsaImageObject
...
Change-Id: I9397f7c9dbbad7c249b359155df312cb920eba6c
2025-02-05 22:21:24 +00:00
kjayapra-amd
e7a7feb273
SWDEV-464828 - Initial implementation of VMM IPC on PAL/Windows.
...
Change-Id: I3d5e148fad9105704db6724b00df06bef4fc9d2f
2024-07-16 10:38:35 -04:00
kjayapra-amd
d1b833e509
SWDEV-467706 - Do not set HostMemoryDirectAccess flag for vaddr mem creation.
...
Change-Id: Iac30e906eea8a05a192a981f9069a5bbade10728
2024-06-14 06:55:11 -04:00
Ioannis Assiouras
775dc204aa
SWDEV-463865 - changed device,roc and pal namespaces to be nested under amd
...
Change-Id: Icad342843c039c634e249a13a7aa31400730b1dd
2024-06-07 12:23:06 -04:00
Ioannis Assiouras
5bb30d7718
SWDEV-460581 - Fixed memory leak in hipIpcCloseMemHandle
...
hsa_amd_ipc_memory_detach is called with an invalid mapped pointer.
Changed to pass the svm pointer of the owner memory instead.
Change-Id: I8203c6e2d718efb8ca3b028309bc78caff8d4c7d
2024-05-28 06:28:17 +00:00
Jaydeep Patel
1d48f2a1ab
SWDEV-456279 - Adding new hip flag to access contiguous memory and pass the flag to HSA API.
...
Change-Id: I1bafeaa3096395c729723af958d609bc41e7845c
2024-04-30 05:25:38 -04:00
kjayapra-amd
74ffc5f0d5
SWDEV-413997 - Cleanup fixes for Virtual Memory Management.
...
Change-Id: I9a4a4d9087b5daf15e3ba31e786d34db431212a1
2024-04-22 10:58:06 -04:00
kjayapra-amd
56ebf5157a
SWDEV-413997 - VMM IPC implementation for Linux.
...
Change-Id: Icfeb83ca51e96be35abb67a94d6e3e1a1ca5a934
2024-04-18 11:28:13 -04:00
German Andryeyev
c95a75a2bf
SWDEV-444670 - Enable teardown class
...
Force implicit runtime teardown with a global destructor.
Change-Id: Iabe63dedf5b94fefc98668585c45a61607120669
2024-04-16 12:00:06 -04:00
kjayapra-amd
5cbd74b554
SWDEV-413997 - Save hsa_handle as ptr in hipMemCreate path.
...
Change-Id: Ica32017ef7b00326dfb6d1f604e126d40ad5b786
2024-03-26 10:24:29 -04:00
Ioannis Assiouras
51926b6b6b
SWDEV-451736 - Revert "SWDEV-444670 - Register the Runtime::tearDown function to be called at exit"
...
This reverts commit 5e294f89a8 .
Change-Id: Ib9cb1cc0c3903bfba56c9a5d05ae8afe96be583a
2024-03-23 07:05:02 -04:00
kjayapra-amd
f5ca620baa
SWDEV-423835 - Fixing kernel launch issues on Virtual Memory Management path.
...
Change-Id: I9f5e8a3d83af3809b2c50b21a10697e26113dd23
2024-03-12 17:22:07 -04:00
Ioannis Assiouras
5e294f89a8
SWDEV-444670 - Register the Runtime::tearDown function to be called at exit
...
Change-Id: I2200b8154ce6806bf99150d0d68f6f20138fa3dc
2024-03-08 18:46:59 -05:00
Lang Yu
cc29df873a
SWDEV-439419 - Unlock host ptr when device ptr equals host ptr
...
hsa_amd_memory_lock_to_pool() and hsa_amd_memory_unlock()
should be called balanced.
Change-Id: I8b1549861bff752aabbb6399d717d1e346079a38
Signed-off-by: Lang Yu <Lang.Yu@amd.com >
2024-02-05 05:08:11 +00:00
German Andryeyev
a6d480e098
SWDEV-436869 - Destroy host memory
...
Recent changes disabled system memory allocation
in the abstraciton layer. That requires memory
allocation/destruction in ROCR. Add destruction logic.
Change-Id: I68fe6b0a620ca743fe5850052ea0efa8bb7931c2
2023-12-15 16:39:41 -05:00
German
01217d0383
SWDEV-435015 - Disable sysmem allocation in abstraction layer
...
Change-Id: Idefdabd2997d618b962c42545ae67768c628c5d6
2023-12-04 11:40:28 -05:00
kjayapra-amd
3ef829939a
SWDEV-413997 - Initial VMM changes for ROCm path.
...
Change-Id: I4405fd7b53182eb4c4622835c811c0dc08461537
2023-10-16 11:29:16 -04:00
German Andryeyev
b49e8e78e1
SWDEV-409815 - Fix image view cache issue
...
Add a view bit to avoid original resource destruction when parent
dependency doesn't exist with the image view cache
Change-Id: I8277afd575af8f29951c5d1a9f7d94d784251657
2023-07-25 12:30:04 -04:00
kjayapra-amd
8c7f59663f
SWDEV-408891 - Only register the host pointer to the current device.
...
Change-Id: If5397f148638e3b7d542b9e6fb8ac749a602b35e
2023-07-12 21:44:52 -04:00
German Andryeyev
6b89980fb2
SWDEV-409815 - Fix image view cache issue
...
Make sure parent_ field is cleared for the internal image views.
The internal image views don't require dependencies tracking.
The issue appeard only when Navi10 pitch workaround was enabled.
Change-Id: I376d212750085a9391f8c32fc2979dcb5d93c89c
2023-07-11 11:22:29 -04:00
German Andryeyev
d29755452b
SWDEV-396088 - Add image view cache
...
Blit manager requires an image view to reduce the amount
of copy kernels. Creation/destruction of a view in ROCr is
an expensive operation. Thus, runtime can cache views for fast access.
Change-Id: Ia67d775b481cc8326d91215ca22d4a73c1dddb59
2023-06-28 09:44:05 -04:00
Alex Xie
cfc10d0e1e
SWDEV-382072 - One more case that needs workaround
...
Change-Id: Ief81dd898e4d59ba858f38a843d79be45b5ea944
2023-06-22 19:00:34 -04:00
Alex Xie
b961d4a970
SWDEV-382072 - [Naiv 10]EncodeSDK H264 test fails
...
let ROCr and addrlib decided whether a pitch is supported.
Then, check if we uses workaround.
Also improve image performance for Navi 1x in some cases.
Change-Id: If8bda46648b23c1dcfa26608ca3bb9cd89fef430
2023-06-22 10:40:31 -04:00
German
9aa6f25f1c
SWDEV-311270 - Clean-up IPC path in ROCclr
...
- Make IPC interfaces generic between devices and rely on the IPC buffer
for attach/detach logic
Change-Id: Id3c18d122030329b7ee532bbb6317de9dd6a0bbe
2023-06-20 15:18:21 -04:00
German Andryeyev
3e5803c4c0
SWDEV-381627 - Move cl_vk_amd.hpp into rocclr
...
Rename VK interop to ExternalMemory object, since it should handle
DX interops also
Change-Id: I536ec46d3e53ece35234a2e29030393ad411b96d
2023-04-26 15:25:01 -04:00
Xie.AlexBin
91e2cd5d67
SWDEV-339709 - Device Atomic test failed
...
Code change for Linux
Change-Id: I002881c188b9de351618a06ee8b5ce2aa5d9fd95
2023-04-05 07:49:47 +00:00
Ajay
88736010fb
SWDEV-381627 - adding cl interop files to vdi
...
Change-Id: Ic40363587a2bc56f977a148eba386dfb73d6286e
2023-04-05 07:48:49 +00:00
kjayapra-amd
6b873b8a86
SWDEV-376697 - Use PCIE fine grain memory pool when hipDeviceMallocUncached flag is used.
...
Change-Id: I7234d456ef2df42b0b9b9e0d2647ee9bded565f9
2023-02-16 14:05:50 -05:00
Sourabh Betigeri
2388f61705
SWDEV-340649 - Removes calls to commitMemory in hmm path
...
Change-Id: I8d381b4c3f5cf95628487e0d10ae643443c9709d
2023-01-27 13:15:23 -05:00
German
6dad2fc306
SWDEV-377991 - Remove liquidflash support
...
Remove amdgpu-pro interface for persistent memory,
used in Liquidflash
Change-Id: I7d1720ad0875a62ebb2d7f96cba39601d560a5df
2023-01-23 10:40:57 -05:00
Anusha GodavarthySurya
710749c291
SWDEV-374778 - Select SDMA path when HSA_XNACK is enabled
...
Change-Id: I052675186238eb24b910a0a558d6b8ede36d1413
2023-01-12 23:34:21 -05:00
kjayapra-amd
e56a611b92
SWDEV-371904 - Adding pseudo fine grain flag to hsa memory allocation for device fine grained memory.
...
Change-Id: I8cada90f0e3880dfbc5bf5a3fac4554e7a0cb08e
2022-12-11 08:15:17 -05:00
Julia Jiang
dacd55f3d7
SWDEV-357122 - fix failure in vdi so as to handle unreasonable input size in MallocManagedNegativeTest
...
Change-Id: I1ed1916b652afc67327b0935c3c60fc2a404df30
2022-10-20 12:19:22 -04:00
haoyuan2
0a43f6bff3
SWDEV-343162 - fix OCL test regression
...
For OCL, keep original control logic
FOr HIP, keep the fix for SWDEV-338781
Change-Id: I89de8d1e73cd103b3b4f62206eed72d45695dd6e
2022-06-24 13:23:10 -04:00
German Andryeyev
73ec7bada6
SWDEV-341316 - Copy image SRD only if it's valid
...
Change-Id: I971a21fe99fd07b21cfd3dbe4e7ed33c0ea322f4
2022-06-16 09:18:04 -04:00
haoyuan2
6937fcae3a
SWDEV-338781 - fix blender crash issue on Navi1x
...
remove incorrect control logic which caused seg fault on Navi1x
Change-Id: Ic56e8a73c53062bd86adcf57d0b66e00e21734ec
2022-06-15 10:54:57 -04:00
German Andryeyev
07c1b9a998
SWDEV-336024 - Clear device heap to 0
...
This reverts commit 04bfd93569 .
Reason for revert: Fix regressions
Change-Id: I7d883e1c3cbd27bb64b581ec800243ad7dfe24fd
2022-05-19 09:10:08 -04:00
German Andryeyev
04bfd93569
SWDEV-336024 - Clear device heap to 0
...
The heap must be cleared once per device, but ROCclr doesn't
create a queue per device in HIP. Hence, the clear operation will
be performed during the first queue creation.
Change-Id: I52ceb06d67d11cde6d019c5ab510059f426a9bfb
2022-05-11 11:03:56 -04:00
German Andryeyev
7b114a2b8b
SWDEV-307185 - Create heap for device memory allocator
...
Pass the allocated heap with the kernel arguments
Change-Id: Icdec09b7f937845c39e21cbca7071dc3ba791af9
2022-03-04 00:44:41 -05:00
German Andryeyev
95d55fdfa8
SWDEV-323702 - Use active queue for transfer
...
Pass active queue for transfers in the cache coherency layer.
That will allow to use device transfer queue only for
cases when active queue isn't available, because using device
transfer queue from another active queue may cause a deadlock
Change-Id: Ifbe7e0303b77dbf6eeda3939ffbc25a3df7472de
2022-02-18 09:10:53 -05:00
Satyanvesh Dittakavi
e20dd61932
SWDEV-306939 - Fix vdi errors/warnings by CppCheck
...
Change-Id: I56d910f8363787f1050d5d7e8064ed553c5827fd
2022-01-12 00:22:16 -05:00
Sarbojit Sarkar
02dc6f9f9a
SWDEV-310181 - Fix for AtoH Memcpy tests failure
...
Change-Id: Ibf8c8c01257f0516088d50d5c9f82040ed8fa067
2021-11-29 22:55:23 -05:00
pghafari
e38a200bf7
SWDEV-297142 - HIP-Vulkan - linux interop buffer
...
Change-Id: I0278e56bba632024c214beb9e1758587ccba0927
2021-11-17 06:06:58 -05:00
Saleel Kudchadker
3a7008cf07
SWDEV-297448 - Fix typo in debug print
...
Change-Id: Idc94d5fcd7eabf1e9c0a9617b987c58f507813a7
2021-08-22 23:56:08 -07:00
Saleel Kudchadker
2e26ed1cbb
SWDEV-297448 - Add debug log print
...
Change-Id: Ieba1b2e5d766e3fbe84dfc875dde8268166b3f99
2021-08-22 23:56:08 -07:00
Vladislav Sytchenko
f167136918
SWDEV-297808 - Don't update free memory counter when creating views
...
Current logic when creating a buffer view will end up going into the
allocation block. Even though no memory will be allocated, since
owner()->getSvmPtr() is already allocated, we'll still end up
calling updateFreeMemory().
Checking if we're creating a view, will skip the SVM allocation logic
and let us fall into the actual view creation logic. This won't end up
updating the free memory counter.
Change-Id: I1c260a9ef57895130b272ea1246e06e812b25b37
2021-08-22 23:56:08 -07:00
anusha GodavarthySurya
1884e4ca77
SWDEV-297215 - Set image descriptor as per the HSA specification for hsa_ext_image_descriptor_t
...
Change-Id: I0af0f09120f15a42349ec4de491df8aee7bfd46d
2021-08-22 23:56:08 -07:00
Jason Tang
f165737096
SWDEV-296911 - Enable clgl interop for both MesaGL and OrcaGL
...
Change-Id: Ie3ad85a8335b1fc751812c09bb0cd30aad38dcae
2021-08-22 23:56:08 -07:00
agunashe
d96481fb36
SWDEV-293742 - Update copyright end year VDI repo
...
Change-Id: I69d2fea4a7a43adf96ccea794270e4af991c5261
2021-08-22 23:56:07 -07:00
kjayapra-amd
1c49d8816c
SWDEV-286346 - Implement Arena Memory Object for externally created memory.
...
Change-Id: I8530602d89edf83ad367c52167e48a1559ee1e18
2021-05-18 10:59:52 -04:00