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>
This commit is contained in:
@@ -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:
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user