Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3230812rdh; Mon, 27 Nov 2023 09:05:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IFOPcgDxqx14E798/uEt1qJ1bFlRndJma+bAiiJRi+IOUYFohGS0MnScjgS+SJtRctL18ea X-Received: by 2002:a05:6870:f815:b0:1f9:5c71:a691 with SMTP id fr21-20020a056870f81500b001f95c71a691mr16450298oab.9.1701104739928; Mon, 27 Nov 2023 09:05:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701104739; cv=none; d=google.com; s=arc-20160816; b=AiIE2Ov86dFcchgtzkEyRDcBXAkPPy2tim41k0m3Vyk3pbahEf74erUYsQ50JWYodR iVxU0Bogb3G2N2p4xpphOrfg8/I5Vx0fbPo06yk2ObQZiSllY848m7GH7Z/Ap6g/2aEm II+g9gxDiDn8hkt0/L+U0kOVL1V7EVuvxxSoswfNoQGuxCRG+gzwAGRl0vwqaThLck+c sJtemP093WELV3Ar8Ut2DAWGFFbWOHdHNXln6N9RoXSD9lGGBMP6KvpeTS048Z54QT57 c//DXdrlwdvEMx8pGNKwjiMhKv3+bIRjM7DHY95rtiESM/znG1rKYWlpUtJBCnInr/EP Y7cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=tKCN+Wf00+ELxyn14a5AA+VFdBSorCTvXlpC+FYzc7E=; fh=7hT2u5UTWIXM+boWZDP7wQknNn6W8PSdNeOf/r+Wrrc=; b=mCCWnOpfMwsuTPh1mGUMgXCVd+W0qEQR8wOkN6u+lFYW/uMFUDAGDMXw8cjgIXbIFl p9ErNPBY1MiCzOiahLJ3t/aOcUPa+Z0tXEykL37ZNNYJHlN5KVNlFMsxhw5DKd+s55VF ijv6U/d3H1kOOOCPI85/D+TbH7Q2orf6r7bpAupvXhWulXDiNVq7CZrdUJbZe7a5ukH3 IMhwSQqMT5HVVMIca3LN3EcPCrmoy3U7thTbHUCpEe1h44RvlOg4dbKrXu+uaTfMio1n P7gBuMMnczxy09iP8ICD1/AfyR29e2ZiXWBiISjNRNh/afb8V5dncK5EQKAsnp7U9IZE 3oaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=YKgN8udR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id ec22-20020a0568306e1600b006d8017dcdaasi4088823otb.140.2023.11.27.09.05.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 09:05:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=YKgN8udR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 7F70D806921B; Mon, 27 Nov 2023 09:05:37 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234693AbjK0RFU (ORCPT + 99 others); Mon, 27 Nov 2023 12:05:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234689AbjK0RFC (ORCPT ); Mon, 27 Nov 2023 12:05:02 -0500 Received: from mail-il1-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E4799038 for ; Mon, 27 Nov 2023 09:00:08 -0800 (PST) Received: by mail-il1-x129.google.com with SMTP id e9e14a558f8ab-35b0b36716fso3788005ab.0 for ; Mon, 27 Nov 2023 09:00:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1701104407; x=1701709207; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=tKCN+Wf00+ELxyn14a5AA+VFdBSorCTvXlpC+FYzc7E=; b=YKgN8udRyuEbVyB7dPh6j4lJQzWBo/LQn2fSk5KVtr1nDP0LoGNjlcRnTicOUqUFBB tmN+Iw6WzeUSfBVANjjIv6eX+C6xIdEAoFIH1QUR2Sqqn+vdObpuA9lhfzkMNSHwkzr9 l9BBLvr+K+z3iz/FdOwiZeoWvPj+YuP2yLM6g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701104407; x=1701709207; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tKCN+Wf00+ELxyn14a5AA+VFdBSorCTvXlpC+FYzc7E=; b=G/+6KFB7+ZtVPZMKbjY+9aY2Lqzk4KYln8UykF3JnMgczYBp/4Gayhtb0oEnmjn4w/ vLlPPGRYvelgPTb5PWmMRs1inqcgBOdGu5PEXOPqBr8lyzpD3BCvvlDB3JQ1yjyzPjik 2beT16d1Li9YIAhqWMUHXH2ew9+UIhn2ZO6Ls1j3eX+3EKp1qENs4jWdAzNWjg09/7CX K0l9fhOOi4a/YeLP+/hgjqfsyZF6DlVLzxKmPu6/zUHLxru385HMkI4ptWkc63tIRouf oqaxaGPA15Yfh07xrEkNm7oS8xiMZ1jE5Zf9gbuebOSHclsQpBaJ5jRGOrtAuRUxIMnT ZenQ== X-Gm-Message-State: AOJu0YwzflVLNPS1+T6Nms/q6p/5jEmeup8TA00SU/j7I/0Mmhez0Jjy CdgjliO+682032+lErnGQuLiBbLH6PlC48tdRIo= X-Received: by 2002:a5e:9512:0:b0:7b0:75a7:6606 with SMTP id r18-20020a5e9512000000b007b075a76606mr11826362ioj.0.1701104407163; Mon, 27 Nov 2023 09:00:07 -0800 (PST) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id h2-20020a056602130200b007a67dd75d32sm2516233iov.4.2023.11.27.09.00.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Nov 2023 09:00:06 -0800 (PST) Message-ID: Date: Mon, 27 Nov 2023 10:00:05 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 02/55] media: test-drivers: Stop abusing of min_buffers_needed field Content-Language: en-US To: Benjamin Gaignard , hverkuil@xs4all.nl, mchehab@kernel.org, tfiga@chromium.org, m.szyprowski@samsung.com, matt.ranostay@konsulko.com Cc: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, kernel@collabora.com, Kieran Bingham , Shuah Khan References: <20231127165454.166373-1-benjamin.gaignard@collabora.com> <20231127165454.166373-3-benjamin.gaignard@collabora.com> From: Shuah Khan In-Reply-To: <20231127165454.166373-3-benjamin.gaignard@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 27 Nov 2023 09:05:37 -0800 (PST) On 11/27/23 09:54, Benjamin Gaignard wrote: > 'min_buffers_needed' is suppose to be used to indicate the number > of buffers needed by DMA engine to start streaming. > Obvious test-drivers don't use DMA engine and just want to specify > the minimum number of buffers to allocate when calling VIDIOC_REQBUFS. > That 'min_reqbufs_allocation' field purpose so use it. > While at it rename function parameter. > So how ate the test-drivers currently abusing this field and how does this change benefit? I don't have objections to this change, I want to understand it a bit more. I would like to see more details on why this change is needed. thanks, -- Shuah