Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4123220yba; Tue, 9 Apr 2019 11:38:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCNXVhTkrkzbUNNHkkBBjDJcVj1Aq1ZNQ7RwzxGVe8/vw2aGm4YFMd5a+kQySm+WgHV4gB X-Received: by 2002:a17:902:7206:: with SMTP id ba6mr39331321plb.301.1554835114733; Tue, 09 Apr 2019 11:38:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554835114; cv=none; d=google.com; s=arc-20160816; b=TNAXoXqwZvTd7HEN9bOPgOciGB0iBxykScJo5BYOR1ZaXB0ZjGnZJE5uSTjMv8BCNe FZjTontvwpYYogQn9ue6VgFplOBYB+egLuT/AB1pMMpfanKkPCDK6QEJzPco1wa1X88+ kL6jPglQ/4you5MHZod9M1VGyr6JZJzNtk5pJVB5ygX5miWUFCnHR/26SJahPl80iG1e p3imIkAu6rK1W82yVivYS2i208prxFw+evtou3S12bdfvhMeTdjEt0TwRSpPWMCRCcwG XdOX8YqBxHigZ2MxQq3BzmpqaC+DxbeCE0lIMWonKEDsqECI4B9f275SAW2e7HQ96A80 BYzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=6b4i5boCZMt8KpY1HWATd9w6Av8QDb31tGSx635Q+ZQ=; b=PE8IK2QotKt66iTo0XrfC7h6XckuLO2B9JmHDr01K8eE+UEXnVk4PkQZ4zRVm9IH2f OjVyhiHk/q2s/8JwqXpFZJn09oKA6KZO909nRPXRuDjCmBB+I6ZgZpB18bjIF2Kw1mhN RYSwTWlEnU59uVecRSMAU3u6iqHfSnCHyFHOqGEbY52k6jbKKR2COxjjJaeITFIseHrh vAzln8oh1R+0khqXQuuaM2r820jx/qfmem+LneamNWJQoJC6Z5ADkb8nUNix4xTLPeN/ vqtmXrZ8Gyts1lUAgb+7D4PBzxs2xCoWodIXHTcE5WPTepyAt/uqAitiK2QCOUcI2otT 2i+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 123si16884941pgg.104.2019.04.09.11.38.14; Tue, 09 Apr 2019 11:38:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726813AbfDIShX (ORCPT + 99 others); Tue, 9 Apr 2019 14:37:23 -0400 Received: from mga12.intel.com ([192.55.52.136]:40624 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726773AbfDIShT (ORCPT ); Tue, 9 Apr 2019 14:37:19 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Apr 2019 11:37:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,330,1549958400"; d="scan'208";a="141403373" Received: from marshy.an.intel.com ([10.122.105.159]) by fmsmga007.fm.intel.com with ESMTP; 09 Apr 2019 11:37:18 -0700 From: richard.gong@linux.intel.com To: gregkh@linuxfoundation.org, robh+dt@kernel.org, mark.rutland@arm.com, dinguyen@kernel.org, atull@kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, richard.gong@linux.intel.com, Richard Gong Subject: [PATCHv1 5/6] firmware: rsu: document sysfs interface Date: Tue, 9 Apr 2019 13:46:01 -0500 Message-Id: <1554835562-25056-6-git-send-email-richard.gong@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1554835562-25056-1-git-send-email-richard.gong@linux.intel.com> References: <1554835562-25056-1-git-send-email-richard.gong@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Richard Gong Describe Intel Stratix10 Remote System Update (RSU) device attributes Signed-off-by: Richard Gong Reviewed-by: Alan Tull --- .../testing/sysfs-devices-platform-stratix10-rsu | 78 ++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-devices-platform-stratix10-rsu diff --git a/Documentation/ABI/testing/sysfs-devices-platform-stratix10-rsu b/Documentation/ABI/testing/sysfs-devices-platform-stratix10-rsu new file mode 100644 index 0000000..cb461ee --- /dev/null +++ b/Documentation/ABI/testing/sysfs-devices-platform-stratix10-rsu @@ -0,0 +1,78 @@ + Intel Stratix10 Remote System Update (RSU) device attributes + +What: /sys/devices/platform/soc:firmware:svc/soc:firmware:svc:rsu/current_image +Date: April 2019 +KernelVersion: 5.2 +Contact: Richard Gong +Description: + (RO) the address of image currently running in flash. + +What: /sys/devices/platform/soc:firmware:svc/soc:firmware:svc:rsu/fail_image +Date: April 2019 +KernelVersion: 5.2 +Contact: Richard Gong +Description: + (RO) the address of failed image in flash. + +What: /sys/devices/platform/soc:firmware:svc/soc:firmware:svc:rsu/state +Date: April 2019 +KernelVersion: 5.2 +Contact: Richard Gong +Description: + (RO) the state of RSU system. + The state field has two parts: major error code in upper 16 bits and minor error code + in lower 16 bits. + 1. Major error code + 0xF001 -- bitstream error + 0xF002 -- hardware access failure + 0xF003 -- bitstream corruption + 0xF004 -- internal error + 0xF005 -- device error + 0xF006 -- HPS watchdog timeout + 0xF007 -- internal unknown error + 2: Minor error code + Currently used only when major error is 0xF006 (HPS watchdog timeout), in which + case the minor error code is the value reported by HPS to firmware through the RSU notify + command before the watchdog timeout occurs. + +What: /sys/devices/platform/soc:firmware:svc/soc:firmware:svc:rsu/version +Date: April 2019 +KernelVersion: 5.2 +Contact: Richard Gong +Description: + (RO) the version number of RSU firmware. + +What: /sys/devices/platform/soc:firmware:svc/soc:firmware:svc:rsu/error_location +Date: April 2019 +KernelVersion: 5.2 +Contact: Richard Gong +Description: + (RO) the error offset inside the image that failed. + +What: /sys/devices/platform/soc:firmware:svc/soc:firmware:svc:rsu/error_details +Date: April 2019 +KernelVersion: 5.2 +Contact: Richard Gong +Description: + (RO) error code. + +What: /sys/devices/platform/soc:firmware:svc/soc:firmware:svc:rsu/reboot_image +Date: April 2019 +KernelVersion: 5.2 +Contact: Richard Gong +Description: + (WO) the address of image to be loaded on next reboot command. + +What: /sys/devices/platform/soc:firmware:svc/soc:firmware:svc:rsu/notify +Date: April 2019 +KernelVersion: 5.2 +Contact: Richard Gong +Description: + (WO) inform firmware that the current software state as a 16-bit + numerical value below: + 0 -- the first stage bootloader didn't run or didn't reach the + point of launching second stage bootloader + 1 -- failed in second bootloader or didn't get to the point of + launching the operating system + 2 -- both first and second stage bootloader ran and the operating + system launch was attempted. -- 2.7.4