All of lore.kernel.org
 help / color / mirror / Atom feed
* Socket buffer allocation outside DMA-able memory
@ 2006-06-02 13:26 art
  2006-06-06 12:37 ` ashley jones
  0 siblings, 1 reply; 5+ messages in thread
From: art @ 2006-06-02 13:26 UTC (permalink / raw)
  To: linux-mips

Hello all!
I work with ADM5120 chip. it has embedded switch.
Switch descriptor has 25-bit dma addres field - so addressible only
32Mb!
My system has 64Mb memory. But I have to set 32Mb to make it work!
I thought that setting DMA mask can help. So in
/arch/mips/adm5120/setup.c i make:

static struct platform_device adm5120hcd_device = {
        .name           = "adm5120-hcd",
        .id             = -1,
        .dev            = {
        .dma_mask               = &hcd_dmamask,
        .coherent_dma_mask      = 0x01ffffff,
        },
        .num_resources  = ARRAY_SIZE(adm5120_hcd_resources),
        .resource       = adm5120_hcd_resources,
};
But It is wrong, because dev_alloc_skb dont know to which device it
allocates buffer!

How to tell kernel allocate skbuffers in less then 32Mb addrspace whet
system has 64Mb?

-- 
Best regards,
 art                          mailto:art@sigrand.ru

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-06-07  7:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-02 13:26 Socket buffer allocation outside DMA-able memory art
2006-06-06 12:37 ` ashley jones
2006-06-07  3:48   ` Re[2]: " art
2006-06-07  5:17     ` ashley jones
2006-06-07  7:37       ` Re[4]: " art

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.