Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp185779pjb; Thu, 16 Jul 2020 11:25:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9yFH/TWT4ucSVZuLa7pWbZbgYSPzK6QuOkYVmixP/usk26uxeFVNzPsgMsvxxBK3+XaA7 X-Received: by 2002:aa7:d754:: with SMTP id a20mr5498238eds.375.1594923910763; Thu, 16 Jul 2020 11:25:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594923910; cv=pass; d=google.com; s=arc-20160816; b=FPXO9ZCCCFWJxRsYk6T1Lo/4JizE825Mv5GK36tOiDHnTasQv4hMNHWZ052v2IerMz Ilbu6BHbEyZkpPkhRRnvoMpTeCbbT81yE1FeAD+MWxiZ8LOrf/ua6j9zyk+FZcNgvf2v z2zVQpa4IokcnuIAkd2ab6Traz/M+ITGysoEmG8JbngMQV0M84lFBmss2Zg6EjIqf/lk W+s4R/5zED9i9sZ6unLlKmXrHcCNk2f9y9llzvGgKgBtT5CZZzTzrZuLwZfWbQcSolX1 jc3vw97u5NTAFPmS/Ap+ClfgEfb42qo7n52QLI/z2R4+h/0FwiVCNFmiCnBOHpfy33sY GoKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-product:dlp-version:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature:ironport-sdr :ironport-sdr; bh=55qpIYDE25OL/NfYpxyTnVqJ3E3f+bs+6JaYYYGQxl0=; b=phenZ5SBEkb0aQiCBcPr1cHLyMqo67/z7KFsRzS+1waY1WSg8UPrzIW26dfUkVF6Le jj1TrjDjc501Otjl3eGRPDP5SwAB2796fJufhrK1E8JKNonKVCJMSC3WYTRGmRbi12JB rFZp8/CNCDE5ogC8/WPlBZW7Yc5+068Mi5Ur2ierO6xll4X0YK4wXnHKJbJnXG+8RZeG KCmIsZb4c07ZA/EoZveMI9OcsqxKcr9F+Nzw0mii9D5ZM11hdVNghZldM7ngMrDYW7Vz lfFdt2txqAhpRpfSEvZtC90rP6/yItWDOf/bdYlW34V+LB6XcVZTe2ix1Hg01XGcB222 r4tw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=ZxOtpIb4; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oa20si3469905ejb.714.2020.07.16.11.24.47; Thu, 16 Jul 2020 11:25:10 -0700 (PDT) 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=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=ZxOtpIb4; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729656AbgGPSV2 (ORCPT + 99 others); Thu, 16 Jul 2020 14:21:28 -0400 Received: from mga05.intel.com ([192.55.52.43]:50750 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729625AbgGPSV0 (ORCPT ); Thu, 16 Jul 2020 14:21:26 -0400 IronPort-SDR: qRS0lJdWt2mPJE+xu/aC2t9UWP863/J/vusKTNpjXFF+QJsVxpzce/oTylJT6bqIlgd0+zWcZG fB5DrsqtHZwQ== X-IronPort-AV: E=McAfee;i="6000,8403,9684"; a="234321726" X-IronPort-AV: E=Sophos;i="5.75,360,1589266800"; d="scan'208";a="234321726" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2020 11:21:23 -0700 IronPort-SDR: byD278/IfocpfEvY4+Z42wXGoe586dGFMEkeqrIqtChu+Ejnhl5vibuLuTJNcfLsjqKDgPoIVX 4W/hL94YZLRQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,360,1589266800"; d="scan'208";a="318512267" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga002.fm.intel.com with ESMTP; 16 Jul 2020 11:21:23 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 16 Jul 2020 11:21:22 -0700 Received: from FMSEDG002.ED.cps.intel.com (10.1.192.134) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 16 Jul 2020 11:21:22 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.169) by edgegateway.intel.com (192.55.55.69) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 16 Jul 2020 11:21:19 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=goQBWGW7EIcz8pczJgiy0127t562ai1bXNvAPBqS0BF+K33pvteck/w+njA5I+lKOsE9mKP9omth5nRiIiyzeqEOeO790bkbmoBuVkF0HKB6zJmvpUHzhMKIqqO0W4br727VtFBa8I2XnkA4lxRfpF0uBa/2/SXlR5We1KN5fAVp8elXJ167eDk4AAwWPdg7K8kDkjRdSmE94IPLhPYi8HICT32oJhDOBz3XTJQ79ymUN6nkeEoX92PLFfJGlvxNkAT0FFRPgkPJWUOAVzyiYkM4msr+xqXIShkUYvftoRFnX+mKqv18/Ga/JmujgF3ojeN5tmQwqlr2KATjnxLn6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=55qpIYDE25OL/NfYpxyTnVqJ3E3f+bs+6JaYYYGQxl0=; b=TKKWfuYYSuvTxYKwDwjE6OWEpp1V7tvfODtaEcyphef0ThlxQKtXuKPY/fibMvbxp3xclrGYNJwuYaUEsNbyEiJv3C6pgVEgDrNx3jXk67NWfDefQXwAzTHTco+/oEH1w+9qxcMKaGJGZUZvrPJ1jkZfeeKG5Ux7IUGYoLKQFAL2Pgmu+Gxba3mjd9TLje3Pn52tC8aDSPXc6fZHMw5HvXpMe8B3PY8PgXCB+PuIKRsPpzAqI3bWWufU6WcHa0NepZkqusBhDasftfXsCNkGm3EEKuyhAZG8q5SZ8BMGZkmfrpkTj31MmfT8EzVMvQvRxrrqZo9BzEfoNL7cBHmNfA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=55qpIYDE25OL/NfYpxyTnVqJ3E3f+bs+6JaYYYGQxl0=; b=ZxOtpIb4HAgBuVaqEmaFgQVllAsAeSKuRpFjzI1/ok8cN1zmUHGlrM3GZsS9qdJX4Hx2M7vHuKCbfjiqmRFUgaQO2tn+7mRYmNoUpUXuUnfZHx9Fdd8P/AaYkdvgwtYXqfwt8DNvOehEiTlg1YmzLP+0TuHGSkeTUfv4gbYiEEA= Received: from DM6PR11MB2890.namprd11.prod.outlook.com (2603:10b6:5:63::20) by DM6PR11MB4513.namprd11.prod.outlook.com (2603:10b6:5:2a2::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.20; Thu, 16 Jul 2020 18:21:10 +0000 Received: from DM6PR11MB2890.namprd11.prod.outlook.com ([fe80::65c2:9ac9:2c52:82bd]) by DM6PR11MB2890.namprd11.prod.outlook.com ([fe80::65c2:9ac9:2c52:82bd%6]) with mapi id 15.20.3174.026; Thu, 16 Jul 2020 18:21:09 +0000 From: "Brown, Aaron F" To: Vaibhav Gupta , Bjorn Helgaas , Bjorn Helgaas , "bjorn@helgaas.com" , Vaibhav Gupta , "David S. Miller" , "Jakub Kicinski" , "Kirsher, Jeffrey T" CC: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "intel-wired-lan@lists.osuosl.org" , "skhan@linuxfoundation.org" , "linux-kernel-mentees@lists.linuxfoundation.org" Subject: RE: [Intel-wired-lan] [PATCH v1 5/5] e100: use generic power management Thread-Topic: [Intel-wired-lan] [PATCH v1 5/5] e100: use generic power management Thread-Index: AQHWTfgoFaQac82XOkWeVKZvQ3nVRakKnPRA Date: Thu, 16 Jul 2020 18:21:09 +0000 Message-ID: References: <20200629092943.227910-1-vaibhavgupta40@gmail.com> <20200629092943.227910-6-vaibhavgupta40@gmail.com> In-Reply-To: <20200629092943.227910-6-vaibhavgupta40@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.2.0.6 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [97.120.173.209] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: aed97eab-07cd-4bca-99bd-08d829b503a5 x-ms-traffictypediagnostic: DM6PR11MB4513: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1824; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Eb4nbkZG+LCAbmH6DBwYMhjgu4vD2NDacG4bP8UWf1K1O6T8C/PVP48k1xDnZRNxI3wHfluJY4VqLgaG/6CCU30mKTsfRKMEtwmhqE0e1Ao4+ZTI8ZvKusy5fk04DydcvWqy9Dx5IVgn2ZLz3WcTpW1tq/3OhBe4ksV80RauHwIhq0exC1udNrmHAioFERLHypPtUaKAmBId8WJTEzBuvhDu57PGz5kFj9DljxovY+02/2T4HIIb6pRXvDnBPonqXQAc5MPh1C4WpDMkICrYLo8MBu1fUp3alDQaG7jHBfwZURb6YMRQxnnujpqtnwKhNIW2M/nLFqZ86RQKA41Ayg3Wl/Jbnc5GiEeupUE4+ztrmJLnhuNamfTIpvdPv8LU x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR11MB2890.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(396003)(346002)(136003)(376002)(39860400002)(366004)(33656002)(2906002)(83380400001)(478600001)(54906003)(6506007)(9686003)(8676002)(53546011)(71200400001)(55016002)(316002)(4326008)(7696005)(8936002)(52536014)(86362001)(6636002)(76116006)(7416002)(66556008)(66476007)(66446008)(64756008)(66946007)(26005)(110136005)(5660300002)(186003)(41533002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: LIpgZgKub2Y7h9JqR7uYCDH46jDVsJJOClkqHgqzTcdpFR9gaeK85e3d8hgGz+6NuPUN2HTxXLIrLQeNnJ901LEQ0yT2y8ozt3OyKulO12ksVGyFLil1os6p8ydqTdraSwRSYSYqwv9/HTwHuba5fW349Ns9SxgDf30gDsyoTROtM4NS/Iu/WrEA8jNw27aWjJiSYc5AtH65VP3OEaa1+hWT+p4wIVR7tsNcqHDmrW03+RlTpO0D/YlKIw6Z9RQIS1RQua+C+wuosuRTHHZhGe7C+gVlq/0euz8NIglCGgTGF/JXb+2rKmmnFoMjAiW2Z6km/MNQeyLy4jIi8NybKIm0NfpOnixF8KUnjZzRdjKP12tuATuWV9HctVZYR9n9GSRpUPTehvA38D+2klAWBbrqHrnUZEBGVEz5YZ1o/FeK+qn6uw8eggxqyebtC4ErMdqplRmeFk2Dknsl96Etnb55PdWpHROsUp3a+QIbWoomrzHhR0No4dFroQJU0oI6 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB2890.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: aed97eab-07cd-4bca-99bd-08d829b503a5 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jul 2020 18:21:09.8459 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: AqNcvwEwmIHNyEqI/AIpAb+hS7n3ocaItAG5Gd6DZHodmpdbqVzJG8jEgR4fld7Bg80fbfU6LFO4ynapkfOLWg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4513 X-OriginatorOrg: intel.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Intel-wired-lan On Behalf Of > Vaibhav Gupta > Sent: Monday, June 29, 2020 2:30 AM > To: Bjorn Helgaas ; Bjorn Helgaas > ; bjorn@helgaas.com; Vaibhav Gupta > ; David S. Miller ; > Jakub Kicinski ; Kirsher, Jeffrey T > > Cc: Vaibhav Gupta ; netdev@vger.kernel.org; > linux-kernel@vger.kernel.org; intel-wired-lan@lists.osuosl.org; > skhan@linuxfoundation.org; linux-kernel-mentees@lists.linuxfoundation.org > Subject: [Intel-wired-lan] [PATCH v1 5/5] e100: use generic power managem= ent >=20 > With legacy PM hooks, it was the responsibility of a driver to manage PCI > states and also the device's power state. The generic approach is to let > PCI core handle the work. >=20 > e100_suspend() calls __e100_shutdown() to perform intermediate tasks. > __e100_shutdown() calls pci_save_state() which is not recommended. >=20 > e100_suspend() also calls __e100_power_off() which is calling PCI helper > functions, pci_prepare_to_sleep(), pci_set_power_state(), along with > pci_wake_from_d3(...,false). Hence, the functin call is removed and wol i= s > disabled as earlier using device_wakeup_disable(). >=20 > Compile-tested only. >=20 > Signed-off-by: Vaibhav Gupta > --- > drivers/net/ethernet/intel/e100.c | 31 +++++++++++++------------------ > 1 file changed, 13 insertions(+), 18 deletions(-) I do have several e100 based adapters still working and a few old systems w= ith plain old PCI that still function, however all of these older systems h= ave broken power management. Regardless of if I use the kernel before or a= fter this patch is applied, or even if the e100 driver is loaded or not I c= an't get a reliable suspend / resume cycle to work on them. I did run some basic regression with this patch against the remaining pro10= 0 cards I could scrounge up and aside from broken power management (again w= ith or without patch) the system seems good, so (hesitantly) from a regress= ion perspective I will go ahead and say... Tested-by: Aaron Brown