Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp38085603rwd; Wed, 12 Jul 2023 02:52:26 -0700 (PDT) X-Google-Smtp-Source: APBJJlF+JZF19JqBXdKZgv49YkVV8gDtgzqE8jprlnHYUBhBHTTL3J5CRyebSKtAUzhn1cFdVRZx X-Received: by 2002:a17:903:260e:b0:1b8:7483:d488 with SMTP id jd14-20020a170903260e00b001b87483d488mr12557079plb.57.1689155546083; Wed, 12 Jul 2023 02:52:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689155546; cv=pass; d=google.com; s=arc-20160816; b=SmxVOYiI0Ql8ZrF7cwi4ujhceQFXHmixFbU1nK0qKHIT3SuqR+GGxZssLV09geZGSz VeB6Meb7WcoIU/4sphNXH+hcHNd+JLUsM90UB3ePxByxSx3PlPiAwRAaAyLPDPldamVz PWfvdirRv3xhkqU96jcBdwJgeM/fpkvGg/8LklXfSBhzlms0UZqLvNGEwbXyvEvCBhjj Ih2ZVqi78ld8vjASRa7hIczeLshj2mIup7QopFeucfLF1PIL4IAbU3S6cbztMXLk/LkE rUcv4M8RtwOTv3jLVaB39KqcCvhn4fGkw1gQsLdDJko7ZApZWdO1X3MMyU/tpKyq/eK0 E85g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=cLf6qz+xtBOzajbFrDVBtug35FxP5ZQC5eU36kh6To4=; fh=00rT6jjLQfbDW5Thuuoae/AVOBQynPRcTA1TYFMrcMY=; b=BdLYGBrq/aUIa9x/kKqcXgUVCJO1R4kCCT4zlzu2Sag5J853RWMyo34QdjGMCiG+sd nyfU8/Cojiy4ZQR1gfn9aoV7KSo4LAJMRrmUQAmvZQZwyo/tlMlGl6qG1EEUdAs4qf3b 0NV/lpaEy+MuA3ulbLEMMWuCOIJtZNlrw2zqa3VNAPIyr80CtAuREWkv4OwkympeadWC Vj92qTghng1i9ooDMYQJmNnVSFAJAzgSm98yjSgw322j3d+JktrECNDPP3P9jp1qSOlR 4aittLI+nz1vwmjT5Nhp+dW85Cx24s6oTzTT/rSW7KtVO+Ed3uWsXbYMu0oom+H/u9yX KZFw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=qYAcWRrx; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c19-20020a170902f31300b001b8c4168e20si2986094ple.58.2023.07.12.02.52.14; Wed, 12 Jul 2023 02:52:26 -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=@siemens.com header.s=selector2 header.b=qYAcWRrx; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233080AbjGLJgZ (ORCPT + 99 others); Wed, 12 Jul 2023 05:36:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232025AbjGLJf5 (ORCPT ); Wed, 12 Jul 2023 05:35:57 -0400 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2085.outbound.protection.outlook.com [40.107.8.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F17C1FF3; Wed, 12 Jul 2023 02:35:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z6T7lQmjCoPdR1aE6Y9VrYa08PvbG9/Oe1on4ZNZfHM++VyOD34i4qXPhoeI2elb5U6bHcVbQfVhHZz4rj8YGCc+E146qtCigoZIjoZW2feNgRgx2JVEpkD/M8WD8U9crnKo93jBpd2QG8DiCz2NPUPmvRRiRZtn7iojUBm/JdqeK2tkb2YW9Y3dOvJGVsgnra59Cut/qX5rBJAYkabZVy4hYLsC93zw2QcLmNYx4luQzUu8Q4iTC7COh7Ppy9yWk4q93F8kegL7lY0C1NK+wDTd4oWSpKeenf6T0pabwYAGyS+jyZ03yj14gNhdbmfboKktg6dNUUQZgEEld20Elw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cLf6qz+xtBOzajbFrDVBtug35FxP5ZQC5eU36kh6To4=; b=FEVadYjTW8qOVzVaM71Z+I8RFDDgLcb84bjQM34lTGkFJqkVheTR85v7jJ5TbHl0iq5Raebb1w59HpRlq1Z1ZB1wJ8Hy4gWPqwfU/FdGRZSXRmXaP3YhLb1AB3UycrZyCzrRA0sJP8iqG/iHLYciwSExMXFwTAHZKQd7UgAPuKAg4kuXhO0FBHv3o+F9RKm3Op/+zwog7/o/gd9OyPhKFqkCUi2h3JT8jurETY1nTZQG6PtCfbPifB+AJTB0LY9sDbuEvdoUn5a45cbqCKVXOCnIL0iKZn6tR6xnN6ofY+DUkshKDBiQtnaPpAttTn7avkeQx1wzJEtTsEKJCKIBlQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siemens.com; dmarc=pass action=none header.from=siemens.com; dkim=pass header.d=siemens.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=siemens.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cLf6qz+xtBOzajbFrDVBtug35FxP5ZQC5eU36kh6To4=; b=qYAcWRrxzPsjHSjYB/gtovWZbwW/Jb/Ehxq4Av9dKDdhPvLeh+6/RUzgwEhFBzsJXebNQRh2A2hmXy627Bsz+FhXcePt8xK3FevV3Ekf3KAeVk3zfehHBVwKmKVrBo0rV/ry9l/hZsKS3Ma+MwR1fIVEgE5Sqe4W6xTbuQpvnNJlDDUeAI/ACX9QeH8nyrzwkkNKoDgAWDlwab0s68RbArp0A1hFiqGbOv8hAEnjOs/FCjp2hMArVB1+qrK9iGj2d9ucuoD4cqAmT9X+4rzz5mNzSgMtPi+ETOawOSG1iz3YbrUeD6WvTOP7D5vuWEugnajT57xJC4/ZieyZu9XeCw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=siemens.com; Received: from AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:588::19) by DB5PR10MB7871.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:48a::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.30; Wed, 12 Jul 2023 09:34:20 +0000 Received: from AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM ([fe80::f964:e0e9:199:9246]) by AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM ([fe80::f964:e0e9:199:9246%6]) with mapi id 15.20.6565.028; Wed, 12 Jul 2023 09:34:20 +0000 Message-ID: Date: Wed, 12 Jul 2023 11:34:11 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v2 3/3] watchdog:rit_wdt: Add support for WDIOF_CARDRESET Content-Language: en-US To: "Li, Hua Qian (DI FA CTR IPC CN PRC4)" , "linux@roeck-us.net" , "wim@linux-watchdog.org" , "conor+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "robh+dt@kernel.org" Cc: "Su, Bao Cheng (DI FA CTR IPC CN PRC4)" , "kristo@kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "huaqianlee@gmail.com" , "nm@ti.com" , "linux-arm-kernel@lists.infradead.org" , "linux-watchdog@vger.kernel.org" , "vigneshr@ti.com" References: <20230711091713.1113010-1-huaqian.li@siemens.com> <20230711091713.1113010-4-huaqian.li@siemens.com> <165cf95b-663b-5dac-b686-a515f2111656@roeck-us.net> <0d1b15b1016d451862b895f851c6c6c81472755f.camel@siemens.com> <42d578c52a590f50f90e2378ef3e2a1522038fc2.camel@siemens.com> From: Jan Kiszka In-Reply-To: <42d578c52a590f50f90e2378ef3e2a1522038fc2.camel@siemens.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: CH0PR03CA0112.namprd03.prod.outlook.com (2603:10b6:610:cd::27) To AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:588::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS4PR10MB6181:EE_|DB5PR10MB7871:EE_ X-MS-Office365-Filtering-Correlation-Id: 6966a049-dd00-4ab2-273e-08db82bb2b8a X-LD-Processed: 38ae3bcd-9579-4fd4-adda-b42e1495d55a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: o9KG4poHiahOXKAamX7binMynYdphMixt2O1j7XqVPinI0UihJxgvrWmBFRHFZuEfwofp1yCq3m6qQgQudozM9Toa7dqzT4+TsJptzYAvoOdfvmL82Y/iLXC3K7Mj1wgvUXd6y/RJJti7QdVytfUK5556L7JwhGt2ZrIUN8i20bcP+Dskg4MHDGlmNvyIzP3Xubh/I7lTtnHnmnanxTncYh9RvNTTaKa7ztlvBzWRysfxUYzOZdvLq9L4kYD5sDEr77Myh5nPaSzn63fHwCTkTnenJjebSocXWbkFNY0pZD3bWxBh5bizXjAY/OO4Uq1TrsRlGywFz7z0lKcFRW1D1Z33nKjmRPuJp/etLQp0AL53XkmtJlTXSE0T3CzVEwUK5A6tytkhm3qN/wOFs0b27wU+Sc0DmICKodf3a9IffwrOcAQNSfVzHUetQ/pSz+wPMWXI8kdLEQqV5nNfo7GEsFCt8teflSLVIibA+AtD7K9AnfzV3U25HL9yb0qukdGUHPw+yov+/UeBhxJ8Pb/eKVADTAj5W/rUMEK8iQUTsLPbNzu1WG/RVJXlKR0F8Y9FkZ45i14FWJHk7xuLweomPT4ObNALcErAHFtYbQSAyfJInR99nucJ5JQq819oVno X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(346002)(396003)(136003)(376002)(39860400002)(451199021)(38100700002)(31696002)(86362001)(31686004)(36756003)(6666004)(54906003)(110136005)(82960400001)(6486002)(6506007)(26005)(186003)(53546011)(2616005)(6512007)(966005)(5660300002)(2906002)(66556008)(316002)(66946007)(66476007)(8676002)(7416002)(44832011)(8936002)(83380400001)(4326008)(478600001)(41300700001)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Rm1YZjVRaVYwTE52QXYxMnJJbnZpdDRuQVprZkRpOU53UWFIS3RNMXdMd2pa?= =?utf-8?B?dG85WT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DbkFVK0RPSTNJ?= =?utf-8?B?UXBudWsxZW82TExmdWxQMFZXbGxNQUtlM0dWbUEvaFpMcmplTjd6SFVTUi83?= =?utf-8?B?ZTBzVStnQnhWTUtUc2ptNmJSMW1VQWpSdUNwa3gwdDAvQmtPWUpXUHUrVVEw?= =?utf-8?B?aHpxOWNWVlh6U3VJZDhLQndaVnNhaUJUZUZrQUFIZ0NmTFFQNHp2Q3VHMDFn?= =?utf-8?B?NUVPZFBid1RESEZ3Vm1ZSVJFUlVaRnNOWitBUUkwdlJOK0doS3ZRbzRDRnEz?= =?utf-8?Q?mgte98eGnvPd7PmlBO35fNzgl?= X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6966a049-dd00-4ab2-273e-08db82bb2b8a X-MS-Exchange-CrossTenant-AuthSource: AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2023 09:34:20.5970 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: hPAe6B//8vFzJ/LyK6dqhhdvhksjy3MqKrZozF1mqjSBzAXbcJe4CLL7rjWjeF7r5pRuIrz/bS0kSObyBRkP1Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR10MB7871 X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, NICE_REPLY_A,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 12.07.23 08:05, Li, Hua Qian (DI FA CTR IPC CN PRC4) wrote: > On Tue, 2023-07-11 at 22:01 -0700, Guenter Roeck wrote: >> On a higher level, the entire code puzzles me. Obviously there >> must be a means for the BIOS or ROMMON to write PON_REASON_SOF_NUM >> into some memory area. That means the BIOS/ROMMON must be able >> to detect that situation. Why not use the same code to detect this >> in the driver without the complexity of passing it from BIOS/ROMMON >> to driver in some random memory area ? >> > In TI AM65x cases, the hardware is not capable of issuing a reset on > its own, and is not possible to record or detect the watchdog reset > situation. So `k3-rit-wdt` firmware which runs in a mcu core was used > to detect the watchdog interrupt and reset the Soc. Here I am trying to > write the reason in this firmware when watchdog interrupt happens, and > read it out in kernel. See https://github.com/siemens/k3-rti-wdt/issues/1 for where this started and where the firmware part comes into play. I still wonder why we couldn't have had a nicer hardware watchdog instead but this can't be changed anymore. Jan -- Siemens AG, Technology Competence Center Embedded Linux