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 X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ADF24C3F2D2 for ; Fri, 28 Feb 2020 19:52:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7848B24672 for ; Fri, 28 Feb 2020 19:52:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="1dIUX2Gt" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726118AbgB1Twy (ORCPT ); Fri, 28 Feb 2020 14:52:54 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:39098 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725769AbgB1Twy (ORCPT ); Fri, 28 Feb 2020 14:52:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=KF7q+Xs+vsES1d6sA8cRPzF/eOD6wdLXYTJbXQxl+7M=; b=1dIUX2GtzOyyU+MotTDwJTHnOm VACw0f2DCE/q81dmSY0tA0eJPgvMbpeWX4pFKVjVCjkhdYPY0/zpBR18OW6JHbTcYxO/gv0ewX/3W qx+/V2AxEcTeabCxezyg7lw6Fk0CQTauN132X4bHpWMT/xizwm0LrOCjnFWagI2tlsdw=; Received: from andrew by vps0.lunn.ch with local (Exim 4.93) (envelope-from ) id 1j7lgl-00067Y-P1; Fri, 28 Feb 2020 20:52:47 +0100 Date: Fri, 28 Feb 2020 20:52:47 +0100 From: Andrew Lunn To: Russell King Cc: Florian Fainelli , Vivien Didelot , "David S. Miller" , netdev@vger.kernel.org Subject: Re: [PATCH net] net: dsa: mv88e6xxx: fix lockup on warm boot Message-ID: <20200228195247.GH29979@lunn.ch> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Fri, Feb 28, 2020 at 07:39:41PM +0000, Russell King wrote: > If the switch is not hardware reset on a warm boot, interrupts can be > left enabled, and possibly pending. This will cause us to enter an > infinite loop trying to service an interrupt we are unable to handle, > thereby preventing the kernel from booting. > > Ensure that the global 2 interrupt sources are disabled before we claim > the parent interrupt. > > Observed on the ZII development revision B and C platforms with > reworked serdes support, and using reboot -f to reboot the platform. > > Fixes: dc30c35be720 ("net: dsa: mv88e6xxx: Implement interrupt support.") > Signed-off-by: Russell King Reviewed-by: Andrew Lunn Andrew