Alex Hornung <[email protected]> added the comment:

I can't reproduce this so I can't really fix it. Can you please try to do it
again with:
sysctl kern.disk_debug=7

That should give some insight into the ahci -- cam --> subr_disk interactions.
Attached is the dmesg of me pulling the disk in and out a few times and dd'ing
wildly around:


ahci0.5: Transient Errors: 40<PCS> (7)
ahci0.5: HOTPLUG - Device inserted
ahci0.5: Waiting 10 seconds on insertion
ahci0.5: PMPROBE(2) No Port Multiplier was found.
ahci0.5: PMPROBE(2) No Port Multiplier was found.
ahci0.5: Found DISK "WDC WD3200BEVT-22ZCT0 11.01A11" serial="WD-WXE308K75174"
ahci0.5: tags=32/32 satacap=0702 satafea=004c NCQ=YES capacity=305245.33MB
ahci0.5: f85=7469 f86=bc09 f87=6163 WC=enabled RA=enabled SEC=freezing
disk scheduler: set policy of da2 to noop
da2 at ahci0 bus 5 target 0 lun 0
da2: <SATA WDC WD3200BEVT-2 11.0> Fixed Direct Access SCSI-4 device 
da2: Serial Number WD-WXE308K75174
da2: 150.000MB/s transfers
da2: 305245MB (625142448 512 byte sectors: 255H 63S/T 38913C)
ahci0.5: Transient Errors: 400040<PRCS,PCS> (4)
ahci0.5: HOTPLUG - Device removed
(da2:ahci0:5:0:0): lost device
(da2:ahci0:5:0:0): removing device entry
DISK_DISK_DESTROY: da2
ahci0.5: Transient Errors: 40<PCS> (7)
ahci0.5: HOTPLUG - Device inserted
ahci0.5: Waiting 10 seconds on insertion
ahci0.5: PMPROBE(2) No Port Multiplier was found.
ahci0.5: PMPROBE(2) No Port Multiplier was found.
ahci0.5: Found DISK "WDC WD3200BEVT-22ZCT0 11.01A11" serial="WD-WXE308K75174"
ahci0.5: tags=32/32 satacap=0702 satafea=004c NCQ=YES capacity=305245.33MB
ahci0.5: f85=7469 f86=bc09 f87=6163 WC=enabled RA=enabled SEC=freezing
disk_create (begin): (null)2
disk scheduler: set policy of da2 to noop
disk_create (end): da2
_setdiskinfo: da2
disk_setdiskinfo: sent probe for da2
da2 at ahci0 bus 5 target 0 lun 0
da2: <SATA WDC WD3200BEVT-2 11.0> Fixed Direct Access SCSI-4 device 
da2: Serial Number WD-WXE308K75174
da2: 150.000MB/s transfers
da2: 305245MB (625142448 512 byte sectors: 255H 63S/T 38913C)
DISK_DISK_PROBE: da2
disk_probe (begin): da2
disk_probe (end): da2
ahci0.5: Transient Errors: 400002<PRCS,PSS> (4)
ahci0.5: HOTPLUG - Device removed
(da2:ahci0:5:0:0): lost device
(da2:ahci0:5:0:0): removing device entry
DISK_DISK_DESTROY: da2
ahci0.5: Transient Errors: 40<PCS> (7)
ahci0.5: HOTPLUG - Device inserted
ahci0.5: Waiting 10 seconds on insertion
ahci0.5: PMPROBE(2) No Port Multiplier was found.
ahci0.5: PMPROBE(2) No Port Multiplier was found.
ahci0.5: Found DISK "WDC WD3200BEVT-22ZCT0 11.01A11" serial="WD-WXE308K75174"
ahci0.5: tags=32/32 satacap=0702 satafea=004c NCQ=YES capacity=305245.33MB
ahci0.5: f85=7469 f86=bc09 f87=6163 WC=enabled RA=enabled SEC=freezing
disk_create (begin): (null)2
disk scheduler: set policy of da2 to noop
disk_create (end): da2
_setdiskinfo: da2
disk_setdiskinfo: sent probe for da2
da2 at ahci0 bus 5 target 0 lun 0
da2: <SATA WDC WD3200BEVT-2 11.0> Fixed Direct Access SCSI-4 device 
da2: Serial Number WD-WXE308K75174
da2: 150.000MB/s transfers
da2: 305245MB (625142448 512 byte sectors: 255H 63S/T 38913C)
DISK_DISK_PROBE: da2
disk_probe (begin): da2
disk_probe (end): da2

----------
status: chatting -> need-eg

_____________________________________________________
DragonFly issue tracker <[email protected]>
<http://bugs.dragonflybsd.org/issue2100>
_____________________________________________________

Reply via email to