linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Herbert Poetzl <herbert@13thfloor.at>
To: linux-ide@vger.kernel.org
Cc: Tejun Heo <tj@kernel.org>
Subject: PMP and Smart Enclosure ...
Date: Tue, 22 Mar 2011 15:54:40 +0100	[thread overview]
Message-ID: <20110322145440.GA15541@MAIL.13thfloor.at> (raw)


following up on a thread about PMP and SEP from earlier this
year, I have now prepared a test system which should allow
me to control all involved parts (i.e. SATA controller, PMP
and the SEP) for testing and debugging ...

during the initial system tests, I found some strange
behaviour, which I am unable to explain, and it might as
well be a SATA/PMP bug in Linux ...

the problem basically arises when I pull a drive from the 
enclosure (without telling Linux first), wait some time
till the kernel becomes aware of the fact, and then put it 
back into the enclosure ...

at this point, the drive indicator (PMP and the drive one)
goes on, the drive spins up, but Linux refuses to detect
the device ... I tried the following things:

 echo "- - -" >/sys/class/scsi_host/host9/scan

 scsiadd -s 9

 resetting the PMP (via small front panel button)

note that the target is still listed in sysfs:
# ls /sys/class/scsi_host/host9/device/
power/  scsi_host/  subsystem@  target9:0:0/  target9:1:0/  target9:2:0/  target9:3:0/  target9:4:0/  uevent

only way to get the device back seems to be to remove the
driver (rmmod sata_sil24) and to reload it again, which is
probably a little tricky assuming that the other disks are
in use :)

many thanks in advance,
Herbert


             reply	other threads:[~2011-03-22 15:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-22 14:54 Herbert Poetzl [this message]
2011-03-22 15:25 ` PMP and Smart Enclosure Herbert Poetzl
2011-03-28  8:52   ` Tejun Heo
2011-03-28 12:36     ` Herbert Poetzl
2011-03-28 16:01       ` Tejun Heo
2011-03-28 22:46         ` Herbert Poetzl
2011-03-28 23:47           ` Herbert Poetzl
2011-03-29  8:03             ` Tejun Heo
2011-03-29 14:49               ` Herbert Poetzl
2011-03-29 15:01                 ` Tejun Heo
2011-03-29 15:39                   ` Herbert Poetzl

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=20110322145440.GA15541@MAIL.13thfloor.at \
    --to=herbert@13thfloor.at \
    --cc=linux-ide@vger.kernel.org \
    --cc=tj@kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).