-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rk3588: bump to 6.12 for edge and current #7455
Rk3588: bump to 6.12 for edge and current #7455
Conversation
@amazingfate I will test on my nano pc t6 lts, firstly I need to add a patch for hdmi that is missing on nanopc t6/lts |
can you take this patch https://github.com/OpenSource-YYT/build/blob/9624aa719fbac8202a8c44bee49bd93f4c3d92dd/patch/kernel/archive/rockchip-rk3588-6.12/1052-board-nanopc-t6-Add-HDMI-support.patch that enable missing nodes for nanopc t6/lts |
I'm testing hdmi on armsom sige7 now. After confirming hdmi works I will add patches of T6 |
cb8c4ba
to
261abd8
Compare
@amazingfate with this PR, my nanopc not works correctly, no boot from sd card, only boot from emmc and nvme, I don't have any video output. |
rockchip-vop2 fdd90000.vop: [drm:vop2_bind] ERROR failed to get hdmi0_phy_pll source |
I still investigating about the sd card issue, regarding hdmi seems like the clock name are inaccessible, you've tested on your side if HDMI works? |
sd card issue was about my balena etcher.. I used dd and works |
No hdmi output: nanopct6-lts:~:# dmesg | grep -i vop
[ 0.135544] platform fdd90000.vop: Fixed dependency cycle(s) with /hdmi@fde80000
[ 0.135588] platform fde80000.hdmi: Fixed dependency cycle(s) with /vop@fdd90000
[ 2.691510] rockchip-vop2 fdd90000.vop: Adding to iommu group 0
[ 2.808861] rockchip-drm display-subsystem: bound fdd90000.vop (ops rockchip_drm_fini [rockchipdrm])
nanopct6-lts:~:# dmesg | grep -i hdmi
[ 0.135544] platform fdd90000.vop: Fixed dependency cycle(s) with /hdmi@fde80000
[ 0.135588] platform fde80000.hdmi: Fixed dependency cycle(s) with /vop@fdd90000
[ 2.808922] dwhdmiqp-rockchip fde80000.hdmi: [drm] *ERROR* Unable to get rockchip,vo-grf
[ 2.808930] rockchip-drm display-subsystem: failed to bind fde80000.hdmi (ops rockchip_drm_fini [rockchipdrm]): -19
nanopct6-lts:~:# the patch: From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: SuperKali <hello@superkali.me>
Date: Sun, 10 Nov 2024 20:01:01 +0000
Subject: Add support HDMI for NanoPC T6 & LTS
Signed-off-by: SuperKali <hello@superkali.me>
---
arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi | 35 ++++++++++
1 file changed, 35 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi
index ac537e3b9c35..9444e41d36e7 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi
@@ -9,10 +9,11 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/usb/pd.h>
+#include <dt-bindings/soc/rockchip,vop2.h>
#include "rk3588.dtsi"
/ {
model = "FriendlyElec NanoPC-T6";
compatible = "friendlyarm,nanopc-t6", "rockchip,rk3588";
@@ -257,10 +258,15 @@ &cpu_b2 {
&cpu_b3 {
cpu-supply = <&vdd_cpu_big1_s0>;
};
+&display_subsystem {
+ clocks = <&hdptxphy_hdmi0>;
+ clock-names = "hdmi0_phy_pll";
+};
+
&gpio0 {
gpio-line-names = /* GPIO0 A0-A7 */
"", "", "", "",
"", "", "", "",
/* GPIO0 B0-B7 */
@@ -337,10 +343,24 @@ &gpio4 {
&gpu {
mali-supply = <&vdd_gpu_s0>;
status = "okay";
};
+&hdmi0 {
+ status = "okay";
+};
+
+&hdmi0_in {
+ hdmi0_in_vp0: endpoint {
+ remote-endpoint = <&vp0_out_hdmi0>;
+ };
+};
+
+&hdptxphy_hdmi0 {
+ status = "okay";
+};
+
&i2c0 {
pinctrl-names = "default";
pinctrl-0 = <&i2c0m2_xfer>;
status = "okay";
@@ -1095,5 +1115,20 @@ &usb_host1_ehci {
};
&usb_host1_ohci {
status = "okay";
};
+
+&vop {
+ status = "okay";
+};
+
+&vop_mmu {
+ status = "okay";
+};
+
+&vp0 {
+ vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
+ reg = <ROCKCHIP_VOP2_EP_HDMI0>;
+ remote-endpoint = <&hdmi0_in_vp0>;
+ };
+};
--
Created with Armbian build tools https://github.com/armbian/build
|
There is also no hdmi output on armsom sige7, I'm checking it now. |
HDMI is working now, the dts patch of hdmi bridge should get updated. |
@amazingfate now working on my side: |
Approve when you think this is ready. We ship this with 24.11 |
Have a look at 71aef28 I had updated this patch weeks ago 😄 |
patch/kernel/archive/rockchip-rk3588-6.12/0001-tools-disable-sched_ext_clean.patch
Outdated
Show resolved
Hide resolved
This was the old behaviour. @rpardini (I believe) changed it to use kernel version instead of kernel branch. IIRC this should be the default for all kernels in the future. But since I don't mind either at the moment, please discuss this with @rpardini |
I think observed discrepancy is related only to RK3588. Is this seen elsewhere? |
I don't have much insights into kernels other than Rockchip, but I believe this is true, likely because we had For example even for me it's still after all this time not entirely clear if the predominant main goal of the "this is a kernel based on the latest (non-rc) LTS kernel release, but besides kernel version number is has no goals of additional stability versus or "this is a kernel based on the latest LTS kernel release and provides the most stable experience versus the While these details won't matter for everyone, I'm sure that at least some new users and new devs might be confused about this too 😄 |
This is not an issue introduced by 6.12, it also happens with 6.11 kernel. X11 desktop performance always sucks from the old time when we are using panfork driver, and unfortunately I don't have much ability to deal with it. All I can do is to recommend uses switching to wayland. Here are the reasons why it's better to choose an LTS kernel as
There are some familes which do not set LTS as current for some reasons. For example, sm8250, that is because there are only few people in the world maintaining the kernel branch (2 or 3), so it's their decision to set which version to be stable. |
Yes. We went that way back when there was no I also hoped So I don't mind any changes in the naming, it's clear those attempts lead nowhere.
Heh. We've families where And then we have the "big X" (rk/rk64/meson64/sunxi/sunxi64) where
+1. Fully support this for this family. 6.12 is about to be released, and it's not like we have a 6.6 anyone wants to maintain. |
- 0001-general-add-overlay-support - 0024-RK3588-Add-Crypto-Support (asm/unaligned.h moved to linux/unaligned.h) - 0025-RK3588-Add-HW-RNG-Support (rename driver file to avoid conflict with new 6.12 driver)
Source: https://lore.kernel.org/all/20241016-b4-rk3588-bridge-upstream-v10-0-87ef92a6d14e@collabora.com/^ ----------------------------- **Quote from source:** Subject: [PATCH v10 0/3] Add initial support for the Rockchip RK3588 HDMI TX Controller Date: Wed, 16 Oct 2024 23:06:50 +0300 The Rockchip RK3588 SoC family integrates the Synopsys DesignWare HDMI 2.1 Quad-Pixel (QP) TX controller, which is a new IP block, quite different from those used in the previous generations of Rockchip SoCs. The controller supports the following features, among others: * Fixed Rate Link (FRL) * Display Stream Compression (DSC) * 4K@120Hz and 8K@60Hz video modes * Variable Refresh Rate (VRR) including Quick Media Switching (QMS) * Fast Vactive (FVA) * SCDC I2C DDC access * Multi-stream audio * Enhanced Audio Return Channel (EARC) This is the last component that needs to be supported in order to enable the HDMI output functionality on the RK3588 based SBCs, such as the RADXA Rock 5B. The other components are the Video Output Processor (VOP2) and the Samsung IP based HDMI/eDP TX Combo PHY, for which basic support has been already made available via [1] and [2], respectively. Please note this is a reworked version of the original series, which relied on a commonized dw-hdmi approach. Since the general consensus was to handle it as an entirely new IP, I dropped all patches related to the old dw-hdmi and Rockchip glue code - a few of them might still make sense as general improvements and will be submitted separately. It's worth mentioning the HDMI output support is currently limited to RGB output up to 4K@60Hz, without audio, CEC or any of the HDMI 2.1 specific features. Moreover, the VOP2 driver is not able to properly handle all display modes supported by the connected screens, e.g. it doesn't cope with non-integer refresh rates. A possible workaround consists of enabling the display controller to make use of the clock provided by the HDMI PHY PLL. This is still work in progress and will be submitted later, as well as the required DTS updates. To facilitate testing and experimentation, all HDMI output related patches, including those part of this series, are available at [3]. So far I could only verify this on the RADXA Rock 5B board. Thanks, Cristian [1]: 5a028e8f062f ("drm/rockchip: vop2: Add support for rk3588") [2]: 553be2830c5f ("phy: rockchip: Add Samsung HDMI/eDP Combo PHY driver") [3]: https://gitlab.collabora.com/hardware-enablement/rockchip-3588/linux/-/commits/rk3588-hdmi-bridge-v6.12-rc2 [4]: https://lore.kernel.org/lkml/[email protected]/ Signed-off-by: Cristian Ciocaltea <[email protected]>
`CONFIG_ROCKCHIP_DW_HDMI_QP`
Co-authored-by: SuperKali <[email protected]>
c75f336
to
104fafa
Compare
Of course, there was never any doubt that |
No it's not usable at all. I will debug it further to see what's wrong |
@efectn there is dt/rk3588s-orangepi-5.dts, I recommend deleting it because patches will be overwritten by this file. |
I don't think it's opi-specific. The other SBCs have the same issue as well. There are also approximately 2k interrupts/s by VOP2. |
At least opi5 has the issue now. There is no "&display_subsystem" node in dts of opi5. |
Ok will check it. I think we should remove all dt files which has already been mainlined |
Description
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also note any relevant details for your test configuration.
Checklist:
Please delete options that are not relevant.