2024-01-12 07:10:53

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH v1 1/2] dt-bindings: arm: nuvoton: add Facebook Yosemite 4 board

On 12/01/2024 02:36, Delphine CC Chiu wrote:
> Document the new compatibles used on Facebook Yosemite 4.

There is Yosemite4 board already supported. What is this for?
https://lore.kernel.org/all/[email protected]/

Best regards,
Krzysztof



2024-01-12 17:10:44

by Patrick Williams

[permalink] [raw]
Subject: Re: [PATCH v1 1/2] dt-bindings: arm: nuvoton: add Facebook Yosemite 4 board

On Fri, Jan 12, 2024 at 08:10:25AM +0100, Krzysztof Kozlowski wrote:
> On 12/01/2024 02:36, Delphine CC Chiu wrote:
> > Document the new compatibles used on Facebook Yosemite 4.
>
> There is Yosemite4 board already supported. What is this for?
> https://lore.kernel.org/all/[email protected]/

Yosemite4 is a server chassis which is managed by a BMC. The BMC is on
a pluggable module card. Typically we've used Aspeed chips for this,
but we are building an alternative BMC module using Nuvoton BMC chips.

We will end up with two different BMC chips / images that could be
managing the same server hardware. Since the Aspeed and Nuvoton chips
are different there are unfortunately 2 device trees (one for each chip).

Please let us know if there is a better way to document this.

--
Patrick Williams


Attachments:
(No filename) (860.00 B)
signature.asc (849.00 B)
Download all attachments

2024-01-12 17:14:39

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH v1 1/2] dt-bindings: arm: nuvoton: add Facebook Yosemite 4 board

On 12/01/2024 18:10, Patrick Williams wrote:
> On Fri, Jan 12, 2024 at 08:10:25AM +0100, Krzysztof Kozlowski wrote:
>> On 12/01/2024 02:36, Delphine CC Chiu wrote:
>>> Document the new compatibles used on Facebook Yosemite 4.
>>
>> There is Yosemite4 board already supported. What is this for?
>> https://lore.kernel.org/all/[email protected]/
>
> Yosemite4 is a server chassis which is managed by a BMC. The BMC is on
> a pluggable module card. Typically we've used Aspeed chips for this,
> but we are building an alternative BMC module using Nuvoton BMC chips.

There are few ways to solve this, like having different compatibles or
having some shared compatibles to note common part of hardware. However
usually the final compatible represents the final device, which here you
use for two entirely different products. This works only for the cases
of carrier boards, where that compatible indeed represents the same
hardware.

Not your case. This needs fixing.

Best regards,
Krzysztof


2024-01-12 17:42:15

by Patrick Williams

[permalink] [raw]
Subject: Re: [PATCH v1 1/2] dt-bindings: arm: nuvoton: add Facebook Yosemite 4 board

On Fri, Jan 12, 2024 at 06:14:26PM +0100, Krzysztof Kozlowski wrote:
> On 12/01/2024 18:10, Patrick Williams wrote:
> > On Fri, Jan 12, 2024 at 08:10:25AM +0100, Krzysztof Kozlowski wrote:
> >> On 12/01/2024 02:36, Delphine CC Chiu wrote:
> >>> Document the new compatibles used on Facebook Yosemite 4.
> >>
> >> There is Yosemite4 board already supported. What is this for?
> >> https://lore.kernel.org/all/[email protected]/
> >
> > Yosemite4 is a server chassis which is managed by a BMC. The BMC is on
> > a pluggable module card. Typically we've used Aspeed chips for this,
> > but we are building an alternative BMC module using Nuvoton BMC chips.
>
> There are few ways to solve this, like having different compatibles or
> having some shared compatibles to note common part of hardware. However
> usually the final compatible represents the final device, which here you
> use for two entirely different products. This works only for the cases
> of carrier boards, where that compatible indeed represents the same
> hardware.
>
> Not your case. This needs fixing.

This patch:
+ model = "Facebook Yosemite 4 BMC";
+ compatible = "facebook,yosemite4-n-bmc", "nuvoton,npcm845";

Aspeed patch:
+ model = "Facebook Yosemite 4 BMC";
+ compatible = "facebook,yosemite4-bmc", "aspeed,ast2600";

These have different compatibles already ('-n' for Nuvoton). Do we just
need the model to be clearly different also? Maybe there is something
else I'm not understanding.

--
Patrick Williams


Attachments:
(No filename) (1.54 kB)
signature.asc (849.00 B)
Download all attachments

2024-01-12 17:46:42

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH v1 1/2] dt-bindings: arm: nuvoton: add Facebook Yosemite 4 board

On 12/01/2024 18:42, Patrick Williams wrote:
> On Fri, Jan 12, 2024 at 06:14:26PM +0100, Krzysztof Kozlowski wrote:
>> On 12/01/2024 18:10, Patrick Williams wrote:
>>> On Fri, Jan 12, 2024 at 08:10:25AM +0100, Krzysztof Kozlowski wrote:
>>>> On 12/01/2024 02:36, Delphine CC Chiu wrote:
>>>>> Document the new compatibles used on Facebook Yosemite 4.
>>>>
>>>> There is Yosemite4 board already supported. What is this for?
>>>> https://lore.kernel.org/all/[email protected]/
>>>
>>> Yosemite4 is a server chassis which is managed by a BMC. The BMC is on
>>> a pluggable module card. Typically we've used Aspeed chips for this,
>>> but we are building an alternative BMC module using Nuvoton BMC chips.
>>
>> There are few ways to solve this, like having different compatibles or
>> having some shared compatibles to note common part of hardware. However
>> usually the final compatible represents the final device, which here you
>> use for two entirely different products. This works only for the cases
>> of carrier boards, where that compatible indeed represents the same
>> hardware.
>>
>> Not your case. This needs fixing.
>
> This patch:
> + model = "Facebook Yosemite 4 BMC";
> + compatible = "facebook,yosemite4-n-bmc", "nuvoton,npcm845";
>
> Aspeed patch:
> + model = "Facebook Yosemite 4 BMC";
> + compatible = "facebook,yosemite4-bmc", "aspeed,ast2600";
>
> These have different compatibles already ('-n' for Nuvoton). Do we just
> need the model to be clearly different also? Maybe there is something
> else I'm not understanding.

Ah, no, it's fine. It is just a bit confusing.

However commit msg for sure misses a lot of this explanation. Please
write something useful to avoid such discussions...

Best regards,
Krzysztof