-
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
BEU <-> HART link added in DTS #2373
Conversation
Can you put an example of the emitted DTS in the PR notes? |
Done. (kept only relevant-to-the-PR content) |
Thank you! I assume in that example |
Yes, that is right. |
src/main/scala/tile/RocketTile.scala
Outdated
@@ -88,11 +88,15 @@ class RocketTile private( | |||
|
|||
val itimProperty = frontend.icache.itimProperty.toSeq.flatMap(p => Map("sifive,itim" -> p)) | |||
|
|||
val beuProperty = bus_error_unit.map(d => Map( | |||
"sifive,buserror0" -> d.device.asProperty)).getOrElse(Nil) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be more idiomatic and readable to call .toSeq
instead of .getOrElse(Nil)
.
Also, do we actually want to call this sifive,buserror0
or should it just be sifive,buserror
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be not be "sifive,buserror0", but simply be "sifive,buserror" as the version as described in the compatible string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mwachs5 its a plain string - it will show up in the dts as is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well i see that string in the DTS above in 2 places. I thought that @bsousi5 was saying in the "compat" he expected it to say sifive,buserror0 but the device type to be sifive,buserror
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, just to not create any confusion, the dts in the release notes (updated above) is how the generated dts looks:
- In the cpu component listing:
buserror0
is now ->buserror
- Compatible field in the 'bus_error_unit' component still lists
sifive_buserror0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! @bsousi5 if that looks good to you can you please approve the PR? If that's not enough to make it mergable i will approve it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am good with what @mhtwn commented and shown in the release note above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems I don't have the permission to hit the approve button. So @mwachs5, you need to approve.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do. So I’ve approved based on your, @richardxia and @mwachs5’s reviews.
cc @bsousi5 @nategraff-sifive, who should comment on the actual produced DTS. |
BEU name update Co-Authored-By: Megan Wachs <megan@sifive.com>
Related issue:
Type of change: other enhancement
Impact: no functional change
Development Phase:implementation
Release Notes
The CPU section in the generated DTS file will have link to the associated BEU. This should help downstream software flows.
Example of the emitted DTS (updated):