rocr: Fix IPC dmabuf hang with large allocations (#1945)
Changed ipc_sock_server_conns_ map's value type to size_t. Previous type of int caused allocations of sizes greater than 2GB to overflow, causing the message len to be stored as a negative value, preventing the IPC server from exporting dmabuf file descriptors, which lead to hangs. Signed-off-by: Sunday Clement <Sunday.Clement@amd.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
2bfa9a4d4c
Коммит
3f3260ffd2
@@ -894,7 +894,7 @@ class Runtime {
|
||||
|
||||
// IPC DMA buf unix domain socket server dmabuf FD passing
|
||||
int ipc_sock_server_fd_;
|
||||
std::map<uint64_t, int> ipc_sock_server_conns_;
|
||||
std::map<uint64_t, size_t> ipc_sock_server_conns_;
|
||||
KernelMutex ipc_sock_server_lock_;
|
||||
|
||||
private:
|
||||
|
||||
Ссылка в новой задаче
Block a user