Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7bf2abd3 authored by Taniya Das's avatar Taniya Das
Browse files

soc: qcom: peripheral-loader: Add attribute to skip zeroing memory



When a subsystem crashes and there is no executing entity that can clear
memory protection, subsequent accesses to that memory will fail.
dma_alloc_attrs tries to zero out memory and can trigger this problem.
Prevent dma_alloc_attrs from attempting to zero out memory.

Change-Id: Ia94c035e566c777385613a1f662aa7571b082651
Signed-off-by: default avatarTaniya Das <tdas@codeaurora.org>
parent 38be2e8f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -378,6 +378,7 @@ static int pil_alloc_region(struct pil_priv *priv, phys_addr_t min_addr,
	else
		aligned_size = ALIGN(size, SZ_1M);

	dma_set_attr(DMA_ATTR_SKIP_ZEROING, &attrs);
	region = dma_alloc_attrs(priv->desc->dev, aligned_size,
				&priv->region_start, GFP_KERNEL, &attrs);