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=-12.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 A7977C48BE5 for ; Mon, 21 Jun 2021 09:47:43 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7B0F26109F for ; Mon, 21 Jun 2021 09:47:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7B0F26109F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=mIIVPGY9ikA8K2xpIb7hpLUErC/M3nEbdx8tZVMyogg=; b=iPQ4vXDb1x1sXv TjsSiVsoYVB27i+96GJETmTMJMiWKgWMi3Qvt307fpy5+jksBJfxqpBEZpSIAvY0+mq2QwVLiABEo KxUv1gHJV5R4zUowRgR07+WgXtnDotuA+nZG+wBBIrbkDp9aFUnsuXUaOhT7xoFjlfelgEfAXTPDQ AT6FmjiaaNxWdL3nqdYMUDbFVSainJOKRHJNkik0Whk5HxjOgrAHkqGRrR61UGbWUklgH9eeZQUsX XssifxopbRmxu/l636A2Qm25OA8pmVBeAkipgUByRBG/fh1U/azH1ZY782nPTruI47DBgGtXSDPEA l1WWdUqsYXQEv+sPPgpg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lvGVA-002yDg-6i; Mon, 21 Jun 2021 09:45:56 +0000 Received: from mga09.intel.com ([134.134.136.24]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lvGV6-002yCV-OE for linux-arm-kernel@lists.infradead.org; Mon, 21 Jun 2021 09:45:54 +0000 IronPort-SDR: 4EroahuPqDVTnyJjXcIhj8yALgPMGA6Kef41KrPcL73EmEW1TZmzcKeC2u3BHH83az9IOIKBg3 UmO9yp7ovUVQ== X-IronPort-AV: E=McAfee;i="6200,9189,10021"; a="206757901" X-IronPort-AV: E=Sophos;i="5.83,289,1616482800"; d="scan'208";a="206757901" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jun 2021 02:45:50 -0700 IronPort-SDR: nIkB7J4kkZxPiDf69wxwy5j5R1+1vIPvaZQbgEj/mN0Lco/uqlvODIKzhNAUmC8XyEIrNTu+Ql zZzkrbYj/pLw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,289,1616482800"; d="scan'208";a="638720236" Received: from peileeli.png.intel.com ([172.30.240.12]) by fmsmga006.fm.intel.com with ESMTP; 21 Jun 2021 02:45:44 -0700 From: Ling Pei Lee To: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S . Miller" , Jakub Kicinski , Maxime Coquelin , Russell King , Ong Boon Leong , Voon Weifeng , Wong Vee Khee , Wong Vee Khee , Tan Tee Min , Michael Sit Wei Hong , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: pei.lee.ling@intel.com Subject: [PATCH net-next V1 0/4] Add option to enable PHY WOL with PMT enabled Date: Mon, 21 Jun 2021 17:45:32 +0800 Message-Id: <20210621094536.387442-1-pei.lee.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210621_024552_864083_E6BB164E X-CRM114-Status: GOOD ( 10.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patchset main objective is to provide an option to enable PHY WoL even the PMT is enabled by default in the HW features. The current stmmac driver WOL implementation will enable MAC WOL if MAC HW PMT feature is on. Else, the driver will check for PHY WOL support. Intel EHL mgbe are designed to wake up through PHY WOL although the HW PMT is enabled.Hence, introduced use_phy_wol platform data to provide this PHY WOL option. Set use_phy_wol will disable the plat->pmt which currently used to determine the system to wake up by MAC WOL or PHY WOL. During testing, it is discovered that PHY did not reconfigured the PHY WOL after waking up from S3/S4 through magic packet. During the driver resume flow, the driver will reconfigure the PHY WOL depending on the ethool WOL settings. This WOL patchset includes of setting the device power state to D3hot. This is because the EHL PSE will need to PSE mgbe to be in D3 state in order for the PSE to goes into suspend mode. Ling Pei Lee (2): net: stmmac: option to enable PHY WOL with PMT enabled stmmac: intel: Enable PHY WOL option in EHL Muhammad Husaini Zulkifli (1): net: stmmac: Reconfigure the PHY WOL settings in stmmac_resume() Voon Weifeng (1): stmmac: intel: set PCI_D3hot in suspend drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c | 2 ++ drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 13 ++++++++++++- include/linux/stmmac.h | 1 + 3 files changed, 15 insertions(+), 1 deletion(-) -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 3FD84C49EA2 for ; Mon, 21 Jun 2021 09:45:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 209336109F for ; Mon, 21 Jun 2021 09:45:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230286AbhFUJsH (ORCPT ); Mon, 21 Jun 2021 05:48:07 -0400 Received: from mga18.intel.com ([134.134.136.126]:3834 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230076AbhFUJsF (ORCPT ); Mon, 21 Jun 2021 05:48:05 -0400 IronPort-SDR: cHFZM0PVUvRDvL/jVqZQ+Hd2lzSZziz7Ocn+HVfS1+JF+JOpGt/6sAtUFpcqJqy2xQ6Px+tHzJ fM8T95/PUhPA== X-IronPort-AV: E=McAfee;i="6200,9189,10021"; a="194122078" X-IronPort-AV: E=Sophos;i="5.83,289,1616482800"; d="scan'208";a="194122078" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jun 2021 02:45:50 -0700 IronPort-SDR: nIkB7J4kkZxPiDf69wxwy5j5R1+1vIPvaZQbgEj/mN0Lco/uqlvODIKzhNAUmC8XyEIrNTu+Ql zZzkrbYj/pLw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,289,1616482800"; d="scan'208";a="638720236" Received: from peileeli.png.intel.com ([172.30.240.12]) by fmsmga006.fm.intel.com with ESMTP; 21 Jun 2021 02:45:44 -0700 From: Ling Pei Lee To: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S . Miller" , Jakub Kicinski , Maxime Coquelin , Russell King , Ong Boon Leong , Voon Weifeng , Wong Vee Khee , Wong Vee Khee , Tan Tee Min , Michael Sit Wei Hong , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: pei.lee.ling@intel.com Subject: [PATCH net-next V1 0/4] Add option to enable PHY WOL with PMT enabled Date: Mon, 21 Jun 2021 17:45:32 +0800 Message-Id: <20210621094536.387442-1-pei.lee.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset main objective is to provide an option to enable PHY WoL even the PMT is enabled by default in the HW features. The current stmmac driver WOL implementation will enable MAC WOL if MAC HW PMT feature is on. Else, the driver will check for PHY WOL support. Intel EHL mgbe are designed to wake up through PHY WOL although the HW PMT is enabled.Hence, introduced use_phy_wol platform data to provide this PHY WOL option. Set use_phy_wol will disable the plat->pmt which currently used to determine the system to wake up by MAC WOL or PHY WOL. During testing, it is discovered that PHY did not reconfigured the PHY WOL after waking up from S3/S4 through magic packet. During the driver resume flow, the driver will reconfigure the PHY WOL depending on the ethool WOL settings. This WOL patchset includes of setting the device power state to D3hot. This is because the EHL PSE will need to PSE mgbe to be in D3 state in order for the PSE to goes into suspend mode. Ling Pei Lee (2): net: stmmac: option to enable PHY WOL with PMT enabled stmmac: intel: Enable PHY WOL option in EHL Muhammad Husaini Zulkifli (1): net: stmmac: Reconfigure the PHY WOL settings in stmmac_resume() Voon Weifeng (1): stmmac: intel: set PCI_D3hot in suspend drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c | 2 ++ drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 13 ++++++++++++- include/linux/stmmac.h | 1 + 3 files changed, 15 insertions(+), 1 deletion(-) -- 2.25.1