From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joerg Roedel Subject: Re: soundcard (dma) stopped working with commit 27c2127 (x86/amd-iommu: Use only per-device dma_ops) Date: Wed, 27 Mar 2013 09:28:22 +0100 Message-ID: <20130327082822.GJ30540@8bytes.org> References: <20130326094930.GD13035@8bytes.org> <20130326142336.GE13035@8bytes.org> <20130326161132.GF2727@8bytes.org> <20130326203054.GA30540@8bytes.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: 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: Andreas Degert Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org List-Id: iommu@lists.linux-foundation.org On Wed, Mar 27, 2013 at 08:14:58AM +0100, Andreas Degert wrote: > 2013/3/26 Joerg Roedel : > > Okay, thanks for trying this out. I think I know where the problem is, > > can you try the attached patch (without my debug-patch) and report me > > whether it fixes the issue? > > Yes, works. What is the value of archdata.dma_ops before the assignment > and where is it set? (my hack to set the global variable dma_ops seems to > change that value.) It is a little bit different. When the per-device dma_ops is not set the global one will be used. Your fix set the global one which hides the bug, that the per-device one was not set in this case. Joerg