Skip to content

Xlnx add trace buf and update address space#98

Open
tnmysh wants to merge 5 commits intoOpenAMP:mainfrom
tnmysh:xlnx_add_trace_buf_and_update_address_space
Open

Xlnx add trace buf and update address space#98
tnmysh wants to merge 5 commits intoOpenAMP:mainfrom
tnmysh:xlnx_add_trace_buf_and_update_address_space

Conversation

@tnmysh
Copy link
Copy Markdown
Collaborator

@tnmysh tnmysh commented Mar 13, 2026

  • Add trace buffer support
  • Update current DDR addresses to match latest system device-tree standards
  • fix trivial compiler warning during building matrix multiply demo
  • Allow native cmake build

@tnmysh tnmysh requested review from arnopo and edmooring March 13, 2026 04:00
@tnmysh tnmysh force-pushed the xlnx_add_trace_buf_and_update_address_space branch from f6a6178 to 833a6b4 Compare March 13, 2026 21:26

/* Init circular buffer */
circ.c_buf = get_rsc_trace_info(&circ.c_len);
if (circ.c_buf && circ.c_len)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if (circ.c_buf && circ.c_len)
if (!circ.c_buf || !circ.c_len)
metal_err("invalid trace buffer\n");

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Didn't apply this one, let me know if this is must.

tnmysh added 5 commits March 26, 2026 14:47
If xlnx toolchain is not used to build demos, then allow building xlnx
demos with native cmake build system.

Signed-off-by: Tanmay Shah <tanmay.shah@amd.com>
platform_info.h was changed to platform_info_common.h, replace it
accordingly for echo demo.

Signed-off-by: Tanmay Shah <tanmay.shah@amd.com>
fix following compiler warning:

warning: passing argument 1 of 'rpmsg_matrix_app' fr
om incompatible pointer type [-Wincompatible-pointer-types]
   47 |                 rpmsg_matrix_app(rpdev, platform);
      |                                  ^~~~~

Signed-off-by: Tanmay Shah <tanmay.shah@amd.com>
As per latest SDT standard AMD-xilinx EDF yocto is released with fixed
memory regions for each core to use. Update the default address for
cluster-A core0 to use as per this standard.

Signed-off-by: Tanmay Shah <tanmay.shah@amd.com>
trace buffer is a circular buffer to store logs. Linux remoteproc
subsystem creates a debugfs file that can be used to print these logs on
linux side.

Signed-off-by: Tanmay Shah <tanmay.shah@amd.com>
@tnmysh tnmysh force-pushed the xlnx_add_trace_buf_and_update_address_space branch from 833a6b4 to b59ecf4 Compare March 27, 2026 03:45
@tnmysh tnmysh requested a review from arnopo March 27, 2026 03:48
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