From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Hounschell Subject: Re: BUG: SCSI aic7xxx driver and AMD IOMMU Date: Tue, 24 Mar 2015 07:57:49 -0400 Message-ID: <5511513D.6090106@compro.net> References: <54E1FFFA.1060403@compro.net> <54F60D33.8090401@compro.net> <20150323150304.GQ4441@8bytes.org> Reply-To: markh-n2QNKt385d+sTnJN9+BGXg@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20150323150304.GQ4441-zLv9SwRftAIdnm+yROfE0A@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Joerg Roedel Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, Hannes Reinecke , "linux-scsi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org >> SCSI development list" , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: iommu@lists.linux-foundation.org On 03/23/2015 11:03 AM, Joerg Roedel wrote: > Hi Mark, > > On Tue, Mar 03, 2015 at 02:36:19PM -0500, Mark Hounschell wrote: >> It looks like this problem is NOT a bug with the SCSI aic7xxx driver >> after all. I can duplicate this BUG very easily with other hardware. >> Simply removing a driver module (whether it its self, has actually >> used any of the DMA API or not) that is sitting on the same pci bus >> as a card that is actually using DMA will cause this. And that card >> that is in use and using DMA will no longer function. It "looks and >> feels" like unloading a module causes the IOMMU to improperly unmap >> valid mappings. > > You are right, I looked into the code and found the problem. I'll post a > fix for testing this week. > I'll be happy to test it. Regards Mark