From: Taniya Das <tdas@codeaurora.org>
To: linux-arm-kernel@lists.infradead.org, linux@arm.linux.org.uk
Cc: linux-arm-msm@vger.kernel.org, tsoni@codeaurora.org
Subject: arm_memblock_steal() API usage
Date: Tue, 03 Apr 2012 09:34:03 +0530 [thread overview]
Message-ID: <4F7A76B3.3070405@codeaurora.org> (raw)
Hi RMK,
I have a requirement where I need around ~100 bytes of memory to save
contents of
registers to a non-cached area before going into low power mode.
I did do some analysis on a 1GB RAM device of allocating 8 bytes using
the API and the below was the result
was showing allocating only 8 bytes.
API used : - arm_memblock_steal(SZ_8, SZ_64K);--> physical address
returned is 0x3b1f0000
/data/debug/memblock # cat memory
0: 0x00200000..0x3b1effff
1: 0x3b1f0008..0x3b1fffff [0x3b1f0000-0x3b1f0007] only 8 bytes removed.
/data/debug/memblock # cat reserved
0: 0x00204000..0x00c710fb
1: 0x01400000..0x01429b44
2: 0x0ffe0000..0x0ffeffff
3: 0x2d9f3000..0x2d9fffff
4: 0x3b1f0008..0x3b1fffff
But before I can go ahead and use this if you could confirm that it will
allocate only the size requested or it
will carve out minimum 1MB?
Also is this API advisable for devices with low system RAM?
--
Thanks& Regards,
Taniya Das.
Consultant for Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum
next reply other threads:[~2012-04-03 4:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-03 4:04 Taniya Das [this message]
2012-04-03 7:30 ` arm_memblock_steal() API usage Russell King - ARM Linux
2012-04-04 5:06 ` Taniya Das
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=4F7A76B3.3070405@codeaurora.org \
--to=tdas@codeaurora.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=tsoni@codeaurora.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).