Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2241233pxy; Tue, 3 Aug 2021 01:01:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypJGpVkeLm6liETDZg+xy/VC1Uoh8knj5tCIdyMmT44dBS/M+YPk4Ub8L21ZlWEs+K8zCY X-Received: by 2002:a92:b748:: with SMTP id c8mr4562ilm.302.1627977693590; Tue, 03 Aug 2021 01:01:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627977693; cv=none; d=google.com; s=arc-20160816; b=N4XhxViGeeZTkuYtI58AUyl0NWTyFWTVlBuq0+MjSENaX13q222+GJ1hizs78q8169 Jib0EnWV5fqS0zHZNgMEZYzGSe+rkgRrmOo4F/3JDywDqdMqxnjJ1ITUDvNi/vQe+Q1K pDMTriXKjg2jjPCawhbob+h9ciU1DjWEvptEZkatcs+BymR6ScLpsnJh0qLoKoMAaAks eo44xItvdaxrlvr7HkPaoPJhTYTUcwelY8nv+95jl14jdPj5UdXkoAJuYtwwGe1xTjuQ kcYYyCbBqzoPT9XXPFKf9wOtU5vQq0a860uEC2lcWH6ye12KcSpMFLMPw7YDSzXAJcMP aO4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=xQ4m8nY0R0gdaQ2/t/epPl2Yst37jmddCHkepiSD0C4=; b=Fhj/u5SmNAzmfIKokuX4WJO9HaDV/IOsNBUNFKU+Pme8Fc92a8spY8gktPxYhzqRxv xQBQAZnn0Qaab6tbv+ebka0+7yYRKXZ7JHmGfTDjAYdwjBPxf1XVciAXuVfM7/cqtd8d +e+MZGkFTcZPXjyukVlylSOdz9XeJHw8nsfiQpofWX5nV3vk497wCbM6icOSYh8oLFMQ DLMhU/96HGdQzDBBZrZ5vGcEGKbR7cLYkzojZkj6+N4ktMMEaJ/fqLlSm92KWR8DTeRA FpIGmhKXSbPY/vcPA7EjmvV7RCeCfJsl3GpF9W+wvo5/Lr9Su5oOkUx20URVHrCIn4m4 PeZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Bw+xkG5s; 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 i12si2329532jal.113.2021.08.03.01.01.22; Tue, 03 Aug 2021 01:01:33 -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=Bw+xkG5s; 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 S234332AbhHCIAz (ORCPT + 99 others); Tue, 3 Aug 2021 04:00:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234331AbhHCIAy (ORCPT ); Tue, 3 Aug 2021 04:00:54 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CDDDC06175F for ; Tue, 3 Aug 2021 01:00:42 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id l11-20020a7bcf0b0000b0290253545c2997so1521064wmg.4 for ; Tue, 03 Aug 2021 01:00:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=xQ4m8nY0R0gdaQ2/t/epPl2Yst37jmddCHkepiSD0C4=; b=Bw+xkG5sbehOUYrGhW3vuHjC0TodTkMZrfcQqx90U7cza0bBBP+1vYns95ZaSdpsaW 0ZejcJ4Vl0vp8xDbgM1uk3tTQkuD460xHm+MTBNVbOZuHGVyBCs0HFLhFINqMWGLY9sZ SuEMjTiYAkai4RKewsDrHd/xSHe5J+lQ8yvBTh5H+nE7akdFJjAkbHi7B16zwMAeN7nP it2zDi+0Jk2xm2q0urRgOdPZvXffKHfpiR2EPrBLK4pGR0givWjer6Bn3dI4vIi/DPQy 4ZDz/FGRU0R2IAyPvMMKAPoruwFrejYoxePAxZzNVUQDAvVgohV1+P4U56gUqpqZV7me FB0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=xQ4m8nY0R0gdaQ2/t/epPl2Yst37jmddCHkepiSD0C4=; b=XYRKjtyyaN833xsMDV1sshTswy9pSSKUyssJk/dHYmALEr8WVgRQKGmHN5cs42ssKD PoBcmGcLUKqZu+KfCa6skIgDjs33fC05R1nimojiZEHnmIaIJad3ImWKTfJtvZH+hZ9T 8IMHNZ3O0MBd2d4v7H6IBl8CE9HRpKYJ5/YjlPQb0YmQ4vESnTq0NvaE6udnLK/LaHrt 7rr9SFU/jTEJPpsfSNqt+HL5t+NJHLLshRzXafqcn+yILegXQ7tT4cWUeJL3jYLuI/Sq +cZ6/22PMVz/rL9Q0TF9w8E8xeDsezp37sLJY87dggDHiz11AfDaNYb32xPrdsJJZBoH Ffbg== X-Gm-Message-State: AOAM531KpUSNrrB0jbldi7XnV0zkSJcmxIUACBmctd53sgCpSjExc72v 1HwOT3hyd4GxXMOMal4srPaVvg== X-Received: by 2002:a1c:2314:: with SMTP id j20mr2951400wmj.30.1627977636036; Tue, 03 Aug 2021 01:00:36 -0700 (PDT) Received: from [192.168.1.11] (hst-221-68.medicom.bg. [84.238.221.68]) by smtp.googlemail.com with ESMTPSA id m9sm13534055wrz.75.2021.08.03.01.00.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 Aug 2021 01:00:34 -0700 (PDT) Subject: Re: [PATCH v3 7/7] media: venus: Set buffer to FW based on FW min count requirement. To: dikshita@codeaurora.org Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, vgarodia@codeaurora.org References: <1626246068-21023-1-git-send-email-dikshita@codeaurora.org> <1626246068-21023-8-git-send-email-dikshita@codeaurora.org> <6c8f0d013be8ba6d276afe04d6e0c840@codeaurora.org> From: Stanimir Varbanov Message-ID: <253417f1-579a-0a57-388b-7fb07fd83d9c@linaro.org> Date: Tue, 3 Aug 2021 11:00:32 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <6c8f0d013be8ba6d276afe04d6e0c840@codeaurora.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/2/21 10:50 AM, dikshita@codeaurora.org wrote: >>> req->count_min = inst->fw_min_cnt; >>> + >>> +    ret = hfi_plat->bufreq(¶ms, inst->session_type, buftype, req); >>> +    if (buftype == HFI_BUFFER_OUTPUT || buftype == HFI_BUFFER_OUTPUT2) >> >> ^^^^ >> >>> +        if (inst->fw_min_cnt != req->count_min) >>> +            inst->fw_min_cnt = req->count_min; >>> +    return ret; >>>  } >> >> Also in regards to inst->fw_min_cnt, can we pass fw_min_cnt as input to >> get_bufreq via 'req' structure, i.e. >> >> req.count_min = inst->fw_min_cnt; >> >> ret = venus_helper_get_bufreq(inst, type, &req); >> >> inst->fw_min_cnt = req.count_min >> >> ? >> > Sorry, I didn't get it, How is this different from the current > implementation? The difference is that platform_get_bufreq() will not modify any of 'struct venus_inst' members, i.e. platform_get_bufreq() is not supposed to change anything from input 'inst' argument. -- regards, Stan