From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 9FFF738238A for ; Fri, 8 May 2026 10:06:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778234765; cv=none; b=pLnjc2LAfRn6Z9cK/CM2YEb19PUfRHga7VsApG+AaePm9BXz9MM4bY/H2XWeHuxhLQl89c0bqbKPwxltLYCfmvP/YEara1SrfMikNL5bD34B3z/HOo4jgFx5tknFY1s89D3Te7CSyEryJUOB4ELhq1xiU8D0D3/JG2+fYu8rtCw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778234765; c=relaxed/simple; bh=7HtEkn1G6Gt+KqI9Inj3vguOrvstZekSSZzl3+vPWJY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=RIV/YTh7f/l/N9ym1FF3bP2PgLi137f+/Xqv7F/2CBkk3xGN/s0ztekSQf1+/oTJkfKgW7FUaXNsiLBl5Diz6Ue78Bxj2Kiy9dCUdI3pDPoEEr/cmu1jB4XOSW9kED3g34WRUYGsc3IMqY16UZFyw1Qe73RqVGcDrGYOOPy25+I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=mKX3v2cy; arc=none smtp.client-ip=209.85.208.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="mKX3v2cy" Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-65c4152313fso2580412a12.1 for ; Fri, 08 May 2026 03:06:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1778234760; x=1778839560; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=4hxarCXBu2q9FLo6gBfwZV7234oitg8nQDrnEw0Apq8=; b=mKX3v2cyUXfWRT5X5osfq2WBcZQATjRgkcPJfkaRqDd7Jxcxcvu1eCHXYuOtLrSzuP /uHIAOZEuZdDEsumX7xFK0exxOEh9BeBB/dz1iK3LI2xYClnX6PvHLyOsbZwX6SAgow6 zTUdzKHj/QI0eqswypAEnd5kEc+IwWBMVxj1E93c4VxjHCD0lvYxFjlXD2KxF21azkCJ /+iMtseDkn5OLBKA9kgLSnv1shtQ6u2ho0P179u0jFl21E14BOk6PqgHQKISKlO4whXF Z5irl0CBpfpwN7HLPZwUqYSNO4a1o4m58hrOQ4QMU5oo8EagJUoYQWzbAFNmtJICFqAv h3jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778234760; x=1778839560; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4hxarCXBu2q9FLo6gBfwZV7234oitg8nQDrnEw0Apq8=; b=FG0j/ubpB5ksWmM9t+5c82OoRykneQiZEKrha04VIPyiNdDn4CR/uwgo1ITSuvFS3b pO+7juwpzOwQ9iI58caqBKoSh/PbPJiCoqXHMI5isO5yi4U0KVyO+3av+qPenWxc/5TX Wj7CGBw1LmaFKVoRsTtCzS0Wju0GFFY/GNvq8l3SzoqTnD2UuXRf3Qi6ty65YX/zuVDB ECqOzsLgCMkCXeF2Ri0tw6/SerpLYZAae0Mbx9ZWWAHas4QGZeyPVW9rblShfgniBJ4I a/FJv8p2/SsCwVEtnQyHkQvP799NXY2LZfuVGOcJoPvLN8obi769LHx0xXi6IVZRoskl ZGlA== X-Forwarded-Encrypted: i=1; AFNElJ+zwZVc6H0r2NxSBQawukTgDOEwUfUO9dGKsfT5ZqTt24dzlaN9ER7HlMHzrXo4p/626VJCGk5dY6jGh1Y=@vger.kernel.org X-Gm-Message-State: AOJu0Ywfsx9VKBK7bKogXezfmr/7gKhYkF/W1AWI/8PR7MrQ2/xmKkLV dI5EGie6+9RK/YKlP6HA3Ihqj9lySCXptLlPWrPC71yPX3JfhB5F9R+iCnfNKvuWpVtS8Kvs9ry tRfmO X-Gm-Gg: Acq92OFIu3xxNeC5BGjkfDISH7h7BG7/RehAcG1/gTHhAlFd2N5g7k3GA/UB1lw3U6m 2B2g146jJU2SLy+M/99JrSdB/brMnAbd2ggO59e7vlmo8m4cKj+87pseDnsqkh8eR8dDj7E9/56 hS3560kooAn0z8Ju2/Pz20sEFMQ3Yfw6Rx/lH13aegPjdalBZoCwXfDZQoJwGgnwWvi9eHXpNvC TSiJdZ8H0/VomJU7wGhtgrdg7alhZ5RMne/WWnV+OOZS2qXF7dLqu9T3JFrLmti470RyTAb9MI9 Qz4TYzqapU+6gmslgLntwnb2DxE8b1j/oV/gaSfmyoN1NYLZBBJ4cmUSCEzbEGCJy1tlcVJYj33 iSrezrxQvuzqvIOisslLBr98EstBeH07MdJfoZ4BVlyeCYbt4MDKi4ziL1MdrUxsvz5tr58IOY1 kytROZWVylJp571M/P+AlwuQlWBiQMUHV+GN8= X-Received: by 2002:a05:6402:5287:b0:674:b1b1:d039 with SMTP id 4fb4d7f45d1cf-67ef0787b80mr978564a12.11.1778234760387; Fri, 08 May 2026 03:06:00 -0700 (PDT) Received: from [192.168.0.167] ([109.76.20.123]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-67ef0b3bb2asm477788a12.6.2026.05.08.03.05.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 May 2026 03:05:59 -0700 (PDT) Message-ID: Date: Fri, 8 May 2026 11:05:58 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 05/15] media: qcom: camss: Add camss-isp-sched helper To: Loic Poulain , Vladimir Zapolskiy , Mauro Carvalho Chehab , Kees Cook , "Gustavo A. R. Silva" , Bryan O'Donoghue , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, devicetree@vger.kernel.org, laurent.pinchart@ideasonboard.com, kieran.bingham@ideasonboard.com, johannes.goede@oss.qualcomm.com References: <20260508-camss-isp-ope-v3-0-bb1055274603@oss.qualcomm.com> <20260508-camss-isp-ope-v3-5-bb1055274603@oss.qualcomm.com> From: Bryan O'Donoghue Content-Language: en-US In-Reply-To: <20260508-camss-isp-ope-v3-5-bb1055274603@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 07/05/2026 23:49, Loic Poulain wrote: > +/** > + * struct camss_isp_job_ops - per-job operation callbacks > + * > + * @ready: Optional; return %true if the job can be submitted to hardware. > + * Called outside the scheduler spinlock. May be NULL (always ready). > + * @run: Start the hardware for this job. Called from workqueue context. > + * @ctx_changed is %true when this job differs from the previously > + * run job (i.e. first run ever, or a different context took over). > + * @abort: Optional; abort a running job (e.g. trigger a HW reset). > + * Called from process context during camss_isp_sched_cancel(). > + * May be NULL. > + */ > +struct camss_isp_job_ops { > + bool (*ready)(void *priv); > + void (*run)(void *priv, bool ctx_changed); > + void (*abort)(void *priv); > +}; I'll reiterate, I don't think this is needed and is overkill. v4l2_m2m_ops already has device_run(), job_abort() and job_ready(). :g/ISP_SCHED_PAUSED/s//v4l2_m2m->suspend()/resume()/g This seems like codebomb of a parallel implementation, which can be largely covered by existing v4l2 stuff and if not then should be justified in v4l2 as a new design paradigm. --- bod