Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3342124pxu; Tue, 8 Dec 2020 09:30:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdwpDkMrlVptd8aSpYWJv8ZGTkFcESYIfLuDhQZ2xcGXgG9SzoxWL36n4xd2x3JSXge+4j X-Received: by 2002:a17:906:cec3:: with SMTP id si3mr23902996ejb.277.1607448622743; Tue, 08 Dec 2020 09:30:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607448622; cv=none; d=google.com; s=arc-20160816; b=OvB98vSHZB9LC00DByN2kESaghxBNxScIlG5U6NUoiPBkotRhlxwIrYQtzgwbHsy8S wM1pn18eSOztrIgWhwKPr848zwPTEMOTjPYg8YI0NqW0eliZV3G7NapvitzOik91Bxpf 41fK2Wg5NTnOSDWbIkvUFifRw1PBxB2J3To1T197O0WbcXH0ozi6YOZ6ZffZjhJdMhOi QjuhRR7s0YECOU1TZXT8p2m/v1HE/tR3YQKCIJqPqoxuaq7dl8o5wHtG3n9LQ1f3GG9B Yx5Ynpd9+zp+c5996RcpaPuJOfZZTc+Ax8nI5nd4KsllMUjgxCAp3WGB46V3erZyL/Oy p9Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature; bh=6pwVA+zAX3guBHyruQ0OaiSMpzrQ0K5rhts4w8FvW2I=; b=BwKwx6AAA6m6EKwk+ju73rMCay6Wqgg4kgjOKyXNcEdKEjSynqfV8AHiolPIZFxwPy wnEeyzlQWrurH5K0H1fTFvqEtRbN+QNG8ucxwDZG40qLUifECo25qLL2diq1eNRilQ4d 5h2mCVUIxyHv41Mp6bQsbTLR3iM/FOtum4/lvSi/O4qVsmuiXjORAbQIUlXaBhS4/3vM I2Nq8aIrIrPM2Kd7zsgvUxZROo1/syw+aDsyVWO1Zq7O93udVuxSLkzm8YB5un8GE2HT u49PdHUKKkwnsPydj1ST5hllv4QnQfaEn+bE2K1Q7PP+Qo6lnZzw02MMj6gj9CltU5oV CmAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dell.com header.s=smtpout1 header.b=TrMOLDOI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dell.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v10si8607688eja.441.2020.12.08.09.29.57; Tue, 08 Dec 2020 09:30:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@dell.com header.s=smtpout1 header.b=TrMOLDOI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729910AbgLHRZB (ORCPT + 99 others); Tue, 8 Dec 2020 12:25:01 -0500 Received: from mx0b-00154904.pphosted.com ([148.163.137.20]:42004 "EHLO mx0b-00154904.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728510AbgLHRZB (ORCPT ); Tue, 8 Dec 2020 12:25:01 -0500 Received: from pps.filterd (m0170398.ppops.net [127.0.0.1]) by mx0b-00154904.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 0B8HIRSo025200; Tue, 8 Dec 2020 12:24:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dell.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=smtpout1; bh=6pwVA+zAX3guBHyruQ0OaiSMpzrQ0K5rhts4w8FvW2I=; b=TrMOLDOIl8QAV70dNBkGH7FZr3DXx+PLluUZpYe4+Y3p1cdTfxLwz1qJgwU6e6xZcixI slLkQPXV4ITxhV4BbKBgr3yUeAHSSmyygw2hPWoPmQHy9cfB/1FhFoplwyyRvu/BzET+ GIIYJkadJDZ+X7NwGuHAVyMHLF+0TAK8AT4g0PCIdG3dBGf4p02NDankVkjCBGCMy+l1 7+hWFgbjCgwjf9VS5dHmOY57KFzs8smFLenzkubKK9+PQAnKIyyq73UVH5cyj3AP9Kzc yztUq9Wg0rINElvH3lpaRAQDMP6rKaKOfVXbvmDpYsvMdzy45yXj8p86HK6ViRevsvoT qQ== Received: from mx0a-00154901.pphosted.com (mx0a-00154901.pphosted.com [67.231.149.39]) by mx0b-00154904.pphosted.com with ESMTP id 3587cdk8gw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 08 Dec 2020 12:24:20 -0500 Received: from pps.filterd (m0142693.ppops.net [127.0.0.1]) by mx0a-00154901.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 0B8HHTDf158878; Tue, 8 Dec 2020 12:24:19 -0500 Received: from ausxippc110.us.dell.com (AUSXIPPC110.us.dell.com [143.166.85.200]) by mx0a-00154901.pphosted.com with ESMTP id 35adafhesv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 08 Dec 2020 12:24:18 -0500 X-LoopCount0: from 10.173.37.130 X-PREM-Routing: D-Outbound X-IronPort-AV: E=Sophos;i="5.78,403,1599541200"; d="scan'208";a="1017279786" Subject: Re: [PATCH v3 1/7] e1000e: fix S0ix flow to allow S0i3.2 subset entry To: Mario Limonciello , Jeff Kirsher , Tony Nguyen , intel-wired-lan@lists.osuosl.org, David Miller Cc: linux-kernel@vger.kernel.org, Linux PM , Netdev , Alexander Duyck , Jakub Kicinski , Sasha Netfin , Aaron Brown , Stefan Assmann , darcari@redhat.com, Yijun.Shen@dell.com, Perry.Yuan@dell.com, anthony.wong@canonical.com, Vitaly Lifshits References: <20201204200920.133780-1-mario.limonciello@dell.com> <20201204200920.133780-2-mario.limonciello@dell.com> From: Mario Limonciello Organization: Dell Inc. Message-ID: <354075ae-f605-eb01-4cf9-a66e4eb7b192@dell.com> Date: Tue, 8 Dec 2020 11:24:17 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20201204200920.133780-2-mario.limonciello@dell.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343,18.0.737 definitions=2020-12-08_14:2020-12-08,2020-12-08 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 mlxlogscore=999 clxscore=1015 spamscore=0 bulkscore=0 adultscore=0 malwarescore=0 mlxscore=0 priorityscore=1501 lowpriorityscore=0 impostorscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012080106 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxlogscore=999 suspectscore=0 malwarescore=0 bulkscore=0 mlxscore=0 adultscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012080106 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/4/20 2:09 PM, Mario Limonciello wrote: > From: Vitaly Lifshits > > Changed a configuration in the flows to align with > architecture requirements to achieve S0i3.2 substate. > > Also fixed a typo in the previous commit 632fbd5eb5b0 > ("e1000e: fix S0ix flows for cable connected case"). > > Signed-off-by: Vitaly Lifshits > Tested-by: Aaron Brown > Signed-off-by: Tony Nguyen > --- > drivers/net/ethernet/intel/e1000e/netdev.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) I realize that the series is still under discussion, but I intentionally moved this patch to the front of the series so it can be pulled in even if the others are still discussed. @David Miller: This particular patch is more important than the rest.  It actually fixes issues on the non-ME i219V as well.  Can this one be queued up and we can keep discussing the rest? > diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c > index b30f00891c03..128ab6898070 100644 > --- a/drivers/net/ethernet/intel/e1000e/netdev.c > +++ b/drivers/net/ethernet/intel/e1000e/netdev.c > @@ -6475,13 +6475,13 @@ static void e1000e_s0ix_entry_flow(struct e1000_adapter *adapter) > > /* Ungate PGCB clock */ > mac_data = er32(FEXTNVM9); > - mac_data |= BIT(28); > + mac_data &= ~BIT(28); > ew32(FEXTNVM9, mac_data); > > /* Enable K1 off to enable mPHY Power Gating */ > mac_data = er32(FEXTNVM6); > mac_data |= BIT(31); > - ew32(FEXTNVM12, mac_data); > + ew32(FEXTNVM6, mac_data); > > /* Enable mPHY power gating for any link and speed */ > mac_data = er32(FEXTNVM8); > @@ -6525,11 +6525,11 @@ static void e1000e_s0ix_exit_flow(struct e1000_adapter *adapter) > /* Disable K1 off */ > mac_data = er32(FEXTNVM6); > mac_data &= ~BIT(31); > - ew32(FEXTNVM12, mac_data); > + ew32(FEXTNVM6, mac_data); > > /* Disable Ungate PGCB clock */ > mac_data = er32(FEXTNVM9); > - mac_data &= ~BIT(28); > + mac_data |= BIT(28); > ew32(FEXTNVM9, mac_data); > > /* Cancel not waking from dynamic -- *Mario Limonciello* *Dell*| CPG Software Engineering *office*+1 512 723 0582