From: Hannes Reinecke <hare@suse.de>
To: Viswas G <Viswas.G@pmcs.com>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Cc: "xjtuwjp@gmail.com" <xjtuwjp@gmail.com>,
"JBottomley@parallels.com" <JBottomley@parallels.com>,
Tomas Henzl <thenzl@redhat.com>,
Suresh Thiagarajan <Suresh.Thiagarajan@pmcs.com>
Subject: Re: [PATCH 5/8] pm80xx: Remove unnecessary phy disconnect while link error
Date: Wed, 29 Jul 2015 11:21:57 +0200 [thread overview]
Message-ID: <55B89B35.8010008@suse.de> (raw)
In-Reply-To: <DB8BCD22E410A84DA91083F3479A3DB3C6274FC2@BBYEXM02.pmc-sierra.internal>
On 07/29/2015 11:20 AM, Viswas G wrote:
>
> On Wed, Jul 29, 2015 at 2:26 PM, Hannes Reinecke <hare@suse.de> wrote:
>> On 07/29/2015 08:27 AM, Viswas.G@pmcs.com wrote:
>>> From: Viswas G <Viswas.G@pmcs.com>
>>>
>>> If the link error happens, we don't need to disconnect the phy,
>>> which will remove the drive. Instead acknowledging the controller
>>> and logging the error will be enough.
>>>
>>> Signed-off-by: Viswas G <Viswas.G@pmcs.com>
>>> Signed-off-by: Suresh Thiagarajan <Suresh.Thiagarajan@pmcs.com>
>>> ---
>>> drivers/scsi/pm8001/pm80xx_hwi.c | 12 ------------
>>> 1 files changed, 0 insertions(+), 12 deletions(-)
>>>
>>> diff --git a/drivers/scsi/pm8001/pm80xx_hwi.c b/drivers/scsi/pm8001/pm80xx_hwi.c
>>> index dced9f7..3d8b4ae 100644
>>> --- a/drivers/scsi/pm8001/pm80xx_hwi.c
>>> +++ b/drivers/scsi/pm8001/pm80xx_hwi.c
>>> @@ -3176,9 +3176,6 @@ static int mpi_hw_event(struct pm8001_hba_info *pm8001_ha, void *piomb)
>>> pm8001_printk("HW_EVENT_LINK_ERR_INVALID_DWORD\n"));
>>> pm80xx_hw_event_ack_req(pm8001_ha, 0,
>>> HW_EVENT_LINK_ERR_INVALID_DWORD, port_id, phy_id, 0, 0);
>>> - sas_phy_disconnected(sas_phy);
>>> - phy->phy_attached = 0;
>>> - sas_ha->notify_port_event(sas_phy, PORTE_LINK_RESET_ERR);
>>> break;
>>> case HW_EVENT_LINK_ERR_DISPARITY_ERROR:
>>> PM8001_MSG_DBG(pm8001_ha,
>>> @@ -3186,9 +3183,6 @@ static int mpi_hw_event(struct pm8001_hba_info *pm8001_ha, void *piomb)
>>> pm80xx_hw_event_ack_req(pm8001_ha, 0,
>>> HW_EVENT_LINK_ERR_DISPARITY_ERROR,
>>> port_id, phy_id, 0, 0);
>>> - sas_phy_disconnected(sas_phy);
>>> - phy->phy_attached = 0;
>>> - sas_ha->notify_port_event(sas_phy, PORTE_LINK_RESET_ERR);
>>> break;
>>> case HW_EVENT_LINK_ERR_CODE_VIOLATION:
>>> PM8001_MSG_DBG(pm8001_ha,
>>> @@ -3196,9 +3190,6 @@ static int mpi_hw_event(struct pm8001_hba_info *pm8001_ha, void *piomb)
>>> pm80xx_hw_event_ack_req(pm8001_ha, 0,
>>> HW_EVENT_LINK_ERR_CODE_VIOLATION,
>>> port_id, phy_id, 0, 0);
>>> - sas_phy_disconnected(sas_phy);
>>> - phy->phy_attached = 0;
>>> - sas_ha->notify_port_event(sas_phy, PORTE_LINK_RESET_ERR);
>>> break;
>>> case HW_EVENT_LINK_ERR_LOSS_OF_DWORD_SYNCH:
>>> PM8001_MSG_DBG(pm8001_ha, pm8001_printk(
>>> @@ -3206,9 +3197,6 @@ static int mpi_hw_event(struct pm8001_hba_info *pm8001_ha, void *piomb)
>>> pm80xx_hw_event_ack_req(pm8001_ha, 0,
>>> HW_EVENT_LINK_ERR_LOSS_OF_DWORD_SYNCH,
>>> port_id, phy_id, 0, 0);
>>> - sas_phy_disconnected(sas_phy);
>>> - phy->phy_attached = 0;
>>> - sas_ha->notify_port_event(sas_phy, PORTE_LINK_RESET_ERR);
>>> break;
>>> case HW_EVENT_MALFUNCTION:
>>> PM8001_MSG_DBG(pm8001_ha,
>>>
>> So what happens with the port, then?
>> Will you be getting another event when the port finally disconnects?
>> If not, how to you remove the port after a link failure?
>>
>
> When the Phy disconnects, we will be getting the PHY DOWN events for
> the phys in that port and we will remove that port.
>
Okay, thanks.
Reviewed-by: Hannes Reinecke <hare@suse.com>
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-07-29 9:21 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-29 6:27 [PATCH 0/8] pm80xx: Driver updates Viswas.G
2015-07-29 6:27 ` [PATCH 1/8] pm80xx: Updated link rate Viswas.G
2015-07-29 8:52 ` Hannes Reinecke
2015-07-29 16:04 ` Tomas Henzl
2015-07-29 6:27 ` [PATCH 2/8] pm80xx: Corrected device state changes in I_T_Nexus_Reset Viswas.G
2015-07-29 8:53 ` Hannes Reinecke
2015-07-29 16:10 ` Tomas Henzl
2015-07-30 6:17 ` Viswas G
2015-07-29 6:27 ` [PATCH 3/8] pm80xx: Update For Thermal Page Code Viswas.G
2015-07-29 8:54 ` Hannes Reinecke
2015-07-29 16:11 ` Tomas Henzl
2015-07-29 6:27 ` [PATCH 4/8] pm80xx: Fix for Incorrect DMA Unmapping of SG List Viswas.G
2015-07-29 8:54 ` Hannes Reinecke
2015-07-29 16:12 ` Tomas Henzl
2015-07-29 6:27 ` [PATCH 5/8] pm80xx: Remove unnecessary phy disconnect while link error Viswas.G
2015-07-29 8:56 ` Hannes Reinecke
2015-07-29 9:20 ` Viswas G
2015-07-29 9:21 ` Hannes Reinecke [this message]
2015-07-30 10:08 ` Tomas Henzl
2015-07-29 6:27 ` [PATCH 6/8] pm80xx: Add PORT RECOVERY TIMEOUT support Viswas.G
2015-07-29 8:57 ` Hannes Reinecke
2015-07-30 10:08 ` Tomas Henzl
2015-07-29 6:27 ` [PATCH 7/8] pm80xx: Handling Invalid SSP Response frame Viswas.G
2015-07-29 8:58 ` Hannes Reinecke
2015-07-30 10:09 ` Tomas Henzl
2015-07-30 10:09 ` Tomas Henzl
2015-07-29 6:27 ` [PATCH 8/8] pm80xx: Bump pm80xx driver version to 0.1.38 Viswas.G
2015-07-29 8:58 ` Hannes Reinecke
2015-07-30 10:10 ` Tomas Henzl
2015-07-29 9:10 ` [PATCH 0/8] pm80xx: Driver updates Jack Wang
2015-07-29 9:47 ` Suresh Thiagarajan
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=55B89B35.8010008@suse.de \
--to=hare@suse.de \
--cc=JBottomley@parallels.com \
--cc=Suresh.Thiagarajan@pmcs.com \
--cc=Viswas.G@pmcs.com \
--cc=linux-scsi@vger.kernel.org \
--cc=thenzl@redhat.com \
--cc=xjtuwjp@gmail.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.