From patchwork Fri Sep 11 12:53:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 53469 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by patches.linaro.org (Postfix) with ESMTPS id 04EB722B26 for ; Fri, 11 Sep 2015 12:54:27 +0000 (UTC) Received: by lagj9 with SMTP id j9sf27189670lag.0 for ; Fri, 11 Sep 2015 05:54:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references: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=O81nSWBtlKqQoCHJGiy5k+CyrHZbLYCemf8Lrp6c2n0=; b=OR82DXfdzfNdO+0RuQ4qmtSgtrmH5TuoVdY6FxeC3bhL5KsMwBTjJp7dIkLZMPcBAQ dTeGMTPbDmopGcqv6F+8NvJa6aHMvNeF8UpdE0EOg4EqryERuAPW92kfs1X99ZPz2Fws hTNrINq01Z2l5nEPOvpewetHR2jQcJrvCk2bzXOd/w7N2KgqXcOiVSuXu0w5McCC5Oy7 v5Eb2i15A0rhidM81X9DxfMvQ40kMfJGORFa+KK5moCKLbDBtpVIWL90ZQsX63g0Ktcl kih7wqzF5nRf+J7kUK0fYoEdEbdpR9sNO01/4cKqJP7cB9yfEi+Dvg8EodMQYlGILjEl jG3g== X-Gm-Message-State: ALoCoQme4m/KVnz29bY3FyID/gaHaYHL9qhX203HV2e+0S8jBJfo7XmsuUR7258n/BQ44XJ8kIwg X-Received: by 10.152.21.233 with SMTP id y9mr11282490lae.5.1441976065984; Fri, 11 Sep 2015 05:54:25 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.198.135 with SMTP id jc7ls333878lac.54.gmail; Fri, 11 Sep 2015 05:54:25 -0700 (PDT) X-Received: by 10.112.128.227 with SMTP id nr3mr14440651lbb.42.1441976065825; Fri, 11 Sep 2015 05:54:25 -0700 (PDT) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id v9si140603lav.132.2015.09.11.05.54.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Sep 2015 05:54:25 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by lbcao8 with SMTP id ao8so39001874lbc.3 for ; Fri, 11 Sep 2015 05:54:25 -0700 (PDT) X-Received: by 10.152.178.165 with SMTP id cz5mr41367753lac.29.1441976065693; Fri, 11 Sep 2015 05:54:25 -0700 (PDT) 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.59.35 with SMTP id w3csp1575842lbq; Fri, 11 Sep 2015 05:54:24 -0700 (PDT) X-Received: by 10.50.79.167 with SMTP id k7mr15518518igx.28.1441976064684; Fri, 11 Sep 2015 05:54:24 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 92si330079iok.118.2015.09.11.05.54.23; Fri, 11 Sep 2015 05:54:24 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id A853D61BBE; Fri, 11 Sep 2015 12:54:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 80B3C61C9C; Fri, 11 Sep 2015 12:53:31 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 1088061995; Fri, 11 Sep 2015 12:53:27 +0000 (UTC) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com [209.85.217.169]) by lists.linaro.org (Postfix) with ESMTPS id 62D1D61995 for ; Fri, 11 Sep 2015 12:53:22 +0000 (UTC) Received: by lbcao8 with SMTP id ao8so38987310lbc.3 for ; Fri, 11 Sep 2015 05:53:21 -0700 (PDT) X-Received: by 10.152.20.228 with SMTP id q4mr40381031lae.74.1441976001396; Fri, 11 Sep 2015 05:53:21 -0700 (PDT) Received: from localhost.localdomain (ppp91-76-161-180.pppoe.mtu-net.ru. [91.76.161.180]) by smtp.gmail.com with ESMTPSA id rp6sm28510lbb.44.2015.09.11.05.53.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 11 Sep 2015 05:53:20 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Fri, 11 Sep 2015 15:53:12 +0300 Message-Id: <1441975993-4687-3-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1441975993-4687-1-git-send-email-maxim.uvarov@linaro.org> References: <1441975993-4687-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv2 2/3] linix-generic: _odp_pri account 64 bits X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 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" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: maxim.uvarov@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.169 as permitted sender) smtp.mailfrom=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 _odp_pri returns uint64_t value but actually accounts only 32 bit. In my case that lead to return the same value for printed packets with additional handle bits. Signed-off-by: Maxim Uvarov --- platform/linux-generic/include/odp/plat/strong_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/include/odp/plat/strong_types.h b/platform/linux-generic/include/odp/plat/strong_types.h index a53d763..843e2d2 100644 --- a/platform/linux-generic/include/odp/plat/strong_types.h +++ b/platform/linux-generic/include/odp/plat/strong_types.h @@ -25,7 +25,7 @@ #endif /** Internal macro to get value of an ODP handle */ -#define _odp_typeval(handle) ((uint32_t)(uintptr_t)(handle)) +#define _odp_typeval(handle) ((uint64_t)(uintptr_t)(handle)) /** Internal macro to get printable value of an ODP handle */ #define _odp_pri(handle) ((uint64_t)_odp_typeval(handle))