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

Commit ff12bfec authored by Benjamin Chan's avatar Benjamin Chan Committed by Abhijith Desai
Browse files

msm: mdss: Use 64-bit math for bandwidth calculation



For larger panel with longer vertical resolution, it is possible that
bandwidth requirement is much higher during downscaling usecase. Current
bandwidth calculation for compression ratio adjustment only use 32-bit
and it is shown that overflow can happen, and is required to change to
use 64-bit variable as input and output.

CRs-Fixed: 2045602
Change-Id: I817e9d55fb6e24e686513327d00f7efd08ac717f
Signed-off-by: default avatarBenjamin Chan <bkchan@codeaurora.org>
parent 47384ca6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1736,7 +1736,7 @@ void mdss_mdp_ctl_notifier_register(struct mdss_mdp_ctl *ctl,
void mdss_mdp_ctl_notifier_unregister(struct mdss_mdp_ctl *ctl,
	struct notifier_block *notifier);
u32 mdss_mdp_ctl_perf_get_transaction_status(struct mdss_mdp_ctl *ctl);
u32 apply_comp_ratio_factor(u32 quota, struct mdss_mdp_format_params *fmt,
u64 apply_comp_ratio_factor(u64 quota, struct mdss_mdp_format_params *fmt,
	struct mult_factor *factor);

int mdss_mdp_scan_pipes(void);
+1 −1
Original line number Diff line number Diff line
@@ -816,7 +816,7 @@ static inline bool validate_comp_ratio(struct mult_factor *factor)
	return factor->numer && factor->denom;
}

u32 apply_comp_ratio_factor(u32 quota,
u64 apply_comp_ratio_factor(u64 quota,
	struct mdss_mdp_format_params *fmt,
	struct mult_factor *factor)
{