Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp635376ybg; Mon, 1 Jun 2020 10:18:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzak4ep4uXAo94aNoznGcZBX+624vKlqDtiaT6BsWmcbEZgdDydqYAqKQPXlDV32HGeOXpx X-Received: by 2002:aa7:c80c:: with SMTP id a12mr17013582edt.140.1591031926664; Mon, 01 Jun 2020 10:18:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1591031926; cv=pass; d=google.com; s=arc-20160816; b=VeyQnVIyrklOzN4SMpozSuDlHArXRG4sDcevOoJfBzuMbzVYPSixYZLEODCu/xaiFR g82QV3lbN6pB+lyGCLtF3zf3P+n1ILMOI4JsJcBn2ZrJY19Y4CNvOwZ1WbrYHaSuahGi 7gK4WQopK2vEW4AhW079pQg5s2OvxmedurzhLwGovbxSZImW2HanoS8ShyGezE3IDZrw AmlV0u2TPwPGFMS0TE548kDCjavB3paJXNChg8mMSLG2ZecQdseFDxSkCJS4ADY0vQ6+ eXawdMFnswxJrI5PD1EV16qhI5R6fgxJRni6f6G2xBpqZCIxJzsCOyoL1aoZMUXRbKTm JJaA== 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=tOg4SW89id6jfB2TpQaEEBvs3U5YdDKUsRaYvMnT3zI=; b=grDmO53CiXsmrgCMfvMHlzq4CmPLlaSEJxHcRSgRZHvpb6x/lVLQ6Kfq1mv5MnmfvJ 7XpXg3gQnhEZmNY+C+JcfuC3q4kS31gvVZPcMqhT2M+uZJ8jG+WDYBrJT4ZIe50a93c7 BzzNxToCKkkGdj3J1v0MCjJMij4wWd6TFT177uoyAkBbrRljffw55Q/zfUl+W5TkyoN3 qfkbL+gKkAkIx+lVjIfiP5gW/WlExX/m0RtOyrJ9KI5t5AI4mo6Evhc7ldKSRtlmq1xQ tCfC4gh/vdJW3Ed9/E2yTDMBcXdhQRNHet1AJ+OjxVfiR+W8MsnOAWlWxUPA7PfgrVBp GJDw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=dngL0sHO; 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 u9si66675ejx.370.2020.06.01.10.18.23; Mon, 01 Jun 2020 10:18:46 -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=dngL0sHO; 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 S1728097AbgFARQA (ORCPT + 99 others); Mon, 1 Jun 2020 13:16:00 -0400 Received: from mga17.intel.com ([192.55.52.151]:54402 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726125AbgFARP7 (ORCPT ); Mon, 1 Jun 2020 13:15:59 -0400 IronPort-SDR: oL8/XpEFDp9VqApte47Zg5vQ/OF/Q6+EFaY6Xlj7hdRaHhBPxXcfev4YKu99tUjDzLqVJImUIn wBiAqiZav7cA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2020 10:15:56 -0700 IronPort-SDR: Ol31ksGljC2T45LbXWx0HqwUAuzGNF73ka9vg2eGVT/+kdJYbhPYisQEfAPM3Z/LC37h/qQQYf kHmxGq2PZMJA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,461,1583222400"; d="scan'208";a="377471369" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga001.fm.intel.com with ESMTP; 01 Jun 2020 10:15:57 -0700 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 1 Jun 2020 10:15:56 -0700 Received: from FMSEDG001.ED.cps.intel.com (10.1.192.133) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 1 Jun 2020 10:15:56 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.169) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 1 Jun 2020 10:15:56 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hs85d6/2GgdO9aceq+ZWnzXvFiL9YuQA44qD1ZZNYh6gornDbuKZ7WKDhl+nI3DYwnG/FEE6sZPA7bgvrnyf84j8w6uxzvueXzFXH/K7IhtY6EQLXAw5iCLB21xgy4WZv9Q/AdwYSV07LtD4ETUStGwGm5945bPWLUme5oHsXY+6i36Jqzzz+2LlZ/cTFsmmOsE9hplETIPcnSQLQoenxjM+kBF+hd6q9I8LwH1EqlQQDqOFGW7ZPjOeXromiENbtTRJaeRB0vwlruyPw+FSzeYdj2P+uvUXbQBk1QfiYZeyZCTQiScEfzkzQ6R3MdhxhD6qaJ71uCY4WSi8KPn9bg== 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=tOg4SW89id6jfB2TpQaEEBvs3U5YdDKUsRaYvMnT3zI=; b=f6seQKywK/TVwoJyKcRoT/Zy8aN1H7Op9zgT8wmYPdurog0aYI9Obprxd9yjkGI9OKNukIqCM5SKisEuImzOii/XV6vCOJ+W1qJcnCkqfHl4eODJaSrUbFRLIHSRk82gqaEnhmOOcN/MX6tMq80Zpk0CmAEBc1Z+47VGoocFFalwesSTUoD2QUpggRHvEIfFlI+rpweW7zPlNcls/BdXyt7/gg9Q1qC9mWZPGUuoVzvxEVlIYpUjMCWpl2wao0N1qaIODntww0VgbDYQjbHE9T4CSFudD43YScxyhFFJWEBunxlnqVAQJuTecKNwhYNgyD0mq5XcIPuSqr3i0woDrw== 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=tOg4SW89id6jfB2TpQaEEBvs3U5YdDKUsRaYvMnT3zI=; b=dngL0sHOFyLi+DsQ2zS3noCm4dL6qoTGndUBJdZKDG/GQsKP3XYAX2+Qt5fK3TzBWA9Cj+ZPUQeZdC/acV4Pw1ss8udZGlw3oe21LvwiRgi+iaTUvg7LO0GchcRsyEvIfzfAEwQUpGG10bMe65YQV9e1tNDQzURyYs+qaKXKKiY= Received: from DM6PR11MB2890.namprd11.prod.outlook.com (2603:10b6:5:63::20) by DM6PR11MB2665.namprd11.prod.outlook.com (2603:10b6:5:c3::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3045.21; Mon, 1 Jun 2020 17:15:54 +0000 Received: from DM6PR11MB2890.namprd11.prod.outlook.com ([fe80::40b:5b49:b17d:d875]) by DM6PR11MB2890.namprd11.prod.outlook.com ([fe80::40b:5b49:b17d:d875%7]) with mapi id 15.20.3045.022; Mon, 1 Jun 2020 17:15:54 +0000 From: "Brown, Aaron F" To: Vaibhav Gupta , Vaibhav Gupta , Bjorn Helgaas , "Bjorn Helgaas" , "bjorn@helgaas.com" , "Kirsher, Jeffrey T" , "David S. Miller" , "rjw@rjwysocki.net" CC: "Brandeburg, Jesse" , "intel-wired-lan@lists.osuosl.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-kernel-mentees@lists.linuxfoundation.org" , "skhan@linuxfoundation.org" Subject: RE: [PATCH v2] e1000: use generic power management Thread-Topic: [PATCH v2] e1000: use generic power management Thread-Index: AQHWMpACfuNJXM4xZEOoI3KQroDhiajEC3yA Date: Mon, 1 Jun 2020 17:15:54 +0000 Message-ID: References: <20200525122710.25064-1-vaibhavgupta40@gmail.com> In-Reply-To: <20200525122710.25064-1-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: [134.134.136.211] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e473eea9-2cd4-44e8-3ba3-08d8064f7170 x-ms-traffictypediagnostic: DM6PR11MB2665: 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:6790; x-forefront-prvs: 0421BF7135 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: y7Ps0vss2q3Ak6+a5IvfWyGG4xQfUsYCM5DnMPfNpGWD4SO+j5qkO38PSTp5jjKEUGbFzMo/7DQb8l/RdXQZkOdXdp0Nq7pDinpjZN/EOFgvu3SZq55pDvbTwJ8I0nf4MvBd/RNlZtlAh+A9KP3w6/r/hU97uGtLh3pzn3UGm8KjRGxxp7EdFA4dAgHhZX5FsT2gCslZeAbEE9OB0MgK0vSAAj1ZfeZf6gsg10LxUKBK+pxuAsqTVQf1Oj3q3+kp2+9C8hdQLXnLKW484XbnqFlgoxxIf56vd1eq3ZUvclMUnCElPoWAEi1bs8TG8s/GmuBQk+eLvkZEmaCWfaQ1bgBRQT72/oyijfzo3k4J+jwMSYoAPBlpsvK/ArPHMShp 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:(346002)(376002)(396003)(136003)(366004)(39860400002)(8676002)(8936002)(110136005)(54906003)(52536014)(316002)(66476007)(66556008)(66946007)(76116006)(66446008)(86362001)(2906002)(4326008)(64756008)(55016002)(83380400001)(5660300002)(71200400001)(7696005)(26005)(7416002)(186003)(33656002)(478600001)(9686003)(53546011)(6506007)(41533002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: CbXUKrY2tn+6foegBe3eoldyTTVeqwg79t2RhwWF6VzOYrDr8UMg2sAcmsIoeWwieZKk1o7QmF/iMoGy/1U1faIhV49kqjvlij4g/aZZXPF/UH8nR2YVQjf2PchOyvW4MWHFpJvAn81K80jOBHzfu1+oNqXvVWrZ2S1lNgs8vdo8k1bBlN2ISKLUTxjcMvB53stmdtBz6/DFGMqeMD3Q5Xr2Su7OulJQNtzsTojUbpp/Wsj82zMcWwIno/EhwhDw7BfE2Q9rXLVMCTeC88LL5MIqJ2q8L+zdApuYcxqMENl/cgWFNLQzl+3SNzYNRx0DAPfcv8RqD961kEFDOvlMeIyLd27fGsBzO4Ao3TJzbdDwaEYCsGXRtKVcnl4uJTZ5ANfjgSjIkGnvK1d7f3YWYoKAI1IxiGZWfbPYFxa/5WVHRhH56Ss9zSK/xjO9YUCK7ywwupLpXu5VV88S4y+HZW/W7FuxX5va1gYvDCx7BEZwbs+g3tWloVlgkZWD0HN4 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: e473eea9-2cd4-44e8-3ba3-08d8064f7170 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Jun 2020 17:15:54.7469 (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: /hsdyx7jfr0DW2g6pN7/DWAp0CGnJK+n45y3jrIsaX8cTaHqbW8gckAFQuSmXy1KlhX0zHv8YuqAnfG10c8/oQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB2665 X-OriginatorOrg: intel.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Vaibhav Gupta > Sent: Monday, May 25, 2020 5:27 AM > To: Vaibhav Gupta ; Bjorn Helgaas > ; Bjorn Helgaas ; > bjorn@helgaas.com; Kirsher, Jeffrey T ; Davi= d S. > Miller ; rjw@rjwysocki.net > Cc: Vaibhav Gupta ; Brandeburg, Jesse > ; intel-wired-lan@lists.osuosl.org; > netdev@vger.kernel.org; linux-kernel@vger.kernel.org; linux-kernel- > mentees@lists.linuxfoundation.org; skhan@linuxfoundation.org > Subject: [PATCH v2] e1000: use generic power management >=20 > compile-tested only >=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 > e1000_suspend() calls __e1000_shutdown() to perform intermediate tasks. > __e1000_shutdown() modifies the value of "wake" (device should be wakeup > enabled or not), responsible for controlling the flow of legacy PM. >=20 > Since, PCI core has no idea about the value of "wake", new code for gener= ic > PM may produce unexpected results. Thus, use "device_set_wakeup_enable()" > to wakeup-enable the device accordingly. >=20 > Signed-off-by: Vaibhav Gupta > --- > drivers/net/ethernet/intel/e1000/e1000_main.c | 49 +++++-------------- > 1 file changed, 13 insertions(+), 36 deletions(-) I don't have many old PCI systems that handle power management properly bef= ore adding this patch. However, the few ones that do continue to do so wit= h the older e1000 parts I still have around. So a small sample, but at lea= st confirmed on _some_ real hardware Tested-by: Aaron Brown