1. 13 Jan, 2015 2 commits
    • Sreekanth Reddy's avatar
      mpt2sas, mpt3sas: Fail the host reset initiated due to discovery related I/O... · ddb588be
      Sreekanth Reddy authored
      mpt2sas, mpt3sas: Fail the host reset initiated due to discovery related I/O timeouts at driver load time
      
      When a flaky disk is there in a topology then during driver load,
      discovery related I/O times out; which results in SCSI error recovery
      initiating host reset and then the controller won't see any disk.
      
      In this patch, The driver would return FAILED status to the host reset
      initiated due to discovery related I/O timeout if ioc->is_driver_loading
      is set. This flag would be set until we exit out of scsih_scan_finished().
      i.e.
      During device discovery if one of the disk is flaky
      (which responds to some discovery commands and doesn't respond to some)
      the driver wouldn't perform host reset for discovery related I/O timeout.
      Instead it would return Failure for the host reset resulting in the
      flaky disk getting removed by the SCSI Mid layer,
      so other disks would be added correctly.
      Signed-off-by: default avatarSreekanth Reddy <Sreekanth.Reddy@avagotech.com>
      Reviewed-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      ddb588be
    • Sreekanth Reddy's avatar
      mpt2sas, mpt3sas: log exceeded temperature thresholds · 2d8ce8c9
      Sreekanth Reddy authored
      This patch will log a message when driver receives "Temperature Threshold
      exceeded" event from any temperature sensor.
      
      The message will look similar to like:
      mpt3sas0: Temperature Threshold flags a b c d exceeded for Sensor: x !!!
      mpt3sas0: Current Temp In Celsius: y
      
      where a b c d are threshold flags 0 1 2 3
      
      Change_set:
      1. Get the number of sensor count of this IOC by reading IO Unit page 8 at
         driver initialization time.
      2. Also unmask the Temperature Threshold Event at driver initialization
         time
      3. Whenever a MPI2_EVENT_TEMP_THRESHOLD event is received from the
         firmware, then print the sensor number, the maximum threshold number it
         has exceed and the current temperature of this sensor.
      Signed-off-by: default avatarSreekanth Reddy <Sreekanth.Reddy@avagotech.com>
      Reviewed-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      2d8ce8c9
  2. 12 Jan, 2015 1 commit
  3. 09 Jan, 2015 37 commits