test suite reviews and discussions
 help / color / mirror / Atom feed
From: Phil Yang <phil.yang@arm.com>
To: dts@dpdk.org
Cc: nd@arm.com, phil.yang@arm.com, herbert.guan@arm.com
Subject: [dts] [PATCH] framework/dut: Adjust memory allocate for arm64
Date: Tue,  6 Feb 2018 10:23:15 +0800	[thread overview]
Message-ID: <1517883795-13009-1-git-send-email-phil.yang@arm.com> (raw)

If hugepages_size greater than or equal to 512M, allocate 8 pages for
DUT.

Signed-off-by: Phil Yang <phil.yang@arm.com>
---
 framework/dut.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/framework/dut.py b/framework/dut.py
index 9c2a5a8..31b3daa 100644
--- a/framework/dut.py
+++ b/framework/dut.py
@@ -320,7 +320,7 @@ class Dut(Crb):
             elif self.architecture == "ppc_64":
                 arch_huge_pages = hugepages if hugepages > 0 else 512
             elif self.architecture == "arm64":
-                if hugepages_size == "524288":
+                if int(hugepages_size) >= (512 * 1024):
                     arch_huge_pages = hugepages if hugepages > 0 else 8
                 else:
                     arch_huge_pages = hugepages if hugepages > 0 else 2048
-- 
2.7.4

             reply	other threads:[~2018-02-06  2:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-06  2:23 Phil Yang [this message]
2018-02-11 10:32 ` Liu, Yong

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=1517883795-13009-1-git-send-email-phil.yang@arm.com \
    --to=phil.yang@arm.com \
    --cc=dts@dpdk.org \
    --cc=herbert.guan@arm.com \
    --cc=nd@arm.com \
    /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).