-
Notifications
You must be signed in to change notification settings - Fork 0
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
Debug ACT for Native Triggers #7
Comments
Per 4/11 email from Prasanna:
|
Was busy on other items, same status as previous. |
Will keep this on the Agenda for discussion as we work to find a way to offload this effort based on Zfinx, Zfh running long and new work in Zdinx and Zhinx. I've started a discussion with @timsifive and @pdonahue-ventana to explore contingencies. |
Because this work has stalled, setting to "Blocked". |
Have Dusted off the debug ACT Matrix to finish the work at some quantifiable milestone. Shall send it for Tim's review before next meeting. This to complete the tasks which was started earlier, rather leave it in the middle. |
We discussed this today in the Debug TG call without any takers. So, we shall see. Tim and Paul understand that without a volunteer, this may take us some time to get to. |
@timsifive, @pdonahue-ventana, any volunteers to help here yet? |
I haven't heard from anyone. |
Comment from most recent ARC minutes (July 10) - link
Also note, this remains on the list of future DevPartners activities. It will be addressed AFTER Pointer Masking and the Floating Point gap work work (Zdinx, Zhinx). |
Assigning back to IITM now that Zfinx/Zfh/Zdinx/Zhinx are wrapping up. @ptprasanna, please dust off the coverage matrix and begin working on tests using Spike or QEMU. Technical questions can be directed to @timsifive. |
@ptprasanna, this item is getting close to Freeze. As such, I'd like to understand the progress we've made in our next meeting. Please either attend or post status at your earliest convenience. |
@jjscheel - Here are the updates from IITM
|
Debugger existing test logs are placed in the below links: https://gitlab.com/ptprasanna/actreports/-/tree/main/debugger/spike%2032?ref_type=heads in spike32. |
This is good news, @ptprasanna and @anuani21! @timsifive, note the progress. |
Note that all tests in riscv-tests/debug test debugging through an external debugger. None of them test native trigger behavior, where a trigger is set and when it is hit the hart takes a debug exception. |
@ptprasanna, I would like an update in the issue, by the next meeting on December 12, 2023, please. |
@jjscheel, Based on the coverage matrix, I have started writing tests for native trigger behavior.I will able to share the draft by next meeting. |
@anuani21, may I please get an update here? |
@timsifive ,Can you please guide me, how to run the tests in native trigger behaviour? |
@jjscheel ,I have generated the test for instruction count trigger(type 3) based on the coverage matrix. @timsifive, Can you please guide me, how to run the tests in native trigger behaviour in spike? |
@anuani21 When you update status here, can you link to your in-progress work? It's really helpful as a reference when you have questions, and also to get more detail about the exact state of things. |
Here I have attached the test in the link https://gitlab.com/ptprasanna/actreports/-/commit/d1b0826b0342545d2528495502c7807f5272d4c When I am running the test, writes some value in tdata1 register and read back the value from tdata1 it shows only 0.Can you please review it an tell me the comments?? |
That's not what I see. What I did:
That all looks OK. The difference in input/output is because CSR_MCONTROL6_M and CSR_MCONTROL6_EXECUTE are already shifted. There are several kinds of macros defines, and you're confusing 2 of them. (In my example I also confused them, but I got lucky because I think all the mistakes ended up being 0.) |
Current update: Pending work: |
@anuani21, that's great! With some of the tests complete, can you start a PR to submit those passing tests to riscv-arch-test? I suspect there will be some back and forth to get things to their standards (whatever they are), and I'd like to learn that process sooner rather than later. |
A recent discussion of Spike talks about the existence of tcontrol. |
Updates from IITM, 1] Action breakpoint bug was resolved by Tim ( https://github.com/rtwfroody/riscv-isa-sim/tree/tcontrol_mte ), now getting trigger and mcause value 3 |
Sounds like we are getting close. Keep up the good work! |
Updates from IITM,
|
1.After reviewing the PR, I had got some comments from TIm and Allen. |
Thank, you @anuani21. It sounds like we are very close. What's left besides running the tests in Rv64? |
Note that these tests need to run on all RISC-V implementations that implement Sdtrig. That includes ones that implement S-Mode, and ones that do not. We're just using spike to develop the tests because it's the easiest target to work with. |
I have updated the latest test in the PR. |
Thanks, @anuani21. How are we doing running tests on RV64? Do our tests run in multiple modes, including S-mode as @rtwfroody has noted? |
In Rv64 it is working fine. Yes our test case will run with S-mode and
without S-mode.
…On Tue, 1 Oct, 2024, 5:31 pm Jeff Scheel, ***@***.***> wrote:
Thanks, @anuani21 <https://github.com/anuani21>. How are we doing running
tests on RV64? Do our tests run in multiple modes, including S-mode as
@rtwfroody <https://github.com/rtwfroody> has noted?
—
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3G6FF3EADHKB6RKN65V6EDZZKFIHAVCNFSM6AAAAAAV5WU24GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBVGU4TAMJTHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@rtwfroody, @pdonahue-ventana, when Anusha completes creates her PR(s), we can clear the ACT Freeze Waiver by a review and confirmation that they appear feature complete. |
We don't need to wait for the PR to be merged? |
No. We need "feature complete" PR for Freeze. |
As per the Tim Comments, I had modified the test cases and updated it in the PR. |
Thanks, @anuani21. Can you provide links to the PR(s)? |
Or, @anuani21, a better question would be is this PR the only one? riscv-non-isa/riscv-arch-test#487 |
All tests are updated in the PR, Awaiting for a reply. |
Thanks, @anuani21. I talked to @pdonahue-ventana at Summit last week and he may be able to provide a review here as @rtwfroody is quite busy. They understand that you are waiting on them. |
@anuani21, do all tests pass the expected coverage? |
Yes Jeff ,Tests passed with the expected coverage. |
@anuani21, great news on the passing. Can you provide a link to the results file? Is it in the PR? |
@rtwfroody and @pdonahue-ventana, thanks for your reviews and comments on the PR. If you've completed the review of all code in the PR, the first question we need to answer is whether we believe the test are functionally complete. If so, we can conclude the Freeze waiver for ACT. Can you share your thoughts/comments here? If your answer is no, please clearly identify what you'd like to see resolved to be considered complete. |
If you thought that RISC-V has lots of optional features, the debug spec has exponentially more options. @rtwfroody and I recently discussed how far we want to go down the path of testing the seemingly endless combinations of possible things. The two of us agreed that the ACT PR contains a solid baseline of testing and we're OK with moving forward with that. |
@pdonahue-ventana and @rtwfroody, thanks for your feedback. I will consider the Freeze Waiver work for ACT complete. @anuani21, please continue working on review comments and trying to get the PR merged. You're making GREAT progress!!! |
Technical Group
Debug TG
ratification-pkg
Debug
Technical Liaison
Tim Newsome
Task Category
Arch Tests
Task Sub Category
Ratification Target
3Q2023
Statement of Work (SOW)
SOW link
SOW Signoffs: (delete those not needed)
Waiver
Pull Request Details
The text was updated successfully, but these errors were encountered: