Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5761874imm; Mon, 23 Jul 2018 05:45:30 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcvb2cLB3zQzXyl6d1PZm1Nq/vQ0zXPo+HRijYg3vASNQUjvu3mkqrH8KTuG57r3QKm1WL0 X-Received: by 2002:a62:d98f:: with SMTP id b15-v6mr13071902pfl.1.1532349930093; Mon, 23 Jul 2018 05:45:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532349930; cv=none; d=google.com; s=arc-20160816; b=Y6SZVC4LAFMEadfbDWiNbIg/s9cb3QTKISHMYc1xyuQbO6+xVFWODWKUyBhP/YpT3Q 3UbR7gFC1phJaSvyRdRmqBj+8mrr7c2YhIaHg48MdlYhK/zjzwDqFLBNuAUs9vDbA4rO J8dMDeAafhajgdxCM8Anga3NNhXQwlMojPcBbddwBuvblKshmxtrfUkj7eptphoCF1TY 4lEqb7eXl4X+c6BqB2aFxmWT7swpAEJ5/jBX8OYhKqmhETj49bhX7zqJhUnk+Ks0Rm4B /nNRRKkK/w67860/WxlEdU7Ir/3IA/Et0r8r4MAg6HaDCyTR7gq6gB+8LmJ4Aa/kDiur Cr6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=MB+bK0VjOlb7C5ZaFsn7gYcWGd4o1sGtgqRtlG1VhNw=; b=cJOIRhWoMcf8q64tsQWYr/W8eL5XLQTMRasDbWWkEBz1c3IgD6wS/fMX2JER0qP+MQ 7Eu9UGjiAJGOnM0fxw2KOVY1vLTCyr3JVOOmYF87Yz5FM2FnAGp6SbUDqVN777t5NMFV wAlBjzai3tLHRWEhn7hLxQcVINtrzSTaRrcy6y9bcOfO1rHfsgRrd8GDD0NHBqdw9VcD xb6rH10eBRnc8SWwZakUXw+jsTT9DGS5cDMfLfbKEsQQXF106ZFBl6BEqzm9XjQG5Xw7 yB37xHjShN/1G1ZBXDBZ2OkGmeCtkTzT8sviTpCH6jiuXaglHcBFufXSEN8wohZRiPFj sKxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y23-v6si8573068pgk.427.2018.07.23.05.45.15; Mon, 23 Jul 2018 05:45:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388880AbeGWNoX (ORCPT + 99 others); Mon, 23 Jul 2018 09:44:23 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:47976 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388318AbeGWNoW (ORCPT ); Mon, 23 Jul 2018 09:44:22 -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 7F09BC7D; Mon, 23 Jul 2018 12:43:19 +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.4 002/107] x86/MCE: Remove min interval polling limitation Date: Mon, 23 Jul 2018 14:40:56 +0200 Message-Id: <20180723122413.093529142@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180723122413.003644357@linuxfoundation.org> References: <20180723122413.003644357@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.4-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 @@ -2294,9 +2294,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);