-
Notifications
You must be signed in to change notification settings - Fork 171
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
zynqmp_r5: replace Xil_SetMPURegion with Xil_MemMap #218
Conversation
Above warning is false positive I believe. As it is not function definition, but Xil_MemMap is function use. |
Following code seeems not generate this false positive:
|
1fde845
to
82fbb06
Compare
Thank you Arnaud, I fixed the code, I should have done it when it was flagged before sending the first PR. Not sure why Zephyr build fails. Any hints ? |
No idea yet, probably a problem in the IC. I tried to rerun the action without success. I need to look deeper. Just ignore the check for now. |
@bentheredonethat |
@arnopo i am in support of this patch. AMD BSP provides this so we should leverage as proposed by Sergei. |
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.
Looks good to me.
Please could you rebase on main to rerun the Ci? CI issue should be fixed in #219 |
48c2281
to
cacdf5d
Compare
Hi Arnaud, Ed,
What is your preferred method of up-steaming these commits? |
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.
just an update for the copyright else LGTM
it depends on the commits. I would say obvious commits in a package, and a PR per commit that might trigger more discussion. |
The metal_machine_io_mem_map() used to call Xil_SetMPURegion directly and could get into an infinite loop. Replace the faulty code in metal_machine_io_mem_map() with Xil_MemMap() call and assert it succeeds. Signed-off-by: Sergei Korneichuk <sergei.korneichuk@amd.com>
cacdf5d
to
ea638f7
Compare
Agreed on the 30 commits. As a rough guideline, combining commits that don't overlap and only affect one file each is fine. A multi-file commit probably deserves its own PR. |
The metal_machine_io_mem_map() used to call Xil_SetMPURegion directly
and could get into an infinite loop. Replace the faulty code in
metal_machine_io_mem_map() with Xil_MemMap() call and assert it succeeds.
Signed-off-by: Sergei Korneichuk sergei.korneichuk@amd.com
fixes: 51e08c6