Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp216109lqp; Thu, 4 Apr 2024 11:01:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWHg0QKsq/uOhh0nWFLFoWO+gcuiXRRpJ6HBROYxS7SM/dmLsL8xepzaBJ25FPf9+4N+axjsUQrhTMwbtUR+5r51JrC73ZC6+nc24oHCQ== X-Google-Smtp-Source: AGHT+IEQJCV+IXLwaQBaOCNcINehqp/t9CEhkcxhqIZytZvEyIZuLpOjmEOSh0z2r7dtuQ+dFU9N X-Received: by 2002:a17:906:e28e:b0:a51:9938:f77c with SMTP id gg14-20020a170906e28e00b00a519938f77cmr643264ejb.52.1712253686668; Thu, 04 Apr 2024 11:01:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712253686; cv=pass; d=google.com; s=arc-20160816; b=GEMyoRqPv4QZFx2Cv+G0Xzz1FWvfru2We0xgl5qLFENAz+76XxNoh64uKlvB6LQlRn 0ZoGwgolJn/F5RZ33AOt30RbZuYtLrt3btFYQ9kW4JqGXSPg0rXeQ1hEzajuh49AGAD4 1qJbCdwqeJZ8Dtxur+TPLvlnaAYxvWyUcysYC5E0Q8Xe3rAV8TEd4y9OgwEPdgqCscs0 zc2Zaj3eyqU0FfuUI+gYkqGk7WeZnXMjyZW0rXotioZkgDvpsoseI/rhj/8IANXZST7b nRWPh9GRB5dAW8orxqpURKA5/kDgwX7Qwk5VEzID/+vMh7HkoHKMgJajZA/WBnKSc7b9 Ih9Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:cc:to:from:subject:message-id:dkim-signature; bh=vkxFEmPPLSP0VfvXbMRLD3bWGs6AEqwLVGDVK0uQkn0=; fh=Bvz34RIo+tX3Infwp/ficp56KQA/4iEWVB8avG9dDIQ=; b=s8pYExsnLUdlxfRj9Q62rqnuK4aQhOeA8KK+TY0KLupXRjw/SjWGIZaPU7UhhmmGRf HNd7j8m3ySrzLtJz38t33N2kcXJ6ZNDLXeCMk8g4qhccj6Re0sKaWM3N6A98v9PNrbcw MXoM9OAWPlVcWRX6M+zFEY1RKaOucrhJd1G2eKFW5FgAuvRgRu3NnAnqWc/A0OWdKCeU FYNmWLiB7XfJO9d517+ePyuNyMyaO6dpEn/zdXc792poNXYqX5CN8VaAiirqvTSV/ZnF dK1F8vIjP0x+q6TerX7l8TNukSHGXCFR8ddkYnm0ghxYX+I0f0lPsWCbQBV2PxXp+xUE 7P0w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ndufresne-ca.20230601.gappssmtp.com header.s=20230601 header.b=0akluLFR; arc=pass (i=1 dkim=pass dkdomain=ndufresne-ca.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-131931-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131931-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ko10-20020a170906aa0a00b00a4e05accf57si7715495ejb.789.2024.04.04.11.01.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 11:01:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131931-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ndufresne-ca.20230601.gappssmtp.com header.s=20230601 header.b=0akluLFR; arc=pass (i=1 dkim=pass dkdomain=ndufresne-ca.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-131931-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131931-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 67A7F1F23D65 for ; Thu, 4 Apr 2024 18:01:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 83DB912FB06; Thu, 4 Apr 2024 18:01:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ndufresne-ca.20230601.gappssmtp.com header.i=@ndufresne-ca.20230601.gappssmtp.com header.b="0akluLFR" Received: from mail-qv1-f42.google.com (mail-qv1-f42.google.com [209.85.219.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2DAE412EBD0 for ; Thu, 4 Apr 2024 18:00:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712253659; cv=none; b=IQpJXew+3xvDI7OXYZd/RLorhnbIemBu7ZvHpxxyJDL6IKZtZWJS2NUKvuQeCyeAxnhSc/t4jrWRTMKXJTyVXPRIt3zj5CY3irTfKp89TwgXGhJyhCdrZBE2i2rhKJPthIsiOp2zt80lj4+rocn47S0x9PpOGXfTwF3Vrph7Tfw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712253659; c=relaxed/simple; bh=DvqrM66m1fpor+G8I8exyC7QkvyQw53E6bWYdgNkJlk=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=SqWDh+cYvR3arUcVCEIYlsiImqRuiLOIfo3QMueGYfnJClcmXH3+ctSD4eaMc0FQ1Qnt3bBimpWzToCEKN356nFTnb8pmBsWOdT/k9uQ1ZviubVrsinMgIGfW+LUZ9uBv5/u5n6SHk5sAviI1wdT3NzO1+gGXeK11vZ1gefptww= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ndufresne.ca; spf=none smtp.mailfrom=ndufresne.ca; dkim=pass (2048-bit key) header.d=ndufresne-ca.20230601.gappssmtp.com header.i=@ndufresne-ca.20230601.gappssmtp.com header.b=0akluLFR; arc=none smtp.client-ip=209.85.219.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ndufresne.ca Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=ndufresne.ca Received: by mail-qv1-f42.google.com with SMTP id 6a1803df08f44-690caa6438aso5985096d6.0 for ; Thu, 04 Apr 2024 11:00:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ndufresne-ca.20230601.gappssmtp.com; s=20230601; t=1712253657; x=1712858457; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:cc:to:from:subject:message-id:from:to :cc:subject:date:message-id:reply-to; bh=vkxFEmPPLSP0VfvXbMRLD3bWGs6AEqwLVGDVK0uQkn0=; b=0akluLFRVvk8wLWVyjAFMbDCNXq0LwSFvYsN15PcwZfpkvJeM4cv7ij0aodzqVyksc acoWM0d4MVdNLDVU+21AGqkxbxp9FC9BSXlOo/BDwIBZdkBdMAQMTQTdwDTOv35oTn3d +LKUIwECN2EdVe3aX0S+wweYAZAeR5qUYMjgr1AWvFnECSq1O6yBK4PxprvId0wO91ZB jDfJAP9BKL5FcOWZSAZh78fT8uiLG1Yhaisua9UsJQJa04rAROEwVBRgNHg+I/qf8hB2 wPpJi8iXOBJCFQnPw7D0xYnOyfzoFmiDIWZ1J+F4MMp5GkMQUawnGstHJ3+8GS4yCK8D zO7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712253657; x=1712858457; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:cc:to:from:subject:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vkxFEmPPLSP0VfvXbMRLD3bWGs6AEqwLVGDVK0uQkn0=; b=ISSfEk810Z26A5yncpF8gQ68Lrdcms91QGs9gnWl6s+ZlgJ1QO9dOvtz6qitMu5TgA fe+ERjFqrMal/R4E9gEdW2Uif5Nd+VXReq6EDRBaFZaB6wYjw9JG2wTkaQUMGAQr64jo tVnSuFdFLJeVR5UN1De+qufU+nKnFK/sP+0FCVal9GV8tOamIxhQdXdwJivC/E3x5DFO /jLFNyNBwQBJpxIU/DMSacIwxX8HnvaqE2PHehX2ww3flnOvvwrwYt62ZwNTt+wuLE6Q +8h+j4zl4DaaSzDAPe5kMDhltDmTcXXz1l2RSbiuPXhLz1YuMlg1pbxb8FfgVSpJGNXD gEtA== X-Forwarded-Encrypted: i=1; AJvYcCXERCT29gC1A3cs29Se0wN6nZAYBsTadPI4689nsjqfgnbT71ipWy7nkAAuxlZIe4znbNbSIrELyENeNI1mqSsjNpe/eAgLzuYgGFy8 X-Gm-Message-State: AOJu0Yxa6adJzOgLgFkB6lXsqYIIBqjM5NP3owLLJQEaWlnplcTBz1Er IFn0sI35Bh5eA4XqA34IBauCSHApQln8HeN3M1CLBjfMotw5OglCn56RnYJ3kvg= X-Received: by 2002:a05:6214:1c87:b0:699:2c7d:407b with SMTP id ib7-20020a0562141c8700b006992c7d407bmr3325785qvb.23.1712253656947; Thu, 04 Apr 2024 11:00:56 -0700 (PDT) Received: from nicolas-tpx395.localdomain ([2606:6d00:17:6448:fa75:a4ff:fe45:b56]) by smtp.gmail.com with ESMTPSA id gw4-20020a0562140f0400b00698fd28cad3sm5421334qvb.80.2024.04.04.11.00.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 11:00:56 -0700 (PDT) Message-ID: Subject: Re: [PATCH] media: verisilicon: Fix auxiliary buffers allocation size From: Nicolas Dufresne To: Benjamin Gaignard , ezequiel@vanguardiasur.com.ar, p.zabel@pengutronix.de, mchehab@kernel.org, heiko@sntech.de Cc: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com Date: Thu, 04 Apr 2024 14:00:55 -0400 In-Reply-To: <20240328093439.18712-2-benjamin.gaignard@collabora.com> References: <20240328093439.18712-1-benjamin.gaignard@collabora.com> <20240328093439.18712-2-benjamin.gaignard@collabora.com> Autocrypt: addr=nicolas@ndufresne.ca; prefer-encrypt=mutual; keydata=mQGiBEUQN0MRBACQYceNSezSdMjx7sx6gwKkMghrrODgl3B0eXBTgNp6c431IfOOEsdvkoOh1kwoYcQgbg4MXw6beOltysX4e8fFWsiRkc2nvvRW9ir9kHDm49MkBLqaDjTqOkYKNMiurFW+gozpr/lUW15QqT6v68RYe0zRdtwGZqeLzX2LVuukGwCg4AISzswrrYHNV7vQLcbaUhPgIl0D+gILYT9TJgAEK4YHW+bFRcY+cgUFoLQqQayECMlctKoLOE69nIYOc/hDr9uih1wxrQ/yL0NJvQCohSPyoyLF9b2EuIGhQVp05XP7FzlTxhYvGO/DtO08ec85+bTfVBMV6eeY4MS3ZU+1z7ObD7Pf29YjyTehN2Dan6w1g2rBk5MoA/9nDocSlk4pbFpsYSFmVHsDiAOFje3+iY4ftVDKunKYWMhwRVBjAREOByBagmRau0cLEcElpf4hX5f978GoxSGIsiKoDAlXX+ICDOWC1/EXhEEmBR1gL0QJgiVviNyLfGJlZWnPjw6xhhmtHYWTDxBOP5peztyc2PqeKsLsLWzAr7RDTmljb2xhcyBEdWZyZXNuZSAoQi4gU2MuIEluZm9ybWF0aXF1ZSkgPG5pY29sYXMuZHVmcmVzbmVAZ21haWwuY29tPohgBBMRAgAgBQJFlCyOAhsDBgsJCAcDAgQVAggDBB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gIDAQIeAQIXgAAKCRBxUwItrAaoHPTnAJ0WGgJJVspoctAvEcI00mtp5WAFGgCgr+E7ItOqZEHAs+xabBgknYZIFPW5Ag0ERRA3UhAIAJ0rxl2HsVg/nSOAUt7U/T/W+RKzVAlD9orCB0pRVvyWNxSr8MHcH mWCxykLuB34ouM4GuDVRKfGnqLzJRBfjs7Ax9K2FI3Odund9xpviLCt1jFC0K XL04RebrFT7xjDfocDaSLFvgxMVs/Jr2/ckKPId1oKvgYgt/o+MzUabKyFB8wIvq4GMtj3LoBKLCie2nCaSt7uVUt6q2t5bNWrd3lO6/mWn7YMc5Hsn33H9pS0+9szw6m3dG08eMKNueDlt72QxiYl2rhjzkT4ltKEkFgYBdyrtIj1UO6eX+YXb4E1rCMJrdjBSgqDPK1sWHC7gliy+izr+XTHuFwlfy8gBpsAAwUIAJJNus64gri4HAL632eqVpza83EphX1IuHzLi1LlMnQ9Tm7XKag46NhmJbOByMG33LwBsBdLjjHQSVkYZFWUifq+NWSFC/kqlb72vW8rBAv64+i3QdfxK9FWbweiRsPpvuHjJQuecbPDJpubLaxKbu2aqLCN5LuHXvdQr6KiXwabT+OJ9AJAqHG7q4IEzg4RNUVn9AS6L8bxqMSocjqpWNBCY2efCVd/c6k4Acv6jXu+wDAZEbWXK+71uaUHExhigBYBpiHGrobe32YlTVE/XEIzKKywhm/Hkn5YKWzumLte6xiD9JhKabmD7uqIvLt2twUpz4BdPzj0dvGlSmvFcaaISQQYEQIACQUCRRA3UgIbDAAKCRBxUwItrAaoHJLyAKDeS3AFowM3f1Y3OFU6XRCTKK2ZhwCfT/7P9WDjkkmiq5AfeOiwVlpuHtM= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-1.fc39) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Hi, Le jeudi 28 mars 2024 =C3=A0 10:34 +0100, Benjamin Gaignard a =C3=A9crit=C2= =A0: > Use v4l2_av1_tile_info->tile_cols to know the number of colons > in the frame. This made auxiliary buffers meory size computation > more accurate. Seems like this is potentially going to impact some conformance tests. Anyt= hing to report from fluster results ? Nicolas >=20 > Signed-off-by: Benjamin Gaignard > Fixes: 727a400686a2 ("media: verisilicon: Add Rockchip AV1 decoder") > --- > .../media/platform/verisilicon/rockchip_vpu981_hw_av1_dec.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/media/platform/verisilicon/rockchip_vpu981_hw_av1_de= c.c b/drivers/media/platform/verisilicon/rockchip_vpu981_hw_av1_dec.c > index cc4483857489..65e8f2d07400 100644 > --- a/drivers/media/platform/verisilicon/rockchip_vpu981_hw_av1_dec.c > +++ b/drivers/media/platform/verisilicon/rockchip_vpu981_hw_av1_dec.c > @@ -257,7 +257,8 @@ static int rockchip_vpu981_av1_dec_tiles_reallocate(s= truct hantro_ctx *ctx) > struct hantro_dev *vpu =3D ctx->dev; > struct hantro_av1_dec_hw_ctx *av1_dec =3D &ctx->av1_dec; > struct hantro_av1_dec_ctrls *ctrls =3D &av1_dec->ctrls; > - unsigned int num_tile_cols =3D 1 << ctrls->tile_group_entry->tile_col; > + const struct v4l2_av1_tile_info *tile_info =3D &ctrls->frame->tile_info= ; > + unsigned int num_tile_cols =3D tile_info->tile_cols; > unsigned int height =3D ALIGN(ctrls->frame->frame_height_minus_1 + 1, 6= 4); > unsigned int height_in_sb =3D height / 64; > unsigned int stripe_num =3D ((height + 8) + 63) / 64;