From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 0481B286415 for ; Fri, 26 Dec 2025 11:31:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766748710; cv=none; b=kaoKma0JTSZEYFpEFaxQ/tZ7tzCaHL+DAUxzAloxPwngvJ+vov53ZyS+9iwkoTip9+PEXZhyROwbyeDwEimwZl6wLXqp7Xr3BuM6sw8gS0a8lMpa9LDmHWt/zLT8XYsHulwP/eUZsl3jgTXkyY3Xe6bPVDJxALLOb+Ztgy5O5SQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766748710; c=relaxed/simple; bh=gTHa7Gn70r3+8gXvTxHhP1Av5PLEVL1ID9idtlBUFuA=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=C2sjXudZdtjkIoL7AgOR+LlK96mIIQ24ZLrGbS5/Sba4EFB53xBRogsHENQAFsXCdcS3tAwaaYDFVgABGukCtmJKIGMpSOy3fLdcBPXTFDXNreu88w9qqiyiOim53+vTuEE3tkV5ITn21TyzFYjX4zQLWAbpzymK23JmdBk1EDw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=T0ALKXZv; arc=none smtp.client-ip=209.85.128.46 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) header.d=gmail.com header.i=@gmail.com header.b="T0ALKXZv" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4775e891b5eso29144245e9.2 for ; Fri, 26 Dec 2025 03:31:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1766748706; x=1767353506; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=v1SWATMi/WZTvokTUVbPMD00PD6v87hkU1tyoacWxTk=; b=T0ALKXZvhwZE1CuXSeuoDgKGO/r5CfkNOssi4ny5+dE5UTT3eE3Qiu4WoVSlDxNspH xOZNkaFgbQ7MJCFOeWo2iJ87rNayS4ynLuxRdpWXPW3VnAKWKp/yvj1R2wgpXB4GgA3H nEBnjvOWLaJXqYT3wniresCElTJE+n2fdpzhoHwP0QFRg96tYmLTD9gzaiIwiJRhoF5P sX6pGShGO6V5m8Ipq1XexEAebO2b4VZJskCquis7occ8vhbFvNPczQ4oC1dc5WFTh3oi X0/LbuVruhJG915fc77HB1UFRkfLStYGkLPEK2RW9ZSz5tMWkB/nnruJaIxW+7XeRa/g EQTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766748706; x=1767353506; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=v1SWATMi/WZTvokTUVbPMD00PD6v87hkU1tyoacWxTk=; b=FaiyYH4Y5boybFtL7J8dz+lfg6NIgs16QZjaMnAafeT+pgC4VBomP7FtadASNekuHc TlkInr8F/UZPoED7mWtS0ruqYoFRoVqtmfL8Jgkwmix+/QGCbCh2oLqiKXqf2wIS1UYF r2c3euHZNMampeFwnIUhn3ZWfLiogM4pN5FC+eTrCMRrtgyahxI1jFXcBvsRa/E+85tA azi8FKqfH02N+iYefFTwEtcQkXVW4kOTDGEp4RwuPk0AHZzoCLo6HSHwslSQDhDxCvVJ qI7d7qBur3eJkoMye/bl0rEw3FAdX4aRFq7/g2nufdDblb1/6Sl1lobqR0/9IVKbihpd qElA== X-Forwarded-Encrypted: i=1; AJvYcCWovUE+F5wDoyo0SuefB85RSv4CNSENzmdmG/dnHIU+Mbg6ZNV3rnCR7wOwYmY5P6QdXXjZUsXh6oaoPxU=@vger.kernel.org X-Gm-Message-State: AOJu0YxWhyhB/br++pph/qT3bkoYpRiD1AFfynmWilM0QuxwBBiaJDst tYG+SwMPVANBIXPEZVwdWaMUb9CK+3GfI1yXSBTgu0fiIbEF+J3YNLQy X-Gm-Gg: AY/fxX5W1mBGPhHH4DZlvxv9kcvdq6K9fHrBBEKp2gyeNdvgnCRwHknZyNe0hJi596+ Qc17GBVvY9te9rhYw0l+5GZWMz6gDu1HtxeUePqlr2zf0oOOJCfe9TgZM850QeJAEi5Lkj/MTug Wy23e0VlSs0jrsJMl1uqi345K+ZzvbctIFeyYN2fnm5idYWueNQXZvPhIm0D9A0dSrgEqeHDHEn UrdPs9MWBLDDlAuMCsE2Nlj3zWeJuKvmVNSD5gjWaPdUeAU+TYeNo0NOCwT4dUHP/qgPs8nCYZU 4a4lzP87qI4KwnlKgKai9FYJePy62bF3QsW2cppa6wcbA3PcyMrUDbaY+d6wAtdaciICCZ6kK0w nY4WT8dTFKZzHUzhykI9N6F/rsOt5Xo+oaItPGmtS5CZPLd9KSYl3dNxOGSotyT9SGnFF4+GhNn SYdoUmI/Y60h2ZMws= X-Google-Smtp-Source: AGHT+IFygpIY6yusxcHbmhs8BhJBr7U4UWeqoVUdejtLxA2a55s8mJN5G64VtQqtq7oKUer6tKeXIg== X-Received: by 2002:a05:6000:400f:b0:431:752:672b with SMTP id ffacd0b85a97d-4324e4c8fd0mr26427791f8f.14.1766748706064; Fri, 26 Dec 2025 03:31:46 -0800 (PST) Received: from toolbox.. ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4324ea1b1bdsm44182107f8f.8.2025.12.26.03.31.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Dec 2025 03:31:45 -0800 (PST) From: Christian Hewitt To: Detlev Casanova , =?UTF-8?q?Olivier=20Cr=C3=AAte?= , Ezequiel Garcia , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Diederik de Haas , Dmitry Osipenko , Thomas Gleixner , Dragan Simic , Chukun Pan , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/3] media: rockchip: rkvdec: add support for the VDPU346 variant Date: Fri, 26 Dec 2025 11:31:37 +0000 Message-Id: <20251226113140.573759-1-christianshewitt@gmail.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series depends upon Detlev Casanova's current v7 series for VDPU381 and VDPU383 support [0]. It adds support for the VDPU346 IP block used for H264, HEVC and (in active work) VP9 on the RK356X boards. VDPU346 appears to be a close relation to VDPU381 used with RK3588, except with a single core, output limited to 4K, and minor feature differences, e.g. HEVC level 5.1 on VDPU346 vs 6.1 on VDPU381. To handle differences we declare a new compatible. The device-tree changes are derived from prior-art in Detlev's patches for RK3576 and RK3588, the vendor kernel [1], and some earlier patch attempts from Piotr Oniszczuk and Diederik de Haas. The register differences between VDPU346 and VDPU381 appear to be minimal so we currently and intentionally reuse the VDPU381 h264, hevc, and regs files to avoid duplicating code. There is some evidence of buffer size changes in testing which still need to be explored. If further register analysis needs separate files for VDPU346 the refactoring will be beyond my current n00b coding skills and I will either need some coaching or would be happy to pass the series over to a more experienced developer. NB: Testing with the v1 series showed lower mbps bitrate performance. This appears to be resolved though it's unclear to me whether this results from kernel changes or the ongoing reworking of ffmpeg v4l2_request support [2]. However with my current Linux 6.19-rc2 test branch [3] I'm now able to play Jellyfish H264 and HEVC test media over 100mbps. Changes since v1: - Drop DO-NOT-MERGE patch as changes included in Detvlev v7 series - Adapt to variant/capability changes in Detlev's v7 series - Add bindings ack from Rob - Add rkvdec ack from Nicolas - Rebase against Linux 6.19-rc2 [0] https://patchwork.kernel.org/project/linux-rockchip/list/?series=1034794 [1] https://github.com/rockchip-linux/kernel/blob/develop-6.6/arch/arm64/boot/dts/rockchip/rk356x.dtsi#L1539 [2] https://code.ffmpeg.org/Kwiboo/FFmpeg/commits/branch/v4l2request-v3 [3] https://github.com/chewitt/linux/commits/rockchip-6.19.y Christian Hewitt (3): media: dt-bindings: rockchip: Add RK3568 Video Decoder bindings media: rkvdec: Add support for the VDPU346 variant arm64: dts: rockchip: Add the vdpu346 Video Decoders on RK356X .../bindings/media/rockchip,vdec.yaml | 2 + arch/arm64/boot/dts/rockchip/rk356x-base.dtsi | 49 +++++++++ .../media/platform/rockchip/rkvdec/rkvdec.c | 103 ++++++++++++++++++ 3 files changed, 154 insertions(+) -- 2.34.1