From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 19785ECDFB8 for ; Mon, 23 Jul 2018 12:54:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CD92C20880 for ; Mon, 23 Jul 2018 12:54:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CD92C20880 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388391AbeGWNz4 (ORCPT ); Mon, 23 Jul 2018 09:55:56 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45090 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387904AbeGWN0i (ORCPT ); Mon, 23 Jul 2018 09:26:38 -0400 Received: from localhost (LFbn-1-12238-233.w90-92.abo.wanadoo.fr [90.92.53.233]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id F40DDBE1; Mon, 23 Jul 2018 12:25:40 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dewet Thibaut , Alexander Sverdlin , Borislav Petkov , Thomas Gleixner , Tony Luck , linux-edac Subject: [PATCH 4.17 12/63] x86/MCE: Remove min interval polling limitation Date: Mon, 23 Jul 2018 14:24:18 +0200 Message-Id: <20180723122446.842171967@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180723122446.351334162@linuxfoundation.org> References: <20180723122446.351334162@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Dewet Thibaut commit fbdb328c6bae0a7c78d75734a738b66b86dffc96 upstream. commit b3b7c4795c ("x86/MCE: Serialize sysfs changes") introduced a min interval limitation when setting the check interval for polled MCEs. However, the logic is that 0 disables polling for corrected MCEs, see Documentation/x86/x86_64/machinecheck. The limitation prevents disabling. Remove this limitation and allow the value 0 to disable polling again. Fixes: b3b7c4795c ("x86/MCE: Serialize sysfs changes") Signed-off-by: Dewet Thibaut Signed-off-by: Alexander Sverdlin [ Massage commit message. ] Signed-off-by: Borislav Petkov Signed-off-by: Thomas Gleixner Cc: Tony Luck Cc: linux-edac Cc: stable@vger.kernel.org Link: http://lkml.kernel.org/r/20180716084927.24869-1-alexander.sverdlin@nokia.com Signed-off-by: Greg Kroah-Hartman --- arch/x86/kernel/cpu/mcheck/mce.c | 3 --- 1 file changed, 3 deletions(-) --- a/arch/x86/kernel/cpu/mcheck/mce.c +++ b/arch/x86/kernel/cpu/mcheck/mce.c @@ -2147,9 +2147,6 @@ static ssize_t store_int_with_restart(st if (check_interval == old_check_interval) return ret; - if (check_interval < 1) - check_interval = 1; - mutex_lock(&mce_sysfs_mutex); mce_restart(); mutex_unlock(&mce_sysfs_mutex); From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Subject: [4.17,12/63] x86/MCE: Remove min interval polling limitation From: Greg Kroah-Hartman Message-Id: <20180723122446.842171967@linuxfoundation.org> Date: Mon, 23 Jul 2018 14:24:18 +0200 To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dewet Thibaut , Alexander Sverdlin , Borislav Petkov , Thomas Gleixner , Tony Luck , linux-edac List-ID: NC4xNy1zdGFibGUgcmV2aWV3IHBhdGNoLiAgSWYgYW55b25lIGhhcyBhbnkgb2JqZWN0aW9ucywg cGxlYXNlIGxldCBtZSBrbm93LgoKLS0tLS0tLS0tLS0tLS0tLS0tCgpGcm9tOiBEZXdldCBUaGli YXV0IDx0aGliYXV0LmRld2V0QG5va2lhLmNvbT4KCmNvbW1pdCBmYmRiMzI4YzZiYWUwYTdjNzhk NzU3MzRhNzM4YjY2Yjg2ZGZmYzk2IHVwc3RyZWFtLgoKY29tbWl0IGIzYjdjNDc5NWMgKCJ4ODYv TUNFOiBTZXJpYWxpemUgc3lzZnMgY2hhbmdlcyIpIGludHJvZHVjZWQgYSBtaW4KaW50ZXJ2YWwg bGltaXRhdGlvbiB3aGVuIHNldHRpbmcgdGhlIGNoZWNrIGludGVydmFsIGZvciBwb2xsZWQgTUNF cy4KSG93ZXZlciwgdGhlIGxvZ2ljIGlzIHRoYXQgMCBkaXNhYmxlcyBwb2xsaW5nIGZvciBjb3Jy ZWN0ZWQgTUNFcywgc2VlCkRvY3VtZW50YXRpb24veDg2L3g4Nl82NC9tYWNoaW5lY2hlY2suIFRo ZSBsaW1pdGF0aW9uIHByZXZlbnRzIGRpc2FibGluZy4KClJlbW92ZSB0aGlzIGxpbWl0YXRpb24g YW5kIGFsbG93IHRoZSB2YWx1ZSAwIHRvIGRpc2FibGUgcG9sbGluZyBhZ2Fpbi4KCkZpeGVzOiBi M2I3YzQ3OTVjICgieDg2L01DRTogU2VyaWFsaXplIHN5c2ZzIGNoYW5nZXMiKQpTaWduZWQtb2Zm LWJ5OiBEZXdldCBUaGliYXV0IDx0aGliYXV0LmRld2V0QG5va2lhLmNvbT4KU2lnbmVkLW9mZi1i eTogQWxleGFuZGVyIFN2ZXJkbGluIDx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