John Klos <[email protected]> wrote: >I've noticed problems in three places and only recently did it occur to me >that they may all be related.
[snip] >All three of these machines have much older IDE, so I'm wondering what in >NetBSD changed that may've have caused this. I would guess that one thing all have in common is lack of DMA. I have been using a local patch for an ofppc machine that can only do PIO with the IDE controller, can try latest -current on it over the weekend.
Index: atapi_wdc.c =================================================================== RCS file: /cvsroot/src/sys/dev/scsipi/atapi_wdc.c,v retrieving revision 1.138 diff -u -r1.138 atapi_wdc.c --- atapi_wdc.c 13 Apr 2020 10:49:34 -0000 1.138 +++ atapi_wdc.c 13 Nov 2020 21:28:04 -0000 @@ -739,7 +739,7 @@ #if NATA_DMA int error; #endif -#if NATA_DMA || NATA_PIOBM +#if NATA_DMA int dma_flags = 0; #endif void *cmd; @@ -831,7 +831,7 @@ * previously recorded, else continue normal processing */ -#if NATA_DMA || NATA_PIOBM +#if NATA_DMA if (xfer->c_flags & (C_DMA | C_PIOBM)) dma_flags = (sc_xfer->xs_control & XS_CTL_DATA_IN) ? WDC_DMA_READ : 0;
