public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] remoteproc: qcom: Use of_reserved_mem_lookup()
@ 2023-06-14 16:31 Stephan Gerhold
  2023-06-14 16:31 ` [PATCH v2 1/2] remoteproc: qcom: Handle reserved-memory allocation issues Stephan Gerhold
  2023-06-14 16:31 ` [PATCH v2 2/2] remoteproc: qcom: Use of_reserved_mem_lookup() Stephan Gerhold
  0 siblings, 2 replies; 6+ messages in thread
From: Stephan Gerhold @ 2023-06-14 16:31 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: Andy Gross, Konrad Dybcio, Mathieu Poirier, linux-arm-msm,
	linux-remoteproc, linux-kernel, Stephan Gerhold

Use of_reserved_mem_lookup() instead of of_address_to_resource() inside
the Qualcomm remoteproc drivers. This has the advantage that it ensures
that the referenced memory region was really reserved and is not e.g.
status = "disabled".

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
---
Changes in v2:
- Add missing check for rmem (Bjorn)
- Add checks for rmem->size to ensure dynamic reserved memory was 
  really allocated
- Link to v1: https://lore.kernel.org/r/20230529-rproc-of-rmem-v1-1-5b1e38880aba@gerhold.net

---
Stephan Gerhold (2):
      remoteproc: qcom: Handle reserved-memory allocation issues
      remoteproc: qcom: Use of_reserved_mem_lookup()

 drivers/remoteproc/qcom_q6v5_adsp.c | 24 ++++++++---------
 drivers/remoteproc/qcom_q6v5_mss.c  | 35 +++++++++++++++----------
 drivers/remoteproc/qcom_q6v5_pas.c  | 51 ++++++++++++++++++++-----------------
 drivers/remoteproc/qcom_q6v5_wcss.c |  2 +-
 drivers/remoteproc/qcom_wcnss.c     | 24 ++++++++---------
 5 files changed, 71 insertions(+), 65 deletions(-)
---
base-commit: 1ca04f21b204e99dd704146231adfb79ea2fb366
change-id: 20230529-rproc-of-rmem-7d931f61f64e

Best regards,
-- 
Stephan Gerhold <stephan@gerhold.net>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-07-10 20:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-14 16:31 [PATCH v2 0/2] remoteproc: qcom: Use of_reserved_mem_lookup() Stephan Gerhold
2023-06-14 16:31 ` [PATCH v2 1/2] remoteproc: qcom: Handle reserved-memory allocation issues Stephan Gerhold
2023-06-15 10:44   ` Caleb Connolly
2023-06-15 14:51     ` Stephan Gerhold
2023-07-10 20:37       ` Stephan Gerhold
2023-06-14 16:31 ` [PATCH v2 2/2] remoteproc: qcom: Use of_reserved_mem_lookup() Stephan Gerhold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox