-
Notifications
You must be signed in to change notification settings - Fork 49
[nvidia-6.14-next] Add Mediatek EINT driver for NVIDIA CX7 hotplug management #220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[nvidia-6.14-next] Add Mediatek EINT driver for NVIDIA CX7 hotplug management #220
Conversation
a26a8cc to
8657477
Compare
|
The PR conatins patch descriptions and sign off but the patch itself is missing sigeoff 8657477 and the author is root. Please fix that. |
|
Can you please point out where the user-space application locates at? I feel the entire process should be contained in the kernel. |
8657477 to
65fc0d0
Compare
a487a07 to
be01c90
Compare
|
|
I do not see the commit fixed and the PR needs to rebase. |
|
Please fix the commit it does not even have Sign-off-by tag and rebase. |
774bd6a to
ff54b4a
Compare
Thanks for the feedback. I have rebased and updated the commit. |
|
d07e29d firmware: arm_ffa: Add support for {un,}registration of framework notifications I’m pretty sure you picked this from this commit in linux-nvidia-6.11 That needs to be indicated, i.e. you need to pick with -x -s and then fix up the tag to indicate where it was picked. e.g. Note: You’ll want to keep the original provenance as well, i.e. there will end up being 2 cherry-picked tags (1 from the upstream pick in 6.11 and 1 for this pick from 6.11). All that said, I’m very confused by this. There are large sections of code missing compared to the original commit. If that is intended, then that needs to be spelled out in the PR and this also becomes a backport instead of just a cherry pick and requires notes in the commit message. 7d0eaad NVIDIA: SAUCE: PCI: Remove duplication in calling pci_acs_ctrl_enabled() This looks like you picked it from somewhere? linux-nvidia-6.11? It needs a pick tag so I know where it came from. 88564c7 iommu: Store either domain or handle in group->pasid_array Why are you picking this? And it’s removing arm_ffa content? 7133aad Revert "NVIDIA: SAUCE: PCI: Remove duplication in calling pci_acs_ctrl_enabled()” You’re reverting the patch that you just added? ff54b4a NVIDIA: SAUCE: MEDIATEK: pinctrl: mediatek: Add eint hotplug driver This driver is used to manage PCIe link for NVIDIA ConnectX-7 (CX7) hot-plug/unplug on DGX Spark. We need to disable PCIe link when CX7 cable plug out happens and enable pcie link when CX7 cable plug in happens. This commit message is way too long. I suspect the intention is for this PR to only contain this commit and the others were due to the branch not being properly rebased? Is this driver upstream? Has it been posted to LKML? |
|
And please add the userspace application too. |
|
|
Why I see like 5 commits, it should be just one commit. Can you check your rebase? |
The commit title/message in the previous PRs for this patch (#186 and #175) can be used as an example.
Please rebase to the current HEAD of the branch and only include this single patch. Feel free to ping me on slack if you run into issues with that.
LKML is Linux Kernel Mailing List. |
ff54b4a to
5150b00
Compare
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
5150b00 to
e56b71d
Compare
Thanks for pointing this out. I initially misunderstood the status of the udev userspace changes. I had believed they hadn’t been merged yet. However, it appears that the primary udev update for the hot-plug driver is already incorporated into the base OS. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing my comments and fixing up the source branch.
I have compared this commit with the version from PR 175 that I already ack'd and confirmed no differences exist. No further issues from me.
Acked-by: Matthew R. Ochs <[email protected]>
e56b71d to
b43ea9a
Compare
|
Updated commit message- Canonical had provided feedback requesting confirmation of a plan and timeframe to migrate to the upstream driver. I’ve updated the commit message and comment accordingly in the PR: it now includes that migration plan and timeframe confirmation. I also added instructions for automated way of testing the driver which was also requested by canonical and additionally included some more details about the driver. |
Unless Canonical specifically wanted them included in the commit message, I think the details you added are better left for the launchpad bug. |
|
@schythanyaku |
…ot plug on DGX Spark
This driver is used to manage PCIe link for NVIDIA ConnectX-7 (CX7)
hot-plug/unplug on DGX Spark. We need to disable PCIe link when
CX7 cable plug out happens and enable PCIe link when
CX7 cable plug in happens.
It also creates a sysfs entry to emulate cable plug in/out
behavior as below:
plug in - echo 1 > /sys/devices/platform/MTKP0001:00/cx7_dbg/plugin
plug out - echo 0 > /sys/devices/platform/MTKP0001:00/cx7_dbg/plugin
We also implement uevent to notify user-space applications when a
cable is plugged in or removed. Below are the details of our process:
* cable plug-in:
Report plug-in uevent (driver)
Power on CX7
Enable PCIe link (application)
Rescan CX7 devices (application)
* cable removal:
Report removal uevent (driver)
Remove CX7 devices (application)
Disable PCIe link (application)
Power off CX7
Signed-off-by: Vaibhav Vyas <[email protected]>
Signed-off-by: Jerry.Guo <[email protected]>
Signed-off-by: Yenchia Chen <[email protected]>
Signed-off-by: Shubhi Garg <[email protected]>
Signed-off-by: Abhishek Sahu <[email protected]>
Signed-off-by: Surabhi Chythanya Kumar <[email protected]>
b43ea9a to
9d2ddd7
Compare
Thanks Matt and Carol for the feedback. I have updated the commit and comment to remove those extra lines and added additional details in the provided launchpad link instead. |
I see the launchpad updated. |
clsotog
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acked-by: Carol L Soto <[email protected]>
|
Applied to noble:nvidia-6.14-next |
|
Merged and present in https://git.launchpad.net/~canonical-kernel/ubuntu/+source/linux-nvidia/+git/noble/log/?h=nvidia-6.14-next Closing PR. |
|
@schythanyaku - Please also submit a PR for this against linux-nvidia-6.17. |
Got it. Thanks. Created a PR for linux-nvidia-6.17 - #228 |
NVIDIA: SAUCE: MEDIATEK: pinctrl: mediatek: Add EINT Driver for CX7 hot plug on DGX Spark
This driver is used to manage PCIe link for NVIDIA ConnectX-7 (CX7)
hot-plug/unplug on DGX Spark. We need to disable PCIe link when
CX7 cable plug out happens and enable pcie link when
CX7 cable plug in happens.
It also creates a sysfs entry to emulate cable plug in/out
behavior as below:
plug in - echo 1 > /sys/devices/platform/MTKP0001:00/cx7_dbg/plugin
plug out - echo 0 > /sys/devices/platform/MTKP0001:00/cx7_dbg/plugin
We also implement uevent to notify user-space applications when a
cable is plugged in or removed. Below are the details of our process:
cable plug-in:
Report plug-in uevent (driver)
Power on CX7
Enable PCIe link (application)
Rescan CX7 devices (application)
cable removal:
Report removal uevent (driver)
Remove CX7 devices (application)
Disable PCIe link (application)
Power off CX7
Signed-off-by: Vaibhav Vyas [email protected]
Signed-off-by: Jerry.Guo [email protected]
Signed-off-by: Yenchia Chen [email protected]
Signed-off-by: Shubhi Garg [email protected]
Signed-off-by: Abhishek Sahu [email protected]
Signed-off-by: Surabhi Chythanya Kumar [email protected]