Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp708497rdb; Fri, 22 Dec 2023 02:38:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IFg3SjaPE+46dSnmPWp+wTQEB2ty92nx/vZM0HZ3GKy4jv5A5HdpDDqY8TVJQMa5lwF3X9k X-Received: by 2002:ad4:5c4b:0:b0:67e:e37c:6f73 with SMTP id a11-20020ad45c4b000000b0067ee37c6f73mr1558715qva.54.1703241530963; Fri, 22 Dec 2023 02:38:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703241530; cv=none; d=google.com; s=arc-20160816; b=sIddAfUxh5ZU2ROljmH069huWfmb70vM7JyzoQpifhzHxjCqgNkX6+vzdMyG7uzSEI BaWYD30ihFA36li3C34Fy6tQWCs7aIEw9J7sSecHl91O8JO86LSK19tIneMjjh/RuWzY TfZOYo+lHG2QaAhau5Lwv+2fWUGCPTpsnQYSRNtPZXpjBJ18bjH0eR7dRzty9TrYV+1L da39YmZx9si6XxzwkpDAWwEB21G45YDa46RfdtB60Rh3HOEqJWTFzf16i4uGdQnhx9HB Z6JXJNKjrnpK8f++hdU5U+yiu0jmv5n8d3EuWMwDLeshGVVIWbbKpbzddVGcVWoRzvcb l83Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=cYx3cEyew4wgHXkUGMpRDrNMXv9JyJmRzTLBW8rcTjA=; fh=PH2CCkUKwRlVA7ygRM6SdLzWEC0vWTNm0iRKBLeA9D0=; b=tEjt/Gm9inxUOV0pkYsl4X/uhpwoMgn0Vs27gn6gNLOPNFiHjbTbB9DsY7hXvovyGZ OkZ5VPYhsg1cdOrobGRJMVhjOKT8O2q1UVl4C7FRvdLp5PnsuGPb3523Aq3IqtoPDE2s WlqbuFwPuGXxXcXaN8vlhOm3NaVzvAkLv4hDaOTNaPzU6Ec4KdNrtkCEdUErXXUY+Zk7 NJAi3LkBlFpN6XLR5ZgcQrld+1ARjtjpI9XO+Scx1IVo7R7JzswC4yA8HY1ez0c/vav7 PVY8DBHPfghfyrVc76jzRPRUIkh/YuFG5zb9nAICR4JT3i9dt3bjXm2u4JRwxZKc7gbu tyng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rock-chips.com header.s=default header.b=MDzHYzZY; spf=pass (google.com: domain of linux-kernel+bounces-9600-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9600-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=rock-chips.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id f26-20020a05620a12fa00b007811e1b9fd2si3177961qkl.208.2023.12.22.02.38.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 02:38:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9600-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@rock-chips.com header.s=default header.b=MDzHYzZY; spf=pass (google.com: domain of linux-kernel+bounces-9600-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9600-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=rock-chips.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B3F041C221D9 for ; Fri, 22 Dec 2023 10:38:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 048D412E6A; Fri, 22 Dec 2023 10:38:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=rock-chips.com header.i=@rock-chips.com header.b="MDzHYzZY" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-m127230.xmail.ntesmail.com (mail-m127230.xmail.ntesmail.com [115.236.127.230]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F87014A86; Fri, 22 Dec 2023 10:38:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=rock-chips.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rock-chips.com DKIM-Signature: a=rsa-sha256; b=MDzHYzZYYMKiuAb0H9f+9p49+AvE/kR1FV64dqf4egat372paSoVnIe2HDoSX8bLe+DjXFF+ftNxOjWRrmVdWndOCXAcmYs8zm1aTxVzXnqylsFMp9zXyTbRi8CvYg6NwBys4AHRdsFX8ML41m1yh83duM9xt/i/btkBNgjuZ2I=; s=default; c=relaxed/relaxed; d=rock-chips.com; v=1; bh=cYx3cEyew4wgHXkUGMpRDrNMXv9JyJmRzTLBW8rcTjA=; h=date:mime-version:subject:message-id:from; Received: from [192.168.60.102] (unknown [103.29.142.67]) by mail-m12779.qiye.163.com (Hmail) with ESMTPA id BEC107801AA; Fri, 22 Dec 2023 18:37:59 +0800 (CST) Message-ID: <74e497f5-0361-47f7-a410-4b20d3526d52@rock-chips.com> Date: Fri, 22 Dec 2023 18:37:57 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/3] ARM: dts: rockchip: Add psci for rk3036 Content-Language: en-US To: Alex Bee , Andy Yan , heiko@sntech.de Cc: krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, zhengxing@rock-chips.com References: <20231218105523.2478315-1-andyshrk@163.com> <20231218105523.2478315-2-andyshrk@163.com> <28216be5-810f-40d6-850b-a0fc590ffa3c@rock-chips.com> From: Andy Yan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkaSBkeVkMZTEMeSE1DTB8ZGVUTARMWGhIXJBQOD1 lXWRgSC1lBWUpLSFVJQlVKT0lVTUxZV1kWGg8SFR0UWUFZT0tIVUpISkJIT1VKS0tVS1kG X-HM-Tid: 0a8c911a7d22b24fkuuubec107801aa X-HM-MType: 1 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6OTY6ECo4Qzw5FR4VIjIZLDk5 AzAaCzZVSlVKTEtISU9KT0NJSU5IVTMWGhIXVRoVHwJVAhoVOwkUGBBWGBMSCwhVGBQWRVlXWRIL WUFZSktIVUlCVUpPSVVNTFlXWQgBWUFOSkpDNwY+ Hi Alex, On 12/21/23 23:58, Alex Bee wrote: > Hi Andy, > > Am 21.12.23 um 02:07 schrieb Andy Yan: >> Hi Alex: >> >> On 12/20/23 19:16, Alex Bee wrote: >>> Hi Andy, >>> Am 18.12.23 um 11:55 schrieb Andy Yan: >>>> From: Andy Yan >>>> >>>> The system will hang at bringup secondary CPUs >>>> without psci node. >>>> >>>> Signed-off-by: Andy Yan >>>> >>>> --- >>>> >>>> (no changes since v1) >>>> >>>>   arch/arm/boot/dts/rockchip/rk3036.dtsi | 5 +++++ >>>>   1 file changed, 5 insertions(+) >>>> >>>> diff --git a/arch/arm/boot/dts/rockchip/rk3036.dtsi b/arch/arm/boot/dts/rockchip/rk3036.dtsi >>>> index 78686fc72ce6..5344803442a1 100644 >>>> --- a/arch/arm/boot/dts/rockchip/rk3036.dtsi >>>> +++ b/arch/arm/boot/dts/rockchip/rk3036.dtsi >>>> @@ -67,6 +67,11 @@ display-subsystem { >>>>           ports = <&vop_out>; >>>>       }; >>>> +    psci { >>>> +        compatible = "arm,psci-1.0"; >>>> +        method = "smc"; >>>> +    }; >>>> + >>> I don't think that's an good idea. >> >> Why? > It's only what I've been told before: We shoudn't add properties which > depend on non-upstream software (if an upstream alternative exists). Also > I'm not sure what happens if somebody doesn't use downstream bootloader > and PSCI can't be found: Would the board still be able to boot? The psci is released herel[0]. And also, there are only two rk3036 based boards in mainline: rk3036-evb,rk3036-keylin, both of them from rockchip. And the mainline support of these boards broken from linux 5.7(2020, see PATCH 3), no one report this broken until I try to run this board now. So maybe there is no such somebody will run into this situation. [0]https://github.com/rockchip-linux/rkbin/tree/master/bin/rk30 >> >>> You most likely need that because you have downstream bootloader installed on this board. PSCI implementation takes place in TEE-OS for Rockchips ARM SoCs. There is no support for RK3036 in upstream op-tee OS. It's pretty much the same for RK3128 and RK3288. >>> If you use upstream u-boot it should be good as-is. >> >> Unfortunately, upstream u-boot also cannot boot up on this board. >> At present, I haven't had time to debug what is going on. >> >> Another reason I want to use downstream u-boot it is: I try run >> this board with mainline just because i want to test some community >> patches about inno-hdmi driver, as you said "the inno-hdmi driver currently gets a lot of attention"[0] >> > Thanks for helping testing this. > > Alex > >> With a downstream u-boot I can easy switch between upstream kernel and downstream kernel(no need to replace other components) >> if I found some function is not work as expected. >> >> >> [0]https://patchwork.kernel.org/project/linux-rockchip/cover/20231219170100.188800-1-knaerzche@gmail.com/ >>> >>> Alex >>>>       timer { >>>>           compatible = "arm,armv7-timer"; >>>>           arm,cpu-registers-not-fw-configured; >>> >>> >>> _______________________________________________ >>> Linux-rockchip mailing list >>> Linux-rockchip@lists.infradead.org >>> http://lists.infradead.org/mailman/listinfo/linux-rockchip