Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.224.54 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793124844; b=qibXZ8SEMEC4mr5dBrbhTL7zM/IuYA6xBM3uNNvO/wXqHyfLXMhQ0QrogKMYGHP86UOy ozKdFd0+9+QucrsWPYlxbr43zNkMe+lvpR5DEzjVzKjVnM28t5x66HInS7bwXqD8pJeWB i/gBC4lhcwDoSnu3D6J8YfutmAAgOoyVLAsukctmH2mj/sj38TY6ZuwJHiTFd3azw6BwS Fqm+/TCIqiIZ6fdvqi9I9h2md4LyqmXFn2rNIDiV3xUiNlKxr2f5ykGt2yIdr0/6ls4Vf f/AXrrQZ4tqAU8lpkXbWKNTLTn1WGN9GOaH5kUXGeaUbIxxSO5941lxc/nEI14n9HwQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793124844; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: Content-Type:MIME-Version:Content-Transfer-Encoding; bh=K4o0hsfCr8qItqNcAeYTl+Awx2cc8eddNn4H7ZE/4Hc=; b=WamuYKgPeDtPMMaGB4tkI+YMoUUBO0GwLEGraj6ymLfnER0SCvVK+NwpZiuT8FP8YQFY xL2Tl87lppbzgEfWQ+puACBLLHXFC7FXrLS+QVBCBwxTilv+SirsIekL/ZnaTR+aD8ZAh pfi0y5y/Mk44G0pj819G1tuMwrEQFQgGoWkpnlpd5H98o/t4cXvcp0FpE/vDgKl8ZANE6 XlEIhi9W6yIGqcRarBY4XKOWfgwgU9OUqVDUpYVL2rkKCZC7+jsJUH5uOEEl/TAq72yk9 QRbZc7bkA0zvHNcLHP+vCkS6UXOMDSbxZEAPupKV1YXaFbM8IXaqaUxjr+fSRybrLHA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=TptjDx4j; arc=none smtp.remote-ip=74.125.224.54 Received: from mail-yx1-f54.google.com (mail-yx1-f54.google.com [74.125.224.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B14B4606A31A for ; Tue, 27 Oct 2026 18:14:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B14B4606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=TptjDx4j Received: by mail-yx1-f54.google.com with SMTP id 956f58d0204a3-67a2efec15cso216247d50.0 for ; Tue, 27 Oct 2026 11:14:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1793124843; x=1793729643; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:content-type:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=K4o0hsfCr8qItqNcAeYTl+Awx2cc8eddNn4H7ZE/4Hc=; b=TptjDx4jMAwg2Qt8cQIV+w83R5Lt3MX0LsbgWQijLZHqjkjQQbvu7Z3XTrLZH4PdVf skRLuY++QPeeBvoH+DHJknO4wi0B9BRZHMkE9qZVwztQVdBVsfLz2Umn8p/PgbRbQwC2 x+7Pc0QObk7soUTHFSYWn00ibUkzPeuRYdfex0wvJBYz0xA7EUxeq839QhrlPa3ARG3L dXsCmsxSC/TgSz6iWKQacNWhFgXh4uQMDJZy7XvBp8sbslOWhGaQ936WHBKDjEVtPsX0 BOaXtNYwBCDJ1+EHE6bM0wEbyrGkZxDxk+fbBGu/mkSNljIQ8ttMMfsepGfWZ+jzTSlU y4fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793124843; x=1793729643; h=content-transfer-encoding:mime-version:content-type:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=K4o0hsfCr8qItqNcAeYTl+Awx2cc8eddNn4H7ZE/4Hc=; b=uOLfNZ3WuiEWhcp+rEqvovkdpDsjXX+0SCH5rSB2gO93xJenriJNwQXTttOGuwPfWi 8gmwre6dD/VjPEwvt5z7dxDVx6VQynaDMyrbLnPnbwsCoDVrEi6SHkLiq2fQz5SFyP2C HCDGzjvtMSbsvSLzriTDWk7wuRK4LfOLS/Wdx5+r5XbEezIsJyDVtXKSk0aOL1CsNqWH jIzVH5B5r+4tCWWH6DF4CY191X19Z0kW/1VcrJIvH3TBXAO0Z4jDbxBpgg1EAoKNDb36 Ly/XVrrebND2I80s3OmTEbaQRmEf/W1sVBBOHQ+0pduS3gbfGFWh6JpzRvgy9C7Ha6sV Gjww== X-Forwarded-Encrypted: i=1; AKwUvBxW96bd6YBglMaD/rqzIdwxOR/fNgv7y29oxW7px2rS2nG8LodbWwsCqnqtqU7YaSwfxxjyQwQcO1ynT/Yp@vger.kernel.org X-Gm-Message-State: AFq9FYJ27HJ1Hu85e5JjsDfM/UyIRGhJC2A3c/SO49jAU21rSiACgYrm LdkidYW4x7Bsog8aC74QMnARinEL3NSjcYGiTrEPxVPjRWjO3r24m1//Gjz8W7DhwrNixw== X-Gm-Gg: AYBFou2tO6os+WhysMFKY8SiFulvxhKeo/jK9xbXs+mjND6GEdsfWMTFGWvMo7WfQpY ADgjm2fP4/VGT0fSCJ3/bQcXyEG+rF/Y5VH1cmYWsnIfcapdXAzzniTY5U+MTIllHrVXIJaJgvV /5VdZhgI3E5RBF2BVp1ZIW7ras9mHyjBHx2cL2dMsztdPNRwtDSzLyx7WBmwQTg73LvApEs7SHn ehOy8+MOGgEq63q7MH36jUyIsKIWZEOdNZWt1PPKKhEarloYc+R9LNXk47WraTySOiJsxUMYY5t OOLpqTWHgUV9j0hErQeFN5dMal8SYH/GVYGe/AHrvnSf7oleb6o8WR64kP/uzCTZGA7inOGe8aY vTNToJnUbl8o8WbihrKci4c1nWuVSF/uCTBOjBLSqLqbrt2j4Bj0oHQaXvDrzic9keV/yopH8x8 2Za3YjKKut4+36DGRCw0sM4BpLTei4aJt4ryUieX0vAG8BskPGI2geNq/fEW3505ecidhnVP+Kk E7ssYo6qeaoTiG0Cq4zKDkXLjBGc2V+lrMczlF/sGIZXbnmV1Jvw333LEkr5CXaXaRKzp2YM+Jo DiVjgKdmE7qAgzxtqQoLPIzZIXj0kaI48l4TJ+9/5M1C8T9CKQJBXQ== X-Received: by 2002:a05:690e:414a:b0:677:cb43:4b10 with SMTP id 956f58d0204a3-67a6de9d295mr2246308d50.6.1793124842656; Tue, 27 Oct 2026 11:14:02 -0700 (PDT) Received: from localhost (h159-112-31-107.euclwi.broadband.dynamic.tds.net. [159.112.31.107]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-67a79f365b0sm543038d50.3.2026.10.27.11.14.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Oct 2026 11:14:02 -0700 (PDT) From: Christian Cortner To: Birk Skyum Cc: Bryan O'Donoghue , Vikash Garodia , Dikshita Agarwal , Abhinav Kumar , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [BUG] media: iris: resolution change handling stops ffmpeg's h264_v4l2m2m decoder on glymur Date: Tue, 27 Oct 2026 13:14:01 -0500 Message-ID: <179312417145.10007.14957642704462684875.iris-birk-reply@gmail.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <179310500796.73918.9946996824482992887@pm.me> References: <20261026160952.22082-1-ccortner@gmail.com> <36201ae2-1cee-4d8d-9381-dfc9013c522e@kernel.org> <179306719855.20070.15625203453374418392.iris-rfc-reply@gmail.com> <179310500796.73918.9946996824482992887@pm.me> Content-Type: text/plain; charset="us-ascii" X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Tue, 27 Oct 2026 12:43:32 +0000, Birk Skyum wrote: > On the unmodified driver ba stops as well, without the errors. After > START the client gets a second empty LAST buffer, START then returns > EBUSY, and every DQBUF gives EPIPE, which looks like the stopped mark > from your problem 3. The fatal errors come only when the count rises. Thanks for running it. I booted the qcom-iris.ko of my kernel package, which has none of the five changes, and got the same here: when the client resumed with V4L2_DEC_CMD_START, both streams stopped after 30 of 60 frames (2 of 2 runs each), ab with the five fatal errors. With -A both decoded bit-exact (one run each). With kprobes on vb2_buffer_done() (recording its caller), iris_vb2_buf_queue(), iris_dec_cmd() and iris_vdec_start_cmd(), the stop traces back to problem 2 rather than to the stopped mark. In all four START runs: 1. iris_vb2_buffer_done() completes the empty PSC_LAST buffer as VB2_BUF_STATE_ERROR (the client sees flags=ERROR|LAST). For an ERROR buffer it returns early, before it sets inst->last_buffer_dequeued. 2. Within 0.2 ms, before it has dequeued that buffer, the client requeues a frame buffer. DRC_LAST is set and inst->last_buffer_dequeued is false, so iris_vb2_buf_queue() completes it at once as a second empty LAST. That branch also queues the EOS event and sets the stopped mark. 3. The START for the first LAST returns 0. The one for the second returns -EBUSY without reaching iris_vdec_start_cmd(), since the first START already ended the resolution change. vb2 then returns EPIPE for every DQBUF: only a START that iris accepts or a CAPTURE STREAMOFF clears last_buffer_dequeued. The stopped mark doesn't halt decoding: in the ba runs the firmware completes all 16 CAPTURE buffers within 11 ms of the first START, and the client can't dequeue any of them. With -A the second LAST is made as well, but the client's CAPTURE STREAMOFF discards it. On my kernel with the five changes, where patch 1 stops flagging the PSC_LAST buffer, ba decodes all 60 frames bit-exact (2 of 2 runs). In today's run, with the same kprobes, the client got flags=LAST and iris_vb2_buf_queue() completed no buffer. I haven't tested patch 1 on its own. Christian