{"id":21113549,"url":"https://github.com/liulingxi2/pcihw-test","last_synced_at":"2026-01-29T23:03:04.147Z","repository":{"id":263647675,"uuid":"890939433","full_name":"LiuLingXi2/pcihw-test","owner":"LiuLingXi2","description":"pcie controller and register test from nvme/net/usb","archived":false,"fork":false,"pushed_at":"2024-11-25T14:28:44.000Z","size":24843,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-06T18:42:41.475Z","etag":null,"topics":["linux-kernel","os","qemu-system-aarch64"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LiuLingXi2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-19T12:57:40.000Z","updated_at":"2024-11-30T01:15:51.000Z","dependencies_parsed_at":"2025-03-14T10:34:38.245Z","dependency_job_id":null,"html_url":"https://github.com/LiuLingXi2/pcihw-test","commit_stats":null,"previous_names":["liulingxi2/pcihw-test"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LiuLingXi2/pcihw-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiuLingXi2%2Fpcihw-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiuLingXi2%2Fpcihw-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiuLingXi2%2Fpcihw-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiuLingXi2%2Fpcihw-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LiuLingXi2","download_url":"https://codeload.github.com/LiuLingXi2/pcihw-test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiuLingXi2%2Fpcihw-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28889863,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T21:06:44.224Z","status":"ssl_error","status_checked_at":"2026-01-29T21:06:42.160Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["linux-kernel","os","qemu-system-aarch64"],"created_at":"2024-11-20T01:54:20.092Z","updated_at":"2026-01-29T23:03:04.129Z","avatar_url":"https://github.com/LiuLingXi2.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pcihw-test\n\n## nvme architect\n\n```shell\n/ # lspci -v\n00:00.0 Class 0600: Device 1b36:0008\n00:01.0 Class 0200: Device 1af4:1000\n00:02.0 Class 0c03: Device 1b36:000d (rev 01)\n00:03.0 Class 0604: Device 1b36:0001\n01:04.0 Class 0108: Device 1b36:0010 (rev 02)\n01:05.0 Class 0108: Device 1b36:0010 (rev 02)\n\n01:04.0 Class 0108: Device 1b36:0010 (rev 02) (prog-if 02)\n        Subsystem: Device 1af4:1100\n        Flags: bus master, fast devsel, latency 0, IRQ 49, NUMA node 0\n        Memory at 10000000 (64-bit, non-prefetchable) [size=16K]\n        Capabilities: [40] MSI-X: Enable+ Count=65 Masked-\n        Capabilities: [80] Express Endpoint, MSI 00\n        Capabilities: [60] Power Management version 3\n        Kernel driver in use: nvme\n\n01:05.0 Class 0108: Device 1b36:0010 (rev 02) (prog-if 02)\n        Subsystem: Device 1af4:1100\n        Flags: bus master, fast devsel, latency 0, IRQ 55, NUMA node 0\n        Memory at 10004000 (64-bit, non-prefetchable) [size=16K]\n        Capabilities: [40] MSI-X: Enable+ Count=65 Masked-\n        Capabilities: [80] Express Endpoint, MSI 00\n        Capabilities: [60] Power Management version 3\n        Kernel driver in use: nvme\n```\n\nIt is clear from the above that the nvme enable msi-x interrupt, and we can look the mis-x number by its mechanism from gic by default(may be spi(\u003e8192))\n\n \n## busybox\n\n\n\n\n## pciutils\n\nThe lspci tool belong to busybox is so simple, so we need to have the protozoa lspci by compile pciutils\n\ngithub: https://github.com/pciutils/pciutils\n\ncompile step:\n- modify Makefile: \n        ```shell\n        # Host OS and release (override if you are cross-compiling)\n        HOST=arm-linux\n        RELEASE=\n        CROSS_COMPILE=aarch64-linux-gnu-\n\n        # Support for compressed pci.ids (yes/no, default: detect)\n        ZLIB=no\n\n        # Support for resolving ID's by DNS (yes/no, default: detect)\n        DNS=no\n        ```\n- make -j$(nproc)\n- if the default file type is dynamic shared, but we need static, so we may add the compila flags: CFLAGS=\"-static\" LDFLAGS=\"-static\".(i can not find the LDFLAGS, so simply add the compile flags mandatory)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliulingxi2%2Fpcihw-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliulingxi2%2Fpcihw-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliulingxi2%2Fpcihw-test/lists"}