From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f175.google.com (mail-il1-f175.google.com [209.85.166.175]) (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 7529620307 for ; Mon, 27 Nov 2023 17:00:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="BrdRg3Rm" Received: by mail-il1-f175.google.com with SMTP id e9e14a558f8ab-35b0b36716fso3787995ab.0 for ; Mon, 27 Nov 2023 09:00:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1701104407; x=1701709207; darn=lists.linux.dev; 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=BrdRg3Rm0cdPy1SlxrRAYUVyCnyRxHmc+r8BK8Q2vWbnwVUPEDbtwGocL6UncEYMQv NWRUy6VdodCwg8yX+ZfjGm4U/wL+VEhCGlZyRed7y/uO0fACAVyQDjzIr0MHAJmRC7w1 EYLoqrzb7PvnIC/9TA8Zh2l501MxSRL2l32bk= 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=AYGt0bfRQUBbxhU88hc7nktSvzU6zhi4wCdhAwj4Fa0YGSPMng/R8kqE0GU5mmZbe1 2ZAa0f2EBiSn4OSSQUieRiHLb9JW+01ieT8ItPcVERMUCoJZNVKrmPoG79wbvKOSlq9R y2VMy2e3eM/ZVoQEk8bRyFlrgvpLfvz/hw7/TK7j+05W8QBFQHMelnUr8KxY+cyHASap TDw1hGf+8fIHlXzUAYFH7F/bqpfeRe4MfZBeUx8EatFd4RAwx1Gp27hof7JFpFZD/rQe lJBTuP+pyVzI2dmD2l62HZKKOPMPUsyK/98IQNEDoaD4jWp3+PAomraQmjppwxwHEJ7e 3s+w== X-Gm-Message-State: AOJu0Yzey13jSZXdnejs0VdVHjfJGRGzcJ86A5oulqCNNUslZR31evOS 1o6uEcdpspggDtKfnciF427n7Q== X-Google-Smtp-Source: AGHT+IEgVIvuW6fPNcvSD/7qD/x0se9Ajddb7fAiQdaYCd034lTW0DvylFz7ZRhdEG5jqFwqODpHsA== 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 Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: 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 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