Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2021278lqb; Mon, 27 May 2024 05:34:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU+fG8DaXONT5x6LkkgqeJV3dxuvlowQ5mag/4nw7wMP5AOhZaqoRLsTP9sw3TBWawh2giQ4kupQkvGAxQlm3vGx/INUA/HzPJhtsfGeg== X-Google-Smtp-Source: AGHT+IFHxAOCnNSH6VQyuFHspvpzEg+dMRLl7gRkfRqmYRryoMBLnWun7HqPnMEGVOfYzU2BkADO X-Received: by 2002:a92:ca0c:0:b0:374:61ee:57c1 with SMTP id e9e14a558f8ab-37461ee5b36mr3237655ab.10.1716813262186; Mon, 27 May 2024 05:34:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716813262; cv=pass; d=google.com; s=arc-20160816; b=dH04Yn4gSAb2S9yeeFV/qKJxGfMl4vrSA6BmlQ+iOkp97tIy3kLucNr25Dv3vY5B60 bGGaOe5mz+uL1V2HSr4nQQWqLtVMWr5qGaPFp1DRc1BH0oJNnaBoeo3rmzY8xSq1PWUf CSEK7g+OLzyPD+Fz3HIZRG9I6GxCHhkMaUiVh2+/Y7EVWSi7S99agLxuFOyTncLWIpSO TEQtL4f4F5FCpMP2X9jH33qtXLnFsYsr1pvbBumkkGfBO3JcMXBJzrlXvWAuzF4frXZ9 U+akhJ9ghUKPq49drWmEdYEscQ06WkORKozNQSCsn+TyRY4X620fSBgdIDwKGw7qCqPX Dpmw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:date:from :dkim-signature; bh=9yRf0lC4P6Xx6BPNfKUhCsA/T3QogQNowLwWNdAYf9o=; fh=BTsw9WG0vtWmuISkaGJqYL0fUol4Z58eXxJg58i3Knw=; b=LgX2OM95R0iodFBQqut6NasJ1fKsCcAOpeAQz+WuYi9qRlGad55aRq928wjs+l0C8O lDfiaW1lPxj9G7o+XAU1iDVGFlcqmdJ7nJQEL91kt7Mdifz41PLt+Ysvc8a5PKNTxP5A wkBzyGUMC888e4WdkWEBCA6WlxiQBF4OddTBKXofg/J0sj/T/fa/lzm5bDKnk8ldeogs CDNXsuOKKTm4mIeQVU9tkjCjqY2dpImhbpfD/u602sptEOjkPmjjNKKMxkMYuBuoTt9p rFwO1tToiPuN+GTw+1c535NMYjdW40h8AkhNAgJpu8+8BtgGV4AvEri4XLN462DthYgy igvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="M1d/0CU5"; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-190434-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190434-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6822946d8f0si6380091a12.578.2024.05.27.05.34.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 05:34:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190434-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="M1d/0CU5"; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-190434-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190434-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id BE2C1B22648 for ; Mon, 27 May 2024 10:34:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 82CCF13B2B3; Mon, 27 May 2024 10:33:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="M1d/0CU5" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F3CCB79E1; Mon, 27 May 2024 10:33:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716806037; cv=none; b=PbCRzYcAF1A+eytYv8if5cH4VQx/lnkrfhkHRh0QhFRx02kzl00VVqxvrIR1wIyNui633R6AwQsn6v1oACCtHb55BBcTZJhKrqAGzNRpagcke2/rO5rUrqto90KsNfjvQrHb0eXfdtv0DkhRL9bfAQ84cVHjcjmqwvYjXvcGgsA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716806037; c=relaxed/simple; bh=kh7zExYsU5NSwXABQCpfwbxqjGDH1gafzF+5b2SbwQE=; h=From:Date:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=oMASn0EEWFDzS6fUN8Hu+AsPfQxJ56/4C217/VljAX8DprMIVZ3bGakKFcfSdIwc30JtLy2dTfvv5SCrN7ksjUSq1ngrSh1GYN96HMTnRZuamRaceQDZVajfklXe+FN/ngfs8mqOyHRPa399L5zdg8OmYxgrXCdGYnX0QRan0s8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=M1d/0CU5; arc=none smtp.client-ip=198.175.65.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716806036; x=1748342036; h=from:date:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=kh7zExYsU5NSwXABQCpfwbxqjGDH1gafzF+5b2SbwQE=; b=M1d/0CU5Jl1WDFFNgOggf/l1eR/LazbvBpCbHKrnhwoOBeBf0N3yWZO3 a4k1edQsywF5ygQUd7wJfFyAzlDu4kdf/dcVGBEaNXEgw5O4Hdcei2HBZ 9d6SLJdQi2EbDfNDkhfw+QwLhklRfofxW9/IptI/gYuxugn/RrNwf29ZU CpIYF+nxNOeTvMzExp2jc1hM2r68BLZc3p6CEPanQTtzxHX6It8UKzGv4 8gC9N9ccCmxzY8tuw/c1M7lVQ/0WhC6vk4FAYw5JXdbLWjvrGdjmVkc3h 98HUbmUKYTudwGQT8swFEYQkeNj+mm7yxfBHnSK114C/+DLk7JKH45m8D w==; X-CSE-ConnectionGUID: 3+35JX/UStu7lRHCpVePqA== X-CSE-MsgGUID: zIA2NkDwQeixMUACzOez3Q== X-IronPort-AV: E=McAfee;i="6600,9927,11084"; a="13239124" X-IronPort-AV: E=Sophos;i="6.08,192,1712646000"; d="scan'208";a="13239124" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 May 2024 03:33:55 -0700 X-CSE-ConnectionGUID: SExCQypaS/y8JBy/H0Ut8w== X-CSE-MsgGUID: N+FtcBA1RaetMv4BazM3MA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,192,1712646000"; d="scan'208";a="39154551" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.245.247.138]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 May 2024 03:33:54 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Date: Mon, 27 May 2024 13:33:49 +0300 (EEST) To: Shravan Kumar Ramani cc: Hans de Goede , Vadim Pasternak , David Thompson , platform-driver-x86@vger.kernel.org, LKML Subject: Re: [PATCH v2 1/4] Documentation/ABI: Add document for Mellanox PMC driver In-Reply-To: Message-ID: <23406905-4c1a-5fb3-1bb4-8a3475536977@linux.intel.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII On Mon, 20 May 2024, Shravan Kumar Ramani wrote: > The sysfs interface is created for programming and monitoring the This patch is not creating interface. I suggest you change the wording to: "Document the sysfs interface for ... > performance counters in various HW blocks of Mellanox BlueField-1, > BlueField-2 and BlueField-3. > > Signed-off-by: Shravan Kumar Ramani > Reviewed-by: David Thompson > --- > .../ABI/testing/sysfs-platform-mellanox-pmc | 49 +++++++++++++++++++ > 1 file changed, 49 insertions(+) > create mode 100644 Documentation/ABI/testing/sysfs-platform-mellanox-pmc > > diff --git a/Documentation/ABI/testing/sysfs-platform-mellanox-pmc b/Documentation/ABI/testing/sysfs-platform-mellanox-pmc > new file mode 100644 > index 000000000000..47094024dbeb > --- /dev/null > +++ b/Documentation/ABI/testing/sysfs-platform-mellanox-pmc > @@ -0,0 +1,49 @@ > +HID Driver Description > +MLNXBFD0 mlxbf-pmc Performance counters (BlueField-1) > +MLNXBFD1 mlxbf-pmc Performance counters (BlueField-2) > +MLNXBFD2 mlxbf-pmc Performance counters (BlueField-3) > + > +What: /sys/bus/platform/devices//hwmon/hwmonX//event_list > +Date: Dec 2020 > +KernelVersion: 5.10 > +Contact: "Shravan Kumar Ramani " > +Description: > + List of events supported by the counters in the specific block. > + It is used to extract the event number or ID associated with > + each event. > + > +What: /sys/bus/platform/devices//hwmon/hwmonX//event > +Date: Dec 2020 > +KernelVersion: 5.10 > +Contact: "Shravan Kumar Ramani " > +Description: > + Event monitored by corresponding counter. This is used to > + program or read back the event that should be or is currently > + being monitored by counter. > + > +What: /sys/bus/platform/devices//hwmon/hwmonX//counter > +Date: Dec 2020 > +KernelVersion: 5.10 > +Contact: "Shravan Kumar Ramani " > +Description: > + Counter value of the event being monitored. This is used to > + read the counter value of the event which was programmed using > + event. This is also used to clear or reset the counter value. Please document how to clear/reset it in more concrete terms (I didn't check the code but my guess would one writes zero there to reset the counter?). > +What: /sys/bus/platform/devices//hwmon/hwmonX//enable > +Date: Dec 2020 > +KernelVersion: 5.10 > +Contact: "Shravan Kumar Ramani " > +Description: > + Start or stop counters. This is used to start the counters > + for monitoring the programmed events and also to stop the > + counters after the desired duration. > + > +What: /sys/bus/platform/devices//hwmon/hwmonX// > +Date: Dec 2020 > +KernelVersion: 5.10 > +Contact: "Shravan Kumar Ramani " > +Description: > + Value of register. This is used to read or reset the registers > + where various performance statistics are counted for each block. Ditto for the reset part. -- i.