* Hotplug
@ 2008-09-02 21:27 Jason Davis
2008-09-03 7:01 ` Hotplug Tejun Heo
0 siblings, 1 reply; 5+ messages in thread
From: Jason Davis @ 2008-09-02 21:27 UTC (permalink / raw)
To: linux-ide,
Boulder (Colorado) Linux Users Group -- General Mailing List
Hello,
I'm trying to confirm hot/warm plugging is working on my system. When
I plug in the drive shows up as expected. I just want to make sure the
stuff I see in the logs is ok.
Thanks,
jason
jd@linux:~$ uname -a
Linux linux 2.6.18-6-686 #1 SMP Mon Aug 18 08:42:39 UTC 2008 i686 GNU/Linux
from kern.log when I plug in:
Sep 2 15:24:04 linux kernel: ata6: exception Emask 0x10 SAct 0x0 SErr
0x0 action 0x2 frozen
Sep 2 15:24:04 linux kernel: ata6: (irq_stat 0x00b00090, PHY RDY changed)
Sep 2 15:24:05 linux kernel: ata6: waiting for device to spin up (8 secs)
Sep 2 15:24:13 linux kernel: ata6: soft resetting port
Sep 2 15:24:17 linux kernel: ata6: SATA link up 3.0 Gbps (SStatus 123
SControl 300)
Sep 2 15:24:17 linux kernel: ata6.00: ATA-8, max UDMA/133, 1953525168
sectors: LBA48 NCQ (depth 31/32)
Sep 2 15:24:17 linux kernel: ata6.00: ata6: dev 0 multi count 0
Sep 2 15:24:17 linux kernel: ata6.00: configured for UDMA/100
Sep 2 15:24:17 linux kernel: ata6: EH complete
Sep 2 15:24:17 linux kernel: Vendor: ATA Model: WDC
WD10EACS-00D Rev: 01.0
Sep 2 15:24:17 linux kernel: Type: Direct-Access
ANSI SCSI revision: 05
Sep 2 15:24:17 linux kernel: SCSI device sdc: 1953525168 512-byte
hdwr sectors (1000205 MB)
Sep 2 15:24:17 linux kernel: sdc: Write Protect is off
Sep 2 15:24:17 linux kernel: sdc: Mode Sense: 00 3a 00 00
Sep 2 15:24:17 linux kernel: SCSI device sdc: drive cache: write back
Sep 2 15:24:17 linux kernel: SCSI device sdc: 1953525168 512-byte
hdwr sectors (1000205 MB)
Sep 2 15:24:17 linux kernel: sdc: Write Protect is off
Sep 2 15:24:17 linux kernel: sdc: Mode Sense: 00 3a 00 00
Sep 2 15:24:17 linux kernel: SCSI device sdc: drive cache: write back
Sep 2 15:24:17 linux kernel: sdc: sdc1
Sep 2 15:24:17 linux kernel: sd 5:0:0:0: Attached scsi disk sdc
Sep 2 15:24:47 linux kernel: kjournald starting. Commit interval 5 seconds
Sep 2 15:24:47 linux kernel: EXT3 FS on sdc1, internal journal
Sep 2 15:24:47 linux kernel: EXT3-fs: mounted filesystem with ordered
data mode.
When I unplug:
root@linux:~# umount /mnt/other
root@linux:~# echo 1 > /sys/class/scsi_device/5\:0\:0\:0/device/delete
Sep 2 15:26:01 linux kernel: ata6.00: disabled
Sep 2 15:26:13 linux kernel: ata6: exception Emask 0x10 SAct 0x0 SErr
0x80000 action 0x2 frozen
Sep 2 15:26:13 linux kernel: ata6: (irq_stat 0x01140010, PHY RDY changed)
Sep 2 15:26:14 linux kernel: ata6: soft resetting port
Sep 2 15:26:14 linux kernel: ata6: SATA link down (SStatus 0 SControl 300)
Sep 2 15:26:14 linux kernel: ata6: EH complete
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Hotplug
2008-09-02 21:27 Hotplug Jason Davis
@ 2008-09-03 7:01 ` Tejun Heo
2008-09-04 10:32 ` Hotplug Mark Nelson
0 siblings, 1 reply; 5+ messages in thread
From: Tejun Heo @ 2008-09-03 7:01 UTC (permalink / raw)
To: Jason Davis
Cc: linux-ide,
Boulder (Colorado) Linux Users Group -- General Mailing List
Jason Davis wrote:
> Hello,
> I'm trying to confirm hot/warm plugging is working on my system. When
> I plug in the drive shows up as expected. I just want to make sure the
> stuff I see in the logs is ok.
Yeah, those are as okay as they get. :-)
--
tejun
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Hotplug
2008-09-03 7:01 ` Hotplug Tejun Heo
@ 2008-09-04 10:32 ` Mark Nelson
2008-09-04 10:35 ` Hotplug Tejun Heo
0 siblings, 1 reply; 5+ messages in thread
From: Mark Nelson @ 2008-09-04 10:32 UTC (permalink / raw)
To: Tejun Heo
Cc: Jason Davis, linux-ide,
Boulder (Colorado) Linux Users Group -- General Mailing List
On Wed, Sep 3, 2008 at 5:01 PM, Tejun Heo <tj@kernel.org> wrote:
> Jason Davis wrote:
>> Hello,
>> I'm trying to confirm hot/warm plugging is working on my system. When
>> I plug in the drive shows up as expected. I just want to make sure the
>> stuff I see in the logs is ok.
>
> Yeah, those are as okay as they get. :-)
Hi Tejun,
Can you check these too (I'm testing hotplug on the PDC42819 with ahci driver)?
after powering up eSATA connected drive:
ata7: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action 0xe frozen
ata7: irq_stat 0x00000040, connection status changed
ata7: SError: { PHYRdyChg CommWake DevExch }
ata7: hard resetting link
ata7: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata7.00: ATA-7: HTS721060G9SA00, MC3IC10H, max UDMA/100
ata7.00: 117210240 sectors, multi 0: LBA48
ata7.00: configured for UDMA/100
ata7: EH complete
scsi 6:0:0:0: Direct-Access ATA HTS721060G9SA00 MC3I PQ: 0 ANSI: 5
sd 6:0:0:0: [sdb] 117210240 512-byte hardware sectors (60012 MB)
sd 6:0:0:0: [sdb] Write Protect is off
sd 6:0:0:0: [sdb] Mode Sense: 00 3a 00 00
sd 6:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't
support DPO or FUA
sd 6:0:0:0: [sdb] 117210240 512-byte hardware sectors (60012 MB)
sd 6:0:0:0: [sdb] Write Protect is off
sd 6:0:0:0: [sdb] Mode Sense: 00 3a 00 00
sd 6:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't
support DPO or FUA
sdb: sdb1
sd 6:0:0:0: [sdb] Attached SCSI disk
sd 6:0:0:0: Attached scsi generic sg1 type 0
kjournald starting. Commit interval 5 seconds
EXT3 FS on sdb1, internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
after unmounting and executing
echo 1 > /sys/class/scsi_device/6\:0\:0\:0/device/delete:
sd 6:0:0:0: [sdb] Synchronizing SCSI cache
sd 6:0:0:0: [sdb] Stopping disk
ata7.00: disabled
and after removing power from eSATA device:
ata7: exception Emask 0x10 SAct 0x0 SErr 0x10000 action 0xe frozen
ata7: irq_stat 0x00400000, PHY RDY changed
ata7: SError: { PHYRdyChg }
ata7: hard resetting link
ata7: SATA link down (SStatus 0 SControl 300)
ata7: EH complete
Thanks!
Mark
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Hotplug
2008-09-04 10:32 ` Hotplug Mark Nelson
@ 2008-09-04 10:35 ` Tejun Heo
2008-09-04 11:54 ` Hotplug Mark Nelson
0 siblings, 1 reply; 5+ messages in thread
From: Tejun Heo @ 2008-09-04 10:35 UTC (permalink / raw)
To: Mark Nelson
Cc: Jason Davis, linux-ide,
Boulder (Colorado) Linux Users Group -- General Mailing List
Hello,
Mark Nelson wrote:
> Can you check these too (I'm testing hotplug on the PDC42819 with
> ahci driver)?
>
> after powering up eSATA connected drive:
>
> ata7: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action 0xe frozen
> ata7: irq_stat 0x00000040, connection status changed
> ata7: SError: { PHYRdyChg CommWake DevExch }
> ata7: hard resetting link
> ata7: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
> ata7.00: ATA-7: HTS721060G9SA00, MC3IC10H, max UDMA/100
> ata7.00: 117210240 sectors, multi 0: LBA48
> ata7.00: configured for UDMA/100
> ata7: EH complete
> scsi 6:0:0:0: Direct-Access ATA HTS721060G9SA00 MC3I PQ: 0 ANSI: 5
> sd 6:0:0:0: [sdb] 117210240 512-byte hardware sectors (60012 MB)
> sd 6:0:0:0: [sdb] Write Protect is off
> sd 6:0:0:0: [sdb] Mode Sense: 00 3a 00 00
> sd 6:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't
> support DPO or FUA
> sd 6:0:0:0: [sdb] 117210240 512-byte hardware sectors (60012 MB)
> sd 6:0:0:0: [sdb] Write Protect is off
> sd 6:0:0:0: [sdb] Mode Sense: 00 3a 00 00
> sd 6:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't
> support DPO or FUA
> sdb: sdb1
> sd 6:0:0:0: [sdb] Attached SCSI disk
> sd 6:0:0:0: Attached scsi generic sg1 type 0
> kjournald starting. Commit interval 5 seconds
> EXT3 FS on sdb1, internal journal
> EXT3-fs: recovery complete.
> EXT3-fs: mounted filesystem with ordered data mode.
Yeap, looks fine.
> after unmounting and executing
> echo 1 > /sys/class/scsi_device/6\:0\:0\:0/device/delete:
>
> sd 6:0:0:0: [sdb] Synchronizing SCSI cache
> sd 6:0:0:0: [sdb] Stopping disk
> ata7.00: disabled
Heh.. I usually just pull the power plug doing delete is a good idea.
> and after removing power from eSATA device:
>
> ata7: exception Emask 0x10 SAct 0x0 SErr 0x10000 action 0xe frozen
> ata7: irq_stat 0x00400000, PHY RDY changed
> ata7: SError: { PHYRdyChg }
> ata7: hard resetting link
> ata7: SATA link down (SStatus 0 SControl 300)
> ata7: EH complete
This looks fine too.
--
tejun
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Hotplug
2008-09-04 10:35 ` Hotplug Tejun Heo
@ 2008-09-04 11:54 ` Mark Nelson
0 siblings, 0 replies; 5+ messages in thread
From: Mark Nelson @ 2008-09-04 11:54 UTC (permalink / raw)
To: Tejun Heo
Cc: Jason Davis, linux-ide,
Boulder (Colorado) Linux Users Group -- General Mailing List
On Thu, Sep 4, 2008 at 8:35 PM, Tejun Heo <tj@kernel.org> wrote:
> Hello,
>
> Mark Nelson wrote:
>> Can you check these too (I'm testing hotplug on the PDC42819 with
>> ahci driver)?
>>
>> after powering up eSATA connected drive:
>>
>> ata7: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action 0xe frozen
>> ata7: irq_stat 0x00000040, connection status changed
>> ata7: SError: { PHYRdyChg CommWake DevExch }
>> ata7: hard resetting link
>> ata7: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
>> ata7.00: ATA-7: HTS721060G9SA00, MC3IC10H, max UDMA/100
>> ata7.00: 117210240 sectors, multi 0: LBA48
>> ata7.00: configured for UDMA/100
>> ata7: EH complete
>> scsi 6:0:0:0: Direct-Access ATA HTS721060G9SA00 MC3I PQ: 0 ANSI: 5
>> sd 6:0:0:0: [sdb] 117210240 512-byte hardware sectors (60012 MB)
>> sd 6:0:0:0: [sdb] Write Protect is off
>> sd 6:0:0:0: [sdb] Mode Sense: 00 3a 00 00
>> sd 6:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't
>> support DPO or FUA
>> sd 6:0:0:0: [sdb] 117210240 512-byte hardware sectors (60012 MB)
>> sd 6:0:0:0: [sdb] Write Protect is off
>> sd 6:0:0:0: [sdb] Mode Sense: 00 3a 00 00
>> sd 6:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't
>> support DPO or FUA
>> sdb: sdb1
>> sd 6:0:0:0: [sdb] Attached SCSI disk
>> sd 6:0:0:0: Attached scsi generic sg1 type 0
>> kjournald starting. Commit interval 5 seconds
>> EXT3 FS on sdb1, internal journal
>> EXT3-fs: recovery complete.
>> EXT3-fs: mounted filesystem with ordered data mode.
>
> Yeap, looks fine.
>
>> after unmounting and executing
>> echo 1 > /sys/class/scsi_device/6\:0\:0\:0/device/delete:
>>
>> sd 6:0:0:0: [sdb] Synchronizing SCSI cache
>> sd 6:0:0:0: [sdb] Stopping disk
>> ata7.00: disabled
>
> Heh.. I usually just pull the power plug doing delete is a good idea.
Well truth be told I just learnt it from Jason's post (prior to that I took
hotplug more literally :) )
>
>> and after removing power from eSATA device:
>>
>> ata7: exception Emask 0x10 SAct 0x0 SErr 0x10000 action 0xe frozen
>> ata7: irq_stat 0x00400000, PHY RDY changed
>> ata7: SError: { PHYRdyChg }
>> ata7: hard resetting link
>> ata7: SATA link down (SStatus 0 SControl 300)
>> ata7: EH complete
>
> This looks fine too.
Excellent.
Thanks!
Mark
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-09-04 11:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-02 21:27 Hotplug Jason Davis
2008-09-03 7:01 ` Hotplug Tejun Heo
2008-09-04 10:32 ` Hotplug Mark Nelson
2008-09-04 10:35 ` Hotplug Tejun Heo
2008-09-04 11:54 ` Hotplug Mark Nelson
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).