Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5911798rwb; Wed, 21 Sep 2022 14:28:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6eSbT9RbxIB30gUxbmZyQa1NibkZIHn3sE3SZVYVHTMRpdbiJaOL2xvTJOIdXaXuII3RKM X-Received: by 2002:a17:906:fe09:b0:73d:90ae:f801 with SMTP id wy9-20020a170906fe0900b0073d90aef801mr163620ejb.699.1663795684036; Wed, 21 Sep 2022 14:28:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663795684; cv=none; d=google.com; s=arc-20160816; b=iLG10VEA93AU5hk8FspOTd2jE/CoUq1qk7UGz/m7EkVqGXY2YLbC0sOXofuMGsZ9+F zFheUByRTQAs/61oIxYYprRC1Kc0QPIaLwoF7smoAkgAKzswz/yI3DYX07yiu3CB/rZR 3OLMShQFDTiYrJyzGtZ7HVTrznu6xt5G4gyWdBkrmbZB2EhYwsxEJshOUt+1uBfK6uHR JU6874o4+ZljjmXnWtzFTHZVMffWWSpixK4ZQcsfxDcZM4O3Yt3DMDv9+mrMyhAYTzgQ XKoud5kd7fhJeyst10rZSiirGsEv2PdGJCeqpt0mcD1VYAgw0GX4PLVqxlKX1urgzyOn RUYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=nGYXTPOt3zCzwp92JW8LyqdaThQz7kjvGR8CDOfHJf0=; b=TnFQfBf5U+qWZwovNLQSEWRMKmf0mEFiyealOJJYPNCMY31UaIA/eMJ0AzmDI8LFmJ 09GjptPHbMT6rdnuQaEW6accrI7W+8HZonQY5QYyBrNGfmZErPk1afoA11vvijazJ0se 2bsQS3rskhfG2uwKCQcHOZUvhbij7Cfkyfpkh56bU8K3ADERG01ekFtUI3/V1ERJcgy2 WDVXaCjTRRTSZKmViE35b4fXZo1+wky/yBfQOsk9nq5h92CxgoJ8yPdPw1sjp+eRZw2Q QfzX4bbqUP/Zpp7jj7tzZCDNucws5YKks4qeQoS0TuBpAOV8U1tKrwn1QF5V796KwaWS eIEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@postmarketos.org header.s=donut header.b=khdERCMX; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w6-20020a170906130600b007743e36f03esi2901106ejb.876.2022.09.21.14.27.37; Wed, 21 Sep 2022 14:28:04 -0700 (PDT) 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=@postmarketos.org header.s=donut header.b=khdERCMX; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229645AbiIUUzX (ORCPT + 99 others); Wed, 21 Sep 2022 16:55:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbiIUUzU (ORCPT ); Wed, 21 Sep 2022 16:55:20 -0400 Received: from proxmox1.postmarketos.org (proxmox1.postmarketos.org [213.239.216.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2AB2A2AE3B; Wed, 21 Sep 2022 13:55:17 -0700 (PDT) Received: from [192.168.20.2] (unknown [77.239.252.99]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by proxmox1.postmarketos.org (Postfix) with ESMTPSA id 88F6B14023D; Wed, 21 Sep 2022 20:55:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org; s=donut; t=1663793715; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nGYXTPOt3zCzwp92JW8LyqdaThQz7kjvGR8CDOfHJf0=; b=khdERCMXn98k8bYp7rsHWjm6DOW67jNr8VfAlgsY+kvPG+JkChAH2wwgUKv2EcbPf9+ei2 E/rYR2CbZriDsixJ2oMihcGo8PMGaHW7alVasFOJRvRO+VzfAoNqMqeKBSAwPmxwOY4swh QNL8g8wjbyPhbZWU//9qGeJ5aidaaD4= Message-ID: <37ebdd21-e46a-fac9-7e87-57042ab67d5c@postmarketos.org> Date: Wed, 21 Sep 2022 23:55:13 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH v4 3/3] ARM: dts: qcom: msm8974: switch TCSR mutex to MMIO Content-Language: en-US To: Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Ohad Ben-Cohen , Baolin Wang , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220920150414.637634-1-krzysztof.kozlowski@linaro.org> <20220920150414.637634-4-krzysztof.kozlowski@linaro.org> From: Alexey Minnekhanov In-Reply-To: <20220920150414.637634-4-krzysztof.kozlowski@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_NONE autolearn=ham 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 Hi, On 20.09.2022 18:04, Krzysztof Kozlowski wrote: > - tcsr_mutex: tcsr-mutex { > - compatible = "qcom,tcsr-mutex"; > - syscon = <&tcsr_mutex_block 0 0x80>; I'm looking and don't understand where does this information go, is it lost in the conversion? I mean those "0 0x80" parameters to syscon reference. Looking at the code of qcom_hwspinlock driver those seem to be read by qcom_hwspinlock_probe_syscon() [1] using of_property_read_u32_index() as base and stride values and those would be 0 nad 0x80 respectively as is now. But without syscon reference, in mmio mode, code goes through qcom_hwspinlock_probe_mmio() few lines below, which says /* All modern platform has offset 0 and stride of 4k */ *offset = 0; *stride = 0x1000; So after this conversion stride value will jump from 0x80 to 0x1000, which does not seem to be 1 to 1 identical conversion to me, unless I am missing something. Perhaps msm8974 does not fall into category of "All modern platform"? [1] https://elixir.bootlin.com/linux/latest/source/drivers/hwspinlock/qcom_hwspinlock.c#L73 -- Regards Alexey Minnekhanov