Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3473978pxv; Mon, 26 Jul 2021 05:07:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlCzLU8fIpC5f23b4Fh44Jrls5nVzsTDq7A3MN9BExZF99uonITgKqOflNaXnDW6hFtoR3 X-Received: by 2002:a05:6402:10d7:: with SMTP id p23mr20969481edu.74.1627301278522; Mon, 26 Jul 2021 05:07:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627301278; cv=none; d=google.com; s=arc-20160816; b=kAmW4ETWpDxaSWxiU8ZwDWSiiwkBSrK6YLSyDZ/lvcCeuaZJM7xLVjMIh8tKy55sie QLfA881NkcufLda9hbQnDQIoK1wbch7UXmp2FG7Ad1/RkVVaLmqvNiQKbLtVMxmgHRg5 whaOLtJRQLzJJuN9yn8rZHoqmTjQgmlH0hxL7Q9SuXoEW9fVIh1ksnDXyNGFRRyBqjSy hN2rjfSNhtSkHpR691tINjkDsdPL2RXwXPzUxE3RQJ+RCZ24B2cGnofESCi3RtupIo8b K2J0u56lBqgMpIpw/WvjLTPU1Plw7LF8Do0sXF6cUk3NxERX43RCoABOuJKNCgp9VRa0 RQjQ== 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:from:references :cc:to:subject; bh=0ciJisObmaB+FgnGpcFgmzD9zve+AAw3RG3IvCremR4=; b=kamkofYg4a2z8PQhS3X6q61BL6j2gUjHPUDHJFCX+AK2Wjjg4i74f3rZ8LoguzI0Ni sCVelmbxG1ZQJLjKicSEwGp5F7AMmRxY7/FwBuQXDhn4p8Mq4ZFZCIrwn1ikOB16RRvj ujn9jgReP4KoJAOkSnOp8Tc0sOl6Br6w3S421UVDwzaSVPMAipqkwfZtq67MdwItfnfF fpDj9o6K7Run5F59ByA4D0Hi2rL9u0nfRLlPnQKp5gKMXZb+s72LVRr1eyFLXWIvm0/L cvK/C5y3gahFQBlKNOJO25hmFAxPJ2DflfYCr/G9pKR6y7RfaNnfXYbCmeBAxF/QKNsc Sb/A== 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 i5si7773835edt.602.2021.07.26.05.07.35; Mon, 26 Jul 2021 05:07:58 -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 S233755AbhGZLYJ (ORCPT + 99 others); Mon, 26 Jul 2021 07:24:09 -0400 Received: from goliath.siemens.de ([192.35.17.28]:37052 "EHLO goliath.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233945AbhGZLYH (ORCPT ); Mon, 26 Jul 2021 07:24:07 -0400 Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id 16QC4Iac011365 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 26 Jul 2021 14:04:18 +0200 Received: from [139.22.37.28] ([139.22.37.28]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 16QC4HQP009313; Mon, 26 Jul 2021 14:04:18 +0200 Subject: Re: [PATCH] watchdog: iTCO_wdt: Fix detection of SMI-off case To: Andy Shevchenko Cc: Wim Van Sebroeck , Guenter Roeck , linux-watchdog@vger.kernel.org, Linux Kernel Mailing List , Paolo Bonzini , Christian Storm , =?UTF-8?Q?Mantas_Mikul=c4=97nas?= References: From: Jan Kiszka Message-ID: Date: Mon, 26 Jul 2021 14:04:17 +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: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26.07.21 14:01, Andy Shevchenko wrote: > On Mon, Jul 26, 2021 at 2:46 PM Jan Kiszka wrote: >> >> From: Jan Kiszka >> >> Obviously, the test needs to run against the register content, not its >> address. >> >> Fixes: cb011044e34c ("watchdog: iTCO_wdt: Account for rebooting on second timeout") >> Reported-by: Mantas Mikulėnas > >> Signed-off-by: Jan Kiszka > > Missed SoB of the submitter (hint: configure your Git to make sure > that submitter and author are the same in terms of name-email). The signed off is there. Not sure what you are referring to. > > ... > >> if (p->smi_res && >> - (SMI_EN(p) & (TCO_EN | GBL_SMI_EN)) != (TCO_EN | GBL_SMI_EN)) >> + (inl(SMI_EN(p)) & (TCO_EN | GBL_SMI_EN)) != (TCO_EN | GBL_SMI_EN)) >> tmrval /= 2; > > There are so many parentheses, perhaps > > #define TCO_GBL_SMI_EN (TCO_EN | GBL_SMI_EN) > ... > if (p->smi_res && > (inl(SMI_EN(p)) & TCO_GBL_SMI_EN) != TCO_GBL_SMI_EN) > tmrval /= 2; > > ? > Let's focus on the regression fix (and you could have mentioned that on the original patch already). Jan -- Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux