-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Pci fixbug #13657
Merged
Merged
Pci fixbug #13657
+32
−21
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lipengfei28
force-pushed
the
pci_fixbug
branch
from
September 27, 2024 03:58
036161e
to
18bdb52
Compare
github-actions
bot
added
Area: PCI
Size: S
The size of the change in this PR is small
labels
Sep 27, 2024
[Experimental Bot, please feedback here] NuttX PR Requirements ReviewThis PR appears incomplete. Here's a breakdown based on the provided information: Summary:
Impact:
Testing:
Conclusion: This PR needs significant work to meet NuttX standards. Focus on clarity, completeness, and providing concrete evidence of both the problem and the solution. |
xiaoxiang781216
approved these changes
Sep 27, 2024
pci/pci.c:415:34: warning: variable ‘res’ set but not used [-Wunused-but-set-variable] 415 | FAR struct pci_resource_s *res; | ^~~ pci/pci.c: In function ‘pci_scan_bus’: pci/pci.c:663:32: warning: unused variable ‘ctrl’ [-Wunused-variable] 663 | FAR struct pci_controller_s *ctrl = bus->ctrl; Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
pci/pci.c:863:66: warning: right shift count >= width of type [-Wshift-count-overflow] 863 | pci_write_config_dword(dev, msi + PCI_MSI_ADDRESS_HI, (mar >> 32)); Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
"/mnt/yang/qixinwei_vela_warnings_04_23/nuttx/include/nuttx/pci/pci_regs.h", line 263: warning apache#1695-D: trigraphs not allowed #define PCI_PM_CTRL_DATA_SEL_MASK 0x1e00 /* Data select (??) */ ^ "/mnt/yang/qixinwei_vela_warnings_04_23/nuttx/include/nuttx/pci/pci_regs.h", line 264: warning apache#1695-D: trigraphs not allowed #define PCI_PM_CTRL_DATA_SCALE_MASK 0x6000 /* Data scale (??) */ ^ "/mnt/yang/qixinwei_vela_warnings_04_23/nuttx/include/nuttx/pci/pci_regs.h", line 266: warning apache#1695-D: trigraphs not allowed #define PCI_PM_PPB_EXTENSIONS 6 /* PPB support extensions (??) */ ^ "/mnt/yang/qixinwei_vela_warnings_04_23/nuttx/include/nuttx/pci/pci_regs.h", line 267: warning apache#1695-D: trigraphs not allowed #define PCI_PM_PPB_B2_B3 0x40 /* Stop clock when in D3hot (??) */ ^ "/mnt/yang/qixinwei_vela_warnings_04_23/nuttx/include/nuttx/pci/pci_regs.h", line 268: warning apache#1695-D: trigraphs not allowed #define PCI_PM_BPCC_ENABLE 0x80 /* Bus power/clock control enable (??) */ ^ "/mnt/yang/qixinwei_vela_warnings_04_23/nuttx/include/nuttx/pci/pci_regs.h", line 269: warning apache#1695-D: trigraphs not allowed #define PCI_PM_DATA_REGISTER 7 /* (??) */ Signed-off-by: yanghuatao <yanghuatao@xiaomi.com>
pci/pci_qemu_test.c:218:6: warning: ‘ops’ may be used uninitialized [-Wmaybe-uninitialized] 218 | ops->write(dev->bus, &hdr->test, num, sizeof(num)); | ~~~^~~~~~~ pci/pci_qemu_test.c: In function ‘pci_qemu_test_probe’: pci/pci_qemu_test.c:286:41: note: ‘ops’ was declared here 286 | FAR const struct pci_qemu_test_ops_s *ops; | Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
pci/pci.c:1128:15: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=] 1128 | pciinfo("Limit MME to %x, num to %d\n", mmc, num); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ | | | uint32_t {aka long unsigned int} pci/pci.c:1128:30: note: format string is defined here 1128 | pciinfo("Limit MME to %x, num to %d\n", mmc, num); | ~^ | | | unsigned int | %lx Signed-off-by: Yongrong Wang <wangyongrong@xiaomi.com>
Now all the type of devfn in pci framework are unsigned int Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
lipengfei28
force-pushed
the
pci_fixbug
branch
from
September 27, 2024 06:32
818d80d
to
637cf27
Compare
xiaoxiang781216
approved these changes
Sep 27, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
1.pci.c: fix warning when CONFIG_PCI_ASSIGN_ALL_BUSES=n
2.pci.c: fix pci 32bit warning
3.toolchain/ghs: Fix ?? "trigraphs not allowed" warnings
4.pci_qemu_test.c: fix compiler warning
5.change all devfn type to unsigned int
6.one pci device should only associate with one driver
Impact
Testing