RE: Patch 2.1.x sr.c

PARMELAN Edouard (parmee@postecss.ncrfran.france.ncr.com)
Fri, 22 Nov 96 17:54:00 PST


Hi,

> With 2.1.x, I have lot of "Running low on SCSI DMA..." messages on
> console and
> in /var/log/kernel:
> Nov 19 22:26:08 woxlab kernel: Module inserted: Generic CD-ROM driver,
v
> 1.21 1996/11/08 03:24:49
> Nov 19 22:26:08 woxlab kernel: Detected scsi CD-ROM sr0 at scsi0,
channel
> 0, id 3, lun 0
> Nov 19 22:26:08 woxlab kernel: Disc change detected.
> Nov 19 22:26:08 woxlab kernel: sr: use "Sony group" multisession code
> Nov 19 22:26:08 woxlab kernel: VFS: Disk change detected on device
0b:00
> Nov 19 22:26:08 woxlab kernel: Max size:340424 Log zone size:2048
> Nov 19 22:26:08 woxlab kernel: First datazone:36 Root inode number
> 73728
> Nov 19 22:26:08 woxlab kernel: ISO9660 Extensions: RRIP_1991A
> Nov 19 22:27:16 woxlab kernel: Cannot read proc file system.
> Nov 19 22:27:46 woxlab last message repeated 6511 times
> Nov 19 22:28:47 woxlab last message repeated 16548 times
[...]
> Nov 19 22:48:07 woxlab last message repeated 20295 times
> Nov 19 22:49:07 woxlab last message repeated 19428 times
>
> when I read big file from SCSI CD-ROM. (I can read it and file is
> correct).
>
> I don't have this problem with my SCSI disk (root fs).

> After a look to drivers/scsi/sr.c and drivers/scsi/sd.c, I found what's

> wrong:

> In sd.c ALL tests with ISA_DMA_THRESHOLD call virt_to_phys() and
> virt_to_phys() is ONLY call with ISA_DMA_THRESHOLD tests.

> In sr.c virt_to_phys() is NEVER call. In ALL tests with
> ISA_DMA_THRESHOLD I add
> the virt_to_phys() call. It's work fine with 2.1.10 and may apply to

> 2.1.11.

Edouard.Parmelan@France.NCR.COM

> --- drivers/scsi/sr.c.orig Thu Nov 21 22:58:02 1996
> +++
> drivers/scsi/sr.c Thu Nov 21 23:04:17 1996
> @@ -35,6 +35,7 @@
> #include
> <linux/interrupt.h>
Fucking Micro$oft Exchange :(

The patch:
[[ SR~1.C-P : 3867 in SR~1.C-P ]]

edouard

The following binary file has been uuencoded to ensure successful
transmission. Use UUDECODE to extract.

begin 600 SR~1.C-P
M+2TM(&1R:79E<G,O<V-S:2]S<BYC+F]R:6<)5&AU($YO=B`R,2`R,CHU.#HP
M,B`Q.3DV"BLK*R!D<FEV97)S+W-C<VDO<W(N8PE4:'4@3F]V(#(Q(#(S.C`T
M.C$W(#$Y.38*0$`@+3,U+#8@*S,U+#<@0$`*("-I;F-L=61E(#QL:6YU>"]I
M;G1E<G)U<'0N:#X*("-I;F-L=61E(#QL:6YU>"]C;VYF:6<N:#X*("-I;F-L
M=61E(#QA<VTO<WES=&5M+F@^"BLC:6YC;'5D92`\87-M+VEO+F@^"B`*("-D
M969I;F4@34%*3U)?3E(@4T-325]#1%)/35]-04I/4@H@(VEN8VQU9&4@/&QI
M;G5X+V)L:RYH/@I`0"`M-C$W+#<@*S8Q."PW($!`"B`)"2`@("!I9B`H8V]U
M;G0K,2`A/2!30W!N="T^=7-E7W-G*2!P86YI8R@B0F%D('-R(')E<75E<W0@
M;&ES="(I.PH@"0D@("`@8G)E86L["B`)"7T["BT)"6EF("@H*&QO;F<I('-G
M<&YT6V-O=6YT72YA9&1R97-S*2`K('-G<&YT6V-O=6YT72YL96YG=&@@+2`Q
M(#X**PD):68@*'9I<G1?=&]?<&AY<RAS9W!N=%MC;W5N=%TN861D<F5S<RD@
M*R!S9W!N=%MC;W5N=%TN;&5N9W1H("T@,2`^"B`)"2`@("!)4T%?1$U!7U1(
M4D532$],1"`F)B!30W!N="T^:&]S="T^=6YC:&5C:V5D7VES85]D;6$I('L*
M(`D)("`@('-G<&YT6V-O=6YT72YA;'1?861D<F5S<R`]('-G<&YT6V-O=6YT
M72YA9&1R97-S.PH@"0D@("`@+RH@5V4@=')Y('1O(&%V;VED(&5X:&%U<W1I
M;F<@=&AE($1-02!P;V]L+"!S:6YC92!I="!I<R!E87-I97(*0$`@+38X,2PW
M("LV.#(L-R!`0`H@"2`@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