Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2858316ybl; Sun, 12 Jan 2020 04:21:10 -0800 (PST) X-Google-Smtp-Source: APXvYqwx1vJ0fhImY1OyxU9yTiW/B1/IWCBBngtaiAvsw2SxTeYKoxQHayTfmDhNJDCc+/rMpa6l X-Received: by 2002:a9d:7501:: with SMTP id r1mr9975942otk.196.1578831670109; Sun, 12 Jan 2020 04:21:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578831670; cv=none; d=google.com; s=arc-20160816; b=BCQEHyHiOnRu1Rxbfw6pbnFqkMeAxZL1Pr85sSYtBviDDqhDn7AEgAn/fWS5mCGION C930fzVQK60Jzna0NDX4sH0gQa3k9trap/k/N706up57RkoAzEzF1vMjGfKDaIdpBHPx gF/+6n1oKzdfuYcNcYc1F4vphjHbZr2zuOI6HHYW5TtyFrur97p1S/CNr6WbA4FmWjz3 sjy40KBD4oFUA78CPNM8AsSCPFY7N86E/gVFAXYI3Vtrv6I33tBoTl/or3eKrhm8qv7Y StryvheVJC/HgVaZOHJpXbx7A0qZ5i3mmp0VpXljtYcAI0UMUIUfP0OTNQiG8cMJAmfE 1Sig== 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=Xj5m0sctE7QV+RfgjiH4EfK33kUQGsTBdwEi2b1HPYs=; b=DTfsrb8DSueGf/gQlw2x0RsFI05yPatN7EdRjDOP484U8RVZjroroEJn2L/mMy2dLu q26odA8Q2nmJ5H01XWulqTD2IjeZ7Lb1geiwZ3DfdF1nmCnLo/rWqpkzXs/cCwNjsYKp mMvB+D5q3w2f47PDPIPGFxsTSPQH/kIf99+cKyDM46WcOe8yjj5kpuMNusl6krc6Ld9p yE7idtj2d1npMWGFBcTgsrwxviXOdEDzFR0a8o2a+eZd55cd7kAEU2q5ZSTuUIXRjgwC sOVgzYgUIEs2V2ZnSHbdYryMYg1Sb0dh5itaurTcQ1g0U+MmPSJ9nTMdoN3gOXcIZ4Sx GwzQ== 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 o7si5231429otk.185.2020.01.12.04.20.47; Sun, 12 Jan 2020 04:21:10 -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 S1732850AbgALMTD (ORCPT + 99 others); Sun, 12 Jan 2020 07:19:03 -0500 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:60782 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732790AbgALMS6 (ORCPT ); Sun, 12 Jan 2020 07:18:58 -0500 Received: from Internal Mail-Server by MTLPINE1 (envelope-from vadimp@mellanox.com) with ESMTPS (AES256-SHA encrypted); 12 Jan 2020 14:18:56 +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 00CCIpST023227; Sun, 12 Jan 2020 14:18:56 +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 v2 05/10] Documentation/ABI: Add new attribute for mlxreg-io sysfs interfaces Date: Sun, 12 Jan 2020 12:18:44 +0000 Message-Id: <20200112121849.7056-6-vadimp@mellanox.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200112121849.7056-1-vadimp@mellanox.com> References: <20200112121849.7056-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". --- Documentation/ABI/stable/sysfs-driver-mlxreg-io | 69 +++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/Documentation/ABI/stable/sysfs-driver-mlxreg-io b/Documentation/ABI/stable/sysfs-driver-mlxreg-io index fe30fe505c9b..79c37b752d0f 100644 --- a/Documentation/ABI/stable/sysfs-driver-mlxreg-io +++ b/Documentation/ABI/stable/sysfs-driver-mlxreg-io @@ -150,3 +150,72 @@ What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_from_asic What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_reload_bios What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_sff_wd What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_swb_wd + +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. + +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/config1 +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/config2 + + The files are read only. + +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. + +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 + + The files are read only. + +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. + +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/pcie_asic_reset_dis + + The file is read/write. + +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. + +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/vpd_wp + + The file is read/write. + +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. + +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/voltreg_update_status + + The file is read only. + +Date: January 2020 +KernelVersion: 5.6 +Contact: Vadim Pasternak +Description: This file exposes the firmware version of burnable voltage + regulator devices. + +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/ufm_version + + The file is read only. -- 2.11.0