Skip to contentSkip to conversation

GXP support into OpenBMC kernel

DISCUSSION Verdun, Jean-Marie 3 participants 7 messages Apr 5, 2023 – Apr 11, 2023

lore
Share & tools
lore
#0 lore raw

Hi Joel,

We made tremendous progress during the past year regarding the enablement of GXP into the linux kernel. We followed a path to directly upstream into the linux kernel, and we will probably pursue that approach as nick has established contacts with the various kernel maintainers including you. We are getting used to the process even if it has been a rollercoaster initially.

With that said, we are going to upstream shortly the support for various platforms including:

  *   RL300 Gen 11 . A 1U based machine which support Ampere Altra family
  *   DL3x5 family / 1U and 2U AMD based platforms
  *   DL3x0 family / 1U and 2U Intel based platforms

We built PoC for all of these platforms during hardware bring up, as to be sure that we have deep understanding of what might be needed to make work OpenBMC. We are now in a way much better shape regarding this understanding and will start by the RL300. During the PoC we have enabled support with a 5.10 kernel, which is outdated, and Nick is now working on a 6.2 stream.

From what we saw the current kernel for OpenBMC is 6.1 based. What is the plan to move release up ? No worries, we are just trying to align our agenda with yours, knowing that we have newer stuff coming up into 6.2. A backport shall be easier than moving the crappy stuff we made into 5.10.

Would you like us to rely on OpenBMC linux kernel, or just what is available upstream, to avoid to backport our stuff ? We are open to both option, even if I rather prefer option 1, as it will lower workload to everybody.

JM

#1 lore raw
Quoted 1 line · Jean-Marie

We made tremendous progress during the past year regarding the enablement of GXP into the linux kernel. We followed a path to directly upstream into the linux kernel, and we will probably pursue that approach as nick has established contacts with the various kernel maintainers including you. We are getting used to the process even if it has been a rollercoaster initially.

Great work. I saw you presented your work recently and read some good feedback on social media.

Quoted 1 line

Would you like us to rely on OpenBMC linux kernel, or just what is available upstream, to avoid to backport our stuff ? We are open to both option, even if I rather prefer option 1, as it will lower workload to everybody.

For now we will stay with the 6.1 tree, as it is a LTS upstream and there's still some groups who chose to maintain their own patches on top of the openbmc tree who are only just catching up. The intent of the openbmc tree is to avoid this fragmentation, and have our work progress all in one place.

I would be happy to take backports of anything that you have upstream into 6.1. We can also take work in progress drivers that are on the upstream lists, as long as we all agree that work will continue to get that code into mainline.

Cheers,

Joel

#2 lore raw

Hi Joel,

Thanks for your answer. Here is the process that I propose, let me know if that doesn't match your expectation.

- We keep upstreaming into 6.2x and we will warn you about need to backport (I hope it will be easy but I think it will be the case)
- In parallel, we start enabling some of our gen11 machines into openbmc repo and point to standard openbmc kernel. We have decided to have a fine grain process to upstream and do it one step at a time. That might look like a little bit overkill, but I think that will be efficient.
- When we identify potential bottleneck, we discuss through the mailing list about them, and get your feedbacks on how to process.

We would like to apply the same approach with u-boot, if that is ok for you ?

JM



#3 lore raw
Quoted 6 lines · Jean-Marie

Hi Joel,

Thanks for your answer. Here is the process that I propose, let me know if that doesn't match your expectation.

- We keep upstreaming into 6.2x and we will warn you about need to backport (I hope it will be easy but I think it will be the case)

You can't upstream to 6.2, that is already released. Did you mean mainline? That would be 6.4, although realistically if you don't have patches merged yet then you're targeting 6.5.

Quoted 1 line

- In parallel, we start enabling some of our gen11 machines into openbmc repo and point to standard openbmc kernel. We have decided to have a fine grain process to upstream and do it one step at a time. That might look like a little bit overkill, but I think that will be efficient.

Yes, that's a good plan.

I've picked all of the GXP patches from mainline that were merged after 6.1 that I could find. Take a look here, if it looks okay I'll merge them into the openbmc tree:

https://github.com/shenki/linux/commits/dev-6.1

Quoted 3 lines

- When we identify potential bottleneck, we discuss through the mailing list about them, and get your feedbacks on how to process.

We would like to apply the same approach with u-boot, if that is ok for you

u-boot is a bit harder. I would prefer not to apply them to the 4 year old aspeed tree, as that is already too old. Instead we could start a new branch based on the most recent release.

Cheers,

Joel

Reviewed-by
#4 lore raw
Quoted 6 lines

I've picked all of the GXP patches from mainline that were merged after 6.1 that I could find. Take a look here, if it looks okay I'll merge them into the openbmc tree:

https://github.com/shenki/linux/commits/dev-6.1

Hi Joel,

This looks great! Thank you for doing this.

On a side note just for your FYI:
There is a planned slight modification to the fan driver that I will be sending up for review in upstream. We will be pulling its access to the fn2 registers and moving that check into GPIO. We also will hopefully be adding a way for a new GPIO driver to grab fan data from the fan driver.

-Nick

#5 lore raw
Quoted 6 lines · Nick
Quoted 5 lines

I've picked all of the GXP patches from mainline that were merged after 6.1 that I could find. Take a look here, if it looks okay I'll merge them into the openbmc tree:

Quoted 7 lines
Quoted 1 line

https://github.com/shenki/linux/commits/dev-6.1

Hi Joel,

This looks great! Thank you for doing this.

I've pushed that out now.

Quoted 6 lines

On a side note just for your FYI:
There is a planned slight modification to the fan driver that I will be sending up for review in upstream. We will be pulling its access to the fn2 registers and moving that check into GPIO. We also will hopefully be adding a way for a new GPIO driver to grab fan data from the fan driver.

Okay, good luck!

From here on in, whenever patches are ready for inclusion then please send me a link to the mailing list submission, or to the upstream git SHA.

The rule is anything being actively submitted for upstream inclusion is able to be put in the openbmc tree. This means code that is ready but hasn't made the merge window, or patches that are reviewed but the upstream maintainer is slow to merge.

Cheers,

Joel

#6 lore raw
In reply to Joel Stanley
Quoted 4 lines

You can't upstream to 6.2, that is already released. Did you mean mainline? That would be 6.4, although realistically if you don't have patches merged yet then you're targeting 6.5.

Yes, you are right. Sorry for the version mismatch. I was meaning mainline.

Quoted 5 lines

I've picked all of the GXP patches from mainline that were merged after 6.1 that I could find. Take a look here, if it looks okay I'll merge them into the openbmc tree:

https://github.com/shenki/linux/commits/dev-6.1 <https://github.com/shenki/linux/commits/dev-6.1>

I just checked them and they looked ok. Nick is currently upstreaming the GPIO driver which is part of the core requirement too. We will let you know as soon as it is in. @Hawkins, Nick can you confirm to Jeol, that you are good with the patches he cherry picked an backported ?

Quoted 3 lines

u-boot is a bit harder. I would prefer not to apply them to the 4 year old aspeed tree, as that is already too old. Instead we could start a new branch based on the most recent release.

We soon have upstream stuff into u-boot mainline for GXP. Can you have a look ?

JM