From patchwork Mon Oct 30 11:03:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vidya Sagar X-Patchwork-Id: 831960 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3yQWpH1LQRz9t3R for ; Mon, 30 Oct 2017 22:04:39 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932342AbdJ3LEi (ORCPT ); Mon, 30 Oct 2017 07:04:38 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:4807 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932182AbdJ3LEh (ORCPT ); Mon, 30 Oct 2017 07:04:37 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com id ; Mon, 30 Oct 2017 04:04:07 -0700 Received: from HQMAIL107.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Mon, 30 Oct 2017 04:04:08 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Mon, 30 Oct 2017 04:04:08 -0700 Received: from HQMAIL108.nvidia.com (172.18.146.13) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Mon, 30 Oct 2017 11:03:15 +0000 Received: from hqnvemgw02.nvidia.com (172.16.227.111) by HQMAIL108.nvidia.com (172.18.146.13) with Microsoft SMTP Server id 15.0.1293.2 via Frontend Transport; Mon, 30 Oct 2017 11:03:15 +0000 Received: from vidyas-desktop.nvidia.com (Not Verified[10.24.36.185]) by hqnvemgw02.nvidia.com with Trustwave SEG (v7, 5, 8, 10121) id ; Mon, 30 Oct 2017 04:03:15 -0700 From: Vidya Sagar To: , , , , , CC: , , , , Subject: [PATCH 0/4] Add ASPM-L1 Substates support for Tegra Date: Mon, 30 Oct 2017 16:33:01 +0530 Message-ID: <1509361385-21224-1-git-send-email-vidyas@nvidia.com> X-Mailer: git-send-email 2.7.4 X-NVConfidentiality: public MIME-Version: 1.0 Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org Tegra chips T210 and T186 support ASPM-L1 Substates (i.e. L1.1 and L1.2) This patch series - adds a generic API for root port controller drivers to override the default value of LTR L1.2 Threhold which otherwise comes from the same APIs weak implementation in aspm.c file - applies fixups to reflect correct capability values for T_cmrt (Common Mode Restore Time) and T_pwr_on (Power On) and adjusts counter values for 19.2 MHz of clk_m - applies fixup specific to T210 to avoid unnecessary wake ups from L1.2 state PCIe - ASPM L1 Sub States spec https://pcisig.com/sites/default/files/specification_documents/ECN_L1_PM_Substates_with_CLKREQ_31_May_2013_Rev10a.pdf Testing Done on T210 and T186 - ASPM-L1: Verified ASPM-L1 enablement by selecting PCIEASPM_POWERSAVE config With the help of Tegra rootport's internal counter registers, confirmed link entry in and out of ASPM-L1 state using USB3.0 add-on card, NVMe and NIC cards - ASPM-L1 SubStates: Verified ASPM-L1 Substates enablement by selecting PCIEASPM_POWER_SUPERSAVE config Confirmed link's entry into L1SS using Westren Digital NVMe card (with Sandisk Controller) using Tegra rootport's internal counter registers Vidya Sagar (4): PCI/ASPM: Add API to supply LTR L1.2 threshold PCI: tegra: Enable ASPM-L1 capability advertisement PCI: tegra: Apply sw fixups to support ASPM-L1 Sub-States PCI: tegra: fixups to avoid unnecessary wakeup from ASPM-L1.2 drivers/pci/host/pci-tegra.c | 99 ++++++++++++++++++++++++++++++++++++++++++++ drivers/pci/pcie/aspm.c | 11 +++-- include/linux/pci-aspm.h | 6 +++ 3 files changed, 113 insertions(+), 3 deletions(-)