From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796464028; b=VeC344JKmmEOiWDd33CBuQiuro/I85qS0J0vfmFDC7nkLzQNQ7OLqZq53IXRyzpzJSrc UmMCCAr/iU+2F8AbTD30CEU2jHzFk7jGaYJOXPU1GO2J52eeIXjYn8AInTsNnimQ1aEyZ ZVDw7hR4oNNVy8fp7I47wenrpD6FPjtEyl3U2D6a2iHwMuvbUCWfoTTtFqd61f7CFaRFq B1r3v+YqC7z5LfifrdgtzkF8djc2CFiuWfrTkExZI8JaOglIFIADbm78GJbmhFB4T6uFy TpjNxTuR1NTtuaGVuD4OeUvm8hSbTlruPYfUj7AIL2PTw6WHyBQZwhnS6SY81xCf6HA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796464028; h=Received:DKIM-Signature:Received:From:Subject:Date:Message-Id: MIME-Version:Content-Type:Content-Transfer-Encoding:X-B4-Tracking: X-Change-ID:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: X-Endpoint-Received:X-Original-From:Reply-To; bh=c2aAMoksjoxcgo5DrcxIkmkfbteAp+DdXXcShx9ZuqE=; b=YDUcKbubjAc4XH43nOm+DCSU1TXziq0h4sxPp0njj9oVV5qmpdw1YueC6KH+5pvcOCdi IwZaOPCR7o9BiL9hSlI/qelZZXGN6z7OpdtBHIfnT/cLzAGzHY0f2pFbp8PxRRHhG6UgL UzG+LuiA/s6FmV+W55wxIVkMxwgqxDxDPajJhsUFb0vOSJR+BJCAyfPaWWMy3Ws0Mw1zI wyxiv1Et6yfzvCXOyIuTvgPnLSVpkMxgG7yPP7JJdmXqE5SM1DErvPwVZC8fbZVmDsItV r9Z3ChKRQw/PfcMrv+h9Ok1wfeAW1ieX8EYLhJe9zTqbLx4FBvXFiM+Wgrh+mw1Mirg== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bdx+AtLx; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 892EE606A322; Sat, 5 Dec 2026 09:47:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bdx+AtLx Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1796464028; b=HIxvf3xOh0LoIWCDLY/lZZA99hvz3BemU07FNTttmdZpZla4dd289DnpYQt8z5rVT2ox IeD60TKLOPPWHOPCQOGdtEHm0b6J8XmNVv4ggUdV8pVkxBF9mFJ9/rnEBwiRDY/SF9Nix YR/HYQ0s2cw6Rg/mPxOXWXpcyHrLSw2tDFZgROcWMDnIcPL4bHHRR5YZx4yBKC1pTVlaP KvUTbX/WhNuiBGXYWrYqqJPr1mi/Y4uul/aYgXIt503qZuMQAwsCe0sVQekS6a5gsJwIq pXiYoEx4ow63k3in9FdKlhO5P/jebMWPZmaYZWBl1tdzgKg0PoqtWWAMCyDUBXuKJVA== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1796464028; h=DKIM-Signature:Received:From:Subject:Date:Message-Id:MIME-Version: Content-Type:Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To: Cc:X-Mailer:X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To; bh=c2aAMoksjoxcgo5DrcxIkmkfbteAp+DdXXcShx9ZuqE=; b=SUdwXeWWyCrJtXW2w3yLjNih6C95Bv/EUgK8OK0a9OPLjisJFpBjJqEGuo4CP+gtrD3X yCN6KPbQ4AgbgJ95NqHqqdNqBtPaDnJScn76+5QxJcGcM6h2WGiAaplS/LtlEmVR04Dy4 70kU+zjgZ9aPmUTTm0QS2iCAGIMEiXF11mS3BwcG5f/EB5wXDSzAN8/IVtZXKMQ/w0MBw A7iR10Zd7K9laqGrUqp6gw6kjOcFGphAn2jALWPTEkHD56fSWUsSeM5szFqzw44icFThe oSvTTiaLq7+BiHbPr8uMcKgfKamLeuuIIt8Gi3G5tkj0+3NyEVuxH+qqI1ekMPfl3tw== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id CC4141F0092B; Sat, 5 Dec 2026 09:47:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796464028; bh=c2aAMoksjoxcgo5DrcxIkmkfbteAp+DdXXcShx9ZuqE=; h=From:Subject:Date:To:Cc:Reply-To; b=bdx+AtLxjIbvL/uTEhP2Qo+9+geaSmyYuuoIirMnR012lLtkIoYJQBKKgzbJ140dp nGfbqYPphdevRjmJxQ00kprghlig5YURgb724l27rikpCyXP5GirX2vtFlkeWS+Avt NWFPYJDHSxl86ksJn8RVGc8cBpWTCSb3LlN4q3JmVlhnT1Ky+BApG5+ElvbCeMGLtx AzBvrHERQU00MIvt/xomdXSZQDTO4UYcB9Wx9j6bXb9Jhx526pho5T9P5q1veAjMzq I+soP11oFGUTJawSaV0rgw6+aUqeMTDwJUN+ps2+J3ucAyZbxExj4/VnfrhZtd4doC /v35Zmk+gFrKQ== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 5AE0C50280; Sat, 5 Dec 2026 09:47:07 +0000 (UTC) From: Arun Iyengar via B4 Relay Subject: [PATCH v2 0/2] media: verisilicon: Fix the VPU981 line stride and minimum size Date: Sat, 05 Dec 2026 09:47:05 +0000 Message-Id: <20261205-av1-ref-stride-v2-0-e8bd05192673@gmail.com> X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/12NQQ6CMBREr0L+2pq22IquvIdhUegHvhFq2ko0p He3wM7ly8y8WSCgJwxwLRbwOFMgN2WQhwLawUw9MrKZQXKphSg5M7NgHjsWoieL7KJLZbg8K20 V5NErZ/TZhPd65/BuHtjG1bI2BgrR+e/2OIu1t8slP/3LM3GmbKW7RltdqerWj4aex9aNUKeUf nGVt/6+AAAA X-Change-ID: 20261130-av1-ref-stride-9635a02756d5 To: Nicolas Dufresne , Benjamin Gaignard , Philipp Zabel , Mauro Carvalho Chehab , Heiko Stuebner , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, stable@vger.kernel.org, Arun Iyengar X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796464026; l=1537; i=aiyengar1990@gmail.com; s=20261110; h=from:subject:message-id; bh=oghl50SpBHXI9efgYfgkz6cZSCEEHfVd4ZmIO8CydRs=; b=yxzMi+112YXFSi+1YDyHNrdsCEc1+RILhLZ2irgb+LJD/s0rRCYaBpyAvzEr62S+2GSDAIXo8 HUAwsme/DsRDW+xdcLHmcY6qi3Xld/hHXJgqNKdtXAA9shV2D0FJziX X-Developer-Key: i=aiyengar1990@gmail.com; a=ed25519; pk=zXpRgUTrhaFe6jLyPqbBy3ccfkj04w0g2690Wv3mg+0= X-Endpoint-Received: by B4 Relay for aiyengar1990@gmail.com/20261110 with auth_id=1480 X-Original-From: Arun Iyengar Reply-To: aiyengar1990@gmail.com Two cases where the format did not describe what the RK3588 AV1 decoder writes: the 10-bit line stride, and frames narrower than 49 pixels. Tested on an Orange Pi 5 (RK3588S), 7.3-based tree, under KASAN, against libdav1d: 10-bit NV15_4L4 CAPTURE is bit-exact at widths 18, 36, 100, 200 and 328, with buffers of the reported sizeimage, and so is 10-bit P010 through the post-processor at widths 200 and 328. No AV1-TEST-VECTORS regression, av1-1-b10-23-film_grain-50 included. Developed with Claude (Anthropic), which wrote the code and the commit messages. I reviewed every change. --- Changes in v2: - 1/2: stable note: before 7d5e38c070e2, change the size check in rockchip_vpu981_av1_dec_prepare_run() to ref_fmt instead of dropping the hunk. Reported by Sashiko. - Link to v1: https://patch.msgid.link/20261204-av1-ref-stride-v1-0-5d86fb6d6858@gmail.com --- Arun Iyengar (2): media: verisilicon: Match the VPU981 line stride media: verisilicon: av1: Lower the VPU981 minimum size to 16x16 drivers/media/platform/verisilicon/hantro.h | 2 ++ drivers/media/platform/verisilicon/hantro_av1.c | 8 ++++---- drivers/media/platform/verisilicon/hantro_v4l2.c | 10 ++++++---- drivers/media/platform/verisilicon/rockchip_vpu_hw.c | 10 ++++++---- 4 files changed, 18 insertions(+), 12 deletions(-) --- base-commit: 95c189b26efb07257888ccf9d873a5c366aafbc6 change-id: 20261130-av1-ref-stride-9635a02756d5 Best regards, -- Arun Iyengar