Thread (48 messages) 48 messages, 3 authors, 2022-02-16

Re: [PATCH v4 08/35] iommu/mediatek: Use kmalloc for protect buffer

From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Date: 2022-01-27 11:08:28
Also in: linux-arm-kernel, linux-iommu, linux-mediatek, lkml

Il 25/01/22 09:56, Yong Wu ha scritto:
No need zero for the protect buffer that is only accessed by the IOMMU HW
translation fault happened.

Signed-off-by: Yong Wu <yong.wu@mediatek.com>
I would rather keep this a devm_kzalloc instead... the cost is very minimal and
this will be handy when new hardware will be introduced, as it may require a bigger
buffer: in that case, "older" platforms will use only part of it and we may get
garbage data at the end.

Regards,
Angelo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help