mpt3sas: Clear PFA Status on SGPIO when PFA Drive is Removed or Replaced
Subsystems (2)
PATCH RESEND 2/8 mpt3sas: Clear PFA Status on SGPIO when PFA Drive is Removed or Replaced
Added code to send an SEP message that turns off the Predictive Failure LED when a drive is removed (if Predictive Failure LED was turned on).
Added a new flag 'pfa_led_on' per device that tracks the status of Predictive Failure LED. When the drive is removed, this flag is checked and sends an SEP message to turn off the respective Predictive Failure LED.
--- drivers/scsi/mpt3sas/mpt3sas_base.h | 5 ++- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 67 +++++++++++++++++++++++++++++----- 2 files changed, 61 insertions(+), 11 deletions(-)
drivers/scsi/mpt3sas/mpt3sas_base.h +4 -1
@@ -272,8 +272,10 @@ struct _internal_cmd {* @channel: target channel * @slot: number number * @phy: phy identifier provided in sas device page 0 -* @fast_path: fast path feature enable bit * @responding: used in _scsih_sas_device_mark_responding +* @fast_path: fast path feature enable bit +* @pfa_led_on: flag for PFA LED status +* */ struct _sas_device {struct list_head list;
@@ -293,6 +295,7 @@ struct _sas_device {u8 phy;u8 responding;u8 fast_path; +u8 pfa_led_on; };/**
drivers/scsi/mpt3sas/mpt3sas_scsih.c +57 -10
132 lines not on this page · raw message
Signature · 1 line
1.7.1
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Sreekanth" == Reddy, Sreekanth <[email protected]> writes:
Sreekanth> Added code to send an SEP message that turns off the Sreekanth> Predictive Failure LED when a drive is removed (if Predictive Sreekanth> Failure LED was turned on).
Sreekanth> Added a new flag 'pfa_led_on' per device that tracks the Sreekanth> status of Predictive Failure LED. When the drive is removed, Sreekanth> this flag is checked and sends an SEP message to turn off the Sreekanth> respective Predictive Failure LED.
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering