Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp213053imm; Tue, 18 Sep 2018 20:14:47 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda37o13qJpLTlD+839Y+zeh7jcV1a+lF5MVnsDhEZrzpOiMo9nTHTrbmBw+QYsugaYi9v62 X-Received: by 2002:a17:902:ac97:: with SMTP id h23-v6mr27839674plr.174.1537326887333; Tue, 18 Sep 2018 20:14:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537326887; cv=none; d=google.com; s=arc-20160816; b=nPVmUhhq9QE4UOmRuLeglz2LcCmBdM5ng2fS876q5rEBQSEZgUkctuv9CT6kuh6ujX cMjR93tm2crISKkcwQthy5NKXUsPL4myw4H0tB677G5dF/XQuR8qZoP65XGrFm7UIgS+ KL1qJVrK8hkSqIv6AZdJnBBkuR2LHyYdHZ8XHShHOaS6wPm2i1D7XpTvDRGmOb6JMwbc iuH/l9lqZmeL+8REJE17f08vZpgxpFOkimouaWv7C6Crsdw9LQXJ+XR1XD+twA5CfEEa XpZSeW4ta4BYUchXKCMxaXyYNkGyPpsdApZaCjgm3gk1EI5oC8h0smJ3hjw8rzxvUbca kI0w== 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:from:subject:cc:to:message-id:date; bh=9lW+g3GvFCfZ3dh2DtwQaNZgADgXWBHN9O0bowrlpmg=; b=tmSXcSMPMLFGog8pOtn8wCQuCTuti5ntxifmkSSbNCl8hEcGYwbLeqpPl6L/katiib TlHlnRQ37Ry8q/Z06kdzgUWBUz3K7WZvivZPv8GQpqI/6VfxaapB4s7VjIzPj1T1NOyW brIX54lVlBYxVY0d4A44YvKcQSImZt07aS0+HQTUfDgpp6K8vfuIw+6kULuIUeQ1q7N5 ZP5EtQU7UCaE6AW/txPVyuCucXI8ITfOuXZYiJCqVrQhb69eQw6THjifsaQ1xnOqcrMO pkrvjTgsJj3Ecx1oXsm7Yu89x67oyxwAJBXx4f+t8YOHFlF1Gf6C7a6roLvuUmfNE262 x9PQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l127-v6si21025559pfc.135.2018.09.18.20.14.31; Tue, 18 Sep 2018 20:14:47 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728331AbeISItx (ORCPT + 99 others); Wed, 19 Sep 2018 04:49:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58558 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726044AbeISItx (ORCPT ); Wed, 19 Sep 2018 04:49:53 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2E82288302; Wed, 19 Sep 2018 03:14:06 +0000 (UTC) Received: from localhost (ovpn-112-7.rdu2.redhat.com [10.10.112.7]) by smtp.corp.redhat.com (Postfix) with ESMTP id 98DA060851; Wed, 19 Sep 2018 03:14:02 +0000 (UTC) Date: Tue, 18 Sep 2018 20:14:01 -0700 (PDT) Message-Id: <20180918.201401.955097214067299890.davem@redhat.com> To: antoine.tenart@bootlin.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, maxime.chevallier@bootlin.com, gregory.clement@bootlin.com, miquel.raynal@bootlin.com, nadavh@marvell.com, stefanc@marvell.com, ymarkman@marvell.com, mw@semihalf.com Subject: Re: [PATCH net] net: mvpp2: fix a txq_done race condition From: David Miller In-Reply-To: <20180918145847.11318-1-antoine.tenart@bootlin.com> References: <20180918145847.11318-1-antoine.tenart@bootlin.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Wed, 19 Sep 2018 03:14:06 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Antoine Tenart Date: Tue, 18 Sep 2018 16:58:47 +0200 > When no Tx IRQ is available, the txq_done() routine (called from > tx_done()) shouldn't be called from the polling function, as in such > case it is already called in the Tx path thanks to an hrtimer. This > mostly occurred when using PPv2.1, as the engine then do not have Tx > IRQs. > > Fixes: edc660fa09e2 ("net: mvpp2: replace TX coalescing interrupts with hrtimer") > Reported-by: Stefan Chulski > Signed-off-by: Antoine Tenart Applied and queued up for -stable.