openbmc.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Zev Weiss <zev@bewilderbeest.net>
To: Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com>
Cc: openbmc@lists.ozlabs.org,
	Jason M Biils <jason.m.bills@linux.intel.com>,
	James Feist <james.feist@linux.intel.com>
Subject: Re: [PATCH 2/2] peci-cputemp: label CPU cores from zero instead of one
Date: Mon, 28 Sep 2020 14:54:23 -0500	[thread overview]
Message-ID: <20200928195423.3kftebgltdmpronq@hatter.bewilderbeest.net> (raw)
In-Reply-To: <51512c43-ee82-17b5-71c4-35849b1f0922@linux.intel.com>

On Mon, Sep 28, 2020 at 02:08:24PM CDT, Jae Hyun Yoo wrote:
>
>
>On 9/26/2020 2:27 PM, Zev Weiss wrote:
>>Zero-based numbering is more consistent with all other cpu/core
>>numbering I'm aware of (including the PECI spec).
>>
>>Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
>>---
>>  drivers/hwmon/peci-cputemp.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>>diff --git a/drivers/hwmon/peci-cputemp.c b/drivers/hwmon/peci-cputemp.c
>>index b9fe91281d58..78e442f433a7 100644
>>--- a/drivers/hwmon/peci-cputemp.c
>>+++ b/drivers/hwmon/peci-cputemp.c
>>@@ -363,7 +363,7 @@ static int create_core_temp_label(struct peci_cputemp *priv, int idx)
>>  	if (!priv->coretemp_label[idx])
>>  		return -ENOMEM;
>>-	sprintf(priv->coretemp_label[idx], "Core %d", idx + 1);
>>+	sprintf(priv->coretemp_label[idx], "Core %d", idx);
>
>Differently from low level indexing, it's labeling for users and it
>should be synced with other temp or ADC sensors such as
>
>PVCCIN CPU1
>PVDQ ABC CPU1
>CPU1 P12V PVCCIN
>CPU1 VR Mem ABCD
>CPU1 VR P1V8
>
>These are using indexes starting from '1'.
>

OK, if it's for consistency with other existing drivers I suppose that's 
reasonable, though for my own reference, could you point me to where 
those are implemented?  Some rough grepping around the source tree 
didn't appear to turn up anything relevant.


Thanks,
Zev


  reply	other threads:[~2020-09-28 19:56 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-26 21:27 [PATCH 0/2] PECI patchset tweaks Zev Weiss
2020-09-26 21:27 ` [PATCH 1/2] peci: fix error-handling in peci_dev_ioctl() Zev Weiss
2020-09-28 19:03   ` Jae Hyun Yoo
2020-09-28 19:09     ` Zev Weiss
2020-09-28 19:37       ` Jae Hyun Yoo
2020-09-29  5:55   ` Joel Stanley
2020-09-26 21:27 ` [PATCH 2/2] peci-cputemp: label CPU cores from zero instead of one Zev Weiss
2020-09-28 19:08   ` Jae Hyun Yoo
2020-09-28 19:54     ` Zev Weiss [this message]
2020-09-28 20:21       ` Jae Hyun Yoo
2020-09-28 21:09         ` Zev Weiss
2020-09-28 21:32           ` Jae Hyun Yoo
2020-09-28 22:02             ` Zev Weiss
2020-09-28 22:20               ` Jae Hyun Yoo
2020-09-29  6:00               ` Joel Stanley
2020-10-06 18:01                 ` Jae Hyun Yoo
2020-10-07  5:39                   ` Joel Stanley
2020-09-28 19:01 ` [PATCH 0/2] PECI patchset tweaks Jae Hyun Yoo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200928195423.3kftebgltdmpronq@hatter.bewilderbeest.net \
    --to=zev@bewilderbeest.net \
    --cc=jae.hyun.yoo@linux.intel.com \
    --cc=james.feist@linux.intel.com \
    --cc=jason.m.bills@linux.intel.com \
    --cc=openbmc@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).