From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joerg Roedel Subject: Re: Supermicro X9SRL-F - channel enumeration error & ACPI/firmware bug question Date: Sun, 2 Dec 2012 14:26:49 +0100 Message-ID: <20121202132649.GM30633@8bytes.org> References: <00a501cdcca3$c2638510$472a8f30$@lucidpixels.com> <00b501cdcca6$03f88af0$0be9a0d0$@lucidpixels.com> <50B6ADA5.2030205@gmail.com> <04b301cdcdcb$65e2f400$31a8dc00$@lucidpixels.com> <02d501cdce0f$4b0ce520$e126af60$@lucidpixels.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-ide-owner@vger.kernel.org To: Bjorn Helgaas Cc: Robert Hancock , Justin Piszcz , Bruno =?iso-8859-1?Q?Pr=E9mont?= , support@supermicro.com, linux-kernel@vger.kernel.org, Dan Williams , Jeff Garzik , linux-ide@vger.kernel.org, David Woodhouse , iommu@lists.linux-foundation.org List-Id: iommu@lists.linux-foundation.org On Thu, Nov 29, 2012 at 08:38:53PM -0700, Bjorn Helgaas wrote: > That's essentially the patch at > https://bugzilla.redhat.com/show_bug.cgi?id=757166#c16, which in my > opinion is too ugly to consider. But fortunately, I'm not the > maintainer for any IOMMU drivers. There is a quirk infrastructure for those kinds of broken devices in drivers/pci/quirks.c. Have a look into the function pci_get_dma_source(). This function is used by the IOMMU drivers to create the correct mappings. Joerg