From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753568Ab3LCDg2 (ORCPT ); Mon, 2 Dec 2013 22:36:28 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:44580 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753452Ab3LCDgY (ORCPT ); Mon, 2 Dec 2013 22:36:24 -0500 Date: Mon, 2 Dec 2013 19:37:24 -0800 From: Greg KH To: Bjorn Helgaas Cc: Veaceslav Falico , Neil Horman , Linus Torvalds , "linux-pci@vger.kernel.org" , Thomas Gleixner , Yinghai Lu , Knut Petersen , Ingo Molnar , Paul McKenney , =?iso-8859-1?Q?Fr=E9d=E9ric?= Weisbecker , Linux Kernel Mailing List Subject: Re: [PATCH] PCI: export MSI mode using attributes, not kobjects Message-ID: <20131203033724.GB8525@kroah.com> References: <20131129031419.GB5889@neilslaptop.think-freely.org> <20131129094137.GC3028@redhat.com> <20131129175336.GA6152@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.22 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 02, 2013 at 06:24:06PM -0700, Bjorn Helgaas wrote: > On Fri, Nov 29, 2013 at 10:53 AM, Greg KH wrote: > > On Fri, Nov 29, 2013 at 10:41:37AM +0100, Veaceslav Falico wrote: > >> On Wed, Nov 27, 2013 at 10:46:52AM -0800, Greg Kroah-Hartman wrote: > >> >From: Greg Kroah-Hartman > >> > > >> >The PCI MSI sysfs code is a mess with kobjects for things that don't > >> >really need to be kobjects. This patch creates attributes dynamically > >> >for the MSI interrupts instead of using kobjects. > >> > > >> >Note, this removes a directory from the current MSI interrupt sysfs > >> >code: > >> > > >> >old MSI kobjects: > >> >pci_device > >> > └── msi_irqs > >> > └── 40 > >> > └── mode > >> > > >> >new MSI attributes: > >> >pci_device > >> > └── msi_irqs > >> > └── 40 > >> > > >> >As there was only one file "mode" with the kobject model, the interrupt > >> >number is now a file that returns the "mode" of the interrupt (msi vs. > >> >msix). > >> > > >> >Signed-off-by: Greg Kroah-Hartman > >> > >> Works like a charm for me. > >> > >> FWIW, > >> > >> Reviewed-by: Veaceslav Falico > > > > On Thu, Nov 28, 2013 at 10:14:19PM -0500, Neil Horman wrote: > >> ACK, Testing with git-head irqbalance on F19 with this patch and it works fine. > >> > >> Thanks! > >> Acked-by: Neil Horman > > > > Great, thanks for both of you testing this. > > > > Bjorn, any objection to take this through your tree for 3.14-rc1? > > Nope, I don't object at all. We probably should update > Documentation/ABI/testing/sysfs-bus-pci at the same time, though. Now sent. thanks, greg k-h