Message ID | 20230314080917.68246-1-krzysztof.kozlowski@linaro.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1629847wrd; Tue, 14 Mar 2023 01:21:36 -0700 (PDT) X-Google-Smtp-Source: AK7set8j3RssnpFjHUvkOACqbxBRYV3buBWXNBhBqhQ+mHbHBLAdb2JCMQZwjyASXYlp5JSKWB8+ X-Received: by 2002:a05:6a20:1587:b0:cb:9fcc:3f37 with SMTP id h7-20020a056a20158700b000cb9fcc3f37mr40682950pzj.35.1678782095956; Tue, 14 Mar 2023 01:21:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678782095; cv=none; d=google.com; s=arc-20160816; b=hiBf3TlOvxoeutn0MGDLijj4DG2KZlc3xP+57eRAd8gYtOkheFebgM5hZIhTPMWKe1 dHTBaI8Qmm/3vkA1nFZitCtt4evOhE5tMcB8wiK48cv7yVx92svivdRjWl4ougvwo3to B1gBX7FPKbobIPFU5UhQLzj41P+1Yl2IV1tzcmJKPvvHR3XLIS5Nz67GuOeB1ixYsDlb vZow7Kk2NCD6zedOlmnfCTdBj70wTdVQN48r57w1auoHMXe1RdRPACWlmCwGRZwnp92b O+Pb1AQoLoEsBtTJo2eJJpxt5BImu9zzwji+t5E/P9CfAxCBHFHcX/JWVf4ks7yra2Ma opNg== 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=x1PSQgL33ohtJquVW+t7o1NxjNP0oyAspia+EQvzd50=; b=DBMyxPAXDgo3WlLC+n8EI5xMezCrScMJfEc9AVXghlplKd2o6S5m7ewtsoAnnIppqo trvFK4YUaqBv6zFcXwoNZ4REvX0a2D8voNYPYxN6rWO55PMDCyJHHZPJ54G6/qDYUFbC FaxC1hUb+nX2sRIE5bS6mhbdPVgCt1dQ5dRDRipOcti21DBOQtCkC15yxyVSV5YVXP+W 4gzYAgdlXHFi4n21rStf/oTTwRR8T6EOGiKmFpLAUA13DocE4TEA7Et5k2+2FvYDKTfM k8WN6RZdgnpvxhXnvnzCNh34FwH1yMgQ7dj1bdrx7TtUxuLNDtmFvUGpzI/TeBZ5MV5J XAqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="vm/q2LQC"; 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 j190-20020a6380c7000000b00503a8fed57esi1607954pgd.685.2023.03.14.01.21.23; Tue, 14 Mar 2023 01:21:35 -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=@linaro.org header.s=google header.b="vm/q2LQC"; 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 S229633AbjCNILI (ORCPT <rfc822;realc9580@gmail.com> + 99 others); Tue, 14 Mar 2023 04:11:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbjCNIKo (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 14 Mar 2023 04:10:44 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E78897B7E for <linux-kernel@vger.kernel.org>; Tue, 14 Mar 2023 01:09:22 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id da10so58559175edb.3 for <linux-kernel@vger.kernel.org>; Tue, 14 Mar 2023 01:09:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678781359; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=x1PSQgL33ohtJquVW+t7o1NxjNP0oyAspia+EQvzd50=; b=vm/q2LQC3P7MB4vFg2ifwDttlYhxCI2q9m98fZrZsT+TQlWB+h18oh0UrLRGhDSPDy cpE5K3evv6wn72Fj3xRbnOkvaYdBzkdd9dP1Y/kLKAxYGCKJyOUFgGKVuxexbg+9SmL4 6rTCCvyURzSqhihV5r7lCtBCQBNwzwgDG83ZK0SX+guO07UJWIaQgIw/1ZbkZh6CU14W E/MddrTbx1nh6zuK0cCKQIK/GDhBtUSMwHaVOyn4Bm+Gj1ZFmZw3VQjfJXI2M9/eaoDj Flx37suiYBw9NED/ZXDp6yx22adybrvvI8palQzf8L/el5IE7jsXUWSbVOLmT978tOFy XlkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678781359; 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=x1PSQgL33ohtJquVW+t7o1NxjNP0oyAspia+EQvzd50=; b=Y45H0xcaEFnNPwf+dhgUiTKv3vnAtVASZZHFZ6GyDZr8KBe6wmuS6aYXgx0HOgvGa3 n/bX+mzpTkLGvmWMde1mNy13U+injcnMgB4BvxeKUyRRUdc08MtOF2+iSYqDir1LvRqh ap9pusJWaGJxaG1U7SB7cbLPf2Z6XOgjcscHm+m0EGtAUaRNkpYNpYXvLZObblPUSZDo 9fvgPCoIID6wNzb3pIsqZJOOl94xe9+W0v7WZEleGAHa7Lj8NhCTFla51bALpyRYacb1 ThIC/fqu6cr8N/p8L0qvgKuRatOzUnynqFG847xkRaCghlX/N6tlUO34hk1gNtvkHWgN RAUg== X-Gm-Message-State: AO0yUKUuuojyECGQgOZRcNiYJFUA4dfW1vqWYF5So5+W3rha/+sICFFf oy1PP1SblWPJpR21MfTTcZ26Gq8DUfYBu/CCmgE= X-Received: by 2002:a17:906:cc50:b0:8b1:7e1e:7756 with SMTP id mm16-20020a170906cc5000b008b17e1e7756mr1524908ejb.73.1678781359535; Tue, 14 Mar 2023 01:09:19 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:6932:5570:6254:9edd]) by smtp.gmail.com with ESMTPSA id co2-20020a0564020c0200b004fce9ff4830sm584872edb.88.2023.03.14.01.09.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 01:09:19 -0700 (PDT) From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Jassi Brar <jassisinghbrar@gmail.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Manivannan Sadhasivam <mani@kernel.org>, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Subject: [PATCH v2 00/13] mailbox/arm64/ qcom: rework compatibles for fallback Date: Tue, 14 Mar 2023 09:09:04 +0100 Message-Id: <20230314080917.68246-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 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,URIBL_BLOCKED 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: <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?1760330615118233148?= X-GMAIL-MSGID: =?utf-8?q?1760330615118233148?= |
Series |
mailbox/arm64/ qcom: rework compatibles for fallback
|
|
Message
Krzysztof Kozlowski
March 14, 2023, 8:09 a.m. UTC
Hi, Changes since v1 ================ 1. Rebase 2. Make msm8994 fallback for several variants, not msm8953, because the latter actually might take some clocks. 3. Two new patches for SDX55. 4. Minor corrections in bindings style. v1: https://lore.kernel.org/all/20230202161856.385825-1-krzysztof.kozlowski@linaro.org/ Description =========== If entire approach is accepted (and correct), there are no dependencies and patches can be picked independently. Although the best in the same cycle, so there will be no new `dtbs_check` warnings. Best regards, Krzysztof Krzysztof Kozlowski (13): dt-bindings: mailbox: qcom,apcs-kpss-global: correct SDX55 clocks dt-bindings: mailbox: qcom,apcs-kpss-global: fix SDX55 'if' match dt-bindings: mailbox: qcom,apcs-kpss-global: use fallbacks mailbox: qcom-apcs-ipc: do not grow the of_device_id arm64: dts: qcom: ipq8074: add compatible fallback to mailbox arm64: dts: qcom: msm8976: add compatible fallback to mailbox arm64: dts: qcom: msm8998: add compatible fallback to mailbox arm64: dts: qcom: sdm630: add compatible fallback to mailbox arm64: dts: qcom: sm6115: add compatible fallback to mailbox arm64: dts: qcom: sm6125: add compatible fallback to mailbox arm64: dts: qcom: qcs404: add compatible fallback to mailbox arm64: dts: qcom: sc7180: add compatible fallback to mailbox arm64: dts: qcom: sm8150: add compatible fallback to mailbox .../mailbox/qcom,apcs-kpss-global.yaml | 67 ++++++++++--------- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 3 +- arch/arm64/boot/dts/qcom/msm8976.dtsi | 3 +- arch/arm64/boot/dts/qcom/msm8998.dtsi | 3 +- arch/arm64/boot/dts/qcom/qcs404.dtsi | 3 +- arch/arm64/boot/dts/qcom/sc7180.dtsi | 3 +- arch/arm64/boot/dts/qcom/sdm630.dtsi | 3 +- arch/arm64/boot/dts/qcom/sm6115.dtsi | 3 +- arch/arm64/boot/dts/qcom/sm6125.dtsi | 3 +- arch/arm64/boot/dts/qcom/sm8150.dtsi | 3 +- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 11 +-- 11 files changed, 60 insertions(+), 45 deletions(-)
Comments
On 14/03/2023 10:09, Krzysztof Kozlowski wrote: > Hi, > > Changes since v1 > ================ > 1. Rebase > 2. Make msm8994 fallback for several variants, not msm8953, because the latter > actually might take some clocks. Although the approach looks correct, I think that in some cases it tries to mark devices compatible judging from the current driver, not from the hardware itself. For the reference, on msm8994 the apcs is a clock controller for the l2 clocks (which we do not support yet). If I'm not mistaken, on msm8976 the apcs region contains a mux for the cluster1 clocks. On sdm630/660 the apcs region also seems to be involved in CPU clocks scaling. On the other hand, the sc7180/sm8150 part seems logical. > 3. Two new patches for SDX55. > 4. Minor corrections in bindings style. > v1: https://lore.kernel.org/all/20230202161856.385825-1-krzysztof.kozlowski@linaro.org/ > > Description > =========== > > If entire approach is accepted (and correct), there are no dependencies and > patches can be picked independently. Although the best in the same cycle, so > there will be no new `dtbs_check` warnings. > > Best regards, > Krzysztof > > Krzysztof Kozlowski (13): > dt-bindings: mailbox: qcom,apcs-kpss-global: correct SDX55 clocks > dt-bindings: mailbox: qcom,apcs-kpss-global: fix SDX55 'if' match > dt-bindings: mailbox: qcom,apcs-kpss-global: use fallbacks > mailbox: qcom-apcs-ipc: do not grow the of_device_id > arm64: dts: qcom: ipq8074: add compatible fallback to mailbox > arm64: dts: qcom: msm8976: add compatible fallback to mailbox > arm64: dts: qcom: msm8998: add compatible fallback to mailbox > arm64: dts: qcom: sdm630: add compatible fallback to mailbox > arm64: dts: qcom: sm6115: add compatible fallback to mailbox > arm64: dts: qcom: sm6125: add compatible fallback to mailbox > arm64: dts: qcom: qcs404: add compatible fallback to mailbox > arm64: dts: qcom: sc7180: add compatible fallback to mailbox > arm64: dts: qcom: sm8150: add compatible fallback to mailbox > > .../mailbox/qcom,apcs-kpss-global.yaml | 67 ++++++++++--------- > arch/arm64/boot/dts/qcom/ipq8074.dtsi | 3 +- > arch/arm64/boot/dts/qcom/msm8976.dtsi | 3 +- > arch/arm64/boot/dts/qcom/msm8998.dtsi | 3 +- > arch/arm64/boot/dts/qcom/qcs404.dtsi | 3 +- > arch/arm64/boot/dts/qcom/sc7180.dtsi | 3 +- > arch/arm64/boot/dts/qcom/sdm630.dtsi | 3 +- > arch/arm64/boot/dts/qcom/sm6115.dtsi | 3 +- > arch/arm64/boot/dts/qcom/sm6125.dtsi | 3 +- > arch/arm64/boot/dts/qcom/sm8150.dtsi | 3 +- > drivers/mailbox/qcom-apcs-ipc-mailbox.c | 11 +-- > 11 files changed, 60 insertions(+), 45 deletions(-) >
On 14/03/2023 13:16, Dmitry Baryshkov wrote: > On 14/03/2023 10:09, Krzysztof Kozlowski wrote: >> Hi, >> >> Changes since v1 >> ================ >> 1. Rebase >> 2. Make msm8994 fallback for several variants, not msm8953, because the latter >> actually might take some clocks. > > Although the approach looks correct, I think that in some cases it tries > to mark devices compatible judging from the current driver, not from the > hardware itself. Which is what compatibility is about... > > For the reference, on msm8994 the apcs is a clock controller for the l2 > clocks (which we do not support yet). If I'm not mistaken, on msm8976 > the apcs region contains a mux for the cluster1 clocks. On sdm630/660 > the apcs region also seems to be involved in CPU clocks scaling. The question is this means they are incompatible? > > On the other hand, the sc7180/sm8150 part seems logical. > Best regards, Krzysztof
On 16/03/2023 07:52, Krzysztof Kozlowski wrote: > On 14/03/2023 13:16, Dmitry Baryshkov wrote: >> On 14/03/2023 10:09, Krzysztof Kozlowski wrote: >>> Hi, >>> >>> Changes since v1 >>> ================ >>> 1. Rebase >>> 2. Make msm8994 fallback for several variants, not msm8953, because the latter >>> actually might take some clocks. >> >> Although the approach looks correct, I think that in some cases it tries >> to mark devices compatible judging from the current driver, not from the >> hardware itself. > > Which is what compatibility is about... > >> >> For the reference, on msm8994 the apcs is a clock controller for the l2 >> clocks (which we do not support yet). If I'm not mistaken, on msm8976 >> the apcs region contains a mux for the cluster1 clocks. On sdm630/660 >> the apcs region also seems to be involved in CPU clocks scaling. > > The question is this means they are incompatible? Since there are no more comments I assume they are actually compatible in the terms of SW interface. Best regards, Krzysztof
On Wed, 22 Mar 2023 at 19:37, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > > On 16/03/2023 07:52, Krzysztof Kozlowski wrote: > > On 14/03/2023 13:16, Dmitry Baryshkov wrote: > >> On 14/03/2023 10:09, Krzysztof Kozlowski wrote: > >>> Hi, > >>> > >>> Changes since v1 > >>> ================ > >>> 1. Rebase > >>> 2. Make msm8994 fallback for several variants, not msm8953, because the latter > >>> actually might take some clocks. > >> > >> Although the approach looks correct, I think that in some cases it tries > >> to mark devices compatible judging from the current driver, not from the > >> hardware itself. > > > > Which is what compatibility is about... Well, I was trying to say that once we update the driver, the devices will not be compatible. But probably our definitions of being compatible differ. > > > >> > >> For the reference, on msm8994 the apcs is a clock controller for the l2 > >> clocks (which we do not support yet). If I'm not mistaken, on msm8976 > >> the apcs region contains a mux for the cluster1 clocks. On sdm630/660 > >> the apcs region also seems to be involved in CPU clocks scaling. > > > > The question is this means they are incompatible? > > Since there are no more comments I assume they are actually compatible > in the terms of SW interface.
On 22/03/2023 23:28, Dmitry Baryshkov wrote: > On Wed, 22 Mar 2023 at 19:37, Krzysztof Kozlowski > <krzysztof.kozlowski@linaro.org> wrote: >> >> On 16/03/2023 07:52, Krzysztof Kozlowski wrote: >>> On 14/03/2023 13:16, Dmitry Baryshkov wrote: >>>> On 14/03/2023 10:09, Krzysztof Kozlowski wrote: >>>>> Hi, >>>>> >>>>> Changes since v1 >>>>> ================ >>>>> 1. Rebase >>>>> 2. Make msm8994 fallback for several variants, not msm8953, because the latter >>>>> actually might take some clocks. >>>> >>>> Although the approach looks correct, I think that in some cases it tries >>>> to mark devices compatible judging from the current driver, not from the >>>> hardware itself. >>> >>> Which is what compatibility is about... > > Well, I was trying to say that once we update the driver, the devices > will not be compatible. But probably our definitions of being > compatible differ. What do you want to update in the driver? What's going to happen with it? What is missing? Best regards, Krzysztof
On Thu, 23 Mar 2023 at 08:33, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > > On 22/03/2023 23:28, Dmitry Baryshkov wrote: > > On Wed, 22 Mar 2023 at 19:37, Krzysztof Kozlowski > > <krzysztof.kozlowski@linaro.org> wrote: > >> > >> On 16/03/2023 07:52, Krzysztof Kozlowski wrote: > >>> On 14/03/2023 13:16, Dmitry Baryshkov wrote: > >>>> On 14/03/2023 10:09, Krzysztof Kozlowski wrote: > >>>>> Hi, > >>>>> > >>>>> Changes since v1 > >>>>> ================ > >>>>> 1. Rebase > >>>>> 2. Make msm8994 fallback for several variants, not msm8953, because the latter > >>>>> actually might take some clocks. > >>>> > >>>> Although the approach looks correct, I think that in some cases it tries > >>>> to mark devices compatible judging from the current driver, not from the > >>>> hardware itself. > >>> > >>> Which is what compatibility is about... > > > > Well, I was trying to say that once we update the driver, the devices > > will not be compatible. But probably our definitions of being > > compatible differ. > > What do you want to update in the driver? What's going to happen with > it? What is missing? Some of these platforms do not have CPUfreq support, which will most likely require programming of cluster and L2/L3 clocks being part of this region. For the reference, I think that sc7180/sm8150/other new platforms are proper examples of 'compatible' devices, so the patchset itself has a correct/good idea beneath. It's just that additional research might be required for the older platforms. -- With best wishes Dmitry
On 23/03/2023 10:44, Dmitry Baryshkov wrote: > On Thu, 23 Mar 2023 at 08:33, Krzysztof Kozlowski > <krzysztof.kozlowski@linaro.org> wrote: >> >> On 22/03/2023 23:28, Dmitry Baryshkov wrote: >>> On Wed, 22 Mar 2023 at 19:37, Krzysztof Kozlowski >>> <krzysztof.kozlowski@linaro.org> wrote: >>>> >>>> On 16/03/2023 07:52, Krzysztof Kozlowski wrote: >>>>> On 14/03/2023 13:16, Dmitry Baryshkov wrote: >>>>>> On 14/03/2023 10:09, Krzysztof Kozlowski wrote: >>>>>>> Hi, >>>>>>> >>>>>>> Changes since v1 >>>>>>> ================ >>>>>>> 1. Rebase >>>>>>> 2. Make msm8994 fallback for several variants, not msm8953, because the latter >>>>>>> actually might take some clocks. >>>>>> >>>>>> Although the approach looks correct, I think that in some cases it tries >>>>>> to mark devices compatible judging from the current driver, not from the >>>>>> hardware itself. >>>>> >>>>> Which is what compatibility is about... >>> >>> Well, I was trying to say that once we update the driver, the devices >>> will not be compatible. But probably our definitions of being >>> compatible differ. >> >> What do you want to update in the driver? What's going to happen with >> it? What is missing? > > Some of these platforms do not have CPUfreq support, which will most > likely require programming of cluster and L2/L3 clocks being part of > this region. > > For the reference, I think that sc7180/sm8150/other new platforms are > proper examples of 'compatible' devices, so the patchset itself has a > correct/good idea beneath. It's just that additional research might be > required for the older platforms. I'll split the series so the sc7180/so on bits can go in and we'll figure out compatibility for the rest later... Best regards, Krzysztof