test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] framework/dut: Adjust memory allocate for arm64
@ 2018-02-06  2:23 Phil Yang
  2018-02-11 10:32 ` Liu, Yong
  0 siblings, 1 reply; 2+ messages in thread
From: Phil Yang @ 2018-02-06  2:23 UTC (permalink / raw)
  To: dts; +Cc: nd, phil.yang, herbert.guan

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [PATCH] framework/dut: Adjust memory allocate for arm64
  2018-02-06  2:23 [dts] [PATCH] framework/dut: Adjust memory allocate for arm64 Phil Yang
@ 2018-02-11 10:32 ` Liu, Yong
  0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2018-02-11 10:32 UTC (permalink / raw)
  To: Phil Yang, dts; +Cc: nd, herbert.guan

Thanks, Phil. Applied.

On 02/06/2018 10:23 AM, Phil Yang wrote:
> If hugepages_size greater than or equal to 512M, allocate 8 pages for
> DUT.
>
> Signed-off-by: Phil Yang<phil.yang@arm.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-02-11  2:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-06  2:23 [dts] [PATCH] framework/dut: Adjust memory allocate for arm64 Phil Yang
2018-02-11 10:32 ` Liu, Yong

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).