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

Commit 6586b372 authored by Ujwal Patel's avatar Ujwal Patel
Browse files

msm: mdss: return error -E2BIG when per pipe bandwidth check fails



In current implementation, it is possible that user-space tries to
configure pipe beyond its bandwidth (BW) limits. When driver detects this
condition, in few use-cases it can return -EINVAL which is not the proper
representation of the error and can lead to incorrect behavior from
user-space process. Correct this by always returning -E2BIG error
whenever per pipe BW check fails.

Change-Id: I90f429ad0bafd5bb5ec6da66d75d44ec48c0f299
Signed-off-by: default avatarUjwal Patel <ujwalp@codeaurora.org>
parent dfc6b80d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -434,7 +434,7 @@ static int __mdp_pipe_tune_perf(struct mdss_mdp_pipe *pipe,
			!pipe->scale.enable_pxl_ext)
			pipe->vert_deci++;
		else
			return -EPERM;
			return -E2BIG;
	}

	return 0;