From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D2F7CA04DD for ; Wed, 27 Nov 2019 22:39:13 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 943384C9D; Wed, 27 Nov 2019 22:39:13 +0100 (CET) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by dpdk.org (Postfix) with ESMTP id 904044C9D for ; Wed, 27 Nov 2019 22:39:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574890750; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zfAc+CxjcRJUN6tyvb8KW7hHNuAKPcg1lG6ssChpg7w=; b=e4t9ZgS8NzG5hipj/P2ezY650D2isAeP18a2jn9nhR9tANWqsdvN2Dxv+hU1YhxO7JOLqo spYsG35Ph5b8r4ugbjFR+H1FUTW5jGAE0E1s8257/8NrGBfvhHNLsgtZosrLFcJVOPzCNv Mn7Iplhbc2qUG8zj82/JhbuMKo/1KAw= Received: from mail-vs1-f69.google.com (mail-vs1-f69.google.com [209.85.217.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-170-CLP92SA0P66nzugIwakXOA-1; Wed, 27 Nov 2019 16:39:09 -0500 Received: by mail-vs1-f69.google.com with SMTP id g14so3317170vsa.19 for ; Wed, 27 Nov 2019 13:39:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9pL8NTrYHsg8FGPHHBcYWDWdNdxiAb2pwFGTxJmOYB8=; b=t8cX9SsFvR3Cqg0mmOPZx9r/c5fAskFja794qd32WMXU7uHPNVOhL8O0WBDySlreeI xteR02mxEYgZM/ekF8k4VzpTM6QVSUp9bVEzHdfAv7X08TKsJlGibymdghJNfuqj1zDG vANCSsg5Im8ZPTKg41toOaVnpxaTFgxiwYVWy2o3btA/oeYRzFlHXd/bTy+RfbLK2Cd8 OSFIJgqR4XmbZH/3yzcGglVzKgkNedkpmfN0qJIQk1U3BOmt8kBSsRb8de74SPgAc7gm OZ2mD62hLHkwHT0yHjegKo9dgRIbOhakqDRU3N+UaDQ/MsxEB5V+a9Udp4o812RJETlS sRAQ== X-Gm-Message-State: APjAAAXRhrL7ypPhoBkh/J3v6nDD3BfwJZbQdEavnsLYHwFYM5peNXaD AqfXMqTwFI7Mpzy7zvWoCPgFeTS3YiWnIM0Kph7YyaAgcG19eTFDa/C2WlJq7PZbdEWoP2tj+NW GepJox271EExyCkOxoEUxkX8= X-Received: by 2002:a67:ee49:: with SMTP id g9mr27810864vsp.105.1574890748900; Wed, 27 Nov 2019 13:39:08 -0800 (PST) X-Google-Smtp-Source: APXvYqwwY3uemt+e7WbvxNEPhPn/xwsKMSSdArLDYJlsLmHzqXYQmqN+jzbmdpYtGWQ/rH2xB8Leurk4UakTSYbb/rc= X-Received: by 2002:a67:ee49:: with SMTP id g9mr27810844vsp.105.1574890748607; Wed, 27 Nov 2019 13:39:08 -0800 (PST) MIME-Version: 1.0 References: <20191127132027.80239-1-harry.van.haaren@intel.com> In-Reply-To: <20191127132027.80239-1-harry.van.haaren@intel.com> From: David Marchand Date: Wed, 27 Nov 2019 22:38:57 +0100 Message-ID: To: Harry van Haaren Cc: dev , Aaron Conole , dpdk stable X-MC-Unique: CLP92SA0P66nzugIwakXOA-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH] test/service: fix wait for service core X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On Wed, Nov 27, 2019 at 2:20 PM Harry van Haaren wrote: > > This commit fixes a sporadic failure of the service_autotest > unit test, as seen in the DPDK CI. The failure occurs as the main test > thread did not wait on the service-thread to return, and allowing it > to read a flag before the service was able to write to it. > > The fix changes the wait API call to specific the service-core ID, > and this waits for cores with both ROLE_RTE and ROLE_SERVICE. > > The rte_eal_mp_wait_lcore() call does not (and should not) wait > for service cores, so must not be used to wait on service-cores. > > Fixes: f038a81e1c56 ("service: add unit tests") Cc: stable@dpdk.org > > Reported-by: Aaron Conole > Signed-off-by: Harry van Haaren Acked-by: David Marchand Before this patch, reproduced the pb in less than 2 minutes with: # time (log=3D/tmp/$$.log; while true; do echo service_autotest |taskset -c 0-1 build-gcc-static/app/test/dpdk-test --log-level *:8 -l 0-1 >$log 2>&1; grep -q 'Test OK' $log || break; done; cat $log; rm -f $log) With the patch, this loop has been running for 40 minutes. Applied, thanks. -- David Marchand