IOSCSIParallelInterfaceController and 64-bit LBA

21 views
Skip to first unread message

Peter Kun

unread,
Apr 16, 2013, 11:26:00 PM4/16/13
to ata-sc...@lists.apple.com
Our past employee had developed a driver covering few of our SAS controller products far ago. It is based on IOSCSIParallelInterfaceController and is working correctly. However we have started to get numerous reports from the customers trying to use > 2.2 Tb disks with our driver. They say that drives show up with truncated size of 2.2 Tb in system and filesystems on them, if present, are failing to mount.Seems there is an issue with 64-bit LBA. Our hardware surely support it, structures in the driver are taken from Linux version (which has no such an issue) and hence are valid. Looks like Read/Write16 SCSI commands are handled properly in the code. We have no contact with mentioned developer, so we're forced to resolve the problem on our own. What should we check next?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Ata-scsi-dev mailing list (Ata-sc...@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/ata-scsi-dev/ata-scsi-dev-garchive-72467%40googlegroups.com

This email sent to ata-scsi-dev-...@googlegroups.com

Chris Sarcone

unread,
Apr 16, 2013, 11:49:11 PM4/16/13
to Peter Kun, ata-sc...@lists.apple.com
Peter,

Are the devices SATA or SAS? If SATA, do you have an ATA->SCSI translator (SATL) in the driver or firmware at all?

Sent from my iPhone
> https://lists.apple.com/mailman/options/ata-scsi-dev/sarcone%40apple.com
>
> This email sent to sar...@apple.com

Peter Kun

unread,
Apr 17, 2013, 1:03:52 AM4/17/13
to Chris Sarcone, ata-sc...@lists.apple.com
P.S.: Looked over the reports and looks like they are all about SATA devices.

----- Original Message -----
From: Peter Kun
Sent: 04/17/13 08:48 AM
To: Chris Sarcone
Subject: Re: IOSCSIParallelInterfaceController and 64-bit LBA
Chris,
Most of our devices allow attaching of SATA drives besides SAS ones. SAT is done in firmware.

Chris Sarcone

unread,
Apr 17, 2013, 1:07:48 AM4/17/13
to Peter Kun, ata-sc...@lists.apple.com
What does your SAT firmware report for READ_CAPACITY on a drive larger than 2TB?

Sent from my iPhone

Chris Sarcone

unread,
Apr 19, 2013, 12:19:37 PM4/19/13
to Peter Kun, ata-sc...@lists.apple.com
Peter --

We'll check it asap. Meanwhile, we're enabled debug output in driver and we're seeing failures on Mode Sense6/10 commands. Sense data has Sense Key set to 0x50 (Illegal Request) and Additional Sense Code to 0x24 (Invalid field in CDB). Could it be related?

Not likely. The SBC driver does a READ_CAPACITY and looks at the result to see if you set the RETURNED_LOGICAL_BLOCK_ADDRESS field to 0xFFFFFFFF. If so, it sends a READ_CAPACITY_16 command.

HTH,

-- Chris


------------------

6 Infinite Loop

M/S 306-2MS

Cupertino CA 95014

phone: (408) 974-4033

fax:   (408) 862-7577

email: sar...@apple.com


Reply all
Reply to author
Forward
0 new messages