Commit 028ffe6
committed
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]>1 parent 4bf663b commit 028ffe6
File tree
4 files changed
+970
-0
lines changed- debian.nvidia-6.17/config
- drivers/pinctrl/mediatek
4 files changed
+970
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| 210 | + | |
210 | 211 | | |
211 | 212 | | |
212 | 213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
13 | 22 | | |
14 | 23 | | |
15 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
0 commit comments