Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp668287pxu; Fri, 4 Dec 2020 12:24:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJw3Xlg5GVGjT/seTkIVE3erZO6l/l4xKGsLH+jPIKETgRPsG9VZmtlHjtBVmceX547f0YDe X-Received: by 2002:a17:907:2131:: with SMTP id qo17mr8673504ejb.546.1607113496996; Fri, 04 Dec 2020 12:24:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607113496; cv=none; d=google.com; s=arc-20160816; b=JbLFXFnPqALtS4D6+RDTkPyM4d5J2uYVGGTyDxW/Nnu+glP3mxfh0ug3kWS/DlcHyb bevT8//OVen5fwtufK6CqyNG4Bicdd7Kg1Fq/s90FCMac8bzXBlgQTIGLI/MHC42kNRB F7weXBg7Qjd4IAea5lHAj+cYYVNlZKYEbSkpEM3rgfh+5YumMiGfFDnuRQ0wU4CSsmc/ Ad+OpCMqnaklr1QSf6pXr0Nhv3i7VJMnw0xM9ORvPYBw4UDRsIBp98czOALBHscF95rG FW6QTm4hAu1pw3ef4DY+wdqLsVUIM5QCUlLxvDw7ofDEueXdMWfSGMf39nHTdCFM7GKU 4w1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=dFXfLQm5P73Jl59mQybirbxXxGY/DsvJra5ASUwR8TU=; b=R21SYy5l6XVanActwcA6O5Pl+VgbyLyBQQke7Usj3OPgNyAUrkgt/+S8pJMji/QhKM h3AFrOc3rOwAJ/oWtbx1JuRIESEy0oAL6EpIXqQHFASK4Xq++rFmP6GUrNRWu3EWgKdN 7oSOAclRZPgO8/jQ/VVf5KiAhmhVdnjvgBLP1qBA+6vvUKrm09Cfbj6E8EVCWRf44082 f9mL43sVw3tzb/jUlwll1iROirPRpGL+4yoycgZcpQPq9jKjIYg4pYrU4K667MI401pu eEolyAMKoxzrrRFfCy2sFGKe5FjpM5sBC757f5dh831aNtFAV4KANPFylkFYcEGGcbWu npMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dell.com header.s=smtpout1 header.b=ll8BxRjf; 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 p17si2034220ejw.23.2020.12.04.12.24.34; Fri, 04 Dec 2020 12:24:56 -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=ll8BxRjf; 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 S1730128AbgLDUVK (ORCPT + 99 others); Fri, 4 Dec 2020 15:21:10 -0500 Received: from mx0a-00154904.pphosted.com ([148.163.133.20]:18714 "EHLO mx0a-00154904.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726828AbgLDUVJ (ORCPT ); Fri, 4 Dec 2020 15:21:09 -0500 Received: from pps.filterd (m0170392.ppops.net [127.0.0.1]) by mx0a-00154904.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0B4KEKHv025096; Fri, 4 Dec 2020 15:20:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=smtpout1; bh=dFXfLQm5P73Jl59mQybirbxXxGY/DsvJra5ASUwR8TU=; b=ll8BxRjfwTdjKWfHMjqcFE7bNvmL1vrrJNhJ/jk/XDcmlTAsm4grfb/1dVb9JhEk58AJ NnPLeHROqDWwwLfLSbAJSffEYy5Cra604NbN+WY1eVCjfku00FgBKVJJUln0iqRWArlc Hm7f+d/FEO32+wWEff9vcKJIhXgi6HDZ5QTLuji8Xs+WFAoaO5qoCsWJ7P8mLZzNi1AW FJAFm6UZzfeyXpEF2gxE+6nFnbsXIrSL+ScsDBuFyXRJ7jgdvHaC+h2HqP/qmExXfybe IADR7CyPBcO6posKpCL04ARvTkHd7+KtEBQB0xPVwD5+simy0+1WaXMaqraolVwEYuXT gg== Received: from mx0b-00154901.pphosted.com (mx0b-00154901.pphosted.com [67.231.157.37]) by mx0a-00154904.pphosted.com with ESMTP id 353jkhv7y9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 04 Dec 2020 15:20:28 -0500 Received: from pps.filterd (m0144104.ppops.net [127.0.0.1]) by mx0b-00154901.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0B4KDtgO159954; Fri, 4 Dec 2020 15:20:27 -0500 Received: from ausxipps310.us.dell.com (AUSXIPPS310.us.dell.com [143.166.148.211]) by mx0b-00154901.pphosted.com with ESMTP id 357rmtkkh2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 04 Dec 2020 15:20:27 -0500 X-LoopCount0: from 10.173.37.130 X-PREM-Routing: D-Outbound X-IronPort-AV: E=Sophos;i="5.78,393,1599541200"; d="scan'208";a="573039887" From: Mario Limonciello To: Jeff Kirsher , Tony Nguyen , intel-wired-lan@lists.osuosl.org Cc: linux-kernel@vger.kernel.org, Linux PM , Netdev , Alexander Duyck , Jakub Kicinski , Sasha Netfin , Aaron Brown , Stefan Assmann , David Miller , darcari@redhat.com, Yijun.Shen@dell.com, Perry.Yuan@dell.com, anthony.wong@canonical.com, Mario Limonciello Subject: [PATCH v3 0/7] Improve s0ix flows for systems i219LM Date: Fri, 4 Dec 2020 14:09:13 -0600 Message-Id: <20201204200920.133780-1-mario.limonciello@dell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-12-04_09:2020-12-04,2020-12-04 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 mlxlogscore=729 mlxscore=0 suspectscore=0 spamscore=0 bulkscore=0 adultscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 lowpriorityscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012040115 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=840 spamscore=0 phishscore=0 adultscore=0 suspectscore=0 mlxscore=0 bulkscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012040115 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org commit e086ba2fccda ("e1000e: disable s0ix entry and exit flows for ME systems") disabled s0ix flows for systems that have various incarnations of the i219-LM ethernet controller. This was done because of some regressions caused by an earlier commit 632fbd5eb5b0e ("e1000e: fix S0ix flows for cable connected case") with i219-LM controller. Performing suspend to idle with these ethernet controllers requires a properly configured system. To make enabling such systems easier, this patch series allows determining if enabled and turning on using ethtool. The flows have also been confirmed to be configured correctly on Dell's Latitude and Precision CML systems containing the i219-LM controller, when the kernel also contains the fix for s0i3.2 entry previously submitted here and now part of this series. https://marc.info/?l=linux-netdev&m=160677194809564&w=2 Patches 4 through 7 will turn the behavior on by default for some of Dell's CML and TGL systems. Changes from v2 to v3: - Correct some grammar and spelling issues caught by Bjorn H. * s/s0ix/S0ix/ in all commit messages * Fix a typo in commit message * Fix capitalization of proper nouns - Add more pre-release systems that pass - Re-order the series to add systems only at the end of the series - Add Fixes tag to a patch in series. Changes from v1 to v2: - Directly incorporate Vitaly's dependency patch in the series - Split out s0ix code into it's own file - Adjust from DMI matching to PCI subsystem vendor ID/device matching - Remove module parameter and sysfs, use ethtool flag instead. - Export s0ix flag to ethtool private flags - Include more people and lists directly in this submission chain. Mario Limonciello (6): e1000e: Move all S0ix related code into its own source file e1000e: Export S0ix flags to ethtool e1000e: Add Dell's Comet Lake systems into S0ix heuristics e1000e: Add more Dell CML systems into S0ix heuristics e1000e: Add Dell TGL desktop systems into S0ix heuristics e1000e: Add another Dell TGL notebook system into S0ix heuristics Vitaly Lifshits (1): e1000e: fix S0ix flow to allow S0i3.2 subset entry drivers/net/ethernet/intel/e1000e/Makefile | 2 +- drivers/net/ethernet/intel/e1000e/e1000.h | 4 + drivers/net/ethernet/intel/e1000e/ethtool.c | 40 +++ drivers/net/ethernet/intel/e1000e/netdev.c | 272 +---------------- drivers/net/ethernet/intel/e1000e/s0ix.c | 311 ++++++++++++++++++++ 5 files changed, 361 insertions(+), 268 deletions(-) create mode 100644 drivers/net/ethernet/intel/e1000e/s0ix.c -- 2.25.1