From 5d09f02e14f8a897eb510c0ecbec97ce891b0ef5 Mon Sep 17 00:00:00 2001 From: Priyanka Gujjula Date: Tue, 16 Feb 2021 11:53:24 +0530 Subject: [PATCH] msm: vidc: Update BSE TLB write for H264 dec BSE TLB write is half of TLB read for H264 decoder Change-Id: Ifbe3ef1a6e6f827f4bcc7a15e1ff0a0df3f8ce12 --- msm/vidc/msm_vidc_bus_iris2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/msm/vidc/msm_vidc_bus_iris2.c b/msm/vidc/msm_vidc_bus_iris2.c index db922351b54d..79f3f40184c1 100644 --- a/msm/vidc/msm_vidc_bus_iris2.c +++ b/msm/vidc/msm_vidc_bus_iris2.c @@ -168,9 +168,9 @@ static unsigned long __calculate_decoder(struct vidc_bus_vote_data *d) FP_INT(bps(1))); /* This change is applicable for all IRIS2 targets, * but currently being done for IRIS2 with 2 pipes - * only due to timeline constraints. + * and 1 pipe only due to timeline constraints. */ - if((num_vpp_pipes == 2) && (is_h264_category)) + if((num_vpp_pipes != 4) && (is_h264_category)) ddr.line_buffer_write = fp_div(ddr.line_buffer_read,FP_INT(2)); else ddr.line_buffer_write = ddr.line_buffer_read;