Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1159807rwb; Thu, 22 Sep 2022 10:53:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM458b/eBIhFqSWtGA3kiOY73VNa1h9bz8I2FHYOpqJNH9W6JPV7jTNf3gb21dJ0rVrTjjbi X-Received: by 2002:a17:907:2cce:b0:77a:6958:5aaa with SMTP id hg14-20020a1709072cce00b0077a69585aaamr3798568ejc.245.1663869201586; Thu, 22 Sep 2022 10:53:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663869201; cv=none; d=google.com; s=arc-20160816; b=raapncUip6QPp1UzZubOPfJY1plQ4ZPT0GQgSGHU33x2KddOEE5B3S7gc+ZXFHYiJF TUHzT6qtOZqIF5mjY2bDwmf4/dJXGwR/Lxd0IAARcbmp9cp41uyO7Y4x53XC1MgjhDqA AOVMLY2lOZ0vTHH27ZCXFVCOUh2MAI3aTm9M4lBizZ7ahLTjd6jLxKpAR9EdnpW0uWTs ooXSEwLt23q1yiATNzzmuG/AJsv6K307eie+2fMXQzYGc/4LPDDiHWe5/HOzo2z8gPo4 CvPFax1+UARA74o69ase09zdeSB2A6u55uE3XXbRbh4f31bsUVSNw1WT37SuUfVSS38W rW2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:sender:dkim-signature; bh=ordY5gRXnsxz2Grt9o3T/Ssy795W6cMK2+g6m4UINGc=; b=zvwHJ95gWHtk25kkdK8DQYwotrR7ffH0mLVl55uQ3yQ5SdAl3zfrgKMN2YBHRPOqNC IT8l9wPctfF912i86MNASotbsYIPnOHq8hum5eac3AYCRdAt3zIIO5rLDGiCAaVhNqDH WyZ2CfEUWNC7Ph4ruRmeSRdc4TC/WzzX+X/O696djd8HYBIsGucHsgfr6x/6aQe63Go6 0oyjBSvXULc9lDLv0XMlARjvBm+bjk9Q3y4c6PcLlyly0UVbICuYyCHb+pr77BJ2leSS 08zNmmQy8A4Rm8Vl4p9046JyrJ5VZwca+oixXvA84w7w1co+8X+spxdgaYpjXENCngNO 59IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="D/CowdKV"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o9-20020a170906774900b00730b0fef595si4866341ejn.857.2022.09.22.10.52.54; Thu, 22 Sep 2022 10:53:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="D/CowdKV"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230150AbiIVRns (ORCPT + 99 others); Thu, 22 Sep 2022 13:43:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbiIVRnq (ORCPT ); Thu, 22 Sep 2022 13:43:46 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39FDCF9601; Thu, 22 Sep 2022 10:43:44 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id e5so10036033pfl.2; Thu, 22 Sep 2022 10:43:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date; bh=ordY5gRXnsxz2Grt9o3T/Ssy795W6cMK2+g6m4UINGc=; b=D/CowdKVlkdURR9jr5hiqBMx9qntg+Cd9XXshoDJu1IJBXx13segL/ggzkXfgyFPlH dxjAtvkwubANu5eqedOG5gPQKej4NqmZKn4E0mdvvukIhHr4xNw8ABIGrae6a8PLH4yQ wiJTMnkCaoQy13OGAhMe7mJE5bRHCt0RT4OHMQYbuenYsa0R4rssSAD5NX90vhTrW+5l rftaL/TVJvNMoGji9R/RCN0j11uCt6TxqyXlKJ3B1YqEci4AmHBCN42pCbvPw+h3S3kX HJ1H0G+J2S3Lr7NM36SW/F/363Jh4MyCIW1zMocc41idXYco5ndPfJNYJ5N0FKBqMlke ZESQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date; bh=ordY5gRXnsxz2Grt9o3T/Ssy795W6cMK2+g6m4UINGc=; b=2obyph0vHC64ZVjwPz/G4e0qK2HQIzwaoAvhFRrDpEqERWDJsoLAG6z01W1hRhHQZR h5JzflhbLkSWuntHiID9s6B/BKmMOxQPtdnWZ/f1It4irLlwRPcXJeddjv2Go1qUvqhL xeTBRujKtXd32W0QC98R0rCMmuU/Yn+D8YoMtfyAWJmP7uYsGBtzl+Qjt5AyszXds8dQ lR/aJt5+nkBpeUcEvjSX4p3uXWmsYMkpkcDw6b8oy/lftzehs/KN5ceduK7NQajtZG91 F66lI3yXxx4VrLYtw8yorIBypl5UMoaOrRsJcMppTqGFiU7lVhNyy6jjB0U5WUiVD+af /CXQ== X-Gm-Message-State: ACrzQf2Y9Eafy0AvIwY64BhZd4JYAkdf9uvubFIKfdwKyCrtz15VnnMd Q6Xc3tevbmUmutDjow24+kIlBm78QcJZpQ== X-Received: by 2002:a63:4243:0:b0:439:2031:be87 with SMTP id p64-20020a634243000000b004392031be87mr4039421pga.592.1663868623690; Thu, 22 Sep 2022 10:43:43 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id g130-20020a625288000000b0053e2b61b714sm4734008pfb.114.2022.09.22.10.43.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Sep 2022 10:43:42 -0700 (PDT) Sender: Guenter Roeck Message-ID: <791dc5e2-4de3-1eb9-8de2-4f2904335756@roeck-us.net> Date: Thu, 22 Sep 2022 10:43:41 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v2] watchdog: sp5100_tco: Add "action" module parameter Content-Language: en-US To: rwright@hpe.com, Vladimir Panteleev Cc: Wim Van Sebroeck , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220920092721.7686-1-git@vladimir.panteleev.md> <20220922173635.GJ18783@rfwz62> From: Guenter Roeck In-Reply-To: <20220922173635.GJ18783@rfwz62> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/22/22 10:36, rwright@hpe.com wrote: > On Tue, Sep 20, 2022 at 09:27:21AM +0000, Vladimir Panteleev wrote: >> Allow configuring the "action" bit, as documented in [1]. >> >> Previously, the only action supported by this module was to reset the >> system (0). It can now be configured to power off (1) instead. >> >> [1]: https://www.amd.com/system/files/TechDocs/44413.pdf > > The referenced AMD document 44413 is over 10 years old, and I'm > concerned when I try to line that document up against the newer versions > that are implemented in AMD's EPYC processors, that the bit being > manipulated as SP5100_WDT_ACTION_RESET is effectively reserved in the > newer references, for example: > > https://www.amd.com/system/files/TechDocs/55772-A1-PUB.zip > > Is Core::X86::Msr::CpuWdtCfg in the newer document is the same as > WatchDogControl in the cited 44413.pdf? If so, then I would point out > that bit 2 is now included in what is called, CpuWdtTimeBase where > values 2-3H are reserved, meaning bit 2 effectively must be zero. > I think those may be different watchdogs. Chapter 9.2.6 ("Watchdog Timer (WDT) Registers") in 55772-A1-PUB still lists bit 2 of the control register as: WatchdogAction. Read-write. Reset: 0. 0=System reset. 1=System power off. This bit determines the action to be taken when the watchdog timer expires. The bit is only valid when the watchdog is enabled. Guenter