Unix Technical Forum

Add a delay in wdc.c following IDENTIFY

This is a discussion on Add a delay in wdc.c following IDENTIFY within the mailing.openbsd.tech forums, part of the OpenBSD category; --> OpenBSD 3.8 GENERIC will not recognize my Plextor PX-708A DVD recorder. In investigating this I discovered the cause is ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > mailing.openbsd.tech

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 08:16 AM
Michael Durket
 
Posts: n/a
Default Add a delay in wdc.c following IDENTIFY

OpenBSD 3.8 GENERIC will not recognize my Plextor
PX-708A DVD recorder. In investigating this I discovered
the cause is that the 708A will not accept multiple
IDENTIFY_PACKET_DEVICE commands in rapid succession.

Multiple IDENTIFYs shouldn't occur, but do because
wdc_attach in sys/dev/ic/wdc.c does one IDENTIFY, and
the subsequent atapiscsi.c module does another IDENTIFY
on its attach rather than reading the existing IDENTIFY
data already stored by wdc.c.

By experiment, I determined that a 10ms delay in the
wdc_attach routine after the first IDENTIFY solved the
problem.

I'm not an expert on the ATA/ATAPI spec - I believe that
the problem is with the Plextor device, not the driver,
but I've seen enough messages in a Google search to know this
problem has occurred more than once with ATAPI devices and
OpenBSD, and I'm wondering if the maintainer of the wdc.c
code would consider adding such a delay (since there's already
code in that routine for a delay after a reset).

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:26 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com