Skip to content

Commit a98f918

Browse files
author
Chris von Recklinghausen
committed
Make setting of cma_pernuma tech preview
JIRA: https://issues.redhat.com/browse/RHEL-59621 Upstream status: RHEL-only CONFIG_DMA_NUMA_CMA will be set for some architectures shortly. Since this enablement is new for RHEL, mark it tech preview and taint the kernel if the feature is enabled on the kernel command line. Signed-off-by: Chris von Recklinghausen <crecklin@redhat.com>
1 parent 9c78de5 commit a98f918

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

kernel/dma/contiguous.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ static inline __maybe_unused phys_addr_t cma_early_percent_memory(void)
159159
static void __init dma_numa_cma_reserve(void)
160160
{
161161
int nid;
162+
unsigned int tech_preview = 0;
162163

163164
for_each_node(nid) {
164165
int ret;
@@ -180,6 +181,7 @@ static void __init dma_numa_cma_reserve(void)
180181
if (ret)
181182
pr_warn("%s: reservation failed: err %d, node %d", __func__,
182183
ret, nid);
184+
tech_preview += 1;
183185
}
184186

185187
if (numa_cma_size[nid]) {
@@ -191,8 +193,11 @@ static void __init dma_numa_cma_reserve(void)
191193
if (ret)
192194
pr_warn("%s: reservation failed: err %d, node %d", __func__,
193195
ret, nid);
196+
tech_preview += 1;
194197
}
195198
}
199+
if (tech_preview)
200+
mark_tech_preview("dma-numa-cma-reserve", NULL);
196201
}
197202
#else
198203
static inline void __init dma_numa_cma_reserve(void)

0 commit comments

Comments
 (0)