-
Notifications
You must be signed in to change notification settings - Fork 52
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
EDGEML-8777: Support firmware log buffer #328
base: main
Are you sure you want to change the base?
Conversation
Can one of the admins verify this patch? |
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.
"__packed" is missing for the request and response structs.
8e8ff65
to
2b8b148
Compare
5ac87bf
to
add9c42
Compare
a64f459
to
bf466db
Compare
bf466db
to
b1e6bfd
Compare
ok to test |
=== 3 tests failed on Linux_npu_tests run. |
@VinitAmd , please fix the pipeline failure. The driver is not able to load. Please try your driver on a NPU1 machine. Please contact @vengutta18 for the machine if you don't have one. |
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'm not expect any changes for amdxdna_mailbox* files for this feature.
Please cleanup the amdxdna_mailbox* files.
After this is fix, I will review other code.
Please follow https://github.com/amd/xdna-driver?tab=readme-ov-file#checkpatch to setup your workspace.
The coding style needs to pass checkpatch.pl test.
Thanks, I was looking for this info |
7d9850d
to
2d0d0b4
Compare
Code formatting done with checkpatch.pl |
e77d462
to
8d6b7a1
Compare
retest this please |
8d6b7a1
to
8b6da01
Compare
615feef
to
7efb043
Compare
retest this please |
be8f46f
to
fa2a7b8
Compare
697afd2
to
26e8b0e
Compare
e3d6e4f
to
0163508
Compare
c2ed2f3
to
c103db3
Compare
[Why] Log buffer support is required to enhance debugging support on NPU stack [How] 1. Allocate log buffer and share with firmware via 'start_event_trace' message Config start_event_trace request param, send via mgmt channel. Handle the send buffer resp. 2. Receive interrupt about log buffer half fullness from firmware. Handle interrupt, process further buffer data and update buffer head_offset for FW. 3. Add stop_event_trace_send api and it's handle to stop logging when aie2 shutdown. 4. Add event_trace debugfs for dynamic control of logging. Signed-off-by: vinit shukla <vinitkumar.shukla@amd.com>
c103db3
to
397b267
Compare
[Why]
Log buffer support is required to enhance debugging support on NPU stack
[How]
Signed-off-by: Vinit vinitkumar.shukla@amd.com