Message ID | 20230117024846.1367794-2-bryan.odonoghue@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1525529wrn; Mon, 16 Jan 2023 18:57:06 -0800 (PST) X-Google-Smtp-Source: AMrXdXvMvPI4+G16gKbjxZ2E4cUc41DXvCvhn5MTHWmmAdl5w880KapIPPQFreU5n7OENcPltlJd X-Received: by 2002:a17:906:cd1f:b0:7c1:23ef:4bb9 with SMTP id oz31-20020a170906cd1f00b007c123ef4bb9mr1235086ejb.13.1673924226833; Mon, 16 Jan 2023 18:57:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673924226; cv=none; d=google.com; s=arc-20160816; b=YEd3uKDkO4j2/vnEqT+ptb7n1vz4ViL6nEbab/OqD+XTw111bdGvuerPAc5/+2SzpP AL8sEXw0pEOG8KqoaLjzBW8/6ODvr9TQaT9czWNt0VWQk2NyxjpuMtcjf4uvHV4H+a8h 0rXxBzJsoTZ+XWVrudzy8JT7NSigBQrOsFsp+pCRd4yhdGTwaENoqk2fr7S2BiEl6vVl haiA+/s5NWnmQ2QP0+KUERgLWWTjQxPTNAwDE2E+h0uyFcdVLg/wHOn3AsFQu4D8x93u uKVAlAaWMSf51M6kBCAdD/IcaajAfSh4HxIPBee8RKW5g5jZh0ftQr+JcSbYxoDxyyOp FLbA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5xCA5EUgHOsGaSJm+l0Mf/p8bYHPKtpaW04F9aMMbZ8=; b=FNAPsqKsTj7V2X9hw0MCfY93AZuMqpwoXasx7y6ESLr6aouNGPNgfilyOEcxkjVNS9 2wNLA+vtBv3TXsH/ta/ZiZUKRukzCozJvDYRGBmGgwfFk6ORO1vh4GUbB8RkK48y7YNQ EjwaDz2euyRLPJPdcg+RE9NmP1yBRjrnUPUUr+nY9U/H7HNtG99c0emqPzuaJoH4/PXD BTiEHPuOvv4Ujp1f0/731hex3+bjK8s1GrsqNNAMldDKJ0SkIG/U4gxhRfuH63MKJgAd PzRTZqYCGIIti3CcBpCOHuYf+dC6AyiqfTRJgTCKJ8HZV3H0eUbhKhIfrX+fghWTv07n p43g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u+36Dd8N; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id di12-20020a170906730c00b0078e11cbb722si36701593ejc.92.2023.01.16.18.56.34; Mon, 16 Jan 2023 18:57:06 -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=@linaro.org header.s=google header.b=u+36Dd8N; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235675AbjAQCw5 (ORCPT <rfc822;stefanalexe802@gmail.com> + 99 others); Mon, 16 Jan 2023 21:52:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235690AbjAQCwd (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 16 Jan 2023 21:52:33 -0500 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EFF8303DF for <linux-kernel@vger.kernel.org>; Mon, 16 Jan 2023 18:48:51 -0800 (PST) Received: by mail-wm1-x32b.google.com with SMTP id f25-20020a1c6a19000000b003da221fbf48so7109205wmc.1 for <linux-kernel@vger.kernel.org>; Mon, 16 Jan 2023 18:48:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5xCA5EUgHOsGaSJm+l0Mf/p8bYHPKtpaW04F9aMMbZ8=; b=u+36Dd8Nobty6WugHJlctyKf3Dcnq/2B4nl54+Y7foyxwmVxRM+cfD23/sLA0F6QYM hk2ijwN1SrAnum0pMrlvYrfmabsC+v+39WVcS8hDoWkFBvebS6JxvAoHJWNpH7wI0TeP 2fKiyMDKCrwRBFFkldg80vtKwjiZypU4zK0pmRRjRuidTmEku5cn/Zlv/u/RbJfgk2xG E9RxzV88eaqkdPfyAifTsglneDLB1AI7IZsMlrdI97Cmbjgbei76XNCe7xc0YlNKnfVD hwlZKl/nvO2idiISjgNjY6kPWxwDjrH0f6H6AKMAG2ngfzoUglspjTCGF/1l49W7VL8B CDmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5xCA5EUgHOsGaSJm+l0Mf/p8bYHPKtpaW04F9aMMbZ8=; b=FlUjnbREvKbDmIcP/t+VOiuYGq8RdnjZfYHeO8bNtfQkKZ+m6utsT6Kr3vqhvyj448 sOF1jOzlLBvq3L7sSZN7rLqsU+C9kmJwldigqTZXpbqhTJ7MIO9HTgMKHOF+y3XNEveI KJYy+2oF/wX6FCv8djS/pLu29sf9gDRLd1+5MNzaEfvb6T9PRWjD1pP6MI7eICJAN/PS IGL1aa7MLDJGJVNNX3ouuDuCBIKUlUEc6+CK4036X7XkKcqB42O7TKupD28f8i0oKJjM /U6a6y8BSq4EVk3yzjlm2lbRCS7iqHfVtEdihxUUmeGxx1aVA5ufTIgo/aBIMikE9I1J PTfA== X-Gm-Message-State: AFqh2krnt4kYROu7uIH3HeCq5tRohd+cL984bfIElbvWcHHp9ja+CuQk 2SOzXuTmzXBB9nHe4ssEYegPEw== X-Received: by 2002:a05:600c:3d99:b0:3d2:381f:2db5 with SMTP id bi25-20020a05600c3d9900b003d2381f2db5mr1423608wmb.22.1673923730513; Mon, 16 Jan 2023 18:48:50 -0800 (PST) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id n7-20020a05600c4f8700b003c6bd12ac27sm39482660wmq.37.2023.01.16.18.48.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 18:48:50 -0800 (PST) From: Bryan O'Donoghue <bryan.odonoghue@linaro.org> To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, djakov@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: bryan.odonoghue@linaro.org, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, benl@squareup.com, shawn.guo@linaro.org, fabien.parent@linaro.org, leo.yan@linaro.org, dmitry.baryshkov@linaro.org, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Subject: [PATCH v3 1/8] dt-bindings: arm: qcom: Document MSM8939 SoC binding Date: Tue, 17 Jan 2023 02:48:39 +0000 Message-Id: <20230117024846.1367794-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230117024846.1367794-1-bryan.odonoghue@linaro.org> References: <20230117024846.1367794-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755236769811659729?= X-GMAIL-MSGID: =?utf-8?q?1755236769811659729?= |
Series |
Add MSM8939 SoC support with two devices
|
|
Commit Message
Bryan O'Donoghue
Jan. 17, 2023, 2:48 a.m. UTC
Document the MSM8939 and supported boards in upstream Sony "Tulip" M4 Aqua and Square APQ8039 T2. MSM8939 is one of the older SoCs so we need to expand the list of qcom,board-ids to allow for the bootloader DTS board-id matching dependency. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> --- Documentation/devicetree/bindings/arm/qcom.yaml | 8 ++++++++ 1 file changed, 8 insertions(+)
Comments
On Tue, Jan 17, 2023 at 02:48:39AM +0000, Bryan O'Donoghue wrote: > Document the MSM8939 and supported boards in upstream Sony "Tulip" M4 Aqua > and Square APQ8039 T2. > > MSM8939 is one of the older SoCs so we need to expand the list of > qcom,board-ids to allow for the bootloader DTS board-id matching > dependency. > The original LK bootloaders cannot boot your msm8939.dtsi correctly, because a spin-table implementation is required to get the other CPU cores up. This means that a modified bootloader is always needed from the upstream point of view, since I doubt anyone wants to use these devices with a single core only. lk2nd (as the primary spin-table implementation right now) has never required qcom,board-ids and any custom LK would be easy to patch to ignore these. Do you already have a bootloader with spin-table support deployed in the field that can be no longer easily modified to ignore the qcom,board-id? If not, and you're planning to keep using the downstream patches to bring the CPU cores up without spin-table/PSCI then you might as well add the qcom,board-id as downstream patch as well. If we don't support the original bootloaders in a usable way upstream then we should not add MSM8939 to the allow list of broken bootloaders either, in my opinion. Thanks, Stephan
On 18/01/2023 08:47, Stephan Gerhold wrote: > On Tue, Jan 17, 2023 at 02:48:39AM +0000, Bryan O'Donoghue wrote: >> Document the MSM8939 and supported boards in upstream Sony "Tulip" M4 Aqua >> and Square APQ8039 T2. >> >> MSM8939 is one of the older SoCs so we need to expand the list of >> qcom,board-ids to allow for the bootloader DTS board-id matching >> dependency. >> > > The original LK bootloaders cannot boot your msm8939.dtsi correctly, > because a spin-table implementation is required to get the other CPU > cores up. This means that a modified bootloader is always needed from > the upstream point of view, since I doubt anyone wants to use these > devices with a single core only. lk2nd (as the primary spin-table > implementation right now) has never required qcom,board-ids and any > custom LK would be easy to patch to ignore these. The system boots just fine with the shipped LK. We get display, USB, SD, WiFi. We just don't support booting the second cluster via any other means than lk2nd right now. You could also not use lk2nd, stick with your default LK and import LPM patches. Default LK: root@linaro-alip:~# cat /proc/cpuinfo processor : 0 BogoMIPS : 38.40 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4 root@linaro-alip:~# iw wlan0 info Interface wlan0 ifindex 6 wdev 0x1 addr e2:b9:a0:ef:3a:ba type managed wiphy 0 channel 52 (5260 MHz), width: 80 MHz, center1: 5290 MHz txpower 20.00 dBm multicast TXQ: qsz-byt qsz-pkt flows drops marks overlmt hashcol tx-bytes tx-packets 0 0 0 0 0 0 0 0 0 root@linaro-alip:~# uname -a Linux linaro-alip 6.2.0-rc4-next-20230116-00029-gf1a46ff9e812-dirty #392 SMP PREEMPT Tue Jan 17 23:46:42 GMT 2023 aarch64 GNU/Linux LK2ND: root@linaro-alip:~# cat /proc/cpuinfo processor : 0 BogoMIPS : 38.40 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4 processor : 1 BogoMIPS : 38.40 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4 processor : 2 BogoMIPS : 38.40 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4 processor : 3 BogoMIPS : 38.40 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4 processor : 4 BogoMIPS : 38.40 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4 processor : 5 BogoMIPS : 38.40 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4 processor : 6 BogoMIPS : 38.40 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4 processor : 7 BogoMIPS : 38.40 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4 root@linaro-alip:~# iw wlan0 info Interface wlan0 ifindex 6 wdev 0x1 addr 02:00:0e:66:5c:21 type managed wiphy 0 channel 64 (5320 MHz), width: 80 MHz, center1: 5290 MHz txpower 20.00 dBm multicast TXQ: qsz-byt qsz-pkt flows drops marks overlmt hashcol tx-bytes tx-packets 0 0 0 0 0 0 0 0 0 root@linaro-alip:~# uname -a Linux linaro-alip 6.2.0-rc4-next-20230116-00029-gf1a46ff9e812-dirty #392 SMP PREEMPT Tue Jan 17 23:46:42 GMT 2023 aarch64 GNU/Linux --- bod
On Wed, Jan 18, 2023 at 12:05:50PM +0000, Bryan O'Donoghue wrote: > On 18/01/2023 08:47, Stephan Gerhold wrote: > > On Tue, Jan 17, 2023 at 02:48:39AM +0000, Bryan O'Donoghue wrote: > > > Document the MSM8939 and supported boards in upstream Sony "Tulip" M4 Aqua > > > and Square APQ8039 T2. > > > > > > MSM8939 is one of the older SoCs so we need to expand the list of > > > qcom,board-ids to allow for the bootloader DTS board-id matching > > > dependency. > > > > > > > The original LK bootloaders cannot boot your msm8939.dtsi correctly, > > because a spin-table implementation is required to get the other CPU > > cores up. This means that a modified bootloader is always needed from > > the upstream point of view, since I doubt anyone wants to use these > > devices with a single core only. lk2nd (as the primary spin-table > > implementation right now) has never required qcom,board-ids and any > > custom LK would be easy to patch to ignore these. > > The system boots just fine with the shipped LK. We get display, USB, SD, > WiFi. > > We just don't support booting the second cluster via any other means than > lk2nd right now. > > You could also not use lk2nd, stick with your default LK and import LPM > patches. > My point is: If you import out of tree LPM patches you can also just import an extra patch that adds the qcom,board-id property where needed. The qcom,board-id is only needed/used in configurations where you need to add those extra LPM patches on top anyway. Those configurations are (sadly) not supported from the upstream point of view, since only PSCI or spin-table are supposed to be used for CPU bring-up/idle. Anyway, for me personally there is no difference if the funky qcom,board-id properties are there or not, so I'll leave it up to Rob/Krzysztof to decide if the board-id exception is warranted here or not. :) Thanks, Stephan
On 18/01/2023 08:47, Stephan Gerhold wrote: > If we don't support the original bootloaders in a usable way upstream > then we should not add MSM8939 to the allow list of broken bootloaders > either, in my opinion. Yes but, a vendor could just as easily cherry-pick the spin-table enabling lk2nd patches back to their lk implementation and begin to drop the ongoing burden of supporting the LPM stuff. We certainly do and should support booting stock lk. There's no sense in setting the bar to upstream even higher by imposing a chainloaded bootloader on our hypothetical new user. The right thing to do is to enable the vanilla path but, give the user the extra option. --- bod
diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml index 47913a8e3eea3..0721d1a0b80e6 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -35,6 +35,7 @@ description: | mdm9615 msm8226 msm8916 + msm8939 msm8953 msm8956 msm8974 @@ -164,6 +165,12 @@ properties: - samsung,s3ve3g - const: qcom,msm8226 + - items: + - enum: + - sony,kanuti-tulip + - square,apq8039-t2 + - const: qcom,msm8939 + - items: - enum: - sony,kugo-row @@ -966,6 +973,7 @@ allOf: - qcom,apq8026 - qcom,apq8094 - qcom,apq8096 + - qcom,msm8939 - qcom,msm8953 - qcom,msm8956 - qcom,msm8992