patches for DPDK stable branches
 help / color / mirror / Atom feed
* Re: [dpdk-stable] [dpdk-dev] [PATCH v2] contigmem: zero all pages during mmap
       [not found] <20160816224646.1982.50720.stgit@jrharri1-mac>
@ 2016-08-22 20:58 ` Thomas Monjalon
  2016-09-26  8:12   ` Yuanhan Liu
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Monjalon @ 2016-08-22 20:58 UTC (permalink / raw)
  To: Jim Harris; +Cc: dev, stable

2016-08-16 15:46, Jim Harris:
> On Linux, all huge pages are zeroed by the kernel before
> first access by the DPDK application.  But on FreeBSD,
> the contigmem driver would only zero the contiguous
> memory regions during initial driver load.
> 
> DPDK commit b78c91751 eliminated the explicit memset()
> operation for rte_zmalloc(), which was OK on Linux
> because the kernel zeroes the pages during app start,
> but this broke FreeBSD.  So this patch explicitly
> zeroes the pages before they are mmap'd, to ensure
> equivalent behavior to Linux

Added precision that the bug is seen "when restarting app".

> Fixes: b78c9175118f ("mem: do not zero out memory on zmalloc")
> 
> Reported-by: Daniel Verkamp <daniel.verkamp@intel.com>
> Tested-by: Daniel Verkamp <daniel.verkamp@intel.com>
> Acked-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
> Signed-off-by: Jim Harris <james.r.harris@intel.com>

Applied, thanks

CC stable@, please pick this important fix in 16.07.

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

* Re: [dpdk-stable] [dpdk-dev] [PATCH v2] contigmem: zero all pages during mmap
  2016-08-22 20:58 ` [dpdk-stable] [dpdk-dev] [PATCH v2] contigmem: zero all pages during mmap Thomas Monjalon
@ 2016-09-26  8:12   ` Yuanhan Liu
  0 siblings, 0 replies; 2+ messages in thread
From: Yuanhan Liu @ 2016-09-26  8:12 UTC (permalink / raw)
  To: Thomas Monjalon
  Cc: Jim Harris, stable, Mcnamara, John, Sergio Gonzalez Monroy,
	Daniel Verkamp

On Mon, Aug 22, 2016 at 10:58:46PM +0200, Thomas Monjalon wrote:
> 2016-08-16 15:46, Jim Harris:
> > On Linux, all huge pages are zeroed by the kernel before
> > first access by the DPDK application.  But on FreeBSD,
> > the contigmem driver would only zero the contiguous
> > memory regions during initial driver load.
> > 
> > DPDK commit b78c91751 eliminated the explicit memset()
> > operation for rte_zmalloc(), which was OK on Linux
> > because the kernel zeroes the pages during app start,
> > but this broke FreeBSD.  So this patch explicitly
> > zeroes the pages before they are mmap'd, to ensure
> > equivalent behavior to Linux
> 
> Added precision that the bug is seen "when restarting app".
> 
> > Fixes: b78c9175118f ("mem: do not zero out memory on zmalloc")
> > 
> > Reported-by: Daniel Verkamp <daniel.verkamp@intel.com>
> > Tested-by: Daniel Verkamp <daniel.verkamp@intel.com>
> > Acked-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
> > Signed-off-by: Jim Harris <james.r.harris@intel.com>
> 
> Applied, thanks
> 
> CC stable@, please pick this important fix in 16.07.

FYI, this patch has been applied to stable branch v16.07.

It hasn't been pushed to http://dpdk.org/browse/dpdk-stable/ yet.
It will be pushed if I get no objections in around TWO days. So 
please shutout if you have objections.

Thanks.

	--yliu

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

end of thread, other threads:[~2016-09-26  8:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20160816224646.1982.50720.stgit@jrharri1-mac>
2016-08-22 20:58 ` [dpdk-stable] [dpdk-dev] [PATCH v2] contigmem: zero all pages during mmap Thomas Monjalon
2016-09-26  8:12   ` Yuanhan Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).