Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751696AbdF1Vit (ORCPT ); Wed, 28 Jun 2017 17:38:49 -0400 Received: from cloudserver094114.home.net.pl ([79.96.170.134]:45949 "EHLO cloudserver094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751541AbdF1Vio (ORCPT ); Wed, 28 Jun 2017 17:38:44 -0400 From: "Rafael J. Wysocki" To: Lv Zheng Cc: "Rafael J . Wysocki" , Len Brown , 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 Date: Wed, 28 Jun 2017 23:31:16 +0200 Message-ID: <1792284.us4mECpxNF@aspire.rjw.lan> User-Agent: KMail/4.14.10 (Linux/4.12.0-rc1+; KDE/4.14.9; x86_64; ; ) In-Reply-To: <157972fa5572b0f0c157142ea151b8508e7640b4.1497418749.git.lv.zheng@intel.com> References: <157972fa5572b0f0c157142ea151b8508e7640b4.1497418749.git.lv.zheng@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1581 Lines: 36 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? Thanks, Rafael