From patchwork Tue Oct 29 14:14:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jose Abreu X-Patchwork-Id: 1186128 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=synopsys.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.b="iNG18Otb"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 472YX43Qlwz9sR4 for ; Wed, 30 Oct 2019 01:15:32 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389269AbfJ2OP3 (ORCPT ); Tue, 29 Oct 2019 10:15:29 -0400 Received: from us03-smtprelay2.synopsys.com ([149.117.87.133]:53394 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389207AbfJ2OPU (ORCPT ); Tue, 29 Oct 2019 10:15:20 -0400 Received: from mailhost.synopsys.com (mdc-mailhost2.synopsys.com [10.225.0.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 3731FC04BB; Tue, 29 Oct 2019 14:15:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1572358520; bh=nGvMdw6v8QDeKK9JnNRRIrf2w9HChn1Wdr+DNEOBHYA=; h=From:To:Cc:Subject:Date:From; b=iNG18OtbHULWKiWvg4ptyuJZJ/uwepsJ4ZxfBLvqzEPhb6abo/kHUWLbhYAev+oYm mAsJiltcGBwyFA0hqWlhQ9D7f1WoSnonrGO1w604iQQEH9JFOrkj2SAveDuU6AVn+m a07foVBen1Qu8Ie+fjtuv0utJN9SvCUbfryp5dlPfOg4p+8gl37g3WYUY++x8FDpWc wuGaWTo7OO1LzTcG+M0TA6XBfnZ0TZDOWq9dY6zKG6w4BXhkekfjCgJLD5KyPb/IJH a4MRmhkwRsbWhKktXJ1/X4g5m3B0MFTyn50B91Gf5oqfL+2YrLcTZlR9WMdf7+bCMZ LSqW4UXNqJx1A== Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by mailhost.synopsys.com (Postfix) with ESMTP id BA0ECA0057; Tue, 29 Oct 2019 14:15:08 +0000 (UTC) From: Jose Abreu To: netdev@vger.kernel.org Cc: Joao Pinto , Jose Abreu , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S. Miller" , Maxime Coquelin , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH net 0/9] net: stmmac: Fixes for -net Date: Tue, 29 Oct 2019 15:14:44 +0100 Message-Id: X-Mailer: git-send-email 2.7.4 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Misc fixes for stmmac. Patch 1/9, corrects a sparse warning reported by kbuild. Patch 2/9 and 3/9, use the correct variable type for bitrev32() calls. Patch 4/9, fixes the random failures the we were seing when running selftests. Patch 5/9, prevents a crash that can occur when receiving AVB packets and with SPH feature enabled on XGMAC. Patch 6/9, fixes the correct settings for CBS on XGMAC. Patch 7/9, corrects the interpretation of AVB feature on XGMAC. Patch 8/9, disables Flow Control for AVB enabled queues on XGMAC. Patch 9/9, disables MMC interrupts on XGMAC, preventing a storm of interrupts. --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: netdev@vger.kernel.org Cc: linux-stm32@st-md-mailman.stormreply.com Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- Jose Abreu (9): net: stmmac: Fix sparse warning net: stmmac: gmac4: bitrev32 returns u32 net: stmmac: xgmac: bitrev32 returns u32 net: stmmac: selftests: Must remove UC/MC addresses to prevent false positives net: stmmac: xgmac: Only get SPH header len if available net: stmmac: xgmac: Fix TSA selection net: stmmac: xgmac: Fix AV Feature detection net: stmmac: xgmac: Disable Flow Control when 1 or more queues are in AV net: stmmac: xgmac: Disable MMC interrupts by default drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c | 4 +- .../net/ethernet/stmicro/stmmac/dwxgmac2_core.c | 5 +- .../net/ethernet/stmicro/stmmac/dwxgmac2_descs.c | 3 +- drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c | 4 +- drivers/net/ethernet/stmicro/stmmac/hwif.h | 2 +- drivers/net/ethernet/stmicro/stmmac/mmc_core.c | 6 +- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 5 +- .../net/ethernet/stmicro/stmmac/stmmac_selftests.c | 104 +++++++++++++++------ 8 files changed, 94 insertions(+), 39 deletions(-)