]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
x86, dmar: check if it's initialized before disable queue invalidation
authorHan, Weidong <weidong.han@intel.com>
Sat, 4 Apr 2009 09:21:26 +0000 (17:21 +0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 4 Apr 2009 09:41:32 +0000 (10:41 +0100)
commit34aaaa948e3c9dd65b27fa499c5c9e8d8f1227cf
treec6834b2bdc46032308f7bcb5cffa7205817841ea
parent161fde083f3403e7aa178dc944bf43c339e18491
x86, dmar: check if it's initialized before disable queue invalidation

If queue invalidation is disabled after it's already initialized,
dmar_enable_qi won't re-enable it due to iommu->qi is allocated.
It may result in system hang when use queue invalidation. Add this
check to avoid this case.

Signed-off-by: Weidong Han <weidong.han@intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/pci/intr_remapping.c