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

Commit c8806c3b authored by Nirmal Abraham's avatar Nirmal Abraham Committed by Gerrit - the friendly Code Review server
Browse files

fbdev: msm: Do SMMU attach before buffer map



Initialize overlay, do splash clean up and smmu attach
before calling dma_buf apis to attach/map the source
buffers. This makes sure iommu_dma_ops are used for
buffer attach/map instead of swiotlb_dma_ops.

Change-Id: I7d7d75cf0e21861eafc26d7b5ac0e185d2bfe033
Signed-off-by: default avatarNirmal Abraham <nabrah@codeaurora.org>
parent 888efb8c
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -2118,6 +2118,12 @@ int mdss_mdp_layer_pre_commit(struct msm_fb_data_type *mfd,

	i = 0;

	ret = mdss_mdp_overlay_start(mfd);
	if (ret) {
		pr_err("unable to start overlay %d (%d)\n", mfd->index, ret);
		goto end;
	}

	mutex_lock(&mdp5_data->list_lock);
	list_for_each_entry_safe(pipe, tmp, &mdp5_data->pipes_used, list) {
		if (pipe->flags & MDP_SOLID_FILL) {
@@ -2135,12 +2141,6 @@ int mdss_mdp_layer_pre_commit(struct msm_fb_data_type *mfd,
	}
	mutex_unlock(&mdp5_data->list_lock);

	ret = mdss_mdp_overlay_start(mfd);
	if (ret) {
		pr_err("unable to start overlay %d (%d)\n", mfd->index, ret);
		goto map_err;
	}

	if (commit->frc_info)
		__parse_frc_info(mdp5_data, commit->frc_info);