From patchwork Sat Oct 1 00:41:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajat Jain X-Patchwork-Id: 9359033 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C146F6075E for ; Sat, 1 Oct 2016 00:42:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A62D72A06B for ; Sat, 1 Oct 2016 00:42:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 98BBF2A072; Sat, 1 Oct 2016 00:42:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2FE1D2A06B for ; Sat, 1 Oct 2016 00:42:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752371AbcJAAmT (ORCPT ); Fri, 30 Sep 2016 20:42:19 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:33732 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751505AbcJAAmR (ORCPT ); Fri, 30 Sep 2016 20:42:17 -0400 Received: by mail-pa0-f42.google.com with SMTP id cd13so39934299pac.0 for ; Fri, 30 Sep 2016 17:42:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=xlnxuQ+FJNy+59UFB+6pYsNSgUXt1t4VDZhayTJKe5Y=; b=k53cItbSb6pOAiDAuozOyKR3J31vEkU26Pl90vpXxnAIr5+2p1aZQD1PhViQHnXvwZ BId01BW7XG2zYbBLK22Fqm44zL1qQfwZJehgB55Y5OU+nnDrDUJ83EvEu1fvlVEBCsHV T1mFwW2q2dQAht1b0LJ0fBmbwFgn/1TmLMnRiHdCoeEleeD1aJqQv3cuRNg1AXjvqKOx tDvDeTFyVjjbAkLA0lt4rCyJuhakLqtQzlHJJndhsKtW/X1fhOoFzavCCCAMFvP2B/2U 2QOxJ32Fei+bOYSL75Mul8+CWcUPeR5nIntotaiAJqfDQRiM4EOYzM4u+Iaox5LuLnaf H+UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=xlnxuQ+FJNy+59UFB+6pYsNSgUXt1t4VDZhayTJKe5Y=; b=db42Bp3IUl6nFIBZnEfAhmDEH36WicVrZDWLTX3SvSbPeWs1FktLWhvSh14kLKVYMc qgTfllcjI53ahqKWFQL1FFqpxaNYAhV+G+G9hAyj2Y50RQoYaI+zyxAKYkSy3orapGyl lXbq3APK8/nyrJrffIz5qYoyrsXZgmPH5msaDOadg263JOw3MSiyxQ8QZ7nCotvj7d4z v2IxOFlluQBpxWiJKQzLDnUo4k3AaO/m1P70dVmL6WVNdmth/RiwQI3SHdCso5tv39uU 2/vdAuxjXWFZ07rKncSGU4wGa891ovIFiSYa5tOn9/H+0Sp14UmYXgEDnIrD0thN7RlY ldFQ== X-Gm-Message-State: AA6/9RkVO4XJUbJ4YrdprEHrL63/PZsFOamDV3WEgB7gKiInx6x0+nRoa7gIJodr0VN3+UtB X-Received: by 10.66.189.168 with SMTP id gj8mr13586807pac.117.1475282536865; Fri, 30 Sep 2016 17:42:16 -0700 (PDT) Received: from rajat.mtv.corp.google.com ([172.22.64.13]) by smtp.gmail.com with ESMTPSA id t7sm517594pax.46.2016.09.30.17.42.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Sep 2016 17:42:16 -0700 (PDT) From: Rajat Jain To: Martin Mares , Bjorn Helgaas , linux-pci@vger.kernel.org, David Box , Rajat Jain , Brian Norris Cc: Rajat Jain Subject: [PATCH] pciutils: Update the tests/cap-l1-pm with actual device data Date: Fri, 30 Sep 2016 17:41:44 -0700 Message-Id: <1475282504-39654-1-git-send-email-rajatja@google.com> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Update the test data using lspci output taken from a card that supports L1 PM supstates. Signed-off-by: Rajat Jain --- tests/cap-l1-pm | 327 +++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 303 insertions(+), 24 deletions(-) diff --git a/tests/cap-l1-pm b/tests/cap-l1-pm index b680135..ddd1905 100644 --- a/tests/cap-l1-pm +++ b/tests/cap-l1-pm @@ -1,26 +1,305 @@ -Sample lspci -vvxxxx output showing first 8 bytes of extended config space for -the L1 Substate Capability. Cannot show more since hardware is unreleased. - -MJ: Added fake header, so that the test parses. - -00:1c.0 PCI bridge: - Capabilities: [200 v1] L1 PM Substates - L1SubCap: PCI-PM_L1.2+, PCI-PM_L1.1+, ASPM_L1.2+, ASPM_L1.1+, L1_PM_Substates+ - PortCommonModeRestoreTime=40us, PortTPowerOnTime=10us -00: 86 80 08 34 47 01 10 00 12 00 04 06 10 00 01 00 -10: 00 00 00 00 00 00 00 00 00 01 01 00 10 10 00 00 -20: 00 e0 90 e0 81 c7 f1 c7 00 00 00 00 00 00 00 00 -30: 00 00 00 00 40 00 00 00 00 00 00 00 0b 01 00 00 -40: 0d 60 00 00 86 80 53 4f 00 00 00 00 00 00 00 00 -50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 -60: 05 90 02 01 20 00 00 00 00 00 00 00 00 00 00 00 -70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +01:00.0 Class 0280: Device 8086:095a (rev 61) + Subsystem: Device 8086:5010 + Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ + Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR-