Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp478620pxt; Fri, 6 Aug 2021 06:39:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVFYQjSc4SkfdAmeH7mwkjySbm3Y8KmFz3rJKjoh942yke8vtfr4tsauCN2ZjZ2mp406hK X-Received: by 2002:a05:6402:254a:: with SMTP id l10mr13352913edb.258.1628257156846; Fri, 06 Aug 2021 06:39:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628257156; cv=none; d=google.com; s=arc-20160816; b=0ACb4ZmEUsd5JUgGEmnDNokGC7g4GgkRlJAYsdZvB75Ro7eVsmNNo9HTmAaJN2mVxq 9w2OzBRR1HCmC1liGuVCdRTJfIPuRITySlhE3MNhWX7F6zSqLpKy4pNhck+cZa5VUzH1 SNg4hFLAkEM/HLrD9otID2aCa7buCFgKws7I2gx78rnNUPHqX7cUCRSvX7oDlKQOf7WK 8BjCDvuwUfXQScFvcslyGTeKj8EzqR2M8H1M9ISjILkvwdwGUo1iNPNoyj2nFSPGj18t WNmNmzWlOMX/Oh3mNdDMRtEf0rEMPXAxjAFOCF6pS2nXB908ZGpMuFnegEWzH0+oRnnC STgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gctRsOJcF1r4ncTMQWXyHFhBQZex2snkCro01J5Oghg=; b=kMncokIcHZQn2z9eMpPaQDlL4CCut8V9lhvU05yDuFlFR7BWSnDZCQxnDAQB/65rCc OqBCW1NLs2NYckt91OfvmXpBtN+KetKArirrKF3Em/oSqvKpJi2xz6Hz5+WwK14dbF8d eL4NyXRygEl45tzyczzuOnZwHFgdAv9llkf4DsU2cgWvxYkOovobg6vqdZ67/F3sWU7D 2cWut7w3k650V6JWePZB5CdO91wF5wHjX5eusYjqlI63erJSfoIq/E3adFc/P3XRlBis QGxJBNFYroaaUCXqwsC/rxdbCqfSIrVa2klXJaDKlIouqAEfV5jlQ/oksFX1pKKNt+Sj YMjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Y3jakdVS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s18si9479135eji.591.2021.08.06.06.38.52; Fri, 06 Aug 2021 06:39:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Y3jakdVS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244366AbhHFIW6 (ORCPT + 99 others); Fri, 6 Aug 2021 04:22:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:46112 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243664AbhHFITs (ORCPT ); Fri, 6 Aug 2021 04:19:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E259A61163; Fri, 6 Aug 2021 08:19:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628237972; bh=XY1dAEq4K8gir/Xuwv4Ple8yFcqWMspK1gzk4IYQpy4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y3jakdVS5WoR0C6ilkKOaePMl0FMp6e1t9HzuSxKUu/mrj6s8mz7ruuWOz0QP99ht WcCQYKiZo54DnXg2t22l05YnRI023K9GdvpPjloS7wK6A1F3Ksvyt0pf2BLulRNlOU AYyj+nNa1+dgia1EFDD4Db5cN/i16kblhpzFMaDI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jean Delvare , Jan Kiszka , Guenter Roeck , Wim Van Sebroeck , Sasha Levin Subject: [PATCH 5.10 24/30] Revert "watchdog: iTCO_wdt: Account for rebooting on second timeout" Date: Fri, 6 Aug 2021 10:17:02 +0200 Message-Id: <20210806081113.949709383@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210806081113.126861800@linuxfoundation.org> References: <20210806081113.126861800@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman This reverts commit 39ed17de8c6ff54c7ed4605a4a8e04a2e2f0b82e which is commit cb011044e34c293e139570ce5c01aed66a34345c upstream. It is reported to cause problems with systems and probably should not have been backported in the first place :( Link: https://lore.kernel.org/r/20210803165108.4154cd52@endymion Reported-by: Jean Delvare Cc: Jan Kiszka Cc: Guenter Roeck Cc: Guenter Roeck Cc: Wim Van Sebroeck Cc: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/watchdog/iTCO_wdt.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) --- a/drivers/watchdog/iTCO_wdt.c +++ b/drivers/watchdog/iTCO_wdt.c @@ -73,8 +73,6 @@ #define TCOBASE(p) ((p)->tco_res->start) /* SMI Control and Enable Register */ #define SMI_EN(p) ((p)->smi_res->start) -#define TCO_EN (1 << 13) -#define GBL_SMI_EN (1 << 0) #define TCO_RLD(p) (TCOBASE(p) + 0x00) /* TCO Timer Reload/Curr. Value */ #define TCOv1_TMR(p) (TCOBASE(p) + 0x01) /* TCOv1 Timer Initial Value*/ @@ -359,12 +357,8 @@ static int iTCO_wdt_set_timeout(struct w tmrval = seconds_to_ticks(p, t); - /* - * If TCO SMIs are off, the timer counts down twice before rebooting. - * Otherwise, the BIOS generally reboots when the SMI triggers. - */ - if (p->smi_res && - (SMI_EN(p) & (TCO_EN | GBL_SMI_EN)) != (TCO_EN | GBL_SMI_EN)) + /* For TCO v1 the timer counts down twice before rebooting */ + if (p->iTCO_version == 1) tmrval /= 2; /* from the specs: */ @@ -529,7 +523,7 @@ static int iTCO_wdt_probe(struct platfor * Disables TCO logic generating an SMI# */ val32 = inl(SMI_EN(p)); - val32 &= ~TCO_EN; /* Turn off SMI clearing watchdog */ + val32 &= 0xffffdfff; /* Turn off SMI clearing watchdog */ outl(val32, SMI_EN(p)); }