Commit 05811b07 authored by Guangming Cao's avatar Guangming Cao Committed by T.J. Mercier
Browse files

ANDROID: dma-buf: support users to change dma_buf.name

User space user can call DMA_BUF_SET_NAME to set dma_buf.name,
but until now we can't set it at kernel side, it's difficult to debug
kernel dma_buf users.

There are some kernel users of dma_heap also need it at MTK,
such as camera, it's also have a allocator for other camera part,
unlike most case in userspace, it's in kernel.
For debug buffer owner, we need add it to let it can set debug name
for each dmabuf, so that we can know dmabuf owner by dma_buf.name.

Leaf changes summary: 1 artifact changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 1 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

1 Added function:

  [A] 'function long int dma_buf_set_name(dma_buf*, const char*)'

Bug: 223353875
Link: https://lore.kernel.org/patchwork/patch/1459719/


Change-Id: Iac5c6b8838b9b4d976f4525d000e17a3abab94f6
Signed-off-by: default avatarGuangming Cao <Guangming.Cao@mediatek.com>
Signed-off-by: default avatarGeorgi Djakov <quic_c_gdjako@quicinc.com>
Signed-off-by: default avatarChris Goldsworthy <quic_cgoldswo@quicinc.com>
(cherry picked from commit af2ae865)
Jacky Liu <qsliu@google.com>: resolve 6.1 conflicts
Signed-off-by: default avatarAndrew Chant <achant@google.com>
Signed-off-by: default avatarT.J. Mercier <tjmercier@google.com>
parent dff0b2a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment