From: neil.armstrong@linaro.org
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konrad.dybcio@somainline.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Rob Herring <robh+dt@kernel.org>, Andy Gross <agross@kernel.org>,
Frank Rowand <frowand.list@gmail.com>
Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
devicetree@vger.kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: reserved-memory: document Qualcomm MPSS DSM memory
Date: Fri, 18 Nov 2022 14:30:23 +0100 [thread overview]
Message-ID: <ad9d2e4f-1d60-15e7-dc2d-e7e32b0ec855@linaro.org> (raw)
In-Reply-To: <dfec6a0b-86c6-fb61-51f6-d1e400a6f5ef@linaro.org>
On 18/11/2022 11:45, Krzysztof Kozlowski wrote:
> On 17/11/2022 10:47, Neil Armstrong wrote:
>>>
>>>> +
>>>> +properties:
>>>> + compatible:
>>>> + const: qcom,mpss-dsm-mem
>>>
>>> Why do we need dedicated binding and compatible for it instead of using
>>> memory-region phandle in the device?
>>
>> So like rmtfs, this memory zone is shared between APPS and the MPSS subsystem.
>>
>> Like rmtfs it makes no sense to link it to the MPSS PAS, since it's only a launcher,
>> it doesn't represent the MPSS subsystem.
>
> This also does not represent a device. Memory region is not a device, so
> this is as well not correct representation of hardware.
I never used the term device so far, but a shared memory region with a platform
specific process to share the region between subsystems.
>
>>
>> In the PAS startup process, the resources are released from APPS once the MPSS subsystem
>> is running, which is not the case with the MPSS DSM where it must be shared during the whole
>> lifetime of the system.
>
> I don't think that PAS releases the region. I checked the
> qcom_q6v5_pas.c and there is only ioremap. The device stays loaded thus
> the memory stays mapped.
Yes PAS does release the firmware region when the firmware is started,
qcom_scm_pas_metadata_release() does that.
>
> We have already three of such "memory region devices" and we keep
> growing it. It's not scalable.
If we want to properly describe this, we must then represent the MPSS subsystem
and associate this memory region.
>
> Best regards,
> Krzysztof
Thanks,
Neil
>
next prev parent reply other threads:[~2022-11-18 13:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-16 10:16 [PATCH 0/2] soc: qcom: Add support for Qualcomm Modem Processing SubSystem DSM memory Neil Armstrong
2022-11-16 10:16 ` [PATCH 1/2] dt-bindings: reserved-memory: document Qualcomm MPSS " Neil Armstrong
2022-11-16 12:17 ` Krzysztof Kozlowski
2022-11-17 9:47 ` Neil Armstrong
2022-11-18 10:45 ` Krzysztof Kozlowski
2022-11-18 13:30 ` neil.armstrong [this message]
2022-11-18 14:03 ` Krzysztof Kozlowski
2022-11-23 10:19 ` neil.armstrong
2022-11-24 13:57 ` Krzysztof Kozlowski
2022-11-29 8:27 ` neil.armstrong
2022-11-16 10:16 ` [PATCH 2/2] soc: qcom: add MDSS DSM memory driver Neil Armstrong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ad9d2e4f-1d60-15e7-dc2d-e7e32b0ec855@linaro.org \
--to=neil.armstrong@linaro.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=frowand.list@gmail.com \
--cc=konrad.dybcio@somainline.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).