Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1132698lqt; Fri, 7 Jun 2024 08:53:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVAVu7MnJUGxLBFYtZ1g8E6z1YmSi2FAACD8RFmn+9iSlI6PdhM5V7ohhNMkzpcAFdoGTjaTxxNlYjMch/aec0Ka47nS07oofbaorJ+DA== X-Google-Smtp-Source: AGHT+IFFh+zjTMS6p17YwyEjIPWCrQ/t3cvX4x6QOUYTaKC54MYCeSIlMHY0IwTjXG5YHg0eYwev X-Received: by 2002:ae9:e912:0:b0:795:3d27:4852 with SMTP id af79cd13be357-7953d274e2amr219644885a.48.1717775608379; Fri, 07 Jun 2024 08:53:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717775608; cv=pass; d=google.com; s=arc-20160816; b=wpiDkpObhRH3jIK2q/ikghZ+yv+h6BGGRjztPdJmHmhwAn1ia1dTy94HNQogHuV47C zMy/9Z7pkZllUfJhDMfZ/KKRl5H5WJJAwAF+05sy6EWUgQxRTQm88O4udDnRyyKtNPm/ zn5AN2GB4TOZHXQ/6Nw3Fs7qdaTlJ+p0szooZ7ZcPug38OVQ4e8cxfApL4EhL6pt5WJn 65xVoJaqeFqFgiHxG9j8SI1TR/qNA8mEEOMTeXJjXnKx/+764en/cfWcp8+q2bokHTWK qNEEFyEdWirwxBM7zFsZVLCCD0ufkii7pTeJYHkBqOyKfGhnkPFQBtC7HSF8Kz2jek2r 7ftw== 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=vSgDdQgKkry2RCe3gvOgh9APGwnoVT3b0HTioKRx8Ao=; fh=BTsw9WG0vtWmuISkaGJqYL0fUol4Z58eXxJg58i3Knw=; b=a0FrBKzwBP3Lmyotj3aCQwUhoWrhH7IhmXhqQsOUeEFNwA3lwjffxg4x4KHqX6xsiz k2aEgj8lgp+tiGCnRMRWfMrxWS8sEf/BBJE9BMJ02ItTAHnIIgBdWC4MwEPYRsOhIACh ZUfcRtqfsUY76kwItE6fS05qyfC2ZQCD77631f3vI41EcbIMc5PGd0Y8W2h/nmiHUj3e Hkx45AfDoAPWWGL2QsThaN+/xP/E+ewUNmHIHrEwVcNY9+yV2Y+bbSVIm8HvSAzWSH74 rVnKDnaV1iVMOoCFPQvD34uUy48jjx3atINlbhd7Cc+QCQuoFh7apY8uoN8YQjL5gnDC hC2g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IuvSUH0v; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-206429-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206429-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-795331ce8d0si436450285a.265.2024.06.07.08.53.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 08:53:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206429-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IuvSUH0v; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-206429-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206429-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 644E51C2278A for ; Fri, 7 Jun 2024 15:53:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C7E91993AE; Fri, 7 Jun 2024 15:53:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="IuvSUH0v" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) (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 96670190688; Fri, 7 Jun 2024 15:53:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717775596; cv=none; b=eBLmSQBF9BgA3n8hNHFnnsYGE0ubV+GPy9Z3cuWKXuOnH9iZt+S8jvweRhChjgPRlaEcrxM5BUPYP7kGvxjt3iv1UvZrTOYA4OxrKNDJ9gzLMTP4tHSxxP+oK36ufxfaBJOjkwuynQI65DKjeHbxusM4uQgbZDXzheP3pNTBH3I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717775596; c=relaxed/simple; bh=oywe1mkIeynmHDRBwdvvmFRGJataxJ9ZGBEKiHkcpG4=; h=From:Date:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=VMiGEO+tSAX0fOVG+E8R/fKqW88Yd5nsP6QehaKw1TbNLQa0sbaAopUJZUnbAQQDQAeXlir6N+xd5r2kQjKAZqlwBf3oGhGJwHr+u796Pu4R7CiseAfBwNnldBqAnmPt4HgsIEuaSjdV4ctGE9KNa8W4+AlXNbPgjaZ4kIXVlgg= 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=IuvSUH0v; arc=none smtp.client-ip=192.198.163.16 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=1717775595; x=1749311595; h=from:date:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=oywe1mkIeynmHDRBwdvvmFRGJataxJ9ZGBEKiHkcpG4=; b=IuvSUH0vu3zDaoY1xRztBVJ23C3AVS6dnJlD3WfULbT8yvrLKpruM1s7 Ph6wDX1QVWBUloOq9CKga3k0flpElqVAvc1wc6vG0ZmTZdyYTJpTGM9An jdHMAz57zXbnh4LJzEjGiktiZ4Ew7XaxzZ5ngPS4wTZu7reIlhO4qndxM yrtOrzmzu+h+6cF5n1cQZy8MXgoFt+7CqOi4RYpas1Hy8O99L6LegdlC8 ygef/t3OJJSJslPQ9MvXQPSubBr7UfsdLyY0STpUEzGEf7AzrOZYJxMyq GTNoibC02+xyh62YeMY67zm+LVwkgbZXG3oupTjrRj+OpzPUeFwy8mkDn w==; X-CSE-ConnectionGUID: eOz7YVlLT/SkU+nZf9h5pg== X-CSE-MsgGUID: G312jb67TCuxjvlRViVEkg== X-IronPort-AV: E=McAfee;i="6600,9927,11096"; a="11966794" X-IronPort-AV: E=Sophos;i="6.08,221,1712646000"; d="scan'208";a="11966794" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2024 08:53:14 -0700 X-CSE-ConnectionGUID: 62bx5l5vTea9Pb1huVtfcw== X-CSE-MsgGUID: ZIpJdotQSJC+DmhhXjVFQQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,221,1712646000"; d="scan'208";a="43301572" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.245.247.184]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2024 08:53:11 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Date: Fri, 7 Jun 2024 18:53:08 +0300 (EEST) To: Shravan Kumar Ramani cc: Hans de Goede , Vadim Pasternak , David Thompson , platform-driver-x86@vger.kernel.org, LKML Subject: Re: [PATCH v3 4/4] Documentation/ABI: Add new sysfs fields to sysfs-platform-mellanox-pmc In-Reply-To: Message-ID: 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 Fri, 7 Jun 2024, Shravan Kumar Ramani wrote: > Document newly added "count_clock" and "use_odd_counter" sysfs entries > for the Mellanox BlueField PMC driver. > > Signed-off-by: Shravan Kumar Ramani > Reviewed-by: David Thompson > --- > .../ABI/testing/sysfs-platform-mellanox-pmc | 23 +++++++++++++++++++ > 1 file changed, 23 insertions(+) > > diff --git a/Documentation/ABI/testing/sysfs-platform-mellanox-pmc b/Documentation/ABI/testing/sysfs-platform-mellanox-pmc > index 9f987c6410da..ee03d066c0d9 100644 > --- a/Documentation/ABI/testing/sysfs-platform-mellanox-pmc > +++ b/Documentation/ABI/testing/sysfs-platform-mellanox-pmc > @@ -52,3 +52,26 @@ Description: > Writing 0 to the sysfs will clear the counter, writing any other > value is not allowed. > > +What: /sys/bus/platform/devices//hwmon/hwmonX//count_clock > +Date: May 2024 > +KernelVersion: 6.10 > +Contact: "Shravan Kumar Ramani " > +Description: > + Use a counter for counting cycles. This is used to repurpose/dedicate > + any of the counters in the block to counting cycles. Each counter is > + represented by a bit (bit 0 for counter0, bit1 for counter1 and so on) > + and setting the corresponding bit will reserve that specific counter > + for counting cycles and override the event setting. > + > +What: /sys/bus/platform/devices//hwmon/hwmonX//use_odd_counter > +Date: May 2024 > +KernelVersion: 6.10 6.10 ship has already sailed. > +Contact: "Shravan Kumar Ramani " > +Description: > + Form 64-bit counter using 2 32-bit counters. This is used to combine > + 2 adjacent counters to form a single 64-bit counter. Each even counter > + is represented by a bit and setting the bit will join the corresponding > + even counter with the next (odd) counter. The full 64-bit value can be > + accessed using the same 2 counter and counter sysfs, with each > + of them holding the lower and upper 32 bits respectively. Okay, thanks for updating this, it's much clearer now what the intent of each file is. One thing that is still unclear whether both bits are expected to be set in count_clock when use_odd_counter is used to combine two counters? -- i.