From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9F5DEC61D92 for ; Tue, 21 Nov 2023 12:31:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234591AbjKUMbE (ORCPT ); Tue, 21 Nov 2023 07:31:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234697AbjKUMa7 (ORCPT ); Tue, 21 Nov 2023 07:30:59 -0500 Received: from new1-smtp.messagingengine.com (new1-smtp.messagingengine.com [66.111.4.221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E492D4F for ; Tue, 21 Nov 2023 04:30:53 -0800 (PST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.nyi.internal (Postfix) with ESMTP id 2958D580484; Tue, 21 Nov 2023 07:30:53 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Tue, 21 Nov 2023 07:30:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1700569853; x=1700577053; bh=NL L+hKNFgPDW5AXo1itsxcxk/DzrgJ58Sa40xHQxSqY=; b=ajWY7ywLPWx7YeP6i/ lLG3CQ9ElJNW0OTxSGF5ImE97g+x+8H/3FIUJXDcrTgEsJlilWvIKsFDQdt3LAEH JjZxjvmRdtfVumf7cv1oKrdL7sYwru9IElgsX3B2SM2LB3YxHPz8OZescoPxB5++ YaL/rOev3X5ReunyzrS5rdAcUGs6U+PjpHyoTXqmTNQLiZBWqnEPEUO1dUFZEZp5 lae+MYGETIMQGj95113f+5U8P1et2IYvL3+cEgS8c2HH9MDxWoq6zGiSeIJdLEJz V8wuBmBxU9SQLMPwkT5kX21zl+2XWXFwN+k+z5FrA9UoJXn08HOzeDmQEpq9rmHh IYhA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1700569853; x=1700577053; bh=NLL+hKNFgPDW5 AXo1itsxcxk/DzrgJ58Sa40xHQxSqY=; b=NFXqJjPqlNtof5wYOYUOlzxlnJFSQ lx2hgvZ/hgifFx6FV3xOQpmlGmhJak5OiwpEbaGCIlI2AHzh3x6PmDPbrxiRQ2Cr NjwybXcQzFCjaWWrpA89F+uG+AG9eHgZXVltUATIoBp8ING2Gtm1ipQO/TeLjHmx c7xmtGBuebvott2khXXsO2NFcVHuIAOVG89VWygdt0v6/5uFGMU0hhwCvsPdRJ3z q47X3gCBQHVcJKu4gxa4IJlzg7r/ki0AuWJWMe1IdJrR5oL1CBWCquW0fg9zD9RH IDRwKV4Oie0c1XYZwEbm6KhnBRpxuHd+Q1wnowtwMdCCxzHBAfebQMKKQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudegledgfeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 2300EB60089; Tue, 21 Nov 2023 07:30:52 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1178-geeaf0069a7-fm-20231114.001-geeaf0069 MIME-Version: 1.0 Message-Id: <35f4c415-1d26-447f-91bd-eb192201c998@app.fastmail.com> In-Reply-To: <20231121112056.1762641-3-ronak.jain@amd.com> References: <20231121112056.1762641-1-ronak.jain@amd.com> <20231121112056.1762641-3-ronak.jain@amd.com> Date: Tue, 21 Nov 2023 13:30:30 +0100 From: "Arnd Bergmann" To: "Ronak Jain" , "Michal Simek" , "Greg Kroah-Hartman" , "Linus Walleij" , sai.krishna.potthuri@amd.com, "Tanmay Shah" , "Ben Levinsky" , nava.kishore.manne@amd.com, "Rob Herring" , dhaval.r.shah@amd.com, "Marek Vasut" , "Roman Gushchin" , "Mathieu Poirier" , shubhrajyoti.datta@amd.com Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] xilinx: firmware: Add sysfs to get last reset reason Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 21, 2023, at 12:20, Ronak Jain wrote: > Add sysfs interface to get the last reset reason of the system from > a user space. > > When the system reset happens whether intentionally or due to some > errors, the firmware used to store the last reset reason and the same > be queried by using the IOCTL API or the sysfs entry to know the > reason behind the system reset and accordingly, the error can be > diagnostic. > > Signed-off-by: Ronak Jain I'm fairly sure we already have other interfaces to access the reset reason, please see if you can either reuse one of the existing ones, or come up with a generic one that can be used by others as well. Arnd