public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [mgross@linux.intel.com: intel-iommu-PMEN-think-oh patch.]
@ 2007-11-27 23:48 mark gross
  0 siblings, 0 replies; only message in thread
From: mark gross @ 2007-11-27 23:48 UTC (permalink / raw)
  To: lkml; +Cc: ak

I forgot to cc the list.

--mgross

----- Forwarded message from mark gross <mgross@linux.intel.com> -----

Date: Tue, 27 Nov 2007 15:46:09 -0800
From: mark gross <mgross@linux.intel.com>
To: Andrew Morton <akpm@linux-foundation.org>
Reply-To: mgross@linux.intel.com
Subject: intel-iommu-PMEN-think-oh patch.

I screwed up with my earlier patch to enable the portected memroy.  The
macro IOMMU_WAIT, exits when the condition goes true.  Without this
patch the code will hang at boot and some ( all?) vtd enabled systems.


--mgross

Signed-off-by: mark gross <mgross@linux.intel.com>


Index: linux-2.6.24-rc2+/drivers/pci/intel-iommu.c
===================================================================
--- linux-2.6.24-rc2+.orig/drivers/pci/intel-iommu.c	2007-11-27 15:29:38.000000000 -0800
+++ linux-2.6.24-rc2+/drivers/pci/intel-iommu.c	2007-11-27 15:30:06.000000000 -0800
@@ -704,7 +704,7 @@
 
 	/* wait for the protected region status bit to clear */
 	IOMMU_WAIT_OP(iommu, DMAR_PMEN_REG,
-		readl, (pmen & DMA_PMEN_PRS), pmen);
+		readl, !(pmen & DMA_PMEN_PRS), pmen);
 
 	spin_unlock_irqrestore(&iommu->register_lock, flags);
 }

----- End forwarded message -----

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-11-27 23:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-27 23:48 [mgross@linux.intel.com: intel-iommu-PMEN-think-oh patch.] mark gross

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox