Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp86901imu; Thu, 24 Jan 2019 21:47:57 -0800 (PST) X-Google-Smtp-Source: ALg8bN7g1d4KGD7rl/3zofyNxvIxIBMAHjSpHJgalXvEuARqa364c+NwCptkOei4Gl4AwOryoCPu X-Received: by 2002:a17:902:9a07:: with SMTP id v7mr4349031plp.247.1548395277931; Thu, 24 Jan 2019 21:47:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548395277; cv=none; d=google.com; s=arc-20160816; b=LdIH8YLSOMb4iNtgKqt4DTV8zN6EQq6k6hN5+h1Ckh4zegMySLEmX+6/zvrjA47iQe AfKva8Gn0PAKH76XSVx+rJZPb8Jsrr3P9w8EIMlgxtntsguwKXfJTtGIUH6dTCzkM4k9 SYPTHg8KoV5UaV7RiNJAl6H014+Ek906YqiLrHawCDQrr21n4nEBBAFzl2ozLlfO7LVG sVU7s9WrMBlmCXq045e+B0poSjSPoQPzVEXJbxN4/TTrvTCq2RIwEMzhfFrVTczvWxJK VB6n6KF1yAvh6pmAxul1dTSRGH1r9RP3lHnuHN7jrQQS3TLMe3YoC5ARmqCoK99qvHYC JBBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=r/ayRG9HGZ+VCVHSNU+R3SZYPNToHrif8kI5gbhyYmA=; b=yD4SMKD+PBJxBr6iCNBHK0bA3CtqhrqWdhIZQmctbvZy9h2GIlqf8yF4TDRNQ0XOyV b045FJXLhVupRkK3CA5IBifp+O88LkAfF13W29EZZbiFiIWRDegu2/o6dX8mY6tCpQH7 kO5gmpp8ikg9w494iU1C3b/UCsv+JhuUn1ookSUtoPTTiK5nCHaSYkPRFQ+1LbUm/W3D +49F/9sVcgyWpRoGdO0I9f0MGm/21s8lnYEfbnb6vQQ+qCSh6jQL0iUslF0t7Chs5JLg 0GWRn81/P8Jyd1Qfr4fkGmg6UqaJ0B5OrFpO8ZRZnDgpS7v+zIw/g5iH5nuxAeX+vZcE zjDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PeB9KQe5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s73si160890pfs.54.2019.01.24.21.47.42; Thu, 24 Jan 2019 21:47:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PeB9KQe5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726562AbfAYFrc (ORCPT + 99 others); Fri, 25 Jan 2019 00:47:32 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:37010 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726097AbfAYFrb (ORCPT ); Fri, 25 Jan 2019 00:47:31 -0500 Received: by mail-ot1-f65.google.com with SMTP id s13so7530233otq.4 for ; Thu, 24 Jan 2019 21:47:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=r/ayRG9HGZ+VCVHSNU+R3SZYPNToHrif8kI5gbhyYmA=; b=PeB9KQe5RwjogXmolZGzrOSdaUwuiIa9SPMZ7uZR+p33VADVt/hmBKe7Gvk83yL2ps 49mwfprMmrthLCKeOvKBpdrC9meRNiU+SMpabshT6Jk6QBShp7Qz4WCh3omz1umo/bOM UUw/EsYDPjvu71fArpbatP5mhqWQO8GH011SQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=r/ayRG9HGZ+VCVHSNU+R3SZYPNToHrif8kI5gbhyYmA=; b=NBfF3nujOxpiQrr3KzAi2wQohIMgD9s3vI6U/hfUvhvvFPh4bVaFlC8GFUwkBwAzGA PS7IUGfsGG/H4thmEDOjLaG1B7cxPCgIX4hWhRztnSSWZkv+AG5hx6fZGWyIkUQuqhg2 uru9ianL/cHZPsG0A4Zt+tvcpgDET4KdJbhm67BtM1/yAf3xnuJ3HdYP7g6JrxzbVZ/h xoJIhTpfi7Lgm7Dc4jGDt/xhX/Q+5azBGTNBA6aJxdbVTm58LOhTTcyXBaGIhn4O8auM Z0/e6XfzBPYVhNkL9ncelX24C1cP5e6lXkiAI78thv0GaCaGseut5nj67YRoXwo1CHlv +ZJw== X-Gm-Message-State: AJcUukcVtlICowhCYSeduKGJyC5JLrwaR8KlvoDGhsdkiTR6j6kUnRJH Fl/5oK0aWyk0jUZ5BswuXfTUScPcV0KMAA== X-Received: by 2002:a9d:6143:: with SMTP id c3mr6949656otk.227.1548395250496; Thu, 24 Jan 2019 21:47:30 -0800 (PST) Received: from mail-oi1-f170.google.com (mail-oi1-f170.google.com. [209.85.167.170]) by smtp.gmail.com with ESMTPSA id a1sm763787oto.71.2019.01.24.21.47.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Jan 2019 21:47:29 -0800 (PST) Received: by mail-oi1-f170.google.com with SMTP id x202so6847993oif.13 for ; Thu, 24 Jan 2019 21:47:29 -0800 (PST) X-Received: by 2002:aca:ad14:: with SMTP id w20mr441640oie.3.1548395249401; Thu, 24 Jan 2019 21:47:29 -0800 (PST) MIME-Version: 1.0 References: <20190117162008.25217-1-stanimir.varbanov@linaro.org> <20190117162008.25217-8-stanimir.varbanov@linaro.org> <47e2feac-3dbe-280d-0523-2226225a6733@linaro.org> In-Reply-To: <47e2feac-3dbe-280d-0523-2226225a6733@linaro.org> From: Alexandre Courbot Date: Fri, 25 Jan 2019 14:47:17 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 07/10] venus: helpers: add three more helper functions To: Stanimir Varbanov Cc: Linux Media Mailing List , Mauro Carvalho Chehab , Hans Verkuil , LKML , linux-arm-msm@vger.kernel.org, Vikash Garodia , Tomasz Figa , Malathi Gottam Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 24, 2019 at 5:54 PM Stanimir Varbanov wrote: > > Hi Alex, > > Thanks for the review! > > On 1/24/19 10:43 AM, Alexandre Courbot wrote: > > On Fri, Jan 18, 2019 at 1:21 AM Stanimir Varbanov > > wrote: > >> > >> This adds three more helper functions: > >> * for internal buffers reallocation, applicable when we are doing > >> dynamic resolution change > >> * for initial buffer processing of capture and output queue buffer > >> types > >> > >> All of them will be needed for stateful Codec API support. > >> > >> Signed-off-by: Stanimir Varbanov > >> --- > >> drivers/media/platform/qcom/venus/helpers.c | 82 +++++++++++++++++++++ > >> drivers/media/platform/qcom/venus/helpers.h | 2 + > >> 2 files changed, 84 insertions(+) > >> > >> diff --git a/drivers/media/platform/qcom/venus/helpers.c b/drivers/media/platform/qcom/venus/helpers.c > >> index f33bbfea3576..637ce7b82d94 100644 > >> --- a/drivers/media/platform/qcom/venus/helpers.c > >> +++ b/drivers/media/platform/qcom/venus/helpers.c > >> @@ -322,6 +322,52 @@ int venus_helper_intbufs_free(struct venus_inst *inst) > >> } > >> EXPORT_SYMBOL_GPL(venus_helper_intbufs_free); > >> > >> +int venus_helper_intbufs_realloc(struct venus_inst *inst) > > > > Does this function actually reallocate buffers? It seems to just free > > what we had previously. > > The function free all internal buffers except PERSIST. After that the > buffers are allocated in intbufs_set_buffer function (I know that the > function name is misleading). Yeah, that's what I felt - do you think you can fix this for clarity?