All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kumar Thangavel <kumarthangavel.hcl@gmail.com>
To: Bruce Mitchell <bruce.mitchell@linux.vnet.ibm.com>
Cc: velumanit@hcl.com, Ed Tanous <edtanous@google.com>,
	Jayashree D <jayashree-d@hcl.com>,
	OpenBMC Maillist <openbmc@lists.ozlabs.org>
Subject: Re: hwmontempsensor issue in dbus-sensor
Date: Mon, 3 Jan 2022 12:40:22 +0530	[thread overview]
Message-ID: <CAA7TbcsoGm+=GH27hVShaLWiu1o=NSn9dG=VS+4_Mgc5vikbuQ@mail.gmail.com> (raw)
In-Reply-To: <5e028060-b1c8-c76d-6093-2560c66822ee@linux.vnet.ibm.com>

[-- Attachment #1: Type: text/plain, Size: 4542 bytes --]

Thanks Bruce for your response.

Please find below the entitymanager hwmon sensor configuration path for our
system.
https://github.com/openbmc/entity-manager/blob/master/configurations/FBYV2.json#L434

Thanks,
Kumar.



On Sat, Jan 1, 2022 at 1:42 AM Bruce Mitchell <
bruce.mitchell@linux.vnet.ibm.com> wrote:

> On 12/31/2021 09:30, Bruce Mitchell wrote:
> > On 12/20/2021 10:29, Ed Tanous wrote:
> >> On Sun, Dec 19, 2021 at 9:11 PM Kumar Thangavel
> >> <kumarthangavel.hcl@gmail.com> wrote:
> >>>
> >>> Hi All,
> >>>
> >>> Gentle Reminder on this.
> >>>
> >>> Thanks,
> >>> Kumar.
> >>>
> >>> On Thu, Dec 16, 2021 at 1:56 PM Kumar Thangavel
> >>> <kumarthangavel.hcl@gmail.com> wrote:
> >>>>
> >>>> Hi All,
> >>>>
> >>>>
> >>>> In dbus-sensors repo, I saw the patch for changes in Hwmon Temp
> Sensor.
> >>>>
> https://github.com/openbmc/dbus-sensors/commit/544e7dc58cecef898fe7d684c3ba0fbce178cf2d#diff-bfc8d7ed4ade4b3519ad3b7fe091f9c79a60faf8a26f410c1568e5341b22b7ab
> >>>>
> >>
> >> Bruce, this is your patch.  Could you take a look at the below and
> >> provide your input?
> >>
> >>>>
> >>>>
> >>>> While testing those changes in my platform, I found that each sensor
> >>>> in hwmon temp has been creating twice.
> >>>> After analyzed the patch, for below 2 paths SP_OUTLET_TEMP sensor is
> >>>> created twice.
> >>>>
> >>>>
> >>>> /sys/class/hwmon/hwmon2/temp2_input
> >>>> /sys/class/hwmon/hwmon2/temp1_input
> >>>>
> >>>>
> >>>> Before your change, hwmon temp sensor will check whether the path is
> >>>> already exists or not.
> >>>> If it exists, it will skip and proceed with next path.
> >>>>
> https://github.com/openbmc/dbus-sensors/commit/544e7dc58cecef898fe7d684c3ba0fbce178cf2d#diff-bfc8d7ed4ade4b3519ad3b7fe091f9c79a60faf8a26f410c1568e5341b22b7abL96
> >>>>
> >>>>
> >>>>
> >>>> Could you please explain why it is creating twice in hwmon temp ?
> >>>>
> >>>>
> >>>> Journalctl log before your changes applied :
> >>>>
> >>>>
> >>>> Dec 31 16:01:32 yosemitev2 hwmontempsensor[286]: Path :
> >>>> "/sys/class/hwmon/hwmon2/temp2_input"
> >>>> Dec 31 16:01:32 yosemitev2 hwmontempsensor[286]: Type :
> >>>> xyz.openbmc_project.Configuration.TMP421
> >>>> Dec 31 16:01:32 yosemitev2 hwmontempsensor[286]: Name : SP_OUTLET_TEMP
> >>>> Dec 31 16:01:32 yosemitev2 hwmontempsensor[286]: Dbus path :
> >>>> /xyz/openbmc_project/sensors/temperature/SP_OUTLET_TEMP
> >>>> Dec 31 16:01:32 yosemitev2 hwmontempsensor[286]: Dbus path :
> >>>> /xyz/openbmc_project/sensors/temperature/SP_OUTLET_REMOTE_TEMP
> >>>> Dec 31 16:01:32 yosemitev2 hwmontempsensor[286]: Path :
> >>>> "/sys/class/hwmon/hwmon2/temp1_input"
> >>>>
> >>>>
> >>>>
> >>>> Journalctl log after your changes applied :
> >>>>
> >>>>
> >>>> Dec 31 16:01:54 yosemitev2 hwmontempsensor[327]: Path :
> >>>> "/sys/class/hwmon/hwmon2/temp2_input"
> >>>> Dec 31 16:01:54 yosemitev2 hwmontempsensor[327]: Sensor type :
> >>>> xyz.openbmc_project.Configuration.TMP421
> >>>> Dec 31 16:01:54 yosemitev2 hwmontempsensor[327]: Name : SP_OUTLET_TEMP
> >>>> Dec 31 16:01:54 yosemitev2 hwmontempsensor[327]: Path :
> >>>> /xyz/openbmc_project/sensors/temperature/SP_OUTLET_TEMP
> >>>> Dec 31 16:01:54 yosemitev2 hwmontempsensor[327]: Path :
> >>>> /xyz/openbmc_project/sensors/temperature/SP_OUTLET_REMOTE_TEMP
> >>>>
> >>>>
> >>>> Dec 31 16:01:54 yosemitev2 hwmontempsensor[327]: Path :
> >>>> "/sys/class/hwmon/hwmon2/temp1_input"
> >>>> Dec 31 16:01:54 yosemitev2 hwmontempsensor[327]: Sensor type :
> >>>> xyz.openbmc_project.Configuration.TMP421
> >>>> Dec 31 16:01:54 yosemitev2 hwmontempsensor[327]: Name : SP_OUTLET_TEMP
> >>>> Dec 31 16:01:54 yosemitev2 hwmontempsensor[327]: Path :
> >>>> /xyz/openbmc_project/sensors/temperature/SP_OUTLET_TEMP
> >>>> Dec 31 16:01:54 yosemitev2 hwmontempsensor[327]: Path :
> >>>> /xyz/openbmc_project/sensors/temperature/SP_OUTLET_REMOTE_TEMP
> >>>>
> >>>>
> >>>>
> >>>> Thanks,
> >>>>
> >>>> Kumar.
> >
> > I will give it quick look today.  Also today is my last day at IBM.
> >
>
> The problem I had to solve was that I was adding devices
> (DPS310 and Si7020 type) that has more than one sensor type
> per device, in this case under /sys/bus/iio/devices .
> So the loop cannot continue after finding the first sensor of
> the device.  I have not seen p10bmc /sys/class/hwmon temperature
> sensors being created twice, in this case the TMP75.
>
> What is the entity-manager configuration for your system?
> I suspect that the dbus-sensors Hwmon does not take into account
> some detail that is needs to related to entity-manager.
>
>
>

[-- Attachment #2: Type: text/html, Size: 7015 bytes --]

  reply	other threads:[~2022-01-03  7:09 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-16  8:26 hwmontempsensor issue in dbus-sensor Kumar Thangavel
2021-12-20  5:12 ` Kumar Thangavel
2021-12-20 18:29   ` Ed Tanous
2021-12-31 17:30     ` Bruce Mitchell
2021-12-31 20:12       ` Bruce Mitchell
2022-01-03  7:10         ` Kumar Thangavel [this message]
2022-01-03 17:20       ` Ed Tanous
2022-01-03 21:09         ` Patrick Williams
2022-01-04  7:36           ` Kumar Thangavel
2022-01-04 14:35             ` Matt Spinler
2022-01-04 15:01               ` Kumar Thangavel
2022-01-04 18:38           ` Ed Tanous
2022-01-06 12:54             ` Kumar Thangavel

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='CAA7TbcsoGm+=GH27hVShaLWiu1o=NSn9dG=VS+4_Mgc5vikbuQ@mail.gmail.com' \
    --to=kumarthangavel.hcl@gmail.com \
    --cc=bruce.mitchell@linux.vnet.ibm.com \
    --cc=edtanous@google.com \
    --cc=jayashree-d@hcl.com \
    --cc=openbmc@lists.ozlabs.org \
    --cc=velumanit@hcl.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.