Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp14572262rwd; Sat, 24 Jun 2023 23:45:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4qB2zw6TV0Z7eKrYG6lAZUACsvpv7OhAs8MQt4TqzZ7a6Eger8XQQXChXNiRCZZeqqvaTH X-Received: by 2002:a05:6e02:102:b0:340:8cb1:aaa8 with SMTP id t2-20020a056e02010200b003408cb1aaa8mr31044562ilm.21.1687675544739; Sat, 24 Jun 2023 23:45:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687675544; cv=none; d=google.com; s=arc-20160816; b=a664gKej+VaorYvSWWtTf4ol9JPWsgG8wLSgrsClGAOjLowPF/Dn4EarlDhT+ppskn g25NuLODAPnSLH5tf+vyjSThHCqwsaTg+ZStBmZIPnW1hRX4YitvMf86XO2w6mIIAtLf bRBCOljJThDpbLVRDiChfyLFdw3JH1tPI93fVIY9gsfRLCZtWMvT51uCo71CBzdTAWly 0PvKKrJtdiINNHJU0p+SqAnH44MUjtZ2m/A+ypNO5U6l7ZoEUjFSNf+a5xwsPcSphxSs ZPBMRgOvf6wgk7AoJAYVUQjPbhpgvugtx+HEqXSLt7L/f0wAVJmig1NLseXa809jRQhC 93Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=0WKjgZxRtBrZxNeY+cxWyhol44y5v2vENgrDkdtQlAQ=; fh=ApGQQ2PSAI/JGk6JkxBh+dNfXYpO2y3dim3YBlsvx80=; b=eyn41th+O44LY/Z6foqewz5OgHfvsRhKGd8R4WuCM9d+KsrhTQLwF3OOKs66mn2SJ7 5Gqsn91A2pWyVr0A+sfVlW5NlhIxbDZqXQ3QE+ipbjz+8D0FXm9PGx8cfJA4rjfiTdZ/ TfLsxV7cDWQTRsHQN8qMPW1K/xB7BbAOMDYnmrtssRCJJ71eEnofgfhYzLYLRM8FxEE6 5OJBwCSLQn2QwgyDqgi6qTtPg6GsZ+qVMJLYDXBfG6a8pBQkjPoW0MzD0Y+qbLqtoAmk qdjflzD/tXuue8ywyshSEs66US6PbuokKBW+5uwUNvEu0eLYLD+YnhHTUe6EsaNLd/Nm TbDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VzRk+O3l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bx15-20020a056a00428f00b0066a48cbde7asi2581852pfb.190.2023.06.24.23.45.29; Sat, 24 Jun 2023 23:45:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VzRk+O3l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230057AbjFYG2h (ORCPT + 99 others); Sun, 25 Jun 2023 02:28:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229611AbjFYG2f (ORCPT ); Sun, 25 Jun 2023 02:28:35 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7C67E46; Sat, 24 Jun 2023 23:28:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687674514; x=1719210514; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=C4MG8G7LRWqQ3aeXbDL7mcsgQWK2qLblMjk7Tb7DukY=; b=VzRk+O3l8yaFU+CX5M/CMZOEBSDUQNqXzTsSlQfCum/erS0snUWdXQ51 r2Kn7GNGMLN7+FAh0C5YimwA1Wk7j2E90oUUKetoGHd0lRPNwf2h0ymuw 20ab4oyTCj7yrFZDEqN/hQ/wU3w5sJxbwf/zmOn3qvlBqpyvdR2A4CAG1 L+CBk5IZsaWnTC4erHDyN/sWE7l77zeo64vg7v3hWX8GS5RcjLfuOSzKu FrYITy7uv/amMUDeEygQ0O2WqJsSluOhYEHCbdFKddYEQWRD2e8kNxSO4 3AKrfwlno89HKhTdj2QfOUlDRdxpG1Lm+tsl6Ypbqo7U/amQTAARduc+9 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10751"; a="350801505" X-IronPort-AV: E=Sophos;i="6.01,156,1684825200"; d="scan'208";a="350801505" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2023 23:28:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10751"; a="1046087683" X-IronPort-AV: E=Sophos;i="6.01,156,1684825200"; d="scan'208";a="1046087683" Received: from naamamex-mobl.ger.corp.intel.com (HELO [10.214.223.122]) ([10.214.223.122]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2023 23:28:31 -0700 Message-ID: <546387b5-9e18-a0df-2aa9-159b19435a51@linux.intel.com> Date: Sun, 25 Jun 2023 09:28:28 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [Intel-wired-lan] [PATCH] e1000e: Use PME poll to circumvent unreliable ACPI wake Content-Language: en-US To: Kai-Heng Feng , jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com Cc: linux-pm@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Eric Dumazet , intel-wired-lan@lists.osuosl.org, Jakub Kicinski , Paolo Abeni , "David S. Miller" References: <20230601162537.1163270-1-kai.heng.feng@canonical.com> From: "naamax.meir" In-Reply-To: <20230601162537.1163270-1-kai.heng.feng@canonical.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/1/2023 19:25, Kai-Heng Feng wrote: > On some I219 devices, ethernet cable plugging detection only works once > from PCI D3 state. Subsequent cable plugging does set PME bit correctly, > but device still doesn't get woken up. > > Since I219 connects to the root complex directly, it relies on platform > firmware (ACPI) to wake it up. In this case, the GPE from _PRW only > works for first cable plugging but fails to notify the driver for > subsequent plugging events. > > The issue was originally found on CNP, but the same issue can be found > on ADL too. So workaround the issue by continuing use PME poll after > first ACPI wake. As PME poll is always used, the runtime suspend > restriction for CNP can also be removed. > > Signed-off-by: Kai-Heng Feng > --- > drivers/net/ethernet/intel/e1000e/netdev.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Tested-by: Naama Meir