From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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.subspace.kernel.org (Postfix) with ESMTPS id 2F476606A323 for ; Mon, 16 Nov 2026 08:47:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=pPigBKap; dkim=pass (1024-bit key) header.d=airkyi.com header.i=@airkyi.com header.a=rsa-sha256 header.s=altu2504 header.b=MI3Gc1KS DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc: To:From:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Unsubscribe-Post:List-Owner; bh=lSsI9v4x2V3cJuZFCaNIrvFewmsEWmwhG13HbDEgbVM=; b=pPigBKapoaMS+HppAHjCcq+dlg UiZtwSaBAEWif5/zZp40qomQ/LehngYcEjQ/fMb379pxwTYf0Ccm4u5i//HiUs1CIup4swdq8MKhj iZcgdkFyRVtIWiZ/bagS6iWnPCIP4Q8omyVo+IMqLpKeiQJNajxZWJ0EjbrER4lkPxfZxnzyTdHzk 1V9A1ShfEgMHuEK9N69fYYFMQDbAOV1nMPga69LmQCMOwa3a2xh2WNP9ZZHWrbd3sFyaf6Df5IJe+ 3lU7ThZI9iyKFyNXCEFYlsfVo0mtNSCjKd5LpEijbKxHlgisudEfncOd5CAUgOO5VuQEj64v9HNMT SdA0dthQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xSsN7-00000001f35-2Sgh; Mon, 16 Nov 2026 08:47:29 +0000 Received: from bg1.exmail.qq.com ([114.132.65.219]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xSsN4-00000001f03-3EI4; Mon, 16 Nov 2026 08:47:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=airkyi.com; s=altu2504; t=1794818770; bh=lSsI9v4x2V3cJuZFCaNIrvFewmsEWmwhG13HbDEgbVM=; h=From:To:Subject:Date:Message-Id; b=MI3Gc1KSbVC5BcV2CwgpV95IMD5cyHfcaC5kHgFonFtXV/i0uj7jbPmhPGwYILAku jaqrEA57XvnsC9XeEvOQCQYj7/ViDBuhpY823YizFHJYaSzJViK/iL7Bakd439tLwn ss69gQMCIwFj2BQCRf39nKB5Bz6Uv/yzWlI2fhRI= X-QQ-mid: esmtpgz13t1794818763t8e5c2cf0 X-QQ-Originating-IP: 71HDNamfL4ZLghdjCeoOieO1N3vPn7U1SZ+jZDPEX30= Received: from DESKTOP-8BT1A2O.localdomain ( [58.22.7.114]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 16 Nov 2026 16:46:00 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 0 X-BIZMAIL-ID: 13307274964963775721 From: Chaoyi Chen To: Sandy Huang , =?UTF-8?q?Heiko=20St=C3=BCbner?= , Andy Yan , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Chaoyi Chen , Cristian Ciocaltea , Sebastian Reichel Subject: [PATCH v3 0/3] drm/rockchip: vop2: Add 8K support for RK3588 vop2 Date: Mon, 16 Nov 2026 16:45:52 +0800 Message-Id: <20261116084555.1061-1-kernel@airkyi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pvPyh3YlB2fxy4 iwAOxiR3qHzU6yKw1QapgJou4rpeaxwvA2weDHPTmGMfCbVYA30b27hVX80eqMIYN0KaLqT wX7Y+hfQ8d6K1VV9d2ynNYGAzxdLs= X-QQ-XMRINFO: NS+P29fieYNwqS3WCnRCOn9D1NpZuCnCRA== X-QQ-RECHKSPAM: 0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261116_004727_037257_9AE14276 X-CRM114-Status: GOOD ( 13.51 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-13.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: From: Chaoyi Chen Hi, This series adds support for 8K output on the RK3588 VOP2. HDMI is not ready yet, but I believe many people might be interested in this. 8K output on the RK3588 is done by splicing two VPs together, with VP0 outputting the left half of the screen and VP1 the right half. In addition, 8K planes have to be split in half as well to stay within the width limit of a single plane. Similarly, there are a few post-processing details that need to be handled. Note that splice mode is not only usable for 8K output. This means the mode can be tested at 4K and even lower resolutions, by simply changing this one line: -#define VOP2_MAX_VP_OUTPUT_WIDTH 4096 +#define VOP2_MAX_VP_OUTPUT_WIDTH (3840 / 2) /* for 4K test */ And yes, this has been tested at 4K over HDMI on the RK3588 EVB1 :) Changes in v3: - Link to v2: https://lore.kernel.org/all/20261029081429.862-1-kernel@airkyi.com/ - Cast the result of drm_format_info_min_pitc() to u32 to avoid 64bit division. - Rework the left-window splice check to avoid pulling an unrelated CRTC into non-modeset commits, and use the new CRTC mode instead of the stale splice_mode flag(Sashiko). - Reserve the splice partner window when the partner VP has no CRTC, so it cannot be assigned as another VP's primary plane(Sashiko). - Only set the partner VP's CFG_DONE while the new state is in splice mode; do not force it when leaving splice mode(Sashiko). - Program the main and splice video ports in a single layer-mixer pass, and apply the YUV overlay mode to both VPs(Sashiko). Changes in v2: - Link to v1: https://lore.kernel.org/all/20261022071737.508-1-kernel@airkyi.com/ - Missing removal of the replaced line(Heiko). - vop2_win_get_pstate(): use the left window's state only in splice mode(Sashiko). - Reject splice windows already in use by another CRTC(Sashiko). - Check the splice partner via drm_atomic_get_crtc_state() instead of the runtime flag and unlocked read(Sashiko). - Set splice_mode_right/left_vp before the error paths of vop2_crtc_atomic_enable()(Sashiko). - Validate each split half against the min width 4 and max input width; align NV20/NV30 like NV15(Sashiko). - Latch overlay registers at the left VP's vsync; don't wait for the partner's own cfg-done(Sashiko). - Program the color key on the window actually being updated(Sashiko). Cc: Cristian Ciocaltea Cc: Sebastian Reichel Chaoyi Chen (3): drm/rockchip: vop2: Use drm_format_info_min_pitch() for plane offsets drm/rockchip: vop2: Skip UV plane setup for packed YUV formats drm/rockchip: vop2: Support 8K output by splicing two video ports drivers/gpu/drm/rockchip/rockchip_drm_drv.h | 5 + drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 579 +++++++++++++++++-- drivers/gpu/drm/rockchip/rockchip_drm_vop2.h | 66 ++- drivers/gpu/drm/rockchip/rockchip_vop2_reg.c | 370 ++++++++---- 4 files changed, 857 insertions(+), 163 deletions(-) -- 2.53.0