Details
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
No necessarily changes but the LinuxKPI dev_is_pci() variant should get more careful checking (especially in drm land; I believe wireless is fine).
| sys/compat/linuxkpi/common/include/linux/pci.h | ||
|---|---|---|
| 401–402 | This seems wrong, doesn't it one or the other way (before or now)? | |
| sys/dev/iommu/busdma_iommu.c | ||
| 120 | Could move some of them into a smaller scope; at least for pcip and pcibp that would make sense now. | |
| sys/compat/linuxkpi/common/include/linux/pci.h | ||
|---|---|---|
| 401–402 | Yea. All the others check the parent. This checks the device | |
| sys/compat/linuxkpi/common/include/linux/pci.h | ||
|---|---|---|
| 401–402 | Oh humm, so it is. I wonder if the old version of this was broken though. The code on Linux appears to be testing a leaf device not a PCI bus device, in particular see how it is used in dev_is_pf in the next line which clearly assumes that it is operating on a PF, not a logical bus: That said, that means this change should be its own followup commit as a fix for a pre-existing bug, or perhaps I should fix it to check the parent first? | |
| sys/dev/iommu/busdma_iommu.c | ||
|---|---|---|
| 120 | Possibly, though that adds more noise to the diff? It's also true that pcip isn't really needed either if one is content with a nested call to device_get_parent. | |
| sys/compat/linuxkpi/common/include/linux/pci.h | ||
|---|---|---|
| 401–402 | Can you do a quick fix in main and then rebase this on top? I'd try to approve as son as I see it. | |