From patchwork Fri Feb 27 10:40:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stuart Haslam X-Patchwork-Id: 45215 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 69243204BC for ; Fri, 27 Feb 2015 10:41:34 +0000 (UTC) Received: by lbdu10 with SMTP id u10sf13679827lbd.3 for ; Fri, 27 Feb 2015 02:41:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=a/vDcGaFO3mUeWjgAnWUaCKrtf/3MEVP14MdWu1P+38=; b=Iv4fkQ0HKGDZdORqn0QHkk3dmZJmeKJZXwKuK1UEORN6LjFyZNm9JmNN6cKNO/gyGE GkJxl+2gALVlzTl7kLb5gkzsdAV0tqUp+WdFNvVaNe01zInBpPuXlxNd1G6+dLdPLiY4 WKdbzclSO8D5f1ZKA+dnPRuywZ6UFYA7UWrtyxWLBMsm8f++TOH12TZHzGzCyk51lrxZ C5M/FORdsWiS5paRQKyIH2YWdY8IBbIGal+6jx3dHMW4ktzRKM/yPffF3139O6YuSLCn Pt6ug1YzBYEDGO64dUBMLQ5TRmK6364d3SBtlfrmDpaWq3/o922VQejEL/JlMWhuKdsY f7HQ== X-Gm-Message-State: ALoCoQn0pmm21g8FFnQxu/qGt+DymmHZoClUqpQo8U0l4WruTeE5mkxkeIvTT8v4XDjE4p+4zUtG X-Received: by 10.152.6.232 with SMTP id e8mr1955809laa.2.1425033693466; Fri, 27 Feb 2015 02:41:33 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.207.101 with SMTP id lv5ls148934lac.22.gmail; Fri, 27 Feb 2015 02:41:33 -0800 (PST) X-Received: by 10.152.8.229 with SMTP id u5mr11823010laa.4.1425033693323; Fri, 27 Feb 2015 02:41:33 -0800 (PST) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id q20si2588957laa.114.2015.02.27.02.41.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Feb 2015 02:41:33 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by lams18 with SMTP id s18so16652457lam.11 for ; Fri, 27 Feb 2015 02:41:33 -0800 (PST) X-Received: by 10.152.43.51 with SMTP id t19mr11609853lal.73.1425033693004; Fri, 27 Feb 2015 02:41:33 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp3850276lbj; Fri, 27 Feb 2015 02:41:32 -0800 (PST) X-Received: by 10.140.235.197 with SMTP id g188mr27090284qhc.86.1425033691804; Fri, 27 Feb 2015 02:41:31 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id 63si3618068qhw.119.2015.02.27.02.41.29 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 27 Feb 2015 02:41:31 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YRIMI-0002V5-Gc; Fri, 27 Feb 2015 10:41:26 +0000 Received: from mail-wg0-f52.google.com ([74.125.82.52]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YRIMC-0002V0-Pe for lng-odp@lists.linaro.org; Fri, 27 Feb 2015 10:41:20 +0000 Received: by wggz12 with SMTP id z12so19301848wgg.2 for ; Fri, 27 Feb 2015 02:41:15 -0800 (PST) X-Received: by 10.194.192.4 with SMTP id hc4mr26561068wjc.59.1425033675276; Fri, 27 Feb 2015 02:41:15 -0800 (PST) Received: from e106441.cambridge.arm.com ([2001:41d0:a:3cb4::1]) by mx.google.com with ESMTPSA id l6sm5335895wjx.33.2015.02.27.02.41.14 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Feb 2015 02:41:14 -0800 (PST) From: Stuart Haslam To: lng-odp@lists.linaro.org Date: Fri, 27 Feb 2015 10:40:59 +0000 Message-Id: <1425033659-5207-1-git-send-email-stuart.haslam@linaro.org> X-Mailer: git-send-email 2.1.1 X-Topics: Architecture patch Subject: [lng-odp] [PATCH] linux-generic: system: read hugepage size for all architectures X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: stuart.haslam@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 The odp_system test is failing for arm and arm64 because the implementation makes no attempt to determine availability of hugepages. Signed-off-by: Stuart Haslam --- platform/linux-generic/odp_system_info.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_system_info.c b/platform/linux-generic/odp_system_info.c index de52d49..3b044f1 100644 --- a/platform/linux-generic/odp_system_info.c +++ b/platform/linux-generic/odp_system_info.c @@ -86,6 +86,7 @@ static int systemcpu_cache_line_size(void) return size; } +#endif static int huge_page_size(void) @@ -116,7 +117,6 @@ static int huge_page_size(void) return size*1024; } -#endif /* @@ -334,6 +334,8 @@ static int systemcpu(odp_system_info_t *sysinfo) sysinfo->cpu_count = ret; + odp_system_info.huge_page_size = huge_page_size(); + /* Dummy values */ sysinfo->cpu_hz = 1400000000; sysinfo->cache_line_size = 64;