From patchwork Fri Sep 11 01:25:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 53400 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 patches.linaro.org (Postfix) with ESMTPS id 7DD7822B19 for ; Fri, 11 Sep 2015 01:36:25 +0000 (UTC) Received: by lbbmp1 with SMTP id mp1sf19573543lbb.2 for ; Thu, 10 Sep 2015 18:36:23 -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: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=as84tHtCHgN9AeXtPbHvhd/+bRPZbisu5eW/xBfzSMY=; b=jcBrCAu6u1FAWcuOg+zi9SKVNiaDutCYoATncMXcwb3dWl/1V0riFOoEslhDZz3pAf giKplM4ILvKW71eVsxfvoiTnW1kZNPfQCfIKYfSklMVL/pXtGk/WwuUlRpsaB3ADZQLd QAp6+7GskvxRJrgojx4W6fyffTgbU1EGKaUxWtCKojfrZn06k6Xbld+voJTt6bm6lc2A DlMNb13KP1pgNDdX4MEb+e0am541Ev+g1uzJ3ukmqDd2Kn5i6QkgtaZM7pqoJPytR8Y3 YzqZ6txWcSX1pg4oZfdVNMdiUWO/1rvQqeZVFcXTQuVmy/MQxkvkOtTTRmvlEBSsDMN8 FpNA== X-Gm-Message-State: ALoCoQkgc+EFypuwmkvwh+E8nw3I2OYD/ylX7/hRA0ouHJ2jzS2ES8RzzwZw4NdElTx64hIqbREg X-Received: by 10.152.27.10 with SMTP id p10mr10580034lag.1.1441935383888; Thu, 10 Sep 2015 18:36:23 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.19.231 with SMTP id i7ls272010lae.1.gmail; Thu, 10 Sep 2015 18:36:23 -0700 (PDT) X-Received: by 10.112.141.233 with SMTP id rr9mr12268325lbb.62.1441935383539; Thu, 10 Sep 2015 18:36:23 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id kv10si12164067lac.152.2015.09.10.18.36.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Sep 2015 18:36:23 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by lamp12 with SMTP id p12so38345556lam.0 for ; Thu, 10 Sep 2015 18:36:23 -0700 (PDT) X-Received: by 10.112.156.167 with SMTP id wf7mr11358044lbb.88.1441935383087; Thu, 10 Sep 2015 18:36:23 -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 w3csp1290455lbq; Thu, 10 Sep 2015 18:36:22 -0700 (PDT) X-Received: by 10.107.3.168 with SMTP id e40mr66138983ioi.151.1441935382085; Thu, 10 Sep 2015 18:36:22 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id e14si9067130ioi.65.2015.09.10.18.36.21; Thu, 10 Sep 2015 18:36:22 -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 EBD2461A34; Fri, 11 Sep 2015 01:36:20 +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 DC7E06197B; Fri, 11 Sep 2015 01:36:11 +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 C736B61A33; Fri, 11 Sep 2015 01:36:03 +0000 (UTC) Received: from mail-ob0-f179.google.com (mail-ob0-f179.google.com [209.85.214.179]) by lists.linaro.org (Postfix) with ESMTPS id 75A766197B for ; Fri, 11 Sep 2015 01:26:05 +0000 (UTC) Received: by obbbh8 with SMTP id bh8so49499697obb.0 for ; Thu, 10 Sep 2015 18:26:05 -0700 (PDT) X-Received: by 10.182.58.105 with SMTP id p9mr34440581obq.11.1441934764713; Thu, 10 Sep 2015 18:26:04 -0700 (PDT) Received: from Ubuntu15.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by smtp.gmail.com with ESMTPSA id jp2sm7408920oeb.4.2015.09.10.18.26.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 Sep 2015 18:26:03 -0700 (PDT) From: Bill Fischofer To: stuart.haslam@linaro.org, lng-odp@lists.linaro.org Date: Thu, 10 Sep 2015 20:25:56 -0500 Message-Id: <1441934756-22142-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 X-Topics: patch Subject: [lng-odp] [PATCH] linux-generic: queue: direct internal enqueues to target queue 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: bill.fischofer@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.49 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 Fix Bug https://bugs.linaro.org/show_bug.cgi?id=1803 by ensuring that enqueues are directed at a buffer's target rather than origin queue. Signed-off-by: Bill Fischofer Reviewed-by: Nicolas Morey-Chaisemartin --- platform/linux-generic/odp_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_queue.c b/platform/linux-generic/odp_queue.c index ac933da..99a663d 100644 --- a/platform/linux-generic/odp_queue.c +++ b/platform/linux-generic/odp_queue.c @@ -570,7 +570,7 @@ int odp_queue_enq(odp_queue_t handle, odp_event_t ev) int queue_enq_internal(odp_buffer_hdr_t *buf_hdr) { - return buf_hdr->origin_qe->s.enqueue(buf_hdr->target_qe, buf_hdr, + return buf_hdr->target_qe->s.enqueue(buf_hdr->target_qe, buf_hdr, buf_hdr->flags.sustain); }