Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3146248pxk; Mon, 7 Sep 2020 04:43:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxItrCHKriOa7CneG05pPx4P3A7AZqZ/AE9COX2hjhc9crATBuos/KfnUWYcsZBrK6bLtoV X-Received: by 2002:aa7:c3d4:: with SMTP id l20mr21473841edr.263.1599479008777; Mon, 07 Sep 2020 04:43:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599479008; cv=none; d=google.com; s=arc-20160816; b=V2Dsn4yFN1YV8gm8NrIPKlblnGTQiHciYvIEWgJLm9DI8s7Bqcceaww3R/kkUtMHJV Y5159sFfbgj/xdLttFloEdEQ3aOTXnNmlpJQRjAGF1xq2QkEMAml7wULBn/6QJ41yovW OGQWA+/GQmM3HwntJProKCLY5jJiMAEVQv8gfNF0vcFhsjWwHjJAlvznL0/eNAsleS/A 2cxESLp7DuK/79BUqnU3ripwc2ipyDGhkm+h7sz1s711ApOXh0/bAi64s2YUIdTuHmV5 YtX9elzqCZ8uvO5QdZoz8wXziXpgynDF3HcRPKpPckAbaNclD+5cVNKvw7kVMc0DI9Nj 0qGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:subject :from:cc:to; bh=7EseRDsdhu3nmrpNj9np1LNeQYZzxHHltK2iPqnJ2EA=; b=KfdpXXzZWwBhn454nmCLG31gUInP/zqATCPkvIzxuMkshpDPZdaR0Ma5xRpgVJmXX1 WvKuLE61XPvl9DWwZZFQ3wAw/1o3nEL2QPVIV8GJ5agoCnr9zoI8BvkB2XdwlchsVxgM +WcYMtrsXlB6aQCjBh9sszaYtBH+TsJkUT8JkmTXWlOcbr+eH4zJcyomoYQvgp212KsW tniX6TYT9UVhWbUi8rxyBQD4fdH1JsVGjvwlcX/vpzpM3XosSOKg07fXhTgjXjOl/Ye/ 4FPYx/xYvk88pKIQimsFKHfnRVbjwTvwr7SnRVYeGDjdNUaPVzGakDJQPwXfkT58t8jG MyPA== 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 j22si1258312edq.572.2020.09.07.04.43.06; Mon, 07 Sep 2020 04:43:28 -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 S1728811AbgIGLZW (ORCPT + 99 others); Mon, 7 Sep 2020 07:25:22 -0400 Received: from goliath.siemens.de ([192.35.17.28]:36358 "EHLO goliath.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728812AbgIGLWC (ORCPT ); Mon, 7 Sep 2020 07:22:02 -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 087BL5vl002697 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 7 Sep 2020 13:21:05 +0200 Received: from [167.87.17.27] ([167.87.17.27]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 087BKxrG020843; Mon, 7 Sep 2020 13:21:02 +0200 To: Guenter Roeck , linux-watchdog@vger.kernel.org Cc: Wim Van Sebroeck , linux-kernel@vger.kernel.org, "Awan, Arsalan" , "Hombourger, Cedric" , "Farnsworth, Wade" From: Jan Kiszka Subject: watchdog: sp5100_tco support for AMD V/R/E series Message-ID: <15c8913e-9026-2649-9911-71d6f1c79519@siemens.com> Date: Mon, 7 Sep 2020 13:20:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, Arsalan reported that the upstream driver for sp5100_tco does not work for embedded Ryzen. Meanwhile, I was able to confirm that on an R1505G: [ 11.607251] sp5100_tco: SP5100/SB800 TCO WatchDog Timer Driver [ 11.607337] sp5100-tco sp5100-tco: Using 0xfed80b00 for watchdog MMIO address [ 11.607344] sp5100-tco sp5100-tco: Watchdog hardware is disabled ..and fix it: diff --git a/drivers/watchdog/sp5100_tco.c b/drivers/watchdog/sp5100_tco.c index 85e9664318c9..5482154fde42 100644 --- a/drivers/watchdog/sp5100_tco.c +++ b/drivers/watchdog/sp5100_tco.c @@ -193,7 +193,8 @@ static void tco_timer_enable(struct sp5100_tco *tco) /* Set the Watchdog timer resolution to 1 sec and enable */ sp5100_tco_update_pm_reg8(EFCH_PM_DECODEEN3, ~EFCH_PM_WATCHDOG_DISABLE, - EFCH_PM_DECODEEN_SECOND_RES); + EFCH_PM_DECODEEN_SECOND_RES | + EFCH_PM_DECODEEN_WDT_TMREN); break; } } Does anyone have an idea if such unconditional setting could be problematic on older/different efch? We probe for that bit in sp5100_tco_setupdevice but we never set it so far. I'm missing specs... Thanks, Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux