Received: by 10.213.65.68 with SMTP id h4csp1291064imn; Sun, 18 Mar 2018 23:14:35 -0700 (PDT) X-Google-Smtp-Source: AG47ELtAmKkxUlByF9eltdYZ6FAzDs87IowDdFNdArTLRwZqVWR0Aa4hdwK/yg2g+LCmiIpobyMm X-Received: by 2002:a17:902:42e:: with SMTP id 43-v6mr11097574ple.186.1521440074964; Sun, 18 Mar 2018 23:14:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521440074; cv=none; d=google.com; s=arc-20160816; b=CBtfdsOEOnuWnR1vCFrCYhrqocI1pysgt5v+F8PfqQexwQk2rfj2RVPz7Kjqr3YEu8 c4i+h3h4jb+Rymga/1D/ihwf2hyB5+Uq/F2YhkuDrBqOI/L7/WvJn/Ldh6/RrU30vbOH QiHcG5i08EXf3AJlFkq2HCK7tmiGBE5u5Wsiu1RJGsbUv8ekcAk8F4DuVbFTF/bnAoOB 96W1D22jhprTA7Fc0SkLNucQg3Ep4M+evZUyCfGl53edyPJ0GmLqffYewH/tEMek1nN+ CIBEuiL4goy34uz/xp1K7vBVtH4gC7Bsko8P628wfl52ItFtY2/aARDp5oOUnSqrZ/Sj 2blA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=w0HwQEzRc/GI/YCfZgPnXlL39CW8gGiaAigyJ9yhaPI=; b=04JCfeS5OCTyoT1iLPRD80Qc/Dz67vwXOlRuhl/sLO+2M7l7YC4bTyj+y26QpWGM2o ovsmKm+dQtfhrtfgVGmyYtQ+CtVRk+s+szKorHXJjjkMB2Rz0J/JTlztR3TrKXpY4wuU 4TkzFOTQ9qEDbypCU4tb6lBLySFrseqKtTapICfyqFFfp60prcXKk7/E75N5uLgGVKi8 w0ehZbDntneVI3MtoXprvdl+xa7J9oAam4C3Bg71staUJiRGobRDLbGWkQncecLdWNQi kYD+zN5fEzXixdKHdDy4mxy9AB+uhqzG76pss9Thkd3ibVAnKHGstdAptqDWPwXLwJ27 JFfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m12si9240266pgr.85.2018.03.18.23.14.20; Sun, 18 Mar 2018 23:14:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932181AbeCSGNS (ORCPT + 99 others); Mon, 19 Mar 2018 02:13:18 -0400 Received: from webbox1416.server-home.net ([77.236.96.61]:60750 "EHLO webbox1416.server-home.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755200AbeCSGNP (ORCPT ); Mon, 19 Mar 2018 02:13:15 -0400 X-Greylist: delayed 348 seconds by postgrey-1.27 at vger.kernel.org; Mon, 19 Mar 2018 02:13:14 EDT Received: from imapserver.systec-electronic.com (unknown [212.185.67.146]) by webbox1416.server-home.net (Postfix) with ESMTPA id 99A2927A5BC; Mon, 19 Mar 2018 07:07:25 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by imapserver.systec-electronic.com (Postfix) with ESMTP id 77BD61A5969; Mon, 19 Mar 2018 07:07:25 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at imapserver.systec-electronic.com Received: from imapserver.systec-electronic.com ([127.0.0.1]) by localhost (imapserver.systec-electronic.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4zSGuNxPbcwv; Mon, 19 Mar 2018 07:07:05 +0100 (CET) Received: from ws-stein.localnet (ws-stein.systec.local [192.168.10.92]) by imapserver.systec-electronic.com (Postfix) with ESMTPA id 75C2E1A5965; Mon, 19 Mar 2018 07:07:05 +0100 (CET) From: Alexander Stein To: Jakob Unterwurzacher Cc: John Fastabend , Dave Taht , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , "linux-can@vger.kernel.org" , Martin Elshuber Subject: Re: [bug, bisected] pfifo_fast causes packet reordering Date: Mon, 19 Mar 2018 07:07:05 +0100 Message-ID: <1950329.Eot9n0FZxY@ws-stein> In-Reply-To: <340a6c54-6031-5522-98f5-eafdd3a37a38@theobroma-systems.com> References: <946dbe16-a2eb-eca8-8069-468859ccc78d@theobroma-systems.com> <5aeb54ba-2d96-4ab5-53c4-2d3691be7acc@gmail.com> <340a6c54-6031-5522-98f5-eafdd3a37a38@theobroma-systems.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday, March 16, 2018, 11:26:47 AM CET Jakob Unterwurzacher wrote: > On 15.03.18 23:30, John Fastabend wrote: > >> I have reproduced it using two USB network cards connected to each other. The test tool sends UDP packets containing a counter and listens on the other interface, it is available at > >> https://github.com/jakob-tsd/pfifo_stress/blob/master/pfifo_stress.py > >> > > > > Great thanks, can you also run this with taskset to bind to > > a single CPU, > > > > # taskset 0x1 ./pifof_stress.py > > > > And let me know if you still see the OOO. > > Interesting. Looks like it depends on which core it runs on. CPU0 is > clean, CPU1 is not. > > Clean: taskset --cpu-list 0 ./pfifo_stress.py > > Broken: taskset --cpu-list 1 ./pfifo_stress.py > > Maybe related: CPU0 is where USB interrupts are handled: > > > root@rk3399-q7:~# cat /proc/interrupts > > CPU0 CPU1 CPU2 CPU3 CPU4 CPU5 > > 217: 2175353 0 0 0 0 0 GICv3 142 Level xhci-hcd:usb5 This reminds me somewhat of this thread: https://marc.info/?l=linux-can&m=148007442317274&w=2 Best regards, Alexander