From patchwork Tue Oct 29 09:54:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Yan X-Patchwork-Id: 13854591 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 82BD0D2AB11 for ; Tue, 29 Oct 2024 09:58:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=I6rbJvohD5OkLnDSGjcdmEkDMQVfs+0u/Mp8J8AaJ5k=; b=G1I4oDdgdqKXil QGqnKQ1qxPimhTgi5LslWa8wzzAP1AQPTW5A/jQhK2vAEAXaQpRdhEs+LPXYR1tNeX5B33NtEnStQ 6+bCFkTlbahfy/U1UC8+bxS1YGAtHxemxAoRjgq8Y7+QY35L7ATIGiVtJb9MU6ygLTVZHq3oGZxcU xHcuFu4OhdH58IkeF3F5nj/83qc3eCzEfTYPljBQuNOGFmO4lqx9NIZDXhXx+5L3nfikxJG5HetZa I4Sq9/o6IHyhCVHLmDMNcHJo7SFUE/w3lusuMnzfIweqOQF51pD/a9O2Xgh5+JFqTlvySO3MTuMv0 exCRuzlJAUVhmYb2KnZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5izr-0000000DxEz-0519; Tue, 29 Oct 2024 09:58:43 +0000 Received: from m16.mail.163.com ([220.197.31.5]) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5iws-0000000DwDs-3DAH; Tue, 29 Oct 2024 09:55:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=YkP+h HuVKz3drYv66Z6ob+bBObbmmlMznGnxdNwYQgA=; b=RqyHhxShp7vkJw9Sxgz8r auzw7BM8Ffhibbz8hNslcMkmgFUB0dd9mJIUOqreCAOVZadE82V2lrU5p1fbZ+u7 28eiBGec+S6TNBdvmH9RKpcbSli1s5AOpdo4TTf06FNEqE68WrrfB4JE4FVAMeUO sYhGdDie8sS6q27zNs0aiM= Received: from ProDesk.. (unknown [58.22.7.114]) by gzga-smtp-mtada-g1-1 (Coremail) with SMTP id _____wD3nxoCsSBn8+3dEA--.3291S2; Tue, 29 Oct 2024 17:55:18 +0800 (CST) From: Andy Yan To: heiko@sntech.de Cc: hjc@rock-chips.com, krzk+dt@kernel.org, s.hauer@pengutronix.de, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, derek.foreman@collabora.com, minhuadotchen@gmail.com, detlev.casanova@collabora.com, Andy Yan Subject: [PATCH v4 00/14] VOP Support for rk3576 Date: Tue, 29 Oct 2024 17:54:53 +0800 Message-ID: <20241029095513.391006-1-andyshrk@163.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CM-TRANSID: _____wD3nxoCsSBn8+3dEA--.3291S2 X-Coremail-Antispam: 1Uf129KBjvJXoWxuF13Gr4rAF48WrWUWFyUWrg_yoW5CF1fp3 98CryrZrWxCFyjqrs7Jw1UCrWFvwnayay7Ww4fG3W7J3W5KFnrKr9I9Fn8ZrZxX3WxZF4j krs3X34UKFsIvFJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UmZXwUUUUU= X-Originating-IP: [58.22.7.114] X-CM-SenderInfo: 5dqg52xkunqiywtou0bp/1tbiqQyHXmcgr44a3QAAsd X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241029_025539_261818_451C0A6A X-CRM114-Status: GOOD ( 15.05 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org From: Andy Yan Thanks for the basic work from Collabora, I can bringup a HDMI display out on rk3576. No big changes in this version. I remove the patch that set dma mask to 64 bit in V3, as it seems that it's not easy to come up with a suitable solution in the short term. Others are some typo fix and collection of Tested-by PATCH 1 is a carryover from the working when add support for rk3588[0], is very usefull when some people want me help debug some issue online, so I really hope it can be merged at this round. PATCH 2~4 are bugfix of rk3588 alpha blending which report and test by Derek PATCH 5~12 are preparations for rk3576 support PATCH 13~14 are real support for rk376 I test it with a 1080P/4K HDMI output with modetest and weston output. The hdmi depends Cristian's work which get merged in drm-misc recently[1] If there are some one want to have a try, I have a tree here[2] [0] https://patchwork.kernel.org/project/linux-rockchip/cover/20231211115547.1784587-1-andyshrk@163.com/ [1] https://lore.kernel.org/linux-rockchip/172917428139.3344404.160573495360164649.b4-ty@kernel.org/ [2] https://github.com/andyshrk/linux/tree/rk3576-vop2-upstream-v4 Changes in v4: - Fix some typo - Typo fix: selet->select - collection of Tested-by and Reviewed-by Changes in v3: - Split it from 10/15, as it fix a exiting compile warning. - Add comments for why we should treat rk3566 with special care. - Add hardware version check - Add comments for why we should treat rk3566 with special care. - ordered by soc name - Add description for newly added interrupt - Share the alpha setup function with rk3568 - recoder the code block by soc Changes in v2: - split it from main patch add support for rk3576 - Add platform specific callback - Introduce vop hardware version - Add dt bindings - Add platform specific callback Andy Yan (13): drm/rockchip: vop2: Add debugfs support drm/rockchip: vop2: Fix cluster windows alpha ctrl registers offset drm/rockchip: vop2: Fix the mixer alpha setup for layer 0 drm/rockchip: vop2: Fix the windows switch between different layers drm/rockchip: vop2: Support 32x8 superblock afbc drm/rockchip: vop2: Add platform specific callback drm/rockchip: vop2: Support for different layer select configuration between VPs drm/rockchip: vop2: Introduce vop hardware version drm/rockchip: vop2: Register the primary plane and overlay plane separately drm/rockchip: vop2: Set plane possible crtcs by possible vp mask drm/rockchip: vop2: Add uv swap for cluster window dt-bindings: display: vop2: Add rk3576 support drm/rockchip: vop2: Add support for rk3576 Min-Hua Chen (1): drm/rockchip: vop2: include rockchip_drm_drv.h .../display/rockchip/rockchip-vop2.yaml | 13 +- drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 1572 ++++--------- drivers/gpu/drm/rockchip/rockchip_drm_vop2.h | 274 ++- drivers/gpu/drm/rockchip/rockchip_vop2_reg.c | 1948 ++++++++++++++++- 4 files changed, 2680 insertions(+), 1127 deletions(-)