2018-12-17 20:39:32

by Vijay Khemka

[permalink] [raw]
Subject: Re: [Potential Spoof] Re: [PATCH 1/4] ARM: dts: aspeed: Add sensors devices for Facebook



On 12/14/18, 12:42 PM, "Linux-aspeed on behalf of Vijay Khemka" <[email protected] on behalf of [email protected]> wrote:



On 12/14/18, 11:22 AM, "openbmc on behalf of Jae Hyun Yoo" <[email protected] on behalf of [email protected]> wrote:

Hi Vijay,

On 12/14/2018 10:11 AM, Vijay Khemka wrote:
> On 12/13/18, 2:56 PM, "Joel Stanley" <[email protected]> wrote:

<snip>

> > + oemname0 = "MB_P3V3";
> > + oemname1 = "MB_P5V";
> > + oemname2 = "MB_P12V";
> > + oemname3 = "MB_P1V05";
> > + oemname4 = "MB_PVNN_PCH_STBY";
> > + oemname5 = "MB_P3V3_STBY";
> > + oemname6 = "MB_P5V_STBY";
>
> "oemname" isn't part of the upstream bindings. Is this something you
> have patches for?
> This is a workaround field used by dbus-sensors application to avoid overlay for dynamic detection of devices based on json file definition.
>
> Can you please also review other 3 patches in this series.
>
>

These oemname settings should not be added into here. You can add these
information into configuration of entity manager which uses overlay
templates for dbus-sensors. Also, as Joel said, "oemname" isn't part of
the upstream bindings.

Overlay templates from entity manager is not working for fan and adc sensors that's why it is a workaround suggested by James Feist (Author of dbus-sensors).

@[email protected],
Please comment on above patch, please advise if I need to fix this.

Cheers,
Jae





2018-12-17 20:41:29

by James Feist

[permalink] [raw]
Subject: Re: [Potential Spoof] Re: [PATCH 1/4] ARM: dts: aspeed: Add sensors devices for Facebook

On 12/17/18 11:39 AM, Vijay Khemka wrote:
>
>
> On 12/14/18, 12:42 PM, "Linux-aspeed on behalf of Vijay Khemka" <[email protected] on behalf of [email protected]> wrote:
>
>
>
> On 12/14/18, 11:22 AM, "openbmc on behalf of Jae Hyun Yoo" <[email protected] on behalf of [email protected]> wrote:
>
> Hi Vijay,
>
> On 12/14/2018 10:11 AM, Vijay Khemka wrote:
> > On 12/13/18, 2:56 PM, "Joel Stanley" <[email protected]> wrote:
>
> <snip>
>
> > > + oemname0 = "MB_P3V3";
> > > + oemname1 = "MB_P5V";
> > > + oemname2 = "MB_P12V";
> > > + oemname3 = "MB_P1V05";
> > > + oemname4 = "MB_PVNN_PCH_STBY";
> > > + oemname5 = "MB_P3V3_STBY";
> > > + oemname6 = "MB_P5V_STBY";
> >
> > "oemname" isn't part of the upstream bindings. Is this something you
> > have patches for?
> > This is a workaround field used by dbus-sensors application to avoid overlay for dynamic detection of devices based on json file definition.
> >
> > Can you please also review other 3 patches in this series.
> >
> >
>
> These oemname settings should not be added into here. You can add these
> information into configuration of entity manager which uses overlay
> templates for dbus-sensors. Also, as Joel said, "oemname" isn't part of
> the upstream bindings.
>
> Overlay templates from entity manager is not working for fan and adc sensors that's why it is a workaround suggested by James Feist (Author of dbus-sensors).
>
> @[email protected],
> Please comment on above patch, please advise if I need to fix this.

Yes, this is a workaround. It should not be added to your device tree.
This has already been fixed for the fans, someone just needs to spend a
little bit of time to fix the ADCs then it won't be needed.

Thanks,

James


>
> Cheers,
> Jae
>
>
>
>