Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2508215pxy; Tue, 3 Aug 2021 08:04:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLFVNxmFRFGQ4SXzApbiifUaNxJXd9InQ8HvlocJ2kXLRclA41q4h3UH+J+LXBs7qLMlPk X-Received: by 2002:a05:6638:410e:: with SMTP id ay14mr6331624jab.76.1628003086635; Tue, 03 Aug 2021 08:04:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628003086; cv=none; d=google.com; s=arc-20160816; b=SrCYf8Gv+3ix8YOeUjT3ZfdClim0cFtrvqIWfj9rOEd491OEEoXOJxChrQOQVVmH5X Gr8U0pwdbquNlLfVsxVYM3jNW2+MU5tv9TWqaK9aarF2+jnmLw2+c/W+WkxrJPj8JmFw h8qSP72d/JDOM8nw5lqY4+AA2B4fTKIQNGPtaYoIgUqA8AEFmuBRHF/Ha9hP84sqNOr5 n0dOuxXWfdIBtRIUouhwiVT+qso0ZlHV3vS72TuZyAgsFVEjPxxT5ycRB0SRgE9eAdZa 0AdSjxy4tR+f9nMmCq26K0nvO2bRR6zWv/9iyznpf14X7n/YWrP9MlW2dWuA70GMd1pj l8Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject; bh=DzD5MbUKwoTern7/Rgo+k0lvDnTrw4XF/AOPYgKhTlo=; b=a888Q55a3bIzUQPSsAyaAzucWBVpzKmJDzKulAJPYqL/D8vdiMXopqQdUWTLI7EIRI y9MxWlfSbKXy6A4aW/1MfsKf3ItsdhdEF+m618nFYxIg34j+GXM/k8TraLBpdz70bdad mgGcJdfHf5IwbcK48PW00clyIEiahhiSM8oF/g0p4m4cytMcaYOErig6T4Q+0MROs7Dn BDViXEV1de7dt1AWF/HVkIwWd5M+wMUEyxesSWqGoceldPRcI3iGm1K4od0/uzNHg1zg Pj0/69bI7afAx/9uJuTwkQERvpVWYivRrTXoP0LVg3r87KEUnWOn2zInl8uhJ+YtgZTV fkWg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i12si8334398ilu.109.2021.08.03.08.04.33; Tue, 03 Aug 2021 08:04:46 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235935AbhHCPBh (ORCPT + 99 others); Tue, 3 Aug 2021 11:01:37 -0400 Received: from thoth.sbs.de ([192.35.17.2]:52215 "EHLO thoth.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235368AbhHCPBg (ORCPT ); Tue, 3 Aug 2021 11:01:36 -0400 Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id 173F153s023774 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 3 Aug 2021 17:01:05 +0200 Received: from [167.87.38.215] ([167.87.38.215]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 173F145k008483; Tue, 3 Aug 2021 17:01:04 +0200 Subject: Re: Faulty commit "watchdog: iTCO_wdt: Account for rebooting on second timeout" From: Jan Kiszka To: Jean Delvare , linux-watchdog@vger.kernel.org, LKML , stable@vger.kernel.org Cc: Guenter Roeck , Wim Van Sebroeck , Michael Marley References: <20210803165108.4154cd52@endymion> Message-ID: <67815219-7226-1a90-4599-5649e9bbc861@siemens.com> Date: Tue, 3 Aug 2021 17:01:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03.08.21 16:59, Jan Kiszka wrote: > On 03.08.21 16:51, Jean Delvare wrote: >> Hi all, >> >> Commit cb011044e34c ("watchdog: iTCO_wdt: Account for rebooting on >> second timeout") causes a regression on several systems. Symptoms are: >> system reboots automatically after a short period of time if watchdog >> is enabled (by systemd for example). This has been reported in bugzilla: >> >> https://bugzilla.kernel.org/show_bug.cgi?id=213809 >> >> Unfortunately this commit was backported to all stable kernel branches >> (4.14, 4.19, 5.4, 5.10, 5.12 and 5.13). I'm not sure why that is the >> case, BTW, as there is no Fixes tag and no Cc to stable@vger either. >> And the fix is not trivial, has apparently not seen enough testing, >> and addresses a problem that has a known and simple workaround. IMHO it >> should never have been accepted as a stable patch in the first place. >> Especially when the previous attempt to fix this issue already ended >> with a regression and a revert. >> >> Anyway... After a glance at the patch, I see what looks like a nice >> thinko: >> >> + if (p->smi_res && >> + (SMI_EN(p) & (TCO_EN | GBL_SMI_EN)) != (TCO_EN | GBL_SMI_EN)) >> >> The author most certainly meant inl(SMI_EN(p)) (the register's value) >> and not SMI_EN(p) (the register's address). >> > > https://lkml.org/lkml/2021/7/26/349 > That's for the fix (in line with your analysis). I was also wondering if backporting that quickly was needed. Didn't propose it, though. Jan -- Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux