All of lore.kernel.org
 help / color / mirror / Atom feed
From: ashley jones <ashley_jones_2000@yahoo.com>
To: art <art@sigrand.ru>, linux-mips@linux-mips.org
Subject: Re: Socket buffer allocation outside DMA-able memory
Date: Tue, 6 Jun 2006 05:37:35 -0700 (PDT)	[thread overview]
Message-ID: <20060606123735.19115.qmail@web38412.mail.mud.yahoo.com> (raw)
In-Reply-To: <6851.060602@sigrand.ru>

[-- Attachment #1: Type: text/plain, Size: 1476 bytes --]

hi,
         I guess your 25 bit dma address field will be word alligned, so ur dma engine will be able to index up to 64 MB( 25+2 = 27 bits).
   
          If that is not the case then you can use one of the foll. work around,
   
    * dont give whole 64 MB to linux, give only Lower 32 MB.
    * Give only upper 32 MB to linux, and give memory to ur dma engine from lower 32 MB, and once you recv any data you copy to skb and submit to linux. ( ofcourse your performance will get hit in this case.)
   
   
  Regards,
  A'Jones.
  

art <art@sigrand.ru> wrote:
  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





__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[-- Attachment #2: Type: text/html, Size: 1940 bytes --]

  reply	other threads:[~2006-06-06 12:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-02 13:26 Socket buffer allocation outside DMA-able memory art
2006-06-06 12:37 ` ashley jones [this message]
2006-06-07  3:48   ` Re[2]: " art
2006-06-07  5:17     ` ashley jones
2006-06-07  7:37       ` Re[4]: " art
  -- strict thread matches above, loose matches on Subject: below --
2006-06-06 13:33 Zhan, Rongkai
2006-06-06 13:33 ` Zhan, Rongkai
2006-06-06 14:02 Zhan, Rongkai
2006-06-06 14:02 ` Zhan, Rongkai
     [not found] ` <10452.060607@sigrand.ru>
2006-06-07  4:11   ` Mark.Zhan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060606123735.19115.qmail@web38412.mail.mud.yahoo.com \
    --to=ashley_jones_2000@yahoo.com \
    --cc=art@sigrand.ru \
    --cc=linux-mips@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.