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

Commit e5e0ee24 authored by Murthy Nidadavolu's avatar Murthy Nidadavolu Committed by Gerrit - the friendly Code Review server
Browse files

media/dvb: Allow large non-contiguous buffers to map to shmbrige



One input buffer size defined by OpenMax decoder is 3538944byte and
OpenMax allocates 32 such buffers. Currrently relying on
qseecom_send_command legacy path to avoid whitelisting for securemm TA.

Change-Id: I595f324c8cf33fed188f9ed31136d1447bb30265
Signed-off-by: default avatarMurthy Nidadavolu <mnssr@codeaurora.org>
parent 0c245404
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
 */

#include <linux/init.h>
@@ -1150,8 +1150,8 @@ static int mpq_sdmx_create_shm_bridge(struct dma_buf *dmabuf,
		return ret;
	}

	if (!(dma_buf_flags & ION_FLAG_SECURE) || (sgt->nents != 1)) {
		MPQ_DVB_ERR_PRINT("Not a contiguous secure buffer\n");
	if (!(dma_buf_flags & ION_FLAG_SECURE)) {
		MPQ_DVB_ERR_PRINT("Not a secure buffer\n");
		return 0;
	}