Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751860AbdGCFPj convert rfc822-to-8bit (ORCPT ); Mon, 3 Jul 2017 01:15:39 -0400 Received: from mga06.intel.com ([134.134.136.31]:45766 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750776AbdGCFPh (ORCPT ); Mon, 3 Jul 2017 01:15:37 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,301,1496127600"; d="scan'208";a="106423535" From: "Zheng, Lv" To: "Rafael J. Wysocki" , "Chen, Yu C" CC: "Wysocki, Rafael J" , "Brown, Len" , Lv Zheng , "linux-kernel@vger.kernel.org" , "linux-acpi@vger.kernel.org" Subject: RE: [PATCH 3/3] ACPI: EC: Change EC noirq tuning to be an optional behavior Thread-Topic: [PATCH 3/3] ACPI: EC: Change EC noirq tuning to be an optional behavior Thread-Index: AQHS5NNo0Y3Fjo8ndECXmIn+QUVtkKI6W/sAgAdQTKA= Date: Mon, 3 Jul 2017 05:15:26 +0000 Message-ID: <1AE640813FDE7649BE1B193DEA596E886CED9515@SHSMSX101.ccr.corp.intel.com> References: <157972fa5572b0f0c157142ea151b8508e7640b4.1497418749.git.lv.zheng@intel.com> <1792284.us4mECpxNF@aspire.rjw.lan> In-Reply-To: <1792284.us4mECpxNF@aspire.rjw.lan> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMjc2MzMxMTYtNTJlZC00YmRhLWEwNGUtZmE2OWFmMTQyZGUyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IjJyUmdZdlRqeVkwanZ0RU8zNnpUVlFwb3dVZWRFZzlZeEQxRWFtXC8xemlzPSJ9 x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1994 Lines: 45 Hi, Rafael > From: Rafael J. Wysocki [mailto:rjw@rjwysocki.net] > Subject: Re: [PATCH 3/3] ACPI: EC: Change EC noirq tuning to be an optional behavior > > On Wednesday, June 14, 2017 01:59:24 PM Lv Zheng wrote: > > According to the bug report, though the busy polling mode can make noirq > > stages executed faster, it causes abnormal fan blowing in noirq stages. > > > > This patch prepares an option so that the automatic busy polling mode > > switching for noirq stages can be enabled by who wants to tune it, not all > > users. > > Noticed that the new global option cannot be changed during noirq stages. > > There is no need to lock its value changes to sync with polling mode > > settings switches. > > > > For reporters and testers in the thread, as there are too many reporters > > on the bug link, this patch only picks names from most active commenters. > > Sorry for the neglet. > > > > Link: https://bugzilla.kernel.org/show_bug.cgi?id=191181 > > Reported-by: Tatsuyuki Ishi > > Reported-by: Claudio Sacerdoti Coen > > Tested-by: Nicolo' > > Reported-by: Jens Axboe > > Tested-by: Gjorgji Jankovski > > Tested-by: Damjan Georgievski > > Tested-by: Fernando Chaves > > Signed-off-by: Lv Zheng > > First of all, this seems to be a fix for commit c3a696b6e8f8 (ACPI / EC: Use busy polling > mode when GPE is not enabled), so there should be a Fixes: tag pointing to that > one. > > Moreover, if that is just a performance optimization and not a matter of correctness, > why don't we simply drop acpi_ec_enter/leave_noirq() entirely? > > What is going to break if we do that? Let me Cc Yu for justification. I just added busy poll support for suspend/boot according to the root cause reported by him. He should know the end user requirements better than me. Thanks and best regards Lv