On Wed, 2005-08-17 at 11:40 -0400, Davidlohr Bueso A. wrote: > After googling I discovered that the solution for many was changing in > include/linux/libata.h > > #undef ATA_ENABLE_ATAPI /* define to enable ATAPI support */ > to > #define ATA_ENABLE_ATAPI /* define to enable ATAPI support */
ROFL! Sorry... You're changing a kernel BUILDING parameter here. It will not have any effect until you recompile your kernel, so kiss your debian pre-compiled kernel goodbye ;-) There are actually several HOWTO's for kernel (re)building, btw. If you are going to do this, you need to apply this patch as well (see attachment) or your computer will lock up every now and then. If you have built the new kernel and booted it, your cd/dvd drive will now be claimed by libata and show up as /dev/scd0 instead of /dev/hdc (or similar). Hdparm -d 1 will not work (either), but DMA will be used anyway.
diff --git a/drivers/scsi/libata-scsi.c b/drivers/scsi/libata-scsi.c
--- a/drivers/scsi/libata-scsi.c
+++ b/drivers/scsi/libata-scsi.c
@@ -385,6 +385,7 @@ int ata_scsi_error(struct Scsi_Host *hos
* appropriate place
*/
host->host_failed--;
+ INIT_LIST_HEAD(&host->eh_cmd_q);
DPRINTK("EXIT\n");
return 0;
signature.asc
Description: This is a digitally signed message part
