lkml.org 
[lkml]   [1997]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectRe: 2.1.21-patch_drivers_net-1
Date
On Wed, 15 Jan 1997 20:42:48 +0000 (GMT), 
alan@lxorguk.ukuu.org.uk (Alan Cox) wrote:
>> +++ linux/drivers/net/lance.c Wed Jan 15 15:10:18 1997
>> @@ -309,7 +309,7 @@
>> {
>> int *port;
>>
>> - if (high_memory <= 16*1024*1024)
>> + if (high_memory <= (void *) MAX_DMA_ADDRESS)
>> lance_need_isa_bounce_buffers = 0;
>
>Rejected. The original code is correct. The lance 16bit has a 24bit internal
>DMA counter limit.

Since the kernel moved, high_memory is always (at least) 0xC0000000 so
the original code always fails and uses bounce buffers. On my 20Mb
system, high_memory = 0xC1400000, MAX_DMA_ADDRESS = 0xC10000000. The
alternative was

virt_to_bus(high_memory) <= 16*1024*1024

but I dislike hard coded magic numbers.



\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.031 / U:1.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site