[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240222-gunyah-v17-19-1e9da6763d38@quicinc.com>
Date: Thu, 22 Feb 2024 15:16:42 -0800
From: Elliot Berman <quic_eberman@...cinc.com>
To: Alex Elder <elder@...aro.org>,
Srinivas Kandagatla
<srinivas.kandagatla@...aro.org>,
Murali Nalajal <quic_mnalajal@...cinc.com>,
Trilok Soni <quic_tsoni@...cinc.com>,
Srivatsa Vaddagiri
<quic_svaddagi@...cinc.com>,
Carl van Schaik <quic_cvanscha@...cinc.com>,
Philip Derrin <quic_pderrin@...cinc.com>,
Prakruthi Deepak Heragu
<quic_pheragu@...cinc.com>,
Jonathan Corbet <corbet@....net>, Rob Herring
<robh+dt@...nel.org>,
Krzysztof Kozlowski
<krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>,
Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will@...nel.org>,
Konrad Dybcio <konrad.dybcio@...aro.org>,
Bjorn Andersson
<andersson@...nel.org>,
Dmitry Baryshkov <dmitry.baryshkov@...aro.org>,
"Fuad
Tabba" <tabba@...gle.com>,
Sean Christopherson <seanjc@...gle.com>,
"Andrew
Morton" <akpm@...ux-foundation.org>
CC: <linux-arm-msm@...r.kernel.org>, <linux-doc@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <devicetree@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>, <linux-mm@...ck.org>,
Elliot Berman
<quic_eberman@...cinc.com>
Subject: [PATCH v17 19/35] arch/mm: Export direct {un,}map functions
Firmware and hypervisor drivers can donate system heap memory to their
respective firmware/hypervisor entities. Those drivers should unmap the
pages from the kernel's logical map before doing so.
Export can_set_direct_map, set_direct_map_invalid_noflush, and
set_direct_map_default_noflush.
Signed-off-by: Elliot Berman <quic_eberman@...cinc.com>
---
arch/arm64/mm/pageattr.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm64/mm/pageattr.c b/arch/arm64/mm/pageattr.c
index 924843f1f661b..a9bd84588c98a 100644
--- a/arch/arm64/mm/pageattr.c
+++ b/arch/arm64/mm/pageattr.c
@@ -32,6 +32,7 @@ bool can_set_direct_map(void)
return rodata_full || debug_pagealloc_enabled() ||
arm64_kfence_can_set_direct_map();
}
+EXPORT_SYMBOL_GPL(can_set_direct_map);
static int change_page_range(pte_t *ptep, unsigned long addr, void *data)
{
@@ -176,6 +177,7 @@ int set_direct_map_invalid_noflush(struct page *page)
(unsigned long)page_address(page),
PAGE_SIZE, change_page_range, &data);
}
+EXPORT_SYMBOL_GPL(set_direct_map_invalid_noflush);
int set_direct_map_default_noflush(struct page *page)
{
@@ -191,6 +193,7 @@ int set_direct_map_default_noflush(struct page *page)
(unsigned long)page_address(page),
PAGE_SIZE, change_page_range, &data);
}
+EXPORT_SYMBOL_GPL(set_direct_map_default_noflush);
#ifdef CONFIG_DEBUG_PAGEALLOC
void __kernel_map_pages(struct page *page, int numpages, int enable)
--
2.34.1
Powered by blists - more mailing lists