From patchwork Fri Feb 27 14:55:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stuart Haslam X-Patchwork-Id: 45236 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BD760204BC for ; Fri, 27 Feb 2015 14:56:44 +0000 (UTC) Received: by lbiz11 with SMTP id z11sf14927992lbi.2 for ; Fri, 27 Feb 2015 06:56:43 -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=zlpyYoADxiZodGLgXLr8pHC3ukp1FgpM7EtrwjUKsqM=; b=KdWqlOh6rzE7t23Qe016w9WtKAJE+G8H9Qq4JJ8aQ9mCsX4+ccUHqNsSWm0RmKXUgg tlIrp3MS7RzPrszdHd2xkL5vdlIiOgqaGIrkz3j6UgZjWzXTPpnGL3EmMotiHKAg6jY0 l5U6JAP6WPrD7gmIz/Itea08hEdkQXP0tUBsbqgChkwlnjnEFUMsVKcmXunZkRWz9p32 0vCAtH51qCUB09iWJKcYjYvIEMf1KvUqPJ/7ZgvWKFWUa8D2xYbwV9h3l4XRuLUnneEm LcbA3e5KF0LbchFK09Mm0JxQgL03PO0ogAcJcgNKVBlmZQmd6oOMQYA/BfjqPD/Mtr1U /NOA== X-Gm-Message-State: ALoCoQkew5PvGpvFGZp9UkG58nR6IcoaM4d7Oue479BfxxKXzzuqV1LzDnAYw6NoDcXyITWarPG/ X-Received: by 10.112.222.131 with SMTP id qm3mr2093177lbc.1.1425049003702; Fri, 27 Feb 2015 06:56:43 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.181.137 with SMTP id dw9ls164263lac.85.gmail; Fri, 27 Feb 2015 06:56:43 -0800 (PST) X-Received: by 10.112.159.195 with SMTP id xe3mr13105838lbb.64.1425049003560; Fri, 27 Feb 2015 06:56:43 -0800 (PST) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id e12si3121434lbq.46.2015.02.27.06.56.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Feb 2015 06:56:43 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by lbdu14 with SMTP id u14so17733052lbd.1 for ; Fri, 27 Feb 2015 06:56:43 -0800 (PST) X-Received: by 10.112.181.41 with SMTP id dt9mr13287912lbc.56.1425049003434; Fri, 27 Feb 2015 06:56:43 -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 h5csp3992124lbj; Fri, 27 Feb 2015 06:56:42 -0800 (PST) X-Received: by 10.141.23.208 with SMTP id z199mr29857138qhd.27.1425049002217; Fri, 27 Feb 2015 06:56:42 -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 q82si4218019qha.103.2015.02.27.06.56.40 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 27 Feb 2015 06:56:42 -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 1YRMLG-0006n6-N2; Fri, 27 Feb 2015 14:56:38 +0000 Received: from mail-wi0-f181.google.com ([209.85.212.181]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YRMLB-0006mu-Gp for lng-odp@lists.linaro.org; Fri, 27 Feb 2015 14:56:33 +0000 Received: by wibbs8 with SMTP id bs8so794459wib.0 for ; Fri, 27 Feb 2015 06:56:28 -0800 (PST) X-Received: by 10.180.84.133 with SMTP id z5mr7218726wiy.25.1425048987977; Fri, 27 Feb 2015 06:56:27 -0800 (PST) Received: from e106441.cambridge.arm.com ([2001:41d0:a:3cb4::1]) by mx.google.com with ESMTPSA id dt7sm3123856wib.19.2015.02.27.06.56.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Feb 2015 06:56:27 -0800 (PST) From: Stuart Haslam To: lng-odp@lists.linaro.org Date: Fri, 27 Feb 2015 14:55:54 +0000 Message-Id: <1425048954-29305-1-git-send-email-stuart.haslam@linaro.org> X-Mailer: git-send-email 1.9.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.217.181 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 Fix for https://bugs.linaro.org/show_bug.cgi?id=1289 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..6b6c723 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; + sysinfo->huge_page_size = huge_page_size(); + /* Dummy values */ sysinfo->cpu_hz = 1400000000; sysinfo->cache_line_size = 64;