From: "Jan Beulich" Subject: Re: [PATCH 1/1 V2] x86/AMD: Fix setup ssss:bb:dd:f for d0 failed Date: Thu, 05 Sep 2013 08:03:10 +0100 Message-ID: <522848CE02000078000F0A5B@nat28.tlf.novell.com> References: <1377909673-4778-1-git-send-email-suravee.suthikulpanit@amd.com> <522710CF02000078000F0406@nat28.tlf.novell.com> <522757CC.8070005@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <522757CC.8070005@amd.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Suravee Suthikulanit Cc: xiantao.zhang@intel.com, stefan.bader@canonical.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 04.09.13 at 17:54, Suravee Suthikulanit wrote: > On 9/4/2013 3:51 AM, Jan Beulich wrote: >>>>> On 31.08.13 at 02:41, wrote: >>> --- a/xen/drivers/passthrough/vtd/intremap.c >>> +++ b/xen/drivers/passthrough/vtd/intremap.c >>> @@ -453,6 +453,7 @@ static void set_msi_source_id(struct pci_dev *pdev, >>> struct iremap_entry *ire) >>> break; >>> >>> case DEV_TYPE_PCI: >>> + case DEV_TYPE_PCI_HOST_BRIDGE: >>> case DEV_TYPE_LEGACY_PCI_BRIDGE: >>> case DEV_TYPE_PCI2PCIe_BRIDGE: >>> ret = find_upstream_bridge(seg, &bus, &devfn, &secbus); >> There shouldn't be an upstream bridge to a host bridge, and >> hence adding the case here (rather than above) is at least >> pointlessly running more complex code (all under the unlikely but >> not impossible assumption that a host bridge would have MSI set >> up for it in the first place). > I put it here because the original code (before introducing the > DEV_TYPE_PCI_HOST_BRIDGE) would have classified the host bridge device > as "DEV_TYPE_PCI". Therefore, I was trying to keep the logic the same > for Intel. However, I agree that there should not be upstream bridge > from host bridge. Let's wait for Xiantao's input (in the hope that he'll respond soon). Jan