Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp486504ima; Fri, 1 Feb 2019 06:25:52 -0800 (PST) X-Google-Smtp-Source: ALg8bN7Ff5haoo0tXO543RGCNk1a07Ez98k+x4y8+/k6LxJtXOHpvQqRBNyyRstiDo/o7ARuoiNB X-Received: by 2002:a17:902:4222:: with SMTP id g31mr39528060pld.240.1549031152296; Fri, 01 Feb 2019 06:25:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549031152; cv=none; d=google.com; s=arc-20160816; b=rUVY5ldjaH6ALL25cPKJZiGbQzVbJFRdXD7kE63gAg33GRhgDNUMJm+hK9wLGYPDg2 cNgcrhBKuIhteDa+k2OrCVJqiPPWYuss893tgGiNB9b46QNYD0zSUgDQCx33TibiOcMg T40Rzs0JMHhwlxMYkiBVjY4cuFbxVhHwc7i0Bc1Q5gwg8JN9pOq8x95R7MicfHH+qm3/ 35cRvoZqu+QSBv7E1WNfZWdpULq8oDajKdPYFj+mQXiQ+Mh6gv8wfkD+oXWND0v8Hmak 3vsR4IHZJwamESq8ho8gSokasSPM9U8OM6xT6THswgan8dBOdRAsQNOqQcFK+62UP1qS WOQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wo/3ynjeKPe+PUKzsHVU42Pd3zDHoDnLV3rlIJivieE=; b=aeVXStxeNER8zukzHNoRKwMnLIwoUUHFtwx5utk6H34pxnkESMBPOzR+c/xmfqeQvA ou92I0jGrGXxG5D2bq+ZxT809SI22Ge7fPqEpFdyQ59hM0o9W/NG2cutvjkXaVLQmJUu 5wA3pJ6mOI6SLanoEidrQgOPmUiN+aH/QNEovKEgznh1UnxNnZ6F3IelOvLau4aQ1sUJ BvgTj33lGcBTrL6u9zs4ofwk2jjlWDrZmBlAvTouOg2N/Ia1iOKvRCvaXILkGidNfmoi Qq2WNqARKpZgDIuOugKs9C9KiTmxf/Z4g2wpyOK8yNcx5Nt12gsrdMXdpAPRo3xPsLvb NrFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=LSGwhsTy; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5si7087601plo.108.2019.02.01.06.25.36; Fri, 01 Feb 2019 06:25:52 -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=fail header.i=@lunn.ch header.s=20171124 header.b=LSGwhsTy; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729237AbfBAOIf (ORCPT + 99 others); Fri, 1 Feb 2019 09:08:35 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:35650 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726725AbfBAOIf (ORCPT ); Fri, 1 Feb 2019 09:08:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: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=wo/3ynjeKPe+PUKzsHVU42Pd3zDHoDnLV3rlIJivieE=; b=LSGwhsTykHib6z4vxRBV2Rq0hx iDA3A+jDPPBft16PP3z/1dFqk9yuABVDAA6G55ularCzM9hCFxT+ZmvDXwhObMRPNYyAIizROqOEA 17wqLEWLshuIz+hYZiweeADaT/SzYiPfC1KMI9TBPMPZo0SSPZ8FhVZvE/NesovqRPCw=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1gpZUd-0008LQ-NX; Fri, 01 Feb 2019 15:08:31 +0100 Date: Fri, 1 Feb 2019 15:08:31 +0100 From: Andrew Lunn To: Miquel Raynal Cc: Vivien Didelot , Florian Fainelli , "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , Gregory Clement , Antoine Tenart , Maxime Chevallier , Nadav Haklai Subject: Re: [PATCH net-next v2 1/2] net: dsa: mv88e6xxx: Save switch rules Message-ID: <20190201140831.GE30908@lunn.ch> References: <20190128152456.212ae5ac@xps13> <20190128144417.GG4765@lunn.ch> <20190128165749.6abf2dc4@xps13> <20190128174246.GD28759@lunn.ch> <20190129100117.5ef6774c@xps13> <20190129145157.GK4765@lunn.ch> <20190129104613.GC20920@t480s.localdomain> <20190130104606.31639abb@xps13> <20190130194608.GB28098@t480s.localdomain> <20190201120119.752e7ed6@xps13> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190201120119.752e7ed6@xps13> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 01, 2019 at 12:01:19PM +0100, Miquel Raynal wrote: > Hi Vivien, > > Vivien Didelot wrote on Wed, 30 Jan 2019 > 19:46:08 -0500: > > > Hi Miqu?l, > > > > On Wed, 30 Jan 2019 10:46:06 +0100, Miquel Raynal wrote: > > > > > > > > Today, there is no S2RAM support for switches. First, I proposed to add > > > > > > suspend/resume callbacks to the mv88e6xxx driver - just enough to avoid > > > > > > crashing the kernel. > > > > > > > > > > Then i would suggest the mv88e6xxx refuses the suspend. Actually that > > > > > probably is the first correct step. We don't have suspend support, so > > > > > stop the suspend happening, so preventing the kernel crash. > > > > Actually can you show me the crash that is happening? > > Sure, here it is: http://code.bulix.org/swwb11-569137 > > Actually it is a silent crash but the platform never resumes. I am > pretty sure this is due to the kthread_queue_delayed_work() loop which > might access registers before it is allowed to do so. Hi Miquel That sounds like it is an MDIO driver problem, or at least, a resume ordering problem. You need to ensure that the MDIO bus driver is resumed before the switch driver. Also, that the switch is suspended before the MDIO bus driver is suspended. Andrew