[3353] in linux-scsi channel archive
Re: Warning low DMA Buffers
daemon@ATHENA.MIT.EDU (flavio santos)
Tue Feb 17 10:31:55 1998
Date: Tue, 17 Feb 1998 13:13:15 -0300
From: flavio santos <flavio@dtpdf.gov.br>
Reply-To: flavio@dtpdf.gov.br
To: Eric Youngdale <eric@andante.jic.com>
CC: linux-scsi@vger.rutgers.edu
Eric Youngdale wrote:
>
.......
> I am suggesting is that > you transplant the handling code from sd.c into sr.c.
>
I've tried two alternatives changing the source code and obtained the
following results: 1) the cd was aparentely mounted 2) "panic" after the
first ls. If compiled with the 16Mb limit the device works normally.
.... the the command diff sr.c sr.old has displayed the following lines.
======================= alternative 1 ==============================
879,881d878
< /* change #0 */
< # if 0
< /* end of change #0 */
889,892d885
< /* change #1 */
< this_count = SCpnt->request.current_nr_sectors;
< buff = SCpnt->request.buffer;
< /* end of change #1 */
895,900d887
< /* change #2 */
< #endif
< SCpnt->use_sg = count;
< this_count = counted -= bh->b_size >> 9;
< /* end of change #2 */
<
============================ alternative 2 ========================
.... the the command diff sr.c sr.old has displayed the following lines.
879,881d878
< /* change #0 */
< # if 0
< /* end of change #0 */
889,892d885
< /* change #1 */
< /* this_count = SCpnt->request.current_nr_sectors; */
< /* buff = SCpnt->request.buffer; */
< /* end of change #1 */
895,900d887
< /* change #2 */
< #endif
< SCpnt->use_sg = count;
< this_count = counted -= bh->b_size >> 9;
< /* end of change #2 */
<