[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230920-rmtfs-mem-guard-pages-v3-0-305b37219b78@quicinc.com>
Date: Wed, 20 Sep 2023 19:37:29 -0700
From: Bjorn Andersson <quic_bjorande@...cinc.com>
To: Andy Gross <agross@...nel.org>,
Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio <konrad.dybcio@...aro.org>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>
CC: <linux-arm-msm@...r.kernel.org>, <devicetree@...r.kernel.org>,
<linux-kernel@...r.kernel.org>,
Bjorn Andersson <quic_bjorande@...cinc.com>
Subject: [PATCH v3 0/3] soc: qcom: rmtfs: Support dynamic allocation
Some platforms have laxed requirements on the placement of the rmtfs
memory region, introduce support for guard pages to allow the DeviceTree
author to rely on the OS/Linux for placement of the region.
Changes since v2:
- Rewrote DeviceTree binding description, to avoid dictating the OS
behavior.
- Adjusted addr and size before memremap(), to avoid mapping the guard
pages, and unnecessarily have to adjust the base pointer.
Changes since v1:
- Drop qcom,alloc-size in favour of using reserved-memory/size
- Introduce explicit property to signal that guard pages should be
carved out from this region (rather than always do it in the dynamic
case).
- Drop the dma_alloc_coherent() based approach and just add support for
the guard pages.
- Added handling of failed reserved-memory allocation (patch 3)
---
Bjorn Andersson (3):
dt-bindings: reserved-memory: rmtfs: Allow guard pages
soc: qcom: rmtfs: Support discarding guard pages
soc: qcom: rtmfs: Handle reserved-memory allocation issues
.../devicetree/bindings/reserved-memory/qcom,rmtfs-mem.yaml | 11 +++++++++++
drivers/soc/qcom/rmtfs_mem.c | 11 ++++++++++-
2 files changed, 21 insertions(+), 1 deletion(-)
---
base-commit: 926f75c8a5ab70567eb4c2d82fbc96963313e564
change-id: 20230920-rmtfs-mem-guard-pages-d3d0ed0cb036
Best regards,
--
Bjorn Andersson <quic_bjorande@...cinc.com>
Powered by blists - more mailing lists