Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2124309yba; Fri, 17 May 2019 10:51:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUiuqbasY+GJ16poVnpkGS5NINSXhzP1sr1vdhT1QhCgDGS+o0dz0jJB3Jt5bAfPu+bpFe X-Received: by 2002:a63:690:: with SMTP id 138mr57487278pgg.415.1558115500257; Fri, 17 May 2019 10:51:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558115500; cv=none; d=google.com; s=arc-20160816; b=HpYxBp19i2U5Xda2hMbBZAVlyUm8jMyUhPJ2MmpsbP9xm+QiLZGJM+1vP9e0Iq1U6t aZk9FgIPz2sldipSb0at85gLFrZFLKCM48YG8tIz8S06DyjXtAfl1uHZQrLOQLIpKtGD 91Cq6yRXJBBC/6HM9pb/VFTZ8nBHKwCEY71by6SbyJuxfBplJ44q1BontkD6+WUSQph6 y5Za7ZY+dqbfVrTFS89j9Eej1Zc2ajsf/OldkxBeb/2NDPxiuLy2VAa/t/jokHXVzl/c zzWzpcfpZN8uENezccd9zDG8OYnTfpa0qa4AtOpHPyl9zMiXvJTTwIh81wbsf3+7affp t6Eg== 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:references :in-reply-to:message-id:date:subject:cc:to:from; bh=XGRQsax9/KR+BSm+guaiFz/ZkN7KeHCwez32lnVEjS0=; b=hUUuZeCqxiCJIvvm+sMK//slmjZGzPiSm26stxJv4md7EAk3tcc6GGKabjRCC6iBw4 h46tKrwq7D1xtgLkfGTxNuKQ7HAJOXJngXnc5By6wJtSsCV7jzL+hEwBEa+YNb0gdP4i nd6fooJLIOb/zj5xKOO8un54Yw7wh0d3sAJjPzZT3xegx2Aor7TLxSjub4NAPf8F9VLG 0yG/OP7zlZApjVqAnGJU6fuUpFK+coaQo8lbq5q4cWxS3cdZTLSaeI9leT4LlV8Zn/9E VXLvlUyq+CWArQe8sYf2e2RXrf2LIxNjIDmmEsHFVivzl6qeH2jI69OExcTl0nrG1XGl FQRA== 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 cn19si9364272plb.400.2019.05.17.10.51.25; Fri, 17 May 2019 10:51:40 -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=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728822AbfEQRuG (ORCPT + 99 others); Fri, 17 May 2019 13:50:06 -0400 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:46095 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725932AbfEQRuF (ORCPT ); Fri, 17 May 2019 13:50:05 -0400 Received: from Internal Mail-Server by MTLPINE2 (envelope-from lsun@mellanox.com) with ESMTPS (AES256-SHA encrypted); 17 May 2019 20:49:30 +0300 Received: from farm-0002.mtbu.labs.mlnx (farm-0002.mtbu.labs.mlnx [10.15.2.32]) by mtbu-labmailer.labs.mlnx (8.14.4/8.14.4) with ESMTP id x4HHnTeK007503; Fri, 17 May 2019 13:49:29 -0400 Received: (from lsun@localhost) by farm-0002.mtbu.labs.mlnx (8.14.7/8.13.8/Submit) id x4HHnR1D032577; Fri, 17 May 2019 13:49:27 -0400 From: Liming Sun To: Andy Shevchenko , Darren Hart , Vadim Pasternak , David Woods Cc: Liming Sun , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , Mauro Carvalho Chehab , Greg Kroah-Hartman , Jonathan Cameron , Nicolas Ferre , "Paul E. McKenney" Subject: [PATCH v5 2/2] platform/mellanox/mlxbf-bootctl: Add the ABI definitions Date: Fri, 17 May 2019 13:49:05 -0400 Message-Id: <1558115345-32476-2-git-send-email-lsun@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1558115345-32476-1-git-send-email-lsun@mellanox.com> References: <1558115345-32476-1-git-send-email-lsun@mellanox.com> In-Reply-To: <0b74e9ad12360b56bc0a3c2ca972798c424f2610.1548790896.git.lsun@mellanox.com> References: <0b74e9ad12360b56bc0a3c2ca972798c424f2610.1548790896.git.lsun@mellanox.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit adds the ABI definitions exposed to userspace for the platform/mellanox/mlxbf-bootctl driver. Reviewed-by: Vadim Pasternak Signed-off-by: Liming Sun --- .../ABI/testing/sysfs-platform-mellanox-bootctl | 58 ++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 59 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-platform-mellanox-bootctl diff --git a/Documentation/ABI/testing/sysfs-platform-mellanox-bootctl b/Documentation/ABI/testing/sysfs-platform-mellanox-bootctl new file mode 100644 index 0000000..19a14db --- /dev/null +++ b/Documentation/ABI/testing/sysfs-platform-mellanox-bootctl @@ -0,0 +1,58 @@ +What: /sys/bus/platform/drivers/mlxbf-bootctl/lifecycle_state +Date: May 2019 +KernelVersion: 5.3 +Contact: "Liming Sun " +Description: + The Life-cycle state of the SoC, which could be one of the + following values. + Production - Production state and can be updated to secure + GA Secured - Secure chip and not able to change state + GA Non-Secured - Non-Secure chip and not able to change state + RMA - Return Merchandise Authorization + +What: /sys/bus/platform/drivers/mlxbf-bootctl/post_reset_wdog +Date: May 2019 +KernelVersion: 5.3 +Contact: "Liming Sun " +Description: + The watchdog setting in seconds for the next booting. It's used + to reboot the chip and recover it to the old state if the new + boot partition fails. + +What: /sys/bus/platform/drivers/mlxbf-bootctl/reset_action +Date: May 2019 +KernelVersion: 5.3 +Contact: "Liming Sun " +Description: + The source of the boot stream for the next reset. It could be + one of the following values. + external - boot from external source (USB or PCIe) + emmc - boot from the onchip eMMC + emmc_legacy - boot from the onchip eMMC in legacy (slow) mode + +What: /sys/bus/platform/drivers/mlxbf-bootctl/second_reset_action +Date: May 2019 +KernelVersion: 5.3 +Contact: "Liming Sun " +Description: + Update the source of the boot stream after next reset. It could + be one of the following values and will be applied after next + reset. + external - boot from external source (USB or PCIe) + emmc - boot from the onchip eMMC + emmc_legacy - boot from the onchip eMMC in legacy (slow) mode + swap_emmc - swap the primary / secondary boot partition + none - cancel the action + +What: /sys/bus/platform/drivers/mlxbf-bootctl/secure_boot_fuse_state +Date: May 2019 +KernelVersion: 5.3 +Contact: "Liming Sun " +Description: + The state of eFuse versions with the following values. + InUse - burnt, valid and currently in use + Used - burnt and valid + Free - not burnt and free to use + Skipped - not burnt but not free (skipped) + Wasted - burnt and invalid + Invalid - not burnt but marked as valid (error state). diff --git a/MAINTAINERS b/MAINTAINERS index fb9f9d7..8a9d9ce 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10018,6 +10018,7 @@ M: Darren Hart M: Vadim Pasternak L: platform-driver-x86@vger.kernel.org S: Supported +F: Documentation/ABI/testing/sysfs-platform-mellanox-bootctl F: drivers/platform/mellanox/ F: include/linux/platform_data/mlxreg.h -- 1.8.3.1