linux-2.5.3-pre1 and IDE Driver Trouble
A message that is not in the archive (sent off-list or not yet received): [email protected]
linux-2.5.3-pre1 freezes when using hdparm.
The exact command issued:/sbin/hdparm -m16 -d1 -c3 -A1 /dev/hda
Specifically, it freezes when attempting to set multimode (hdparm -m16); all other options work fine.
This doesn't seem to be a big problem, as I have my kernel configured to use multi-mode by default. So the kernel sets it to the right value (16) by default.
It doesn't print any messages, so please let me know if there is anything else I should try.
I keep forgetting to send all my system info with my emails, so:
Linux 2.5.3-pre1
GCC 2.96-98
128 MB RAM
Pentium III, Intel 443BX System Chipset (Intel PIIX4 IDE Interface)
--
John Weber
(AKA [email protected]) HOME
(AKA [email protected]) WORK/SCHOOL
(AKA The NOTORIOUS BIG ENDIAN) ALL AROUND DA WORLD
DO NOT USE IT (Re: linux-2.5.3-pre1 and IDE Driver Trouble) FATAL
This is a problem that is bigger than simplely issueing a simple setfeatures non-data-pio command. All of the PIO data-phases are broken. Nothing works but DMA, and there is no reason it should fail.
Something has gone totally wrong between the 2.5.1 patch submitted to it being applied for the creation of 2.5.3-pre1.
If the driver falls out of DMA, DEADBOX!!!! There is a conflict of BIO and ACB and it is very fatal.
Therefore I will have to withdraw the patch and resubmit with the legacy data-path added back so the kernel development can continue.
The only kernel in the development series known to work is 2.5.1. However it appears that several people can not successfully use this CodeBase either.
Until I can submit a new patch witch is a replacement, do not attempt 2.5.3-pre1 at all.
Quoted 28 lines · john e weber
linux-2.5.3-pre1 freezes when using hdparm.
The exact command issued:/sbin/hdparm-m16 -d1 -c3 -A1/dev/hdaSpecifically, it freezes when attempting to set multimode (hdparm -m16); all other options work fine.
This doesn't seem to be a big problem, as I have my kernel configured to use multi-mode by default. So the kernel sets it to the right value (16) by default.
It doesn't print any messages, so please let me know if there is anything else I should try.
I keep forgetting to send all my system info with my emails, so:
Linux 2.5.3-pre1
GCC 2.96-98
128 MB RAM
Pentium III, Intel 443BX System Chipset (Intel PIIX4 IDE Interface)--
John Weber
(AKA [email protected]) HOME
(AKA [email protected]) WORK/SCHOOL
(AKA The NOTORIOUS BIG ENDIAN) ALL AROUND DA WORLD
Quoted 6 lines
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Andre Hedrick
Linux Disk Certification Project Linux ATA Development
Re: DO NOT USE IT (Re: linux-2.5.3-pre1 and IDE Driver Trouble) FATAL
In reply to john e weberQuoted 12 lines · Andre Hedrick
This is a problem that is bigger than simplely issueing a simple setfeatures non-data-pio command. All of the PIO data-phases are broken. Nothing works but DMA, and there is no reason it should fail.
Something has gone totally wrong between the 2.5.1 patch submitted to it being applied for the creation of 2.5.3-pre1.
If the driver falls out of DMA, DEADBOX!!!! There is a conflict of BIO and ACB and it is very fatal.
Quoted 6 lines
Therefore I will have to withdraw the patch and resubmit with the legacy data-path added back so the kernel development can continue.
The only kernel in the development series known to work is 2.5.1. However it appears that several people can not successfully use this CodeBase either.
2.5.1 still requires at least this patch to be closer to correct, I haven't verified if it does the trick completely though. For 2.5.3-pre1, more work needs to be done.
Signature · 1 line
Jens Axboe
ide/ide-taskfile.c renamed from opt/kernel/linux-2.5.3-pre1/drivers/ide/ide-taskfile.c +16 -6
@@ -723,6 +723,7 @@byte io_32bit = drive->io_32bit;struct request *rq =HWGROUP (drive)->rq;char *pBuf =NULL ; +unsigned long flags;if (!OK_STAT (stat,DATA_READY ,BAD_R_STAT )) {if (stat & (ERR_STAT |DRQ_STAT )) {
@@ -735,11 +736,12 @@ } }DTF ("stat: %02x\n" , stat); - pBuf = rq->buffer + ((rq->nr_sectors - rq->current_nr_sectors) *SECTOR_SIZE ); + pBuf =ide_map_buffer (rq, &flags);DTF ("Read: %p, rq->current_nr_sectors: %d\n" , pBuf, (int ) rq->current_nr_sectors); drive->io_32bit =0 ;taskfile_input_data (drive, pBuf,SECTOR_WORDS ); +ide_unmap_buffer (pBuf, &flags); drive->io_32bit = io_32bit;if (--rq->current_nr_sectors <=0 ) {
@@ -809,6 +811,7 @@byte io_32bit = drive->io_32bit;struct request *rq =HWGROUP (drive)->rq;char *pBuf =NULL ; +unsigned long flags;if (!OK_STAT (stat,DATA_READY ,BAD_R_STAT )) {if (stat & (ERR_STAT |DRQ_STAT )) {
@@ -834,10 +837,11 @@*/ nsect =1 ;while (rq->current_nr_sectors) { - pBuf = rq->buffer + ((rq->nr_sectors - rq->current_nr_sectors) *SECTOR_SIZE ); + pBuf =ide_map_buffer (rq, &flags);DTF ("Multiread: %p, nsect: %d, rq->current_nr_sectors: %ld\n" , pBuf, nsect, rq->current_nr_sectors); drive->io_32bit =0 ;taskfile_input_data (drive, pBuf, nsect *SECTOR_WORDS ); +ide_unmap_buffer (pBuf, &flags); drive->io_32bit = io_32bit; rq->errors =0 ; rq->current_nr_sectors -= nsect;
@@ -849,12 +853,13 @@#endif /* ALTSTAT_SCREW_UP */ nsect = (rq->current_nr_sectors > msect) ? msect : rq->current_nr_sectors; - pBuf = rq->buffer + ((rq->nr_sectors - rq->current_nr_sectors) *SECTOR_SIZE ); + pBuf =ide_map_buffer (rq, &flags);DTF ("Multiread: %p, nsect: %d , rq->current_nr_sectors: %ld\n" , pBuf, nsect, rq->current_nr_sectors); drive->io_32bit =0 ;taskfile_input_data (drive, pBuf, nsect *SECTOR_WORDS ); +ide_unmap_buffer (pBuf, &flags); drive->io_32bit = io_32bit; rq->errors =0 ; rq->current_nr_sectors -= nsect;
@@ -913,6 +918,7 @@byte io_32bit = drive->io_32bit;struct request *rq =HWGROUP (drive)->rq;char *pBuf =NULL ; +unsigned long flags;if (!rq->current_nr_sectors) {ide_end_request (1 ,HWGROUP (drive));
@@ -924,10 +930,11 @@ }if ((rq->current_nr_sectors==1 ) ^ (stat &DRQ_STAT )) { rq =HWGROUP (drive)->rq; - pBuf = rq->buffer + ((rq->nr_sectors - rq->current_nr_sectors) *SECTOR_SIZE ); + pBuf =ide_map_buffer (rq, &flags);DTF ("write: %p, rq->current_nr_sectors: %d\n" , pBuf, (int ) rq->current_nr_sectors); drive->io_32bit =0 ;taskfile_output_data (drive, pBuf,SECTOR_WORDS ); +ide_unmap_buffer (pBuf, &flags); drive->io_32bit = io_32bit; rq->errors =0 ; rq->current_nr_sectors--;
@@ -961,6 +968,7 @@struct request *rq =HWGROUP (drive)->rq;ide_hwgroup_t *hwgroup =HWGROUP (drive);char *pBuf =NULL ; +unsigned long flags;/* * (ks/hs): Handle last IRQ on multi-sector transfer,
@@ -994,10 +1002,11 @@if (!msect) { nsect =1 ;while (rq->current_nr_sectors) { - pBuf = rq->buffer + ((rq->nr_sectors - rq->current_nr_sectors) *SECTOR_SIZE ); + pBuf =ide_unmap_buffer (rq, &flags);DTF ("Multiwrite: %p, nsect: %d, rq->current_nr_sectors: %ld\n" , pBuf, nsect, rq->current_nr_sectors); drive->io_32bit =0 ;taskfile_output_data (drive, pBuf, nsect *SECTOR_WORDS ); +ide_unmap_buffer (pBuf, &flags); drive->io_32bit = io_32bit; rq->errors =0 ; rq->current_nr_sectors -= nsect;
@@ -1009,11 +1018,12 @@#endif /* ALTSTAT_SCREW_UP */ nsect = (rq->current_nr_sectors > msect) ? msect : rq->current_nr_sectors; - pBuf = rq->buffer + ((rq->nr_sectors - rq->current_nr_sectors) *SECTOR_SIZE ); + pBuf =ide_map_buffer (rq, &flags);DTF ("Multiwrite: %p, nsect: %d , rq->current_nr_sectors: %ld\n" , pBuf, nsect, rq->current_nr_sectors); drive->io_32bit =0 ;taskfile_output_data (drive, pBuf, nsect *SECTOR_WORDS ); +ide_unmap_buffer (pBuf, &flags); drive->io_32bit = io_32bit; rq->errors =0 ; rq->current_nr_sectors -= nsect;