Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1539713ybv; Thu, 20 Feb 2020 22:47:44 -0800 (PST) X-Google-Smtp-Source: APXvYqxvJeR9PyN0qhp8MM9VhHa6T+HUUp0KZ1m7GNrDZUdKxXoajaGKyQIlb6Q6HFStHkmqvGM/ X-Received: by 2002:a54:408f:: with SMTP id i15mr772444oii.64.1582267663967; Thu, 20 Feb 2020 22:47:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582267663; cv=none; d=google.com; s=arc-20160816; b=r0BycFeNa7vPQU4Y6bDf1r9TdRZg1RgedwOYh92SdfnLrRVou6I+Pzr75k2OCfwzi8 pHi4LEGG4OxZnHDr05oqudsDHyltxkdnrvZr30TnwsMGsJQr08whH5++q3ml4YXjA1aL ddKljnT1FhpeFU7h6/0QJgXOL5DFTO8DckLaTwVX3VeXtxklPSI01OAwvsMZDVW18Gyj jJMA0Zto3zF+ob6rfEfsgI/sKXYMCxJmuD5XQTDgNlePQgU5aNpbZEXUylOIaqRZsgsZ HED/GjIs43zV0m7MHJffSGdUH47LQOrxcLJotVpxVqyg9aBsPjnZZC9dm85dF4+NXwKv Ambg== 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 :dkim-signature; bh=21EhTCpBYhzNDVnsTzM8SI10WpXaioGfoENtCjv+1Ac=; b=lyuEof3+cmU2jGEq8kvOeUp9/QdC9g3hApyzVDXF/Dbcc4eFoHibL1XTnDqN5Gp7d8 08vNJ2Cj3zhJBrl+2mhJ18sH4XQYGDWa6vqtIfoGoC8KFmryhq8VS1CZxQB9eFo/paQ0 WrIojGY1OSKqPsMmilkbFoj5VUleI/VWaXP8Ro0e/TV8mpjqpL7ZyUQGoAWMh9JHxWc2 yW+0cg7mpHgJZwpe6JSk5PCL6NCs5SVOQWTf4SYv6vUY8JebT5evNnfq3THfHc93hKKy ZiAT99mvToprXjAMJrwcb/W96FjbtAY7el7mEm1ITE0UUumL+14yALLrU1hBhr3Svw7c v8Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@geanix.com header.s=first header.b=fwDB4CLn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p23si1099082otk.119.2020.02.20.22.47.31; Thu, 20 Feb 2020 22:47:43 -0800 (PST) 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; dkim=pass header.i=@geanix.com header.s=first header.b=fwDB4CLn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727133AbgBUGrN (ORCPT + 99 others); Fri, 21 Feb 2020 01:47:13 -0500 Received: from first.geanix.com ([116.203.34.67]:55352 "EHLO first.geanix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726100AbgBUGrN (ORCPT ); Fri, 21 Feb 2020 01:47:13 -0500 Received: from localhost (87-49-45-242-mobile.dk.customer.tdc.net [87.49.45.242]) by first.geanix.com (Postfix) with ESMTPSA id 845BDAEB4D; Fri, 21 Feb 2020 06:47:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=geanix.com; s=first; t=1582267630; bh=v8hfyWw4kbOSf4Vr8iOqNpwVN5vkMHP3BbYopvXwRbo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=fwDB4CLntBUZXODVM2cahRr/VQAtZPn9lNpIVIiNpOosKQMFtOvNweEJwPzrQFEqz Ej22eU/HJg+Stttbh4O+BGQL2Oz9L+X0uhqlsyxSW/75MM61yAuPH1lXmG1bXqcaKB tF5R9LhsLcCTV7qCLodEdc/W52+THIAcHgbwhQL5oRVSYDuPbnY/68GZ2o7gOv9xb/ 9GN0tBryV5QcONGfisqhk9N4RnENk3oC24JC5nR0JNP2sksliUajyqCfl+7/lRU+Ag HrwnJZN/HTr11ASBMKqVtl8Yc6W9NGNIUY+QnhdRdG1CkyuHii+aaht1d2RrTqom43 CPmXrxArJA32g== From: Esben Haabendal To: netdev@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Andrew Lunn , "David S . Miller" , Michal Simek , =?UTF-8?q?Petr=20=C5=A0tetiar?= Subject: [PATCH net v2 0/4] net: ll_temac: Bugfixes Date: Fri, 21 Feb 2020 07:47:09 +0100 Message-Id: X-Mailer: git-send-email 2.25.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=4.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on 05ff821c8cf1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix a number of bugs which have been present since the first commit. The bugs fixed in patch 1,2 and 4 have all been observed in real systems, and was relatively easy to reproduce given an appropriate stress setup. Changes since v1: - Changed error handling of of dma_map_single() in temac_start_xmit() to drop packet instead of returning NETDEV_TX_BUSY. Esben Haabendal (4): net: ll_temac: Fix race condition causing TX hang net: ll_temac: Add more error handling of dma_map_single() calls net: ll_temac: Fix RX buffer descriptor handling on GFP_ATOMIC pressure net: ll_temac: Handle DMA halt condition caused by buffer underrun drivers/net/ethernet/xilinx/ll_temac.h | 4 + drivers/net/ethernet/xilinx/ll_temac_main.c | 209 ++++++++++++++++---- 2 files changed, 175 insertions(+), 38 deletions(-) -- 2.25.0