public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Wen Xiong <wenxiong@linux.ibm.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org, gjoyce@linux.ibm.com,
	linux-pci@vger.kernel.org, Bjorn Helgaas <helgaas@kernel.org>,
	linux-scsi@vger.kernel.org
Subject: Re: [PATCH 1/1] genirq/msi: Dynamic remove/add stroage adapter hits EEH
Date: Thu, 27 Mar 2025 16:36:32 -0500	[thread overview]
Message-ID: <8383b17f160bb75dd6ca6b47cd1a0d32@linux.ibm.com> (raw)
In-Reply-To: <874izo3x60.ffs@tglx>



> What about tearing down resources first and then issuing the reset?

This SAS adapter supports dual controller configuration. Normally we 
have two adapters in a system.
We config one of them as Primary adapter and another one as  Secondary 
adapter.
When doing remove operation on primary adapter, the Secondary adapter is 
going to be failover and config as primary by adapter firmware. During 
failover process, adapter firmware requests the secondary adapter reset, 
then sets it as primary adapter.

Secondary adapter failover triggers adapter 
reset(ipr_reset_get_unit_check_job()).

[  940.742698] ipr 0206:a0:00.0: 9070: IOA requested reset  -> FW 
requested
[  940.742733] ipr 0206:a0:00.0: Adapter to Adapter Link Failed Due to 
SAS Fabric Change [PRC: 17101C25]
[  940.742768] ipr 0206:a0:00.0: Remote IOA VPID/SN: IBM 57B4001SISIOA 
00458021

When secondary adapter doing a reset, we use the same code path as 
removing operation. We can’t free irqs for Secondary adapter since 
kernel has assigned the irqs for Secondary adapter.

Actually we discussed about "calling pci_free_irq_vectors()" before 
doing bist reset when we trying to fix in device driver.

That might cause other problems. It is also not what a user would 
expect. For example, if they disabled irq balance and manually setup irq 
binding and affinity, if we go and free and reallocate the interrupts 
across a reset, this would wipe out those changes, which would not be 
expected.

Thanks,
Wendy

  reply	other threads:[~2025-03-27 21:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-19 12:14 [PATCH 1/1] genirq/msi: Dynamic remove/add stroage adapter hits EEH wenxiong
2025-03-19 16:15 ` Thomas Gleixner
2025-03-20  2:58   ` Wen Xiong
2025-03-20  8:23     ` Thomas Gleixner
2025-03-20  8:48       ` Thomas Gleixner
2025-03-27 21:36         ` Wen Xiong [this message]
2025-03-28 11:27           ` Thomas Gleixner
2025-04-01 20:14             ` Wen Xiong
2025-04-02  8:33               ` Thomas Gleixner

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=8383b17f160bb75dd6ca6b47cd1a0d32@linux.ibm.com \
    --to=wenxiong@linux.ibm.com \
    --cc=gjoyce@linux.ibm.com \
    --cc=helgaas@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=tglx@linutronix.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox