Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4139522ybl; Mon, 13 Jan 2020 08:29:58 -0800 (PST) X-Google-Smtp-Source: APXvYqwZEYTZ51Ij6+05LXG9nM62CQ3um/AmbWwYGrtToIZa65cVJTCji9vpaboJUp8ARrEUMUsa X-Received: by 2002:aca:db41:: with SMTP id s62mr12679843oig.87.1578932997951; Mon, 13 Jan 2020 08:29:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578932997; cv=none; d=google.com; s=arc-20160816; b=lVnFrJ4oA33P7UFblccNBi1CZd0uxnA3CoISrMH4vSfyoOACvz9DqeqVvcb+otUVxm 0ADF3t0UYku258DETPIZgiSXCj2Exbo4GDf+1PCra2WhGUGrPujTuA/KibPfDjjOUnBd P+5XgKPaocsQjV8AZM7nJgfxi8XX6YbATXWqh3xClpDkKVFHYuqVsc+FlBMFWFC5dCvp Yifu0IPiL0GEnSiyo3IIqC5+qfsfvg1sBrzoaaNpLg241MRVVpi7RUhXPN0C3ubYFOHc wTv8RgulCTPHNXg5kuhDdJBlHHcgk7pBjTeDJhlM8/W//u1sdW2aKQZk7NbogsTq9iK3 3ixw== 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=xGz+A0UJEThdfHDkRGU8EI1qFrxn0gHn47epn1qxpZo=; b=jf2XgkxxB91dsSdoWVIKfEPCS95Yew5J8u8wxGN0iwCnulfS5mSdT6kYqcBW5Ih0oL GuPBZ33KBtvzvMKifaWEp+LQBxE8e7406jm1UJQd75RMWcAZoo55wjsIU7tyYM/UDXYl h89ytxJevHZDvjvMEU1lEG1mgLtbkLqL88oT1BpWsJieLXY/kqALC1irgAejwdRM6xQu jqYc7KSkRFuP1P1wMpDquOU2jZ5UX9LGT8QlQiIbd/UA8waGhaobEvZXNMIijq533a8t Allp7+e3NafgApyrEruupT8zkvMRdprE5bKpuQ1YZs4jmn/i71DpO9BLfv3X0tKjXleN 5hAw== 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=mellanox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j9si7056171otn.294.2020.01.13.08.29.45; Mon, 13 Jan 2020 08:29:57 -0800 (PST) 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=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729028AbgAMQ2u (ORCPT + 99 others); Mon, 13 Jan 2020 11:28:50 -0500 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:37958 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728935AbgAMQ2s (ORCPT ); Mon, 13 Jan 2020 11:28:48 -0500 Received: from Internal Mail-Server by MTLPINE1 (envelope-from vadimp@mellanox.com) with ESMTPS (AES256-SHA encrypted); 13 Jan 2020 18:28:46 +0200 Received: from r-build-lowlevel.mtr.labs.mlnx. (r-build-lowlevel.mtr.labs.mlnx [10.209.0.190]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 00DGSefb032667; Mon, 13 Jan 2020 18:28:46 +0200 From: Vadim Pasternak To: andy@infradead.org, dvhart@infradead.org Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Vadim Pasternak Subject: [PATCH platform-next v3 06/11] Documentation/ABI: Add new attribute for mlxreg-io sysfs interfaces Date: Mon, 13 Jan 2020 16:28:34 +0000 Message-Id: <20200113162839.18103-7-vadimp@mellanox.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200113162839.18103-1-vadimp@mellanox.com> References: <20200113162839.18103-1-vadimp@mellanox.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add documentation for the new attributes for: - Exposing reset causes types asserted by: platform reset, SoC reset, AC power failure, software power off request. - Setting and removing system VPD (EEPROM) hardware write protection. - Voltage regulator devices configuration update status and firmware version. - Setting PCIe ASIC reset to disable or enable state during PCIe root complex reset. - System static topology identification, like system's static I2C topology, number and type of FPGA devices within the system and so on. Signed-off-by: Vadim Pasternak --- v1-v2: Changes added by Vadim: - Change "Date" to "January 2020". v3-v4: Comments pointed out by Andy: - Drop blank line between "What" and "Date". - Start each section with "What" keyword. --- Documentation/ABI/stable/sysfs-driver-mlxreg-io | 63 +++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/Documentation/ABI/stable/sysfs-driver-mlxreg-io b/Documentation/ABI/stable/sysfs-driver-mlxreg-io index eb6db7382ae3..b0d90cc696a8 100644 --- a/Documentation/ABI/stable/sysfs-driver-mlxreg-io +++ b/Documentation/ABI/stable/sysfs-driver-mlxreg-io @@ -143,3 +143,66 @@ Description: These files show the system reset cause, as following: only last reset cause. The files are read only. + +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/config1 +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/config2 +Date: January 2020 +KernelVersion: 5.6 +Contact: Vadim Pasternak +Description: These files show system static topology identification + like system's static I2C topology, number and type of FPGA + devices within the system and so on. + + The files are read only. + +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_ac_pwr_fail +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_platform +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_soc +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_sw_pwr_off +Date: January 2020 +KernelVersion: 5.6 +Contact: Vadim Pasternak +Description: These files show the system reset causes, as following: reset + due to AC power failure, reset invoked from software by + assertion reset signal through CPLD. reset caused by signal + asserted by SOC through ACPI register, reset invoked from + software by assertion power off signal through CPLD. + + The files are read only. + +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/pcie_asic_reset_dis +Date: January 2020 +KernelVersion: 5.6 +Contact: Vadim Pasternak +Description: This file allows to retain ASIC up during PCIe root complex + reset, when attribute is set 1. + + The file is read/write. + +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/vpd_wp +Date: January 2020 +KernelVersion: 5.6 +Contact: Vadim Pasternak +Description: This file allows to overwrite system VPD hardware wrtie + protection when attribute is set 1. + + The file is read/write. + +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/voltreg_update_status +Date: January 2020 +KernelVersion: 5.6 +Contact: Vadim Pasternak +Description: This file exposes the configuration update status of burnable + voltage regulator devices. The status values are as following: + 0 - OK; 1 - CRC failure; 2 = I2C failure; 3 - in progress. + + The file is read only. + +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/ufm_version +Date: January 2020 +KernelVersion: 5.6 +Contact: Vadim Pasternak +Description: This file exposes the firmware version of burnable voltage + regulator devices. + + The file is read only. -- 2.11.0