Skip to content

Update of PCI scanning process in fdt #425

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

duanyu-yu
Copy link
Contributor

The idea needs to be checked to ensure it is correct. Still have to fix the CI errors.

@mkroening mkroening self-assigned this Jan 13, 2025
@duanyu-yu duanyu-yu force-pushed the pci branch 8 times, most recently from ac50cda to 3eda3ca Compare February 21, 2025 16:18
Copy link
Member

@mkroening mkroening left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some initial comments. I have not looked at the details yet.

let pci_node = fdt.begin_node("pci")?;
fdt.property_string("device_type", "pci")?;

// TODO: Address cells and size cells should be 3 and 2 respectively. 1 and 1 are only used for compatibility with devicetree output tool.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this TODO still relevant?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Due to the fdt output in the command line, the cells have to be 1 and 1 for now. But this is not standard. If we want a standard device tree, we have to configure the output tool first and change the cells respectively. So the question is do we need a standard device tree?

@duanyu-yu duanyu-yu force-pushed the pci branch 3 times, most recently from e99639b to 362269f Compare February 23, 2025 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants