Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2874454pxu; Sat, 19 Dec 2020 05:01:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJyTj+Aj2cDDuX5N1/xMv6h3r5juJrLLwsc4pzi88Z2UBsd0OwpeADiH+0qewxCFoRE/ipAH X-Received: by 2002:a17:907:60a:: with SMTP id wp10mr8335399ejb.205.1608382885008; Sat, 19 Dec 2020 05:01:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608382885; cv=none; d=google.com; s=arc-20160816; b=CbKiDky1vwTgPfXGPALM7xSH4uOjBvu4hhe9nQC5RD/cQRnM1UpwZqt49T+JiCAFtz xF3doEhnFllGCxYKv5MkHw0s01nPB552zsmns2BqLnO1WkavP7Y5R4hsQZ4JbougT4MA PVhnH0zxBUtfeILllgg6SZ438ya5Cj8XzU3saSGtONyRQPUXnovbOX3DHpEnwyNblFCx ZIadFnFKOclg3ATMHNCFJZjMW02JW64VnEubSpELkXXIiNHJZL9mv6b4CwDRbV18nRQ/ K4Uh/UOfg0VexzDFgUYxUXtUKERTp/zFrJi5yUHmY20rhOAjR66+ZnkmEbsNEj3Z/SBz XEUg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=8ulqGIGDujL9IgGcBwPFwJLQUJRNhxKGhs3AMQFuK8U=; b=H1+c5eSAr/8OFEt30D1X+Kt3IpV26vRHfewcYAJF5cEXSR9PGAvpLHR3fOj3fT5ky5 k02FGt8TxfAiGOI9U7HVkGlxnL1VYOfwaIRVacD9EdIrUjOu9A4vEgy6bgUkNAfedMFJ uJZ0Fi12VqBADKbcoWn+PlCpYNjNuQgLIMQwIC7TVrDvqmdBLlXBQDNpjMemBD8YYYkq Pzt1KjwwmWBgOS5XHMf3XJqBoeiihbTq7mt+SkCnaozdwn0y73fCTbyR6j3WbyOzhfDA Z5iAJ+oDcKr3y3FHgmGj0B/nqH10rOmhy8mx3c1rUJg2F/x9h7hUNnUZ/i/q+mR/m/r8 fICQ== ARC-Authentication-Results: i=1; mx.google.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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d19si8344834eds.173.2020.12.19.05.01.02; Sat, 19 Dec 2020 05:01:24 -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; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728027AbgLSM7N (ORCPT + 99 others); Sat, 19 Dec 2020 07:59:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:45442 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727823AbgLSM6s (ORCPT ); Sat, 19 Dec 2020 07:58:48 -0500 From: Greg Kroah-Hartman Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vitaly Lifshits , Aaron Brown , Tony Nguyen , Alexander Duyck , Mario Limonciello , Jakub Kicinski Subject: [PATCH 5.9 21/49] e1000e: fix S0ix flow to allow S0i3.2 subset entry Date: Sat, 19 Dec 2020 13:58:25 +0100 Message-Id: <20201219125345.723997200@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201219125344.671832095@linuxfoundation.org> References: <20201219125344.671832095@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vitaly Lifshits [ Upstream commit a379b01cd4b2aa3f12786b281a714871574e5ccb ] Changed a configuration in the flows to align with architecture requirements to achieve S0i3.2 substate. This helps both i219V and i219LM configurations. Also fixed a typo in the previous commit 632fbd5eb5b0 ("e1000e: fix S0ix flows for cable connected case"). Fixes: 632fbd5eb5b0 ("e1000e: fix S0ix flows for cable connected case"). Signed-off-by: Vitaly Lifshits Tested-by: Aaron Brown Signed-off-by: Tony Nguyen Reviewed-by: Alexander Duyck Signed-off-by: Mario Limonciello Link: https://lore.kernel.org/r/20201208185632.151052-1-mario.limonciello@dell.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/intel/e1000e/netdev.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/drivers/net/ethernet/intel/e1000e/netdev.c +++ b/drivers/net/ethernet/intel/e1000e/netdev.c @@ -6449,13 +6449,13 @@ static void e1000e_s0ix_entry_flow(struc /* 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); @@ -6499,11 +6499,11 @@ static void e1000e_s0ix_exit_flow(struct /* 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