From: Lukas Wunner <lukas@wunner.de>
To: Brett Creeley <bcreeley@amd.com>
Cc: Shannon Nelson <shannon.nelson@amd.com>,
netdev@vger.kernel.org, davem@davemloft.net, kuba@kernel.org,
edumazet@google.com, pabeni@redhat.com, brett.creeley@amd.com,
drivers@pensando.io
Subject: Re: [PATCH net-next 1/3] pds_core: add simple AER handler
Date: Wed, 6 Aug 2025 09:08:04 +0200 [thread overview]
Message-ID: <aJL_VN0pvC9slprc@wunner.de> (raw)
In-Reply-To: <aJL9IBagGNUagEbv@wunner.de>
On Wed, Aug 06, 2025 at 08:58:40AM +0200, Lukas Wunner wrote:
> My point is, you're calling pdsc_reset_prepare() but you're never calling
> pdsc_reset_done(). The former performs various teardown steps and calls
> pci_disable_device(), which disables MMIO access to the device. Since
> you're never calling pdsc_reset_done(), you're not re-enabling MMIO
> access to the device and re-initializing the device. So I'd expect
> any subsequent device access to fail.
>
> Normally you'd have a ->slot_reset() callback which would call
> pdsc_reset_done(). Then the code would look sane.
>
> Moreover, the AER driver in the PCI core performs an unconditional
> Secondary Bus Reset on Fatal Errors (channel state pci_channel_io_frozen).
> You're performing an additional reset of the PCI Function in
> pdsc_pci_error_resume(). At least for Fatal Errors, this seems
> superfluous.
I note that the pensando ionic driver uses the same weird pattern,
see commit c3a910e1c47a ("ionic: fill out pci error handlers").
So I suppose it got copy-pasted from there to the pds_core driver.
Thanks,
Lukas
next prev parent reply other threads:[~2025-08-06 7:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-16 22:29 [PATCH net-next 0/3] pds_core: AER handling Shannon Nelson
2024-02-16 22:29 ` [PATCH net-next 1/3] pds_core: add simple AER handler Shannon Nelson
2025-08-05 15:01 ` Lukas Wunner
2025-08-05 22:10 ` Brett Creeley
2025-08-05 22:28 ` Shannon Nelson
2025-08-06 6:58 ` Lukas Wunner
2025-08-06 7:08 ` Lukas Wunner [this message]
2024-02-16 22:29 ` [PATCH net-next 2/3] pds_core: delete VF dev on reset Shannon Nelson
2024-02-16 22:29 ` [PATCH net-next 3/3] pds_core: use pci_reset_function for health reset Shannon Nelson
2024-02-19 10:40 ` [PATCH net-next 0/3] pds_core: AER handling patchwork-bot+netdevbpf
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=aJL_VN0pvC9slprc@wunner.de \
--to=lukas@wunner.de \
--cc=bcreeley@amd.com \
--cc=brett.creeley@amd.com \
--cc=davem@davemloft.net \
--cc=drivers@pensando.io \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=shannon.nelson@amd.com \
/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.