From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B3F7A14386D; Sat, 5 Jul 2025 19:31:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751743886; cv=none; b=Uefabgsd02T0v8uJwPVnl4kzNz+Yhn005hgIe811MebeDjrJiGUhBISQzeBzwiG2/AByW+h1m3g5ZyJSvhDlg5sngQvCCslfIDINJGSq7hXClneLLCrErA2n1jw6ilYxvCftzk8yIiMnrcCO3Lvsm0Hf9Zi923NJTvRtCvWdx7E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751743886; c=relaxed/simple; bh=FTO5G4X+pxGHSBpXzwIlVzU1sFOHICPeIYKUVFrky6k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rYeOU0p/ahcf3FVNFvYRFVUhvPyeGI/W8LuCEFyZ8z/tu4H99lHd9kHkZ2kC0EJ7N+OLc88ur/MmT1CAY0RmUIyJvCb5bqz8EJtPDVATIHvTiUHXPKuzMb84CETyyexInpg4pUzVPteBa84LGMU5mGJrNXgPlxBsLJsOCyMi9II= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=HlF6kCHm; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="HlF6kCHm" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: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=6ORbq48ws88BzoCg+3C3lrqxEVQITGSfVV6sDqkLObc=; b=HlF6kCHm7Z1146GdO7SLnj71+9 /C+tGhuejjoazPhpxK8Ve0ym29eARPV84ad6YdaQtI40RgwcZklR/avhIMFzXMlXa3ON+jwdIq1sf nQBaxTHR3rUktGW/TbF+I88NmIQKyZvgSISYK4QeBFEDHtbyj+Kxri2K50SkpUKe4peSCdmgVJpLb Nh+PKQrDTWdz0G81MuxYnENLP5wDTaGegMl7BDsvWff/ph9OZav9mh0oo3tWDrcl1LeYZe3a13kLj uhfEnB7I0ObqceH8Vzo5gw0VexoLR8a6yuUZo7tZDiBlZXxDdKEhSFlYwVVm51Ekg3xy0Ju/82JvI EbIUvTrQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:50760) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uY8bP-0003UC-2L; Sat, 05 Jul 2025 20:31:11 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.96) (envelope-from ) id 1uY8bL-0007Ki-1z; Sat, 05 Jul 2025 20:31:07 +0100 Date: Sat, 5 Jul 2025 20:31:07 +0100 From: "Russell King (Oracle)" To: Biju Das Cc: Lad Prabhakar , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Alexandre Torgue , netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven , Biju Das Subject: Re: [PATCH net-next] net: stmmac: dwmac-renesas-gbeth: Add PM suspend/resume callbacks Message-ID: References: <20250705170326.106073-1-biju.das.jz@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250705170326.106073-1-biju.das.jz@bp.renesas.com> Sender: Russell King (Oracle) On Sat, Jul 05, 2025 at 06:03:24PM +0100, Biju Das wrote: > Add PM suspend/resume callbacks for RZ/G3E SMARC EVK. > > The PM deep entry is executed by pressing the SLEEP button and exit from > entry is by pressing the power button. > > Logs: > root@smarc-rzg3e:~# PM: suspend entry (deep) > Filesystems sync: 0.115 seconds > Freezing user space processes > Freezing user space processes completed (elapsed 0.002 seconds) > OOM killer disabled. > Freezing remaining freezable tasks > Freezing remaining freezable tasks completed (elapsed 0.001 seconds) > printk: Suspending console(s) (use no_console_suspend to debug) > NOTICE: BL2: v2.10.5(release):2.10.5/rz_soc_dev-162-g7148ba838 > NOTICE: BL2: Built : 14:23:58, Jul 5 2025 > NOTICE: BL2: SYS_LSI_MODE: 0x13e06 > NOTICE: BL2: SYS_LSI_DEVID: 0x8679447 > NOTICE: BL2: SYS_LSI_PRR: 0x0 > NOTICE: BL2: Booting BL31 > renesas-gbeth 15c30000.ethernet end0: Link is Down > Disabling non-boot CPUs ... > psci: CPU3 killed (polled 0 ms) > psci: CPU2 killed (polled 0 ms) > psci: CPU1 killed (polled 0 ms) > Enabling non-boot CPUs ... > Detected VIPT I-cache on CPU1 > GICv3: CPU1: found redistributor 100 region 0:0x0000000014960000 > CPU1: Booted secondary processor 0x0000000100 [0x412fd050] > CPU1 is up > Detected VIPT I-cache on CPU2 > GICv3: CPU2: found redistributor 200 region 0:0x0000000014980000 > CPU2: Booted secondary processor 0x0000000200 [0x412fd050] > CPU2 is up > Detected VIPT I-cache on CPU3 > GICv3: CPU3: found redistributor 300 region 0:0x00000000149a0000 > CPU3: Booted secondary processor 0x0000000300 [0x412fd050] > CPU3 is up > dwmac4: Master AXI performs fixed burst length > 15c30000.ethernet end0: No Safety Features support found > 15c30000.ethernet end0: IEEE 1588-2008 Advanced Timestamp supported > 15c30000.ethernet end0: configuring for phy/rgmii-id link mode > dwmac4: Master AXI performs fixed burst length > 15c40000.ethernet end1: No Safety Features support found > 15c40000.ethernet end1: IEEE 1588-2008 Advanced Timestamp supported > 15c40000.ethernet end1: configuring for phy/rgmii-id link mode > OOM killer enabled. > Restarting tasks: Starting > Restarting tasks: Done > random: crng reseeded on system resumption > PM: suspend exit > > 15c30000.ethernet end0: Link is Up - 1Gbps/Full - flow control rx/tx > root@smarc-rzg3e:~# ifconfig end0 192.168.10.7 up > root@smarc-rzg3e:~# ping 192.168.10.1 > PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data. > 64 bytes from 192.168.10.1: icmp_seq=1 ttl=64 time=2.05 ms > 64 bytes from 192.168.10.1: icmp_seq=2 ttl=64 time=0.928 ms You should also test with the interface configured before suspend/resume and confirm that it continues working afterwards without being reconfigured. > Signed-off-by: Biju Das Reviewed-by: Russell King (Oracle) Thanks! -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!