Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1263403rwl; Wed, 12 Apr 2023 10:12:41 -0700 (PDT) X-Google-Smtp-Source: AKy350Z2GeJWgojAgCiue21pT4/3QzHKFWmk1NgCeKdGA3FKRucfyv/2yE7qeFpW9chAOCzWlyUk X-Received: by 2002:a17:902:f90b:b0:1a5:329d:b975 with SMTP id kw11-20020a170902f90b00b001a5329db975mr12993999plb.66.1681319561503; Wed, 12 Apr 2023 10:12:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681319561; cv=none; d=google.com; s=arc-20160816; b=vjc8cjsjmeSOkiur8U/YJ70sLmWqGtluJDcHYLbd+SRyslpbCAZWWSffJNKUCAmT4h SWsCdXceRe98vSC8O70Si8f/BbQemCqL/Bthos7fkUUvuFVi3PZiJ1vGwxXKKLUsiOYR C3wTYx/RW0406Ymtd8nkm3lEIBiQZtMckwM6H5Z9MLlWKIchjKayT5Dv3WRzliWrvAMv byL36ZkoVPqcddqV9ZFiH6/vFjc6/fO4byUoH/2zdh5XqBtzIDy+ka2gyvcMku/6bQH/ CMsSzWEyUqvFP4qA/NLApGURuzOfhExSvTA2H7myxW5jWGiO4mdijIIHFkY+6uNjFhMW KF6Q== 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:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=YMWU8Odwaeq/SVRM7bWqxudWTUga4vVKtqmtQDwWNBI=; b=BvVfrgMjp0cTl3He7Jg33gpnpgdRu+0Xit6DH3Q69A9tzMeawEXXZO7ef/zO3xve5I v1bYucyeVmw8Gxkh5AKXT/zxfFpZ4hRzGXM+IYEzkwfNda8/EQCOV4Flenqm0mKiWbza xqAfALXPXzhyqlTnTQu0k/9KqqMZS9JeVtZ+dGcmMi1VJkSLmbqsxvFJqKvYOoIliKON d2xN9Z9U9VtC2YV1013qKWZMXx7xkua6xR0emlZQVzXm9zcYcBTcl2o60wWJdp2E1V80 B768jxDM1mRIicAgnV5v2pY5jINPuaJCeEv4uR23nPsSt/9AD3iu6WMDbhG2w/Zn/ROp /bvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="lePux3/E"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a11-20020a170902eccb00b0019f3064da41si17179711plh.383.2023.04.12.10.12.28; Wed, 12 Apr 2023 10:12:41 -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="lePux3/E"; 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 S229848AbjDLRGk (ORCPT + 99 others); Wed, 12 Apr 2023 13:06:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229737AbjDLRGj (ORCPT ); Wed, 12 Apr 2023 13:06:39 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1878511C for ; Wed, 12 Apr 2023 10:06:28 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id d7so26690218lfj.3 for ; Wed, 12 Apr 2023 10:06:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681319186; x=1683911186; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=YMWU8Odwaeq/SVRM7bWqxudWTUga4vVKtqmtQDwWNBI=; b=lePux3/Euo0n5p7HK3txuaSevsS1qwKPm+gky8y0kDybxkRMBAf/dWz0iw2YxuKSOL VWaKlLwM2iw93KWc5LaSEcMWEoVqyYBN+1EBj9+cL9q9D82CAZujCViEG9Uh+8lrkwWj u/dyXL18ES6oSzaQUrH3nYWDPH+tRZvpQihdQ9+kYNCeaTx5y+FG8hbsFH3kuEGtSggf PJ+5nnsPxcSvL9RBemjWp0inmqZlJ4lVyrPZbxjfky7Mcmtp08/KaxZJYXweXSNv6Ov7 W/2fMjGN5OikTOwJKsAQLSi+02qzwbgpMfHJFE/hWFR2C/G9nk8RX4OI/qyfCgz2ly2z /w0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681319186; x=1683911186; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YMWU8Odwaeq/SVRM7bWqxudWTUga4vVKtqmtQDwWNBI=; b=E/KOk942ezOdQF1TLdGpFpK5zEYHDGNrbCcVEP+o1CDiXqh4H3VWBZKI5b0IHSAt+x q3YnW6PD73e1n9nw7O3ILo7M6ZogAW6rLVqClEjDB2UZs73bNF7ymTCV/FAGkwWf8xKU N8wPFfFiTro8E8qfRPWrHrFOqtXuwn9KynMP50HJjROJL3PoHS8o+LZrfsOY0InQeYl3 PymH2O9cGve8xifyKkiEspLxBoiFA2sNVOIWreG1138aFCN/QBmCrajqQDc0mgMkSNZc NAzXEKmDnjCpcEZ9I0dzYG/c6IuyY1WtPOlg55BxgKFPVkyBcvGdEiRImECsHSyrg+pr exrg== X-Gm-Message-State: AAQBX9cuD8N6pAhMnKe+4J1IBiPAIQrwm1auQ5JaaoAGuLcF2WGMUgnc +k38U+bXJR2HGmvUst18LKAEgA== X-Received: by 2002:ac2:53b3:0:b0:4ec:9310:ad4e with SMTP id j19-20020ac253b3000000b004ec9310ad4emr768774lfh.33.1681319186301; Wed, 12 Apr 2023 10:06:26 -0700 (PDT) Received: from [192.168.1.101] (abxj23.neoplus.adsl.tpnet.pl. [83.9.3.23]) by smtp.gmail.com with ESMTPSA id q14-20020ac25a0e000000b004db48ae69cbsm3095120lfn.206.2023.04.12.10.06.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Apr 2023 10:06:25 -0700 (PDT) Message-ID: Date: Wed, 12 Apr 2023 19:06:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH v2 1/2] dt-bindings: interrupt-controller: mpm: Pass MSG RAM slice through phandle Content-Language: en-US To: Krzysztof Kozlowski , Stephan Gerhold Cc: Rob Herring , Thomas Gleixner , Andy Gross , linux-kernel@vger.kernel.org, Shawn Guo , Marijn Suijten , Krzysztof Kozlowski , Bjorn Andersson , Marc Zyngier , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org References: <20230328-topic-msgram_mpm-v2-0-e24a48e57f0d@linaro.org> <20230328-topic-msgram_mpm-v2-1-e24a48e57f0d@linaro.org> <168069726278.2356075.14351594478003012447.robh@kernel.org> <20230405134727.GA2461305-robh@kernel.org> <1e6e2590-ac78-400b-35ce-321d5e52f385@linaro.org> <9df12111-ec84-c4f7-fbcb-bccaef91b048@linaro.org> <3ce9b5ec-8b02-537a-c663-c849e80cab66@linaro.org> <198523f5-d06f-15cd-af6c-f391c02bcaa9@linaro.org> <1f8fc036-380b-0a42-bb29-a3e275ed6a33@linaro.org> <2e648a97-083e-8ee2-1695-4af299bb222a@linaro.org> <15f48b06-a6be-1295-5deb-d3594bce6699@linaro.org> From: Konrad Dybcio In-Reply-To: <15f48b06-a6be-1295-5deb-d3594bce6699@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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: X-Mailing-List: linux-kernel@vger.kernel.org On 12.04.2023 18:53, Krzysztof Kozlowski wrote: > On 12/04/2023 14:09, Konrad Dybcio wrote: >> >> >> On 12.04.2023 13:55, Krzysztof Kozlowski wrote: >>> On 12/04/2023 13:47, Konrad Dybcio wrote: >>>>> For unrelated reasons I actually have some patches for this, that switch >>>>> the /smd top-level node to a "remoteproc-like" node dedicated to the >>>>> RPM, similar to how WCNSS/ADSP/Modem/etc are represented. I need this to >>>>> add additional (optional) properties like "resets" and "iommus" for the >>>>> RPM, but it would allow adding arbitrary subnodes as well: >>>>> >>>>> https://github.com/msm8916-mainline/linux/commit/35231ac28703805daa8220f1233847c7df34589e >>>>> >>>>> I could finish those up and post them if that would help... >>>> Krzysztof, what do you think? >>> >>> I don't know what is there in MSM8916 and how it should be represented. >> Similarly to other Qualcomm SoCs, MSM8916 has a RPM (Cortex-M3) core, >> which communicates over the SMD protocol (or G-LINK on >=8996). >> >> The Qualcomm firmware loads the RPM fw blob and sets it up early in >> the boot process, but msm8916-mainline folks managed to get TF-A >> going and due to it being less.. invasive.. than the Qualcomm TZ, >> RPM needs a bit more handling to be accessible. >> >> The M3 core is wired up through the CNoC bus and we communicate >> with it through the MSG RAM and the "APCS mailbox". > > Thanks, that's actually good description. Yet I still do not know what > is exactly the problem and the question. Linking some out of tree > commits does not give me the answer, at least I cannot get that answer > form the link. > > For example what I don't understand is: why additional resources (like > resets) can be provided only in new binding, but not in the old. The old binding dictates that the rpm node (which in turn holds all "devices" that only interface with RPM, like RPMCC) is a child of smd{}, which does not make sense logically, as SMD is a protocol (e.g. we don't place devices connected over i2c under /i2c{}). The rpm node lacks a compatible, as it's representing an "smd channel", so there's no driver so there's no way to assert resets etc. On newer SoCs that still implement SMD RPM (like 8996), we do actually have a driver and a parent node which it binds to (rpm-glink). AFAIU: In both cases, the "final" drivers (rpmcc, rpmpd..) are bound after hitting a SMD/GLINK callback that tells Linux we're ready to rock. That's an issue for Stephan, as these callbacks won't ever happen if the RPM core is not initialized (and TF-A doesn't do that). Konrad > > Best regards, > Krzysztof >