Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751376AbbLUKwo (ORCPT ); Mon, 21 Dec 2015 05:52:44 -0500 Received: from relmlor4.renesas.com ([210.160.252.174]:60512 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751076AbbLUKwm convert rfc822-to-8bit (ORCPT ); Mon, 21 Dec 2015 05:52:42 -0500 X-IronPort-AV: E=Sophos;i="5.20,458,1444662000"; d="scan'208";a="202236637" From: Phil Edworthy To: Wolfram Sang CC: Simon Horman , Bjorn Helgaas , Geert Uytterhoeven , "linux-kernel@vger.kernel.org" , "linux-pci@vger.kernel.org" , "linux-sh@vger.kernel.org" Subject: RE: [PATCH 2/4] PCI: rcar: Support runtime PM link state L1 handling in pcie-rcar Thread-Topic: [PATCH 2/4] PCI: rcar: Support runtime PM link state L1 handling in pcie-rcar Thread-Index: AQHROM4m9nRzodEPBkeH5670ym6BC57PLLcAgAGTswCAAAfrAIAEf2dA Date: Mon, 21 Dec 2015 10:52:37 +0000 Message-ID: References: <1450358557-28376-1-git-send-email-phil.edworthy@renesas.com> <1450358557-28376-3-git-send-email-phil.edworthy@renesas.com> <20151217133058.GA20372@katana> <20151218140412.GA4595@katana> In-Reply-To: <20151218140412.GA4595@katana> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=phil.edworthy@renesas.com; x-originating-ip: [193.141.220.21] x-microsoft-exchange-diagnostics: 1;KL1PR06MB1174;5:/Rn7yLP7I1YsiScis3UFm9DfYizr7uESTFETGtX07ccUcsF4ncfWN9ua5GR+CbKKXkEB+ci2yco1TU/iXjMjSg97DtITgZQBEk9pZruMAciU3UXT2XuK8an+iCpbqB8lA9bi1gnoOqz8M7ZHkURTXw==;24:8Chxs5SYLvH87OwN97cNYRpNn2Mji3elNrPBh4+FyQ9bacxV5WtAtwAGaIPOPMijElzX/vgpe2VO1wnsXmJPPyRpw9vDabDf1oN26yBx7kE=;20:Gt+douQRL9EbNG1TSpL88CLchjZwvJJQssucuwahNjfs21ScEYWzmEhjD3Jobqy5/4+YXm85IrFbDWCTD3rPgl0OljTIPHZLu46+a7fpkvzKfhhKeX86/FOeEz64LnGQ+beg9EcuD9PQK52aQcugo/Ssus+BKCbQphw75SxEO8Q= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:KL1PR06MB1174; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(3002001)(10201501046);SRVR:KL1PR06MB1174;BCL:0;PCL:0;RULEID:;SRVR:KL1PR06MB1174; x-forefront-prvs: 079756C6B9 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(189002)(199003)(24454002)(5002640100001)(6116002)(10400500002)(3846002)(54356999)(106116001)(106356001)(5004730100002)(87936001)(101416001)(1096002)(76176999)(74316001)(1220700001)(50986999)(586003)(93886004)(102836003)(2900100001)(76576001)(33656002)(97736004)(66066001)(5008740100001)(5003600100002)(40100003)(2950100001)(77096005)(122556002)(189998001)(110136002)(11100500001)(81156007)(92566002)(86362001)(5001960100002)(105586002);DIR:OUT;SFP:1102;SCL:1;SRVR:KL1PR06MB1174;H:KL1PR06MB1174.apcprd06.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Dec 2015 10:52:37.7984 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR06MB1174 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 922 Lines: 25 Hi Wolfram, On 18 December 2015 14:04, Wolfram Sang wrote: > > Since the hardware doesn't support hot plug, I believe this loop will > > always exit very quickly. Unless someone has taken a hammer to the HW > > of course. > > I know what you mean. But since readl_poll_timeout() makes it easy, we > should better be safe than sorry. Hmm, I changed the code, but now it doesn't come out of suspend unless sleep_us passed to readl_poll_timeout is 0. Any reason you can think of? To test, I am just using: Build the kernel with CONFIG_PM_DEBUG. echo platform > /sys/power/pm_test echo N > /sys/module/printk/parameters/console_suspend echo mem > /sys/power/state Thanks Phil -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/