Skip to content
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

riscv: sim.cc: Parse for other compatible strings if "riscv,plic0" is absent #1314

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

endeneer
Copy link
Contributor

There are three more compatible strings in device tree that point to the same driver,

  • "sifive,plic-1.0.0"
  • "andestech,nceplic100"
  • "thead,c900-plic"

as can be seen from drivers/irqchip/irq-sifive-plic.c in Linux kernel. torvalds/linux@5873ba5

@scottj97
Copy link
Contributor

The kernel file and commit you pointed to say that thead and andes PLICs have different behavior than the first two. (plic_init vs plic_edge_init)

@endeneer endeneer force-pushed the fdt-parse-plic-sifive branch 3 times, most recently from 98ebdb7 to 2dbbcaa Compare April 11, 2023 23:16
@endeneer
Copy link
Contributor Author

endeneer commented Apr 11, 2023

Thanks @scottj97 for pointing that out, I have amended my commit accordingly. :-)

@jerryz123 jerryz123 force-pushed the fdt-parse-plic-sifive branch from 2dbbcaa to 6ca19fb Compare December 11, 2023 22:45
Copy link
Collaborator

@jerryz123 jerryz123 left a comment

Choose a reason for hiding this comment

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

I've rebased this on master. This should be good to merge, pending CI

"riscv,plic0" and "sifive,plic-1.0.0" in device tree's "compatible" string point to the same driver,
as can be seen from drivers/irqchip/irq-sifive-plic.c in Linux kernel.
torvalds/linux@5873ba5
The other two "compatible" strings below isn't included,
because of their different plic behavior (plic_edge_init instead of plic_init as explained in the Linux commit).
- "andestech,nceplic100"
- "thead,c900-plic"

Signed-off-by: Tan En De <[email protected]>
@jerryz123 jerryz123 force-pushed the fdt-parse-plic-sifive branch from 6ca19fb to 87690a9 Compare December 11, 2023 22:50
@jerryz123 jerryz123 merged commit f9cd7ee into riscv-software-src:master Dec 11, 2023
3 checks passed
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.

4 participants