Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752416AbdFOK5G (ORCPT ); Thu, 15 Jun 2017 06:57:06 -0400 Received: from gate.crashing.org ([63.228.1.57]:32908 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751623AbdFOK5E (ORCPT ); Thu, 15 Jun 2017 06:57:04 -0400 Message-ID: <1497524175.2897.75.camel@kernel.crashing.org> Subject: Re: [PATCH kernel 2/3] pci-ioda: Set PCI_BUS_FLAGS_MSI_REMAP for IODA host bridge From: Benjamin Herrenschmidt To: Michael Ellerman , Alexey Kardashevskiy , linuxppc-dev@lists.ozlabs.org Cc: kvm@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Gavin Shan , Yongji Xie , Alex Williamson , Paul Mackerras , Yongji Xie , David Gibson Date: Thu, 15 Jun 2017 20:56:15 +1000 In-Reply-To: <877f0dppql.fsf@concordia.ellerman.id.au> References: <20170615054845.8428-1-aik@ozlabs.ru> <20170615054845.8428-3-aik@ozlabs.ru> <877f0dppql.fsf@concordia.ellerman.id.au> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6 (3.22.6-2.fc25) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 882 Lines: 28 On Thu, 2017-06-15 at 19:25 +1000, Michael Ellerman wrote: > Alexey Kardashevskiy writes: > > > From: Yongji Xie > > > > Any IODA host bridge have the capability of IRQ remapping. > > So we set PCI_BUS_FLAGS_MSI_REMAP when this kind of host birdge > > is detected. > > Where's the code that actually enforces this property? > > It would be good to have a comment in pnv_pci_ioda_root_bridge_prepare() > (probably), pointing to that code, so that we can remember the > relationship between the two. Actually it's not so much remapping as: - The bridge can enforce that the interrupt is allowed for a given partition - Because the interrupts are handled via the hypervisor, the latter can do the remapping. But the effect is the same, so yes we want the flag. On P9 with XIVE exploitation we also have HW remapping on top. Cheers, Ben.