Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37528571rwd; Tue, 11 Jul 2023 15:59:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlERfpRhVlUEQX2e2y5FIjI3nBr/Bu3v/0pXOCq3SBaerW7dBHPgvbulTcT8G/zAjl/kyK2i X-Received: by 2002:a17:907:a704:b0:992:630f:98b6 with SMTP id vw4-20020a170907a70400b00992630f98b6mr17184886ejc.37.1689116378120; Tue, 11 Jul 2023 15:59:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689116378; cv=none; d=google.com; s=arc-20160816; b=Smqay91rU5ub1lCe/IBvGcv6F+MmGzZcxqzvI6Cwd/rEisvbb0FGrtQJiKK2SbwJnS wSlOZQ/Cpj1Dfu/zHzeFcM7m9EKo1Be29Gm81Qhc0eCIdzM7ZHMt6f3TAO6KiyeYP53L FUvBnDmr14ele348YWB9U8Vl/rqBPT3xgsE7+PB9Anr4so3ublkQ3ZSTsdyHTX9RcRSs lyujXKp3ZafxDK4ZPo3G5fzVitDel13lhjTSggpt8kzk8I/MtXxIavD/5OJGyds9CUGc EHF37PplYO3L3BOsyHyPZyNymIHe9hN5dF+Eh8/ebXpNqs9/LgMoLo2PXdXivNrFOgkm hylQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JP/LdeQCy6XjTgbTwLi+o0D+siLVBHd3ysuAT/c1cOw=; fh=RrsDx1xcApjH9kmgnnjBG2OUTNMHeDctDKwtVs2JDHk=; b=Aoow/qMlltfLKr2K0/GaK6hL52JLQWUJMU1ubHCBaiGr2XUFYfTijuRK2U3CebOMHB BUMNgzFtCQ/b7tc3Dsqn44sK8K4HT+dqXJ7uuEmaSZiCxWhx1sSQ6s4PGx3YCH5IJibl Gtc1oeWoDpqPBPQCbgH6+vfCweUW9bSu0j1Q1lZY7/1wEYRoAnm5P3rSKsbTvll5ZLUa ZwyEk5u66Uf25LI/3SVw6yD7jD4Na83A/XMz3ZCvNxx+tNzzWg5xBw7CzeX7jVi/N32G aHXDBq4mhtFpR46Ytv4+qC7a3B0o+rIdulIqgT9F6cRZWl4sfAW45rp6R5UxAZ2I1m07 x+IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GkPYbedE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e1-20020a170906374100b00992c0625ee8si3185325ejc.976.2023.07.11.15.59.13; Tue, 11 Jul 2023 15:59:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GkPYbedE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231816AbjGKWKH (ORCPT + 99 others); Tue, 11 Jul 2023 18:10:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231625AbjGKWKF (ORCPT ); Tue, 11 Jul 2023 18:10:05 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 481B7170E; Tue, 11 Jul 2023 15:10:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689113404; x=1720649404; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=k3E1tQ1O4ThXJCHrWKSmtS5nCbAQMLnu5/Dj8fpnRNk=; b=GkPYbedEZgdr91XKXzhCI9jHcl6abUfwX3XiBxOvVgdLgNk0Zb89+8eV pMrpBylHchQIOEZhI6LWcRqI8a89dIt7lrtgc/6dJOrfZ39rwz9Rem2eK DIgmnUpMJuhQuuPi8nyomaJ9iJoWcPvxGNNbnpnDX0RkIl5y/L3w2QjEi QonUkNHyktTBwU7VaM2rTfMGzCQce1ZbND38q5FeMsuQLo01fy8CyNl1d dprE8TAcrY2UWcfAVK/WKpxPi6tkBkOYXwu7bgl4hqspp68ZqWEzFTbdc 5md5wIv2S6L+mOn1zKFPDJJvHPd6PFB80KrZTl7XJLkak4JqTf7tyTzDu Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10768"; a="345058988" X-IronPort-AV: E=Sophos;i="6.01,197,1684825200"; d="scan'208";a="345058988" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jul 2023 15:10:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10768"; a="786795081" X-IronPort-AV: E=Sophos;i="6.01,197,1684825200"; d="scan'208";a="786795081" Received: from spandruv-desk.jf.intel.com ([10.54.75.8]) by fmsmga008.fm.intel.com with ESMTP; 11 Jul 2023 15:10:01 -0700 From: Srinivas Pandruvada To: hdegoede@redhat.com, markgross@kernel.org, ilpo.jarvinen@linux.intel.com, andriy.shevchenko@linux.intel.com Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Pandruvada Subject: [PATCH v2 3/3] doc: TPMI: Add debugfs documentation Date: Tue, 11 Jul 2023 15:09:49 -0700 Message-Id: <20230711220949.71881-4-srinivas.pandruvada@linux.intel.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230711220949.71881-1-srinivas.pandruvada@linux.intel.com> References: <20230711220949.71881-1-srinivas.pandruvada@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Describe fields in the TPMI debugfs folder. Signed-off-by: Srinivas Pandruvada --- v2 New. Documentation/ABI/testing/debugfs-tpmi | 31 ++++++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 32 insertions(+) create mode 100644 Documentation/ABI/testing/debugfs-tpmi diff --git a/Documentation/ABI/testing/debugfs-tpmi b/Documentation/ABI/testing/debugfs-tpmi new file mode 100644 index 000000000000..9b530c1aaa2d --- /dev/null +++ b/Documentation/ABI/testing/debugfs-tpmi @@ -0,0 +1,31 @@ +What: /sys/kernel/debug/tpmi-/pfs_dump +Date: December 2023 +KernelVersion: 6.6 +Contact: srinivas.pandruvada@linux.intel.com +Description: +The PFS (PM Feature Structure) table, shows details of each power +management feature. This includes: +tpmi_id, number of entries, entry size, offset, vsec offset, lock status +and disabled status. +Users: Debugging, any user space test suite + +What: /sys/kernel/debug/tpmi-/tpmi-id-/mem_dump +Date: December 2023 +KernelVersion: 6.6 +Contact: srinivas.pandruvada@linux.intel.com +Description: +Shows the memory dump of the MMIO region for a TPMI ID. +Users: Debugging, any user space test suite + +What: /sys/kernel/debug/tpmi-/tpmi-id-/mem_write +Date: December 2023 +KernelVersion: 6.6 +Contact: srinivas.pandruvada@linux.intel.com +Description: +Allows to write at any offset. It doesn't check for Read/Write access +as hardware will not allow to write at read-only memory. This write is +at offset multiples of 4. The format is instance,offset,contents. +Example: +echo 0,0x20,0xff > mem_write +echo 1,64,64 > mem_write +Users: Debugging, any user space test suite diff --git a/MAINTAINERS b/MAINTAINERS index 5761b02183a7..4d439121fb36 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10720,6 +10720,7 @@ INTEL TPMI DRIVER M: Srinivas Pandruvada L: platform-driver-x86@vger.kernel.org S: Maintained +F: Documentation/ABI/testing/debugfs-tpmi F: drivers/platform/x86/intel/tpmi.c F: include/linux/intel_tpmi.h -- 2.40.1