From: Asutosh Das <asutoshd@codeaurora.org>
To: drzeus@drzeus.cx, linux-mmc@vger.kernel.org
Subject: Query regarding ADMA descriptor allocation
Date: Fri, 11 Jan 2013 18:01:27 +0530 [thread overview]
Message-ID: <50F0061F.6070509@codeaurora.org> (raw)
Hi
In sdhci_add_host function, the number of adma descriptors allocated are
128 and each descriptor consumes 8 bytes and 1 4byte is added in the end
like,
kmalloc((128 * 2 + 1) * 4, GFP_KERNEL);
In sdhci_adma_table_pre function, each node in sg-list is iterated and
in case of a misaligned node, a descriptor is consumed, which means for
a single sg-node 2 descriptors were consumed. Let's say in a situation,
where there are multiple unaligned addresses in multiple sg nodes and
the sg-list length is 128, wouldn't this use up all the 128 descriptors
long before the entire sg-list is traversed ?
--
Sent by a consultant of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
next reply other threads:[~2013-01-11 12:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-11 12:31 Asutosh Das [this message]
2013-01-13 12:20 ` Query regarding ADMA descriptor allocation Asutosh Das
2013-01-15 15:16 ` Subhash Jadavani
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=50F0061F.6070509@codeaurora.org \
--to=asutoshd@codeaurora.org \
--cc=drzeus@drzeus.cx \
--cc=linux-mmc@vger.kernel.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.