From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 536C4C021AD for ; Tue, 18 Feb 2025 19:36:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 87BE14075F; Tue, 18 Feb 2025 19:36:56 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id eLitLP-mZmFO; Tue, 18 Feb 2025 19:36:55 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 1F100406D6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1739907415; bh=BgG6n0zrEP9HpTFNhgNBDu14u9hrl9+026/+VzX4mrs=; h=Date:From:To:Cc:References:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=JnSO5aj81sCZzQtVFQrRX9L8sT03Ui+vHHKMqg+PoAkqOk6Li6uiTtbi6sbghFQvH uLgprOd0/SGYXeWT+eqLxf8nE4ev/sPzeKFCxHLTwhMIpKkKNy0Ho59Gk1xkCFWxbC RnVMyCyIAyyWe5VfERnxCCY/60tAnzQplnpou96l9qV4GyhsKPUAcNB10uAbqV6t3o Dw/eWNga0aN41Hpvrhsmt+Lfb8ynsZOHJY38ow1qjazVVguoCNcGtiNH7kpgXYUi0X MSyNA+RAlJXTrw4vKJPIyVzcLpCeXvs55nJxcXOqfDvBbMJpRB7NNrOfmkSbEGF6Z2 uFEJpFnPpiQ+w== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id 1F100406D6; Tue, 18 Feb 2025 19:36:55 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists1.osuosl.org (Postfix) with ESMTP id 7494A968 for ; Tue, 18 Feb 2025 19:36:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 46BFD406D6 for ; Tue, 18 Feb 2025 19:36:52 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 29x2SqTh5xNM for ; Tue, 18 Feb 2025 19:36:51 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2604:1380:4641:c500::1; helo=dfw.source.kernel.org; envelope-from=horms@kernel.org; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp4.osuosl.org 41168406B0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 41168406B0 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by smtp4.osuosl.org (Postfix) with ESMTPS id 41168406B0 for ; Tue, 18 Feb 2025 19:36:51 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 440955C59EB; Tue, 18 Feb 2025 19:36:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F99BC4CEE2; Tue, 18 Feb 2025 19:36:48 +0000 (UTC) Date: Tue, 18 Feb 2025 19:36:46 +0000 From: Simon Horman To: Michal Swiatkowski Cc: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, marcin.szycik@linux.intel.com, jedrzej.jagielski@intel.com, przemyslaw.kitszel@intel.com, piotr.kwapulinski@intel.com, anthony.l.nguyen@intel.com, dawid.osuchowski@intel.com, pmenzel@molgen.mpg.de Message-ID: <20250218193646.GJ1615191@kernel.org> References: <20250217090636.25113-1-michal.swiatkowski@linux.intel.com> <20250217090636.25113-4-michal.swiatkowski@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250217090636.25113-4-michal.swiatkowski@linux.intel.com> X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1739907410; bh=oFEhF3wt6ZT0mOj/XPg0GSRReiIjfauwIWnBqH3w9gM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=c8aHHNkXHR5wL11T2YB2E2oCvm87h9wv5eBQhqj8lccbzt4iG8/J8t+bsivhqTksL FzUqLxL9vmGymo4EJlKB0ZsdbgL4lA7hebhGmgvwiinvhnkwYcx/0CHJqV1A8LgcH5 1m/uLWQ9QMyiK1IbTK5+X0Q2ioK9TZhNPb5AM7zORNT4Ulk8h4cgSJd4sqPp3hvnUz YAEXmC/d+K5LC3T9td+TbrCWK87ssGvmYvM7Zb4to+DJtreh24r79zdC/NmQQs0VTS LSKVYHaeHaIsOsF7sF7aBPNe5D/38J9I+FLvyWxbdhrlMmbufFcToZMAGDaGK+HEwg WdeyUdHP7Pcsw== X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=c8aHHNkX Subject: Re: [Intel-wired-lan] [iwl-next v3 3/4] ixgbe: add Tx hang detection unhandled MDD X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" On Mon, Feb 17, 2025 at 10:06:35AM +0100, Michal Swiatkowski wrote: > From: Slawomir Mrozowicz > > Add Tx Hang detection due to an unhandled MDD Event. > > Previously, a malicious VF could disable the entire port causing > TX to hang on the E610 card. > Those events that caused PF to freeze were not detected > as an MDD event and usually required a Tx Hang watchdog timer > to catch the suspension, and perform a physical function reset. > > Implement flows in the affected PF driver in such a way to check > the cause of the hang, detect it as an MDD event and log an > entry of the malicious VF that caused the Hang. > > The PF blocks the malicious VF, if it continues to be the source > of several MDD events. > > Reviewed-by: Przemek Kitszel > Reviewed-by: Marcin Szycik > Signed-off-by: Slawomir Mrozowicz > Co-developed-by: Michal Swiatkowski > Signed-off-by: Michal Swiatkowski Reviewed-by: Simon Horman