RE: Memory BAT and PPC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Steve,

How are you allocating memory now?  With kmalloc?  Kmalloc best I know always allows memory optimization (ala caching).  I'm assuming you're doing DMA transfers and finding garbage in the DMA buffer (not what you thought you put there). In any case, try using consistent_alloc(), I've used this with success on the PPC405; it allocates memory such that it cannot be cached which should solve your dilemma.

--adam

> -----Original Message-----
> From: linux-net-owner@xxxxxxxxxxxxxxx 
> [mailto:linux-net-owner@xxxxxxxxxxxxxxx] On Behalf Of Steve Iribarne
> Sent: Wednesday, October 05, 2005 2:58 PM
> To: linux-net@xxxxxxxxxxxxxxx
> Subject: Memory BAT and PPC
> 
> Hello everyone.
> 
> I am working on an ethernet driver and I am trying to 
> allocate memory that won't get cached.  Problem is sometimes 
> when I allocate memory it comes from the "BAT" pool.  That is 
> the block address translation pool.  This is something 
> particular to the PPC platform.
> 
> Unfortunately, the BAT pool is cached memory.  So what I'm 
> thinking is that I need to get memory allocated NOT from the BAT pool.
> 
> Has anyone else dealt with this.
> 
> I am doing this in the 2.6.10 kernel.
> 
> Thanks. 
> 
> 
> 
> Steve Iribarne
> Sr. Software Engineer
> Dilithium Networks, Inc.
>  
> -
> : send the line "unsubscribe 
> linux-net" in the body of a message to 
> majordomo@xxxxxxxxxxxxxxx More majordomo info at  
> http://vger.kernel.org/majordomo-info.html
> 
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux