From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753292Ab2LBN0z (ORCPT ); Sun, 2 Dec 2012 08:26:55 -0500 Received: from 8bytes.org ([85.214.48.195]:45477 "EHLO mail.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751176Ab2LBN0x (ORCPT ); Sun, 2 Dec 2012 08:26:53 -0500 Date: Sun, 2 Dec 2012 14:26:49 +0100 From: Joerg Roedel 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 Subject: Re: Supermicro X9SRL-F - channel enumeration error & ACPI/firmware bug question 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 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-DSPAM-Result: Whitelisted X-DSPAM-Processed: Sun Dec 2 14:26:51 2012 X-DSPAM-Confidence: 0.9975 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 50bb571b22972103218467 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.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