Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jul 2016 20:52:18 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r303510 - head/sys/dev/ntb/ntb_hw
Message-ID:  <201607292052.u6TKqIw7065038@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Fri Jul 29 20:52:18 2016
New Revision: 303510
URL: https://svnweb.freebsd.org/changeset/base/303510

Log:
  Clear scratchpad after MSIX negotiation to not leak garbage.

Modified:
  head/sys/dev/ntb/ntb_hw/ntb_hw.c

Modified: head/sys/dev/ntb/ntb_hw/ntb_hw.c
==============================================================================
--- head/sys/dev/ntb/ntb_hw/ntb_hw.c	Fri Jul 29 20:51:52 2016	(r303509)
+++ head/sys/dev/ntb/ntb_hw/ntb_hw.c	Fri Jul 29 20:52:18 2016	(r303510)
@@ -2649,6 +2649,7 @@ msix_done:
 	if (val != NTB_MSIX_RECEIVED)
 		goto reschedule;
 
+	intel_ntb_spad_clear(ntb->device);
 	ntb->peer_msix_good = true;
 	/* Give peer time to see our NTB_MSIX_RECEIVED. */
 	goto reschedule;



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