From: Corey Minyard <minyard@acm.org>
To: Dave Jones <dsj@fb.com>,
openipmi-developer@lists.sourceforge.net,
linux-kernel@vger.kernel.org, kernel-team@fb.com
Subject: Re: ipmi: Remove unnecessary pci_disable_device.
Date: Mon, 23 Nov 2015 12:37:54 -0600 [thread overview]
Message-ID: <56535D02.8050408@acm.org> (raw)
In-Reply-To: <20151120002423.GA6392@fb.com>
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:
> [<ffffffff818ce54c>] dump_stack+0x45/0x57
> [<ffffffff810525f7>] warn_slowpath_common+0x97/0xe0
> [<ffffffff810526f6>] warn_slowpath_fmt+0x46/0x50
> [<ffffffff81497ca1>] pci_disable_device+0xb1/0xc0
> [<ffffffffa00851a5>] ipmi_pci_remove+0x25/0x30 [ipmi_si]
> [<ffffffff8149a696>] pci_device_remove+0x46/0xc0
> [<ffffffff8156801f>] __device_release_driver+0x7f/0xf0
> [<ffffffff81568978>] driver_detach+0xb8/0xc0
> [<ffffffff81567e50>] bus_remove_driver+0x50/0xa0
> [<ffffffff8156914e>] driver_unregister+0x2e/0x60
> [<ffffffff8149a3e5>] pci_unregister_driver+0x25/0x90
> [<ffffffffa0085804>] cleanup_ipmi_si+0xd4/0xf0 [ipmi_si]
> [<ffffffff810c727a>] SyS_delete_module+0x12a/0x200
> [<ffffffff818d4d72>] system_call_fastpath+0x12/0x17
>
> Signed-off-by: Dave Jones <dsj@fb.com>
>
> 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[] = {
prev parent reply other threads:[~2015-11-23 18:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-20 0:24 ipmi: Remove unnecessary pci_disable_device Dave Jones
2015-11-23 18:37 ` Corey Minyard [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56535D02.8050408@acm.org \
--to=minyard@acm.org \
--cc=dsj@fb.com \
--cc=kernel-team@fb.com \
--cc=linux-kernel@vger.kernel.org \
--cc=openipmi-developer@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.