From patchwork Tue Feb 21 10:50:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 59861 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1795456wrn; Tue, 21 Feb 2023 02:53:27 -0800 (PST) X-Google-Smtp-Source: AK7set/KpAKn/r0ObjG3+QjCZGWMGBRFYKaabVLvcMfyTa4ccERa8rDdutetz8yv6zKa7qg5cydQ X-Received: by 2002:a05:6402:5158:b0:4aa:a4f1:3edb with SMTP id n24-20020a056402515800b004aaa4f13edbmr3906484edd.29.1676976807683; Tue, 21 Feb 2023 02:53:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676976807; cv=none; d=google.com; s=arc-20160816; b=aR3cdVK+o42zgEEOmIzyZLXr2D3VTWrmJYwBvvp6qOFE6Gfim1Or0pxtgGpF0ztK8q RJwZiBOQpo4mxHKHGvr4wChR8qd0DRWe8KYHTzcyy02840OaSw/kpTtFmu8SlCq/1Z3J R8H3TJwTtGyxHoRBlnEfUS/RCd4RUgnC8d5dNMgvX2KcIM1h4jn62XiMnGAGj8Hl9tHl ey6MG4vRQD7hG4xs17PX0FtnxdHRvYYKeu2xwFIkfGCxMl9NnVQlZv8gJmsJjTIobtWF 3vj94xO5/ohxz7XDViHbvLBXp6om1XQr8pRiiF89QMYLQC6vaWgOattOaND/Ddhwo03R U78g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pYjWLgQYUyf0rfB+O28fl3yoRQb/M04CEuNH5hkz1cs=; b=SyhuGi2dmBr+vNbFwsthjA4JylmlxUjxtuoTPchzRaLpXcASblDY5pFpP1WYjgFFtM n8Dc/oB5hrRAOI4bvvG6tuJtK44Qs1OZZAKx0zdiO4ZWPoRROH+LOJ1dvZmd9KL0zwF7 KB9ob70wwzIooD0laBeBJacDzuIQ77vSMAL9Ihia+nsLmhZ60tP9+T/8FnNJbr5glfPe Iu1+QfeGUL+OWht0KFtcRFzBIMmhMbhJRxWciMZcormpQBMpay3AP2AmQvT0FqnH5xRS Re9oidRkH0XIPFfiCyTOFoCyBT7wG1cUTsiiZA+Uu3668tX4Zl9jiSqsFz4gY7D+z0Xl BB3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sartura.hr header.s=sartura header.b=p2wzYBo3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=sartura.hr Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j15-20020aa7c0cf000000b004aab2fed3e7si18288874edp.275.2023.02.21.02.53.04; Tue, 21 Feb 2023 02:53:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sartura.hr header.s=sartura header.b=p2wzYBo3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=sartura.hr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233812AbjBUKut (ORCPT + 99 others); Tue, 21 Feb 2023 05:50:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233825AbjBUKur (ORCPT ); Tue, 21 Feb 2023 05:50:47 -0500 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8348C21A25 for ; Tue, 21 Feb 2023 02:50:44 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id h16so15530176edz.10 for ; Tue, 21 Feb 2023 02:50:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura.hr; s=sartura; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=pYjWLgQYUyf0rfB+O28fl3yoRQb/M04CEuNH5hkz1cs=; b=p2wzYBo3W+HrqRwhYizv8ezrYEbXHvTHEGP4HDkZqnrL1td9lLY1poI37muWJ7sd3y Bd24g575XQwvAkILeyYn1CiV7LmkE+VFqxzYM8GiLqM3nPNvVOE2MTvW+j6Uf+petFQV /fL4aVnW6Awf9JyCMGMvLK/ckLO2+5LEFuVgo1wLs5cAY3yPZ+PoRu73RTIa/sfZJYxP vwZv0CpqP0copFJkNX++pG1KyBQarJ1StdWJlc+fh/vsDYKyjAhOSV/ZrQAPiQbQdXLQ v5eA2Qr9dqfCgE2gdryWm2viN/kqaT7cnzY9+2w7KioLjpVxTe90Et9jd6dIgH/ieg83 9hGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pYjWLgQYUyf0rfB+O28fl3yoRQb/M04CEuNH5hkz1cs=; b=rGUDbPn2J00tTtF03gnNxud8+CCVH/xmgUnzoSik6+6sx+bDzSvUFQvAPPfWdHYoPA JddRGm5QsfSu7YvJknTaUv9VCfKr+n9176l1Tgp6kxZrctxyy5J//JT1AlgaweNJxrLv IlDcp4NB/3MIp7VFDgV+4UHIpvDSF7fmOuipOyGowBMF3uEQD3KkxOBuas9jVcTGurJu lWqxwPSGHYIUSHlVZ3Lc1xfscsPwhXOoAsfyGImAwvd/4m6nY5nbMgmsVRQJmt10H+Lz MTYAL32smfmPbNF3NvB36fl6hfI6DJyfLjZBAfc4z5fQZ1BGldZl3h20ADnMxkTzNk4+ M/DQ== X-Gm-Message-State: AO0yUKWzvr6UZnoldca59gvCaD45ix1m/Xc9bvnRaCF2ERJA7FL7SbE7 phgwIOPVuBDHtoFeDdHHQZx6Zg== X-Received: by 2002:a17:907:e8d:b0:8b1:2e8f:d524 with SMTP id ho13-20020a1709070e8d00b008b12e8fd524mr19296846ejc.27.1676976642934; Tue, 21 Feb 2023 02:50:42 -0800 (PST) Received: from fedora.. (dh207-97-58.xnet.hr. [88.207.97.58]) by smtp.googlemail.com with ESMTPSA id bk26-20020a170906b0da00b0089d5aaf85besm6955802ejb.219.2023.02.21.02.50.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 02:50:42 -0800 (PST) From: Robert Marko To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, lars.povlsen@microchip.com, Steen.Hegelund@microchip.com, daniel.machon@microchip.com, UNGLinuxDriver@microchip.com, arnd@arndb.de, alexandre.belloni@bootlin.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: luka.perkov@sartura.hr, Robert Marko Subject: [PATCH v2 1/3] arm64: dts: microchip: sparx5: do not use PSCI on reference boards Date: Tue, 21 Feb 2023 11:50:37 +0100 Message-Id: <20230221105039.316819-1-robert.marko@sartura.hr> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758437633175521319?= X-GMAIL-MSGID: =?utf-8?q?1758437633175521319?= PSCI is not implemented on SparX-5 at all, there is no ATF and U-boot that is shipped does not implement it as well. I have tried flashing the latest BSP 2022.12 U-boot which did not work. After contacting Microchip, they confirmed that there is no ATF for the SoC nor PSCI implementation which is unfortunate in 2023. So, disable PSCI as otherwise kernel crashes as soon as it tries probing PSCI with, and the crash is only visible if earlycon is used. Since PSCI is not implemented, switch core bringup to use spin-tables which are implemented in the vendor U-boot and actually work. Tested on PCB134 with eMMC (VSC5640EV). Fixes: 6694aee00a4b ("arm64: dts: sparx5: Add basic cpu support") Signed-off-by: Robert Marko Acked-by: Steen Hegelund --- Changes in v2: * As suggested by Arnd, disable PSCI only on reference boards --- arch/arm64/boot/dts/microchip/sparx5.dtsi | 2 +- arch/arm64/boot/dts/microchip/sparx5_pcb_common.dtsi | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/microchip/sparx5.dtsi b/arch/arm64/boot/dts/microchip/sparx5.dtsi index 0367a00a269b3..5eae6e7fd248e 100644 --- a/arch/arm64/boot/dts/microchip/sparx5.dtsi +++ b/arch/arm64/boot/dts/microchip/sparx5.dtsi @@ -61,7 +61,7 @@ arm-pmu { interrupt-affinity = <&cpu0>, <&cpu1>; }; - psci { + psci: psci { compatible = "arm,psci-0.2"; method = "smc"; }; diff --git a/arch/arm64/boot/dts/microchip/sparx5_pcb_common.dtsi b/arch/arm64/boot/dts/microchip/sparx5_pcb_common.dtsi index 9d1a082de3e29..32bb76b3202a0 100644 --- a/arch/arm64/boot/dts/microchip/sparx5_pcb_common.dtsi +++ b/arch/arm64/boot/dts/microchip/sparx5_pcb_common.dtsi @@ -6,6 +6,18 @@ /dts-v1/; #include "sparx5.dtsi" +&psci { + status = "disabled"; +}; + +&cpu0 { + enable-method = "spin-table"; +}; + +&cpu1 { + enable-method = "spin-table"; +}; + &uart0 { status = "okay"; };