Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4364598pxb; Tue, 5 Oct 2021 01:14:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSQsToNtl8zSru14ppj+2hIivbuwXDGr1BOF0ERvDizLn6Xd0agSpygbSoy6dhI1/mzpq2 X-Received: by 2002:aa7:ca45:: with SMTP id j5mr25000197edt.6.1633421640589; Tue, 05 Oct 2021 01:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633421640; cv=none; d=google.com; s=arc-20160816; b=XCeIADw8bfHOErUtsxH0+cvWGbXk/vF0URK2dVc26wjgcSbZ4BmWycq41H9hdrfPjV Jn3Vw9MsAYdo+7cMyirGrz1PUYj8ucFYNSdX2FkfgsNIlFrBj8l3OtDYcAc1q0JjKydC 0prVtzRYbHNvnCT5m9hs8WLQNKgMrVNyi2dIzs1+hPuJxQejHcCVa5x58UKMSJVk6Niv d4r1tAbMjTKbycfrzgqlnTQlggQatwyFJi+E5jo8y54EvXS2saZI3VGc+424NMv4btg3 mOAvBYL5bI0m3quodSnMncH5p7Zb9c7KqMigPG2AOoJeEfwpZ+4RibNBjq/+57n3R3WC pthA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NmNy3i7s7hkAq0MWmGrwqRoyEBYaUhWJOlMgIBRIabE=; b=EW44phMm5rp5rMm+f9Rosbb8QFe2aXMC5CQG2b8SxBSV9sqI0p9qZ/oI0fiSs81GNf 76z3Y8yFJLG57KMFdjOO3uidwc4i0sbnz5/h7aRsNFtEaU2Nt2sjIH7bgkEU6H1c4kMB M/56j0aIJmciyGlEX0O0rQ0gABvXF+XHeapVKG3U1L/euiqTsKNWARBnJ6HRVz7gc4O6 Q82q3TfqIV2ru+Cf+grN1cGVpTL52LmQvdM8AK+rJ4xJAdqf8k3d2bQAjEJIZMViB0wK 3uTJ3GJpbB+w8k4tAhG8t4FGlG6Roq2k/GAJts0n73IfltVljMBco2Fr28uaI6pfobyF ADQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fRACUKHw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e20si19878221edy.408.2021.10.05.01.13.37; Tue, 05 Oct 2021 01:14:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fRACUKHw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233586AbhJEINP (ORCPT + 99 others); Tue, 5 Oct 2021 04:13:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233413AbhJEINE (ORCPT ); Tue, 5 Oct 2021 04:13:04 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0556DC061760 for ; Tue, 5 Oct 2021 01:11:14 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id x7so72933669edd.6 for ; Tue, 05 Oct 2021 01:11:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NmNy3i7s7hkAq0MWmGrwqRoyEBYaUhWJOlMgIBRIabE=; b=fRACUKHw5J6LBEjmv2sBLsFdyXBxC1V9ozedco1OMNDzAl2bKFx6eb3sF3bDF+dtZu nefergbhHmFMtaYDeK1LUm0ZOe1kISlmPKer5r1mhbds1hc6AnWhuM/296wWt0aK/zeS mQ0Y6owfsq534Ab2sc527Da0KqLgGKvY8tQTtxe5fAhtpkNuYr/YeTd0MtrOL1h7UZWb h8vNuf99nhynEXtUls0jIx3MADIdVXZ3R2AtGDuBAz26X+tYnT8RI9M0I9+keBJrQFju faPnfz9mW7zhXmyNeIt/l7V3jA7nc6m53qPaeXagQJKbkcKfTVlxWyhTtu2qSTkomP9B lZkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NmNy3i7s7hkAq0MWmGrwqRoyEBYaUhWJOlMgIBRIabE=; b=1wJhYA9PAR41DPRPz+BkwKAQB2luM3y+/GP5CCtOHJfcJLELD5jeir7r4Li1g6Cbm6 s5hClcBdrVsezb8k14dc5GJ+vl6MpY1dxQqk686qE3IRlbr2VYnmU2jyxLV+3FrUuWSg gX27nOdgx2Qbjd5QK56Ft64+QXs0vx9boGAghIN8z1x2lbTkcDqzGnOyCwF7N1JNWpq7 Hx6tz4N206wcuSnsw6gciyTNQG2w1sOfhAwMOHr1m9D6OkxObrjIdNE4wkaYA/qeRCVC OuAZfF3/cj3pngIZgoK1L7R1VokD6QQdrw9gatPTsQ7xQ8ucaIzlnWu/WgOCV3caZIbS fFew== X-Gm-Message-State: AOAM5303jTwF88OPQrpmc6/6JKEWzP5mEbjzKR5iCwGDoPzKtOjK99z4 2CNXB8W2RbqTeIXcXXryJTCD3A== X-Received: by 2002:a17:906:8e0c:: with SMTP id rx12mr23105415ejc.423.1633421471283; Tue, 05 Oct 2021 01:11:11 -0700 (PDT) Received: from localhost.localdomain ([84.238.208.199]) by smtp.gmail.com with ESMTPSA id f1sm3096258edz.47.2021.10.05.01.11.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Oct 2021 01:11:11 -0700 (PDT) From: Stanimir Varbanov To: linux-media@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, vgarodia@codeaurora.org, Dikshita Agarwal , Mansur Alisha Shaik , Stanimir Varbanov Subject: [PATCH v5 6/7] media: venus: helpers: update NUM_MBS macro calculation Date: Tue, 5 Oct 2021 11:10:47 +0300 Message-Id: <20211005081048.3095252-7-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211005081048.3095252-1-stanimir.varbanov@linaro.org> References: <20211005081048.3095252-1-stanimir.varbanov@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dikshita Agarwal Consider alignment while calculating NUM_MBS. Co-developed-by: Mansur Alisha Shaik Signed-off-by: Mansur Alisha Shaik Signed-off-by: Dikshita Agarwal Signed-off-by: Stanimir Varbanov --- Dropped changes in the patch which are not related to it drivers/media/platform/qcom/venus/helpers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/qcom/venus/helpers.c b/drivers/media/platform/qcom/venus/helpers.c index 1f46a6f4456a..196a24892176 100644 --- a/drivers/media/platform/qcom/venus/helpers.c +++ b/drivers/media/platform/qcom/venus/helpers.c @@ -18,8 +18,8 @@ #include "hfi_platform.h" #include "hfi_parser.h" -#define NUM_MBS_720P (((1280 + 15) >> 4) * ((720 + 15) >> 4)) -#define NUM_MBS_4K (((4096 + 15) >> 4) * ((2304 + 15) >> 4)) +#define NUM_MBS_720P (((ALIGN(1280, 16)) >> 4) * ((ALIGN(736, 16)) >> 4)) +#define NUM_MBS_4K (((ALIGN(4096, 16)) >> 4) * ((ALIGN(2304, 16)) >> 4)) struct intbuf { struct list_head list; -- 2.25.1