Skip to contentSkip to conversation

v6.14: fix up to oob page pool

Dovetail Philippe Gerum 2 participants 5 messages Mar 3, 2025 – Mar 4, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Florian,

For some reason, the hunk below disappeared from the Dovetail v6.13 code when rebasing on v6.14-rc, this causes a crash at boot when CONFIG_PAGE_POOL_OOB is turned on. This fix up should be merged to:

e4ecbcc40e7e6 net: dovetail: add infrastructure for oob device I/O

net/core/page_pool.c +1 -1
index 7860c3a88c5d2..07ad13dd5ed2e 100644
@@ -563,7 +563,7 @@ static noinline netmem_ref __page_pool_alloc_pages_slow(struct page_pool *pool,
 		return pool->alloc.cache[--pool->alloc.count];
 
 	/* Mark empty alloc.cache slots "empty" for alloc_pages_bulk */
-	memset(&pool->alloc.cache, 0, sizeof(void *) * bulk);
+	memset(pool->alloc.cache, 0, sizeof(void *) * bulk);
 
 	nr_pages = alloc_pages_bulk_node(gfp, pool->p.nid, bulk,
 					 (struct page **)pool->alloc.cache);
Signature · 1 line
Philippe.
#1 lore raw
Quoted 14 lines · Philippe Gerum

Hi Florian,

For some reason, the hunk below disappeared from the Dovetail v6.13 code when rebasing on v6.14-rc, this causes a crash at boot when CONFIG_PAGE_POOL_OOB is turned on. This fix up should be merged to:

e4ecbcc40e7e6 net: dovetail: add infrastructure for oob device I/O

net/core/page_pool.c +0 -0
index 7860c3a88c5d2..07ad13dd5ed2e 100644

net/core/page_pool.c static noinline netmem_ref __page_pool_alloc_pages_slow(struct page_pool *pool, · line 569

Quoted 8 lines
net/core/page_pool.c +1 -1
@@ -563,7 +563,7 @@ static noinline netmem_ref __page_pool_alloc_pages_slow(struct page_pool *pool,
 		return pool->alloc.cache[--pool->alloc.count];
 
 	/* Mark empty alloc.cache slots "empty" for alloc_pages_bulk */
-	memset(&pool->alloc.cache, 0, sizeof(void *) * bulk);
+	memset(pool->alloc.cache, 0, sizeof(void *) * bulk);
 
 	nr_pages = alloc_pages_bulk_node(gfp, pool->p.nid, bulk,
 					 (struct page **)pool->alloc.cache);

I will take care of that. I'm currently rebasing on top of 6.14-rc5.

#2 lore raw
Quoted 20 lines · Florian Bezdeka
Quoted 19 lines · Philippe Gerum

Hi Florian,

For some reason, the hunk below disappeared from the Dovetail v6.13 code when rebasing on v6.14-rc, this causes a crash at boot when CONFIG_PAGE_POOL_OOB is turned on. This fix up should be merged to:

e4ecbcc40e7e6 net: dovetail: add infrastructure for oob device I/O

net/core/page_pool.c +1 -1
index 7860c3a88c5d2..07ad13dd5ed2e 100644
@@ -563,7 +563,7 @@ static noinline netmem_ref __page_pool_alloc_pages_slow(struct page_pool *pool,
 		return pool->alloc.cache[--pool->alloc.count];
 
 	/* Mark empty alloc.cache slots "empty" for alloc_pages_bulk */
-	memset(&pool->alloc.cache, 0, sizeof(void *) * bulk);
+	memset(pool->alloc.cache, 0, sizeof(void *) * bulk);
 
Quoted 5 lines

net/core/page_pool.c static noinline netmem_ref __page_pool_alloc_pages_slow(struct page_pool *pool, · line 569

Quoted 3 lines
net/core/page_pool.c +0 -0
 	nr_pages = alloc_pages_bulk_node(gfp, pool->p.nid, bulk,
 					 (struct page **)pool->alloc.cache);

I will take care of that. I'm currently rebasing on top of 6.14-rc5.

Ok. Meanwhile, I'm preparing a patch to fix the hard irq context detection (inverted test of IRQS_DEFERRED). We need to have that one as a separate patch for backporting.

Signature · 1 line
Philippe.
#3 lore raw
Quoted 28 lines · Philippe Gerum
Quoted 20 lines · Florian Bezdeka
Quoted 19 lines · Philippe Gerum

Hi Florian,

For some reason, the hunk below disappeared from the Dovetail v6.13 code when rebasing on v6.14-rc, this causes a crash at boot when CONFIG_PAGE_POOL_OOB is turned on. This fix up should be merged to:

e4ecbcc40e7e6 net: dovetail: add infrastructure for oob device I/O

net/core/page_pool.c +1 -1
index 7860c3a88c5d2..07ad13dd5ed2e 100644
@@ -563,7 +563,7 @@ static noinline netmem_ref __page_pool_alloc_pages_slow(struct page_pool *pool,
 		return pool->alloc.cache[--pool->alloc.count];
 
 	/* Mark empty alloc.cache slots "empty" for alloc_pages_bulk */
-	memset(&pool->alloc.cache, 0, sizeof(void *) * bulk);
+	memset(pool->alloc.cache, 0, sizeof(void *) * bulk);
 
Quoted 5 lines

net/core/page_pool.c static noinline netmem_ref __page_pool_alloc_pages_slow(struct page_pool *pool, · line 569

Quoted 3 lines
net/core/page_pool.c +0 -0
 	nr_pages = alloc_pages_bulk_node(gfp, pool->p.nid, bulk,
 					 (struct page **)pool->alloc.cache);

I will take care of that. I'm currently rebasing on top of 6.14-rc5.

Quoted 4 lines

Ok. Meanwhile, I'm preparing a patch to fix the hard irq context detection (inverted test of IRQS_DEFERRED). We need to have that one as a separate patch for backporting.

wip/v6.14-dovetail-rebase is now up to date. Tests have been triggered.

Short changelog:
- rebased on top of 6.14-rc5
- Fixed a missing Signed-off for the arm64 fpsimd patch
- Fixed the issue above (net/core/page_pool.c)
- Squashed the IRQS_DEFERRED fix into the introducing commit

Best regards,
Florian

#4 lore raw
Quoted 34 lines · Florian Bezdeka
Quoted 28 lines · Philippe Gerum
Quoted 20 lines · Florian Bezdeka
Quoted 19 lines · Philippe Gerum

Hi Florian,

For some reason, the hunk below disappeared from the Dovetail v6.13 code when rebasing on v6.14-rc, this causes a crash at boot when CONFIG_PAGE_POOL_OOB is turned on. This fix up should be merged to:

e4ecbcc40e7e6 net: dovetail: add infrastructure for oob device I/O

net/core/page_pool.c +1 -1
index 7860c3a88c5d2..07ad13dd5ed2e 100644
@@ -563,7 +563,7 @@ static noinline netmem_ref __page_pool_alloc_pages_slow(struct page_pool *pool,
 		return pool->alloc.cache[--pool->alloc.count];
 
 	/* Mark empty alloc.cache slots "empty" for alloc_pages_bulk */
-	memset(&pool->alloc.cache, 0, sizeof(void *) * bulk);
+	memset(pool->alloc.cache, 0, sizeof(void *) * bulk);
 
Quoted 5 lines

net/core/page_pool.c static noinline netmem_ref __page_pool_alloc_pages_slow(struct page_pool *pool, · line 569

Quoted 3 lines
net/core/page_pool.c +0 -0
 	nr_pages = alloc_pages_bulk_node(gfp, pool->p.nid, bulk,
 					 (struct page **)pool->alloc.cache);

I will take care of that. I'm currently rebasing on top of 6.14-rc5.

Quoted 4 lines

Ok. Meanwhile, I'm preparing a patch to fix the hard irq context detection (inverted test of IRQS_DEFERRED). We need to have that one as a separate patch for backporting.

Quoted 8 lines

wip/v6.14-dovetail-rebase is now up to date. Tests have been triggered.

Short changelog:
- rebased on top of 6.14-rc5
- Fixed a missing Signed-off for the arm64 fpsimd patch
- Fixed the issue above (net/core/page_pool.c)
- Squashed the IRQS_DEFERRED fix into the introducing commit

An overnight stress test went ok here with x4/evl on top of v6.14-rc5-dovetail for imx8mp, kvm/arm64, imx6qp, odroid c4 and xu4q. I can confirm that the oob support for the fpsimd unit is stable under stress on all arm64 platforms tested so far. Nice work, thanks.

Signature · 1 line
Philippe.