From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E5A922868B4 for ; Fri, 15 May 2026 05:25:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778822703; cv=none; b=JzJeO7NW6lDBHfMAE0Fj3tmincle2At9+CjUo9d5ITUAEUI85spTCEsE1T73RKtWzQx1yw6T69RszbcEim26FsEEMoKt87DWcIt52rH7z51EzrIEmCzsXfFUfBQbxuWPCoY5WEBMco71AZN9tXdncWmBzewqAGTdGCvhIHf7BZU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778822703; c=relaxed/simple; bh=WJ39qs9LciEuUQlxJNMn00PpKqMyYz2AKeuzeXRQeDY=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=nERSRdQYiXQCUTZHEe4ak4iAgX0/wh6AElQsXSCIZOypmets9vQDXvG0AV6IHIHGHWyfCWSj7SI+DxRQGCi5ZJeNsPuA0QolgezmW+Ik2bdikdbdmEUN5hmCzIR/9Q2pQ6Px6yinqptRCfaocamvleTe4bXu6lKdoVGg6o/U0uU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=k7PWWT5b; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="k7PWWT5b" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31A21C2BCB0; Fri, 15 May 2026 05:25:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778822702; bh=WJ39qs9LciEuUQlxJNMn00PpKqMyYz2AKeuzeXRQeDY=; h=Subject:To:Cc:From:Date:From; b=k7PWWT5byRbY80shlKT4DsYUBGBnin0X/WDYPE8GrhgGv1VJaCGr6r2bUYFwJlnQm PImR3TWCj5oeRXMrv5XnPS32rncE2/0QTPRHFxOekHCYsBiSWAC4I0bE8ViDKiqGtU oQs5JwoN/i6GwVxeLATi4eo/Zvze70DkTHBlJ0vs= Subject: FAILED: patch "[PATCH] media: nxp: imx8-isi: Reduce minimum queued buffers from 2 to" failed to apply to 6.6-stable tree To: guoniu.zhou@nxp.com,hverkuil+cisco@kernel.org,laurent.pinchart@ideasonboard.com Cc: From: Date: Fri, 15 May 2026 07:25:06 +0200 Message-ID: <2026051506-heave-police-4137@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.6-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y git checkout FETCH_HEAD git cherry-pick -x 2f38622d0f85f317be9e6b131da6cd511db94fd2 # git commit -s git send-email --to '' --in-reply-to '2026051506-heave-police-4137@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 2f38622d0f85f317be9e6b131da6cd511db94fd2 Mon Sep 17 00:00:00 2001 From: Guoniu Zhou Date: Thu, 12 Mar 2026 11:12:34 +0800 Subject: [PATCH] media: nxp: imx8-isi: Reduce minimum queued buffers from 2 to 0 Fix a hang issue when capturing a single frame with applications like cam in libcamera. It would hang waiting for the driver to complete the buffer, but streaming never starts because min_queued_buffers was set to 2. The ISI module uses a ping-pong buffer mechanism that requires two buffers to be programmed at all times. However, when fewer than 2 user buffers are available, the driver use internal discard buffers to fill the remaining slot(s). Reduce minimum queued buffers from 2 to 0 allows streaming to start without any queued buffers. Fixes: cf21f328fcaf ("media: nxp: Add i.MX8 ISI driver") Cc: stable@vger.kernel.org Signed-off-by: Guoniu Zhou Reviewed-by: Laurent Pinchart Link: https://patch.msgid.link/20260312-isi_min_buffers-v2-1-d5ea1c79ad81@nxp.com Signed-off-by: Laurent Pinchart Signed-off-by: Hans Verkuil diff --git a/drivers/media/platform/nxp/imx8-isi/imx8-isi-video.c b/drivers/media/platform/nxp/imx8-isi/imx8-isi-video.c index 13682bf6e9f8..1be3a728f32f 100644 --- a/drivers/media/platform/nxp/imx8-isi/imx8-isi-video.c +++ b/drivers/media/platform/nxp/imx8-isi/imx8-isi-video.c @@ -1410,7 +1410,7 @@ int mxc_isi_video_register(struct mxc_isi_pipe *pipe, q->mem_ops = &vb2_dma_contig_memops; q->buf_struct_size = sizeof(struct mxc_isi_buffer); q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; - q->min_queued_buffers = 2; + q->min_queued_buffers = 0; q->lock = &video->lock; q->dev = pipe->isi->dev;