Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Feb 2020 21:02:20 +0000 (UTC)
From:      Ruslan Bukin <br@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r357682 - head/sys/dev/xdma
Message-ID:  <202002082102.018L2KSA047052@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: br
Date: Sat Feb  8 21:02:20 2020
New Revision: 357682
URL: https://svnweb.freebsd.org/changeset/base/357682

Log:
  Fix a KASSERT since chained mbufs are accepted by the xdma bounce
  buffer loader. m_copydata() will copy entire chain to a single buffer.
  
  Sponsored by:	DARPA, AFRL

Modified:
  head/sys/dev/xdma/xdma_sg.c

Modified: head/sys/dev/xdma/xdma_sg.c
==============================================================================
--- head/sys/dev/xdma/xdma_sg.c	Sat Feb  8 20:56:38 2020	(r357681)
+++ head/sys/dev/xdma/xdma_sg.c	Sat Feb  8 21:02:20 2020	(r357682)
@@ -498,7 +498,7 @@ _xdma_load_data(xdma_channel_t *xchan, struct xdma_req
 
 	m = xr->m;
 
-	KASSERT(xchan->caps & XCHAN_CAP_NOSEG,
+	KASSERT(xchan->caps & (XCHAN_CAP_NOSEG | XCHAN_CAP_BOUNCE),
 	    ("Handling segmented data is not implemented here."));
 
 	nsegs = 1;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002082102.018L2KSA047052>