From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932086AbbKWSh6 (ORCPT ); Mon, 23 Nov 2015 13:37:58 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:33612 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754244AbbKWSh4 (ORCPT ); Mon, 23 Nov 2015 13:37:56 -0500 Message-ID: <56535D02.8050408@acm.org> Date: Mon, 23 Nov 2015 12:37:54 -0600 From: Corey Minyard Reply-To: minyard@acm.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Dave Jones , openipmi-developer@lists.sourceforge.net, linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: ipmi: Remove unnecessary pci_disable_device. References: <20151120002423.GA6392@fb.com> In-Reply-To: <20151120002423.GA6392@fb.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks, queued for next release. -corey On 11/19/2015 06:24 PM, Dave Jones wrote: > We call cleanup_one_si from ipmi_pci_remove, which calls ->addr_source_cleanup, > which gets set to point to ipmi_pci_cleanup, which does a pci_disable_device. > > On return from this, we do a second pci_disable_device, which > results in the trace below. > > ipmi_si 0000:00:16.0: disabling already-disabled device > Call Trace: > [] dump_stack+0x45/0x57 > [] warn_slowpath_common+0x97/0xe0 > [] warn_slowpath_fmt+0x46/0x50 > [] pci_disable_device+0xb1/0xc0 > [] ipmi_pci_remove+0x25/0x30 [ipmi_si] > [] pci_device_remove+0x46/0xc0 > [] __device_release_driver+0x7f/0xf0 > [] driver_detach+0xb8/0xc0 > [] bus_remove_driver+0x50/0xa0 > [] driver_unregister+0x2e/0x60 > [] pci_unregister_driver+0x25/0x90 > [] cleanup_ipmi_si+0xd4/0xf0 [ipmi_si] > [] SyS_delete_module+0x12a/0x200 > [] system_call_fastpath+0x12/0x17 > > Signed-off-by: Dave Jones > > diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c > index 654f6f36a071..938d1f9c55f8 100644 > --- a/drivers/char/ipmi/ipmi_si_intf.c > +++ b/drivers/char/ipmi/ipmi_si_intf.c > @@ -2532,7 +2532,6 @@ static void ipmi_pci_remove(struct pci_dev *pdev) > { > struct smi_info *info = pci_get_drvdata(pdev); > cleanup_one_si(info); > - pci_disable_device(pdev); > } > > static const struct pci_device_id ipmi_pci_devices[] = {