Project

General

Profile

Bug #1719

ahci needs to actually issue software port reset for misbehaving multiplier

Added by Albert Lee almost 8 years ago. Updated almost 8 years ago.

Status:
New
Priority:
Low
Assignee:
Category:
driver - device drivers
Start date:
2011-11-03
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage

Description

My eSATA enclosure's Silicon Image 3726 port multiplier went into a persistent bad state after a power outage and ahci would fail to initialise it.

Nov 3 01:23:58 mameshiba.deadgerbil.com ahci: [ID 126561 kern.warning] WARNING: ahci_port_reset: port 3:1 PxIS.IPMS is not set, we need another software reset.
Nov 3 01:30:46 mameshiba.deadgerbil.com sata: [ID 801593 kern.warning] WARNING: /pci@0,0/pci1458,b005@1f,2:
Nov 3 01:30:46 mameshiba.deadgerbil.com SATA port multiplier detected at port 2
Nov 3 01:30:46 mameshiba.deadgerbil.com sata: [ID 511305 kern.warning] WARNING: Port multiplier is on the blacklist.
Nov 3 01:30:46 mameshiba.deadgerbil.com sata: [ID 423274 kern.info] Port Multiplier 0 device-ports found at port 2
Nov 3 01:30:46 mameshiba.deadgerbil.com sata: [ID 349649 kern.info] Vendor_ID 0x1095, Module_ID 0x3726
Nov 3 01:30:46 mameshiba.deadgerbil.com sata: [ID 349649 kern.info] Support SATA PMP Spec 1.1
Nov 3 01:30:46 mameshiba.deadgerbil.com sata: [ID 349649 kern.info] Support Asy-Notif, BIST
Nov 3 01:30:46 mameshiba.deadgerbil.com sata: [ID 349649 kern.info] Number of exposed device fan-out ports: 6
Nov 3 01:30:46 mameshiba.deadgerbil.com sata: [ID 423274 kern.info] Port Multiplier 0 device-ports found at port 2
Nov 3 01:30:46 mameshiba.deadgerbil.com sata: [ID 349649 kern.info] Vendor_ID 0x1095, Module_ID 0x3726
Nov 3 01:30:46 mameshiba.deadgerbil.com sata: [ID 349649 kern.info] Support SATA PMP Spec 1.1
Nov 3 01:30:46 mameshiba.deadgerbil.com sata: [ID 349649 kern.info] Support Asy-Notif, BIST
Nov 3 01:30:46 mameshiba.deadgerbil.com sata: [ID 349649 kern.info] Number of exposed device fan-out ports: 6
Nov 3 01:30:58 mameshiba.deadgerbil.com ahci: [ID 126561 kern.warning] WARNING: ahci_port_reset: port 2:2 PxIS.IPMS is not set, we need another software reset.

("Blacklist" message is just correcting the number of reported ports). The ahci_port_reset warning is coming from a loop in ahci_pmport_reset looking for the AHCI_INTR_STATUS_IPMS flag. This warning was evidently copied from ahci_port_reset, but the actual call to ahci_software_reset is missing.

I unplugged the enclosure and reconnected it to a Linux system which did indeed cause a series of port resets. It now works on illumos.

History

#1

Updated by Albert Lee almost 8 years ago

  • Category set to driver - device drivers
  • Assignee set to Albert Lee
  • Priority changed from Normal to Low
  • Difficulty changed from Medium to Bite-size
#2

Updated by Albert Lee almost 8 years ago

Workaround:

[root@mameshiba ~]# cfgadm -x sata_port_deactivate sata0/2
[root@mameshiba ~]# cfgadm -x sata_port_activate sata0/2
[root@mameshiba ~]# cfgadm -al | grep sata0/2
sata0/2                        sata-pmult   connected    configured   ok
sata0/2.0                      disk         connected    unconfigured unknown
sata0/2.1                      disk         connected    unconfigured unknown
sata0/2.2                      disk         connected    unconfigured unknown
sata0/2.3                      disk         connected    unconfigured unknown
sata0/2.4                      pmult-port   empty        unconfigured ok
[root@mameshiba ~]# cfgadm -c configure sata0/2.0
[root@mameshiba ~]# cfgadm -c configure sata0/2.1
[root@mameshiba ~]# cfgadm -c configure sata0/2.2
[root@mameshiba ~]# cfgadm -c configure sata0/2.3
[root@mameshiba ~]# cfgadm -al | grep sata0/2
sata0/2                        sata-pmult   connected    configured   ok
sata0/2.0::dsk/c2t514d0        disk         connected    configured   ok
sata0/2.1::dsk/c2t546d0        disk         connected    configured   ok
sata0/2.2::dsk/c2t578d0        disk         connected    configured   ok
sata0/2.3::dsk/c2t610d0        disk         connected    configured   ok
sata0/2.4                      pmult-port   empty        unconfigured ok

Also available in: Atom PDF