Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755979AbaLHQEU (ORCPT ); Mon, 8 Dec 2014 11:04:20 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:20673 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755489AbaLHQER (ORCPT ); Mon, 8 Dec 2014 11:04:17 -0500 Date: Mon, 8 Dec 2014 11:04:02 -0500 From: Konrad Rzeszutek Wilk To: David Vrabel Cc: Alex Williamson , Sander Eikelenboom , bhelgaas@google.com, linux-pci@vger.kernel.org, Boris Ostrovsky , linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org Subject: Re: [Xen-devel] [PATCH v5 9/9] xen/pciback: Implement PCI reset slot or bus with 'do_flr' SysFS attribute Message-ID: <20141208160402.GF7745@laptop.dumpdata.com> References: <5480528F.8010106@citrix.com> <1107877503.20141204141054@eikelenboom.it> <548064EA.8090905@citrix.com> <308719815.20141204150909@eikelenboom.it> <5480702F.2060004@citrix.com> <1578910783.20141204155025@eikelenboom.it> <1417707546.15750.100.camel@bling.home> <54818929.5000008@citrix.com> <20141205172250.GA2895@laptop.dumpdata.com> <54857F91.3020002@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54857F91.3020002@citrix.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Source-IP: ucsinet21.oracle.com [156.151.31.93] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 08, 2014 at 10:38:09AM +0000, David Vrabel wrote: > On 05/12/14 17:22, Konrad Rzeszutek Wilk wrote: > > On Fri, Dec 05, 2014 at 10:30:01AM +0000, David Vrabel wrote: > >> On 04/12/14 15:39, Alex Williamson wrote: > >>> > >>> I don't know what workaround you're talking about. As devices are > >>> released from the user, vfio-pci attempts to reset them. If > >>> pci_reset_function() returns success we mark the device clean, otherwise > >>> it gets marked dirty. Each time a device is released, if there are > >>> dirty devices we test whether we can try a bus/slot reset to clean them. > >>> In the case of assigning a GPU this typically means that the GPU or > >>> audio function come through first, there's no reset mechanism so it gets > >>> marked dirty, the next device comes through and we manage to try a bus > >>> reset. vfio-pci does not have any device specific resets, all > >>> functionality is added to the PCI-core, thank-you-very-much. I even > >>> posted a generic PCI quirk patch recently that marks AMD VGA PM reset as > >>> bad so that pci_reset_function() won't claim that worked. All VGA > >>> access quirks are done in QEMU, the kernel doesn't have any business in > >>> remapping config space over MMIO regions or trapping other config space > >>> backdoors. > >> > >> Thanks for the info Alex, I hadn't got around to actually looking and > >> the vfio-pci code and was just going to what Sander said. > >> > >> We probably do need to have a more in depth look at now PCI devices and > >> handled by both the toolstack and pciback but in the short term I would > >> like a simple solution that does not extend the ABI. > > > > Could you enumerate the 'simple solution' then please? I am having > > a frustrating time figuring out what it is that you are proposing. > > I've posted it repeatedly. Are you referring to http://lists.xenproject.org/archives/html/xen-devel/2014-07/msg01270.html which is still waiting for your feedback? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/