Commit ed7f4ba
committed
NVIDIA: SAUCE: PCI: quirks: mirror PI7C9X3G606GPC Port 4 BAR0
Some Pericom/Diodes PI7C9X3G606GPC switches require downstream Port 4
BAR0 to mirror the upstream port BAR0. Firmware may apply this during
boot, but Linux PCI resource assignment can move the upstream BAR0 and
leave Port 4 without the required mirror.
Add a final and resume quirk for downstream Port 4. The quirk verifies
that the immediate upstream bridge is the same switch, then writes Port 4
BAR0 from the upstream BAR0 after resource assignment and after resume.
Port 4 BAR0 may read back as zero even after a successful write, so the
write must be validated by platform-specific means.
BugLink: https://nvbugspro.nvidia.com/bug/6205517
BugLink: https://nvbugspro.nvidia.com/bug/6134331
Signed-off-by: Nirmoy Das <nirmoyd@nvidia.com>
(cherry picked from commit 31881cf)1 parent 704a746 commit ed7f4ba
2 files changed
Lines changed: 55 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6282 | 6282 | | |
6283 | 6283 | | |
6284 | 6284 | | |
| 6285 | + | |
| 6286 | + | |
| 6287 | + | |
| 6288 | + | |
| 6289 | + | |
| 6290 | + | |
| 6291 | + | |
| 6292 | + | |
| 6293 | + | |
| 6294 | + | |
| 6295 | + | |
| 6296 | + | |
| 6297 | + | |
| 6298 | + | |
| 6299 | + | |
| 6300 | + | |
| 6301 | + | |
| 6302 | + | |
| 6303 | + | |
| 6304 | + | |
| 6305 | + | |
| 6306 | + | |
| 6307 | + | |
| 6308 | + | |
| 6309 | + | |
| 6310 | + | |
| 6311 | + | |
| 6312 | + | |
| 6313 | + | |
| 6314 | + | |
| 6315 | + | |
| 6316 | + | |
| 6317 | + | |
| 6318 | + | |
| 6319 | + | |
| 6320 | + | |
| 6321 | + | |
| 6322 | + | |
| 6323 | + | |
| 6324 | + | |
| 6325 | + | |
| 6326 | + | |
| 6327 | + | |
| 6328 | + | |
| 6329 | + | |
| 6330 | + | |
| 6331 | + | |
| 6332 | + | |
| 6333 | + | |
| 6334 | + | |
| 6335 | + | |
| 6336 | + | |
| 6337 | + | |
| 6338 | + | |
6285 | 6339 | | |
6286 | 6340 | | |
6287 | 6341 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1845 | 1845 | | |
1846 | 1846 | | |
1847 | 1847 | | |
| 1848 | + | |
1848 | 1849 | | |
1849 | 1850 | | |
1850 | 1851 | | |
| |||
0 commit comments