| To: | linux-mips@linux-mips.org |
|---|---|
| Subject: | Socket buffer allocation outside DMA-able memory |
| From: | art <art@sigrand.ru> |
| Date: | Fri, 2 Jun 2006 20:26:16 +0700 |
| Organization: | Sigrand LLC |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Reply-to: | art <art@sigrand.ru> |
| Sender: | linux-mips-bounce@linux-mips.org |
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
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re[4]: Problem with TLB mcheck!, art |
|---|---|
| Next by Date: | replacing synthesized tlb handlers with older ones, Prasad Boddupalli |
| Previous by Thread: | Re[4]: Problem with TLB mcheck!, art |
| Next by Thread: | Re: Socket buffer allocation outside DMA-able memory, ashley jones |
| Indexes: | [Date] [Thread] [Top] [All Lists] |