Hello,
The SCSI command for LTO-4 drive based encryption (SPOUT opcode = 0xB5) is failing on SLES 9 (32-bit and 64-bit) and not on SLES 10,11.

Any idea why this is happening?

Error returned is : Invalid field in CDB

I am using ioctl() with the deprecated request SCSI_IOCTL_SEND_COMMAND
and not the SG3 driver.
However, only the SPOUT command is failing and none of the other SCSI
commands.
For ex: even the SPIN command (to obtain encryption status and
capabilities) works.

I even updated to SP4.

I am unable to use the encryption feature that LTO-4 drives provide.

The issue occurs with both SCSI and FC HBA's.

The following messages get logged to /var/log/messages:

=====================================
kernel: mptbase: ioc0: IOCStatus(0x0003): Invalid SGL
kernel: mptbase: ioc0: LogInfo(0x11070000): F/W: DMA Error
kernel: mptbase: ioc0: LogInfo(0x11070000): F/W: DMA Error
kernel: mptbase: ioc0: IOCStatus(0x004b): SCSI IOC Terminated
kernel: st0: Error with sense data: Current st0: sense key Unit Attention
kernel: Additional sense: Scsi bus reset occurred
=====================================

Has any patch been released which needs to be installed?