Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Jun 2015 08:23:34 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r284019 - stable/10/sys/x86/iommu
Message-ID:  <201506050823.t558NYMA057231@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Fri Jun  5 08:23:33 2015
New Revision: 284019
URL: https://svnweb.freebsd.org/changeset/base/284019

Log:
  MFC r283692:
  Explicitely enable queued invalidation completion interrupt.

Modified:
  stable/10/sys/x86/iommu/intel_qi.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/x86/iommu/intel_qi.c
==============================================================================
--- stable/10/sys/x86/iommu/intel_qi.c	Fri Jun  5 08:10:08 2015	(r284018)
+++ stable/10/sys/x86/iommu/intel_qi.c	Fri Jun  5 08:23:33 2015	(r284019)
@@ -356,6 +356,7 @@ dmar_init_qi(struct dmar_unit *unit)
 		ics = DMAR_ICS_IWC;
 		dmar_write4(unit, DMAR_ICS_REG, ics);
 	}
+	dmar_enable_qi_intr(unit);
 	DMAR_UNLOCK(unit);
 
 	return (0);
@@ -379,6 +380,7 @@ dmar_fini_qi(struct dmar_unit *unit)
 	dmar_qi_advance_tail(unit);
 	dmar_qi_wait_for_seq(unit, &gseq);
 	/* only after the quisce, disable queue */
+	dmar_disable_qi_intr(unit);
 	dmar_disable_qi(unit);
 	KASSERT(unit->inv_seq_waiters == 0,
 	    ("dmar%d: waiters on disabled queue", unit->unit));



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