Skip to content
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

Added hw ctx support for edge #8305

Merged
merged 13 commits into from
Aug 27, 2024
Merged

Conversation

bisingha-xilinx
Copy link
Collaborator

@bisingha-xilinx bisingha-xilinx commented Jul 24, 2024

Problem solved by the commit

create/destroy hw_context enablement for edge

Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered

Fixed issues: register xclbin support, hw ctx support

How problem was solved, alternative solutions (if any) and why they were rejected

Programming the xclbin while creating the hw ctx and added zocl driver support for create/destroy hw_context

Risks (if any) associated the changes in the commit

n/a

What has been tested and how, request additional testing if necessary

Please find the table below. Tested on hw emu with vck190 xpfm with 2024.2 TA

testname legacy hwctx
complex_graph passed passed
independent_graph passed passed
simple_gmio passed passed
simple_graph passed passed
simple_rtp passed passed
simple_vadd(opencl) passed testcase is n/a
simple_vadd(xrt APIs) passed passed
zynqmp_HelloWorld(opencl) passed testcase is n/a

Documentation impact (if any)

Please note: by default, hw context is enabled on the edge shim. hw_context=false has to be provided on xrt.ini if someone wants to go with the legacy (non hwctx) flow.

@chvamshi-xilinx
Copy link
Collaborator

@bisingha-xilinx , Overall changes is looking good.
Can you please confirm whether you verified following cases

  1. graph based test
  2. PL test ( Both on Zynqmp and versal)

@chvamshi-xilinx chvamshi-xilinx added the do not merge hold off on merging label Aug 5, 2024
@chvamshi-xilinx
Copy link
Collaborator

Hi @bisingha-xilinx , Added "do not merge " tag. Please confirm whether things are working or not. You can remove this tag once everything works fine.

@bisingha-xilinx
Copy link
Collaborator Author

@bisingha-xilinx , Overall changes is looking good. Can you please confirm whether you verified following cases

  1. graph based test
  2. PL test ( Both on Zynqmp and versal)

Hi @chvamshi-xilinx yes, I verified all the tests, and all are passing. here is the table with status:

testname legacy hwctx
complex_graph passed passed
independent_graph passed passed
simple_gmio passed passed
simple_graph passed passed
simple_rtp passed passed
simple_vadd(opencl) passed testcase is n/a
simple_vadd(xrt APIs) passed passed
zynqmp_HelloWorld(opencl) passed testcase is n/a

@bisingha-xilinx
Copy link
Collaborator Author

bisingha-xilinx commented Aug 23, 2024

Hi @bisingha-xilinx , Added "do not merge " tag. Please confirm whether things are working or not. You can remove this tag once everything works fine.

Hi, @chvamshi-xilinx removed the tag as things are working fine with latest changes.

@bisingha-xilinx bisingha-xilinx removed the do not merge hold off on merging label Aug 23, 2024
Signed-off-by: bisingha <bikash.singha@amd.com>
Signed-off-by: bisingha <bikash.singha@amd.com>
Signed-off-by: bisingha <bikash.singha@amd.com>
Signed-off-by: bisingha <bikash.singha@amd.com>
Signed-off-by: bisingha <bikash.singha@amd.com>
Signed-off-by: bisingha <bikash.singha@amd.com>
Signed-off-by: bisingha <bikash.singha@amd.com>
Signed-off-by: bisingha <bikash.singha@amd.com>
Signed-off-by: bisingha <bikash.singha@amd.com>
Signed-off-by: bisingha <bikash.singha@amd.com>
Signed-off-by: bisingha <bikash.singha@amd.com>
Signed-off-by: bisingha <bikash.singha@amd.com>
Signed-off-by: bisingha <bikash.singha@amd.com>
@chvamshi-xilinx chvamshi-xilinx merged commit aafee62 into Xilinx:master Aug 27, 2024
17 checks passed
@bisingha-xilinx bisingha-xilinx deleted the add_hw_ctx branch August 29, 2024 10:37
vipangul pushed a commit to vipangul/XRT that referenced this pull request Sep 11, 2024
* Registering the xclbin without loading it

Signed-off-by: bisingha <bikash.singha@amd.com>

* Added ioctl framework for create/destroy hw context for edge

Signed-off-by: bisingha <bikash.singha@amd.com>

* Added initial commit to create/destroy hw context

Signed-off-by: bisingha <bikash.singha@amd.com>

* Added open/close graph hw context calls

Signed-off-by: bisingha <bikash.singha@amd.com>

* Added graph open/close context

Signed-off-by: bisingha <bikash.singha@amd.com>

* Adjusted previous commits

Signed-off-by: bisingha <bikash.singha@amd.com>

* Adjusted previous commits

Signed-off-by: bisingha <bikash.singha@amd.com>

* Removed slot_id hardcoding for create/destroy hw_ctx

Signed-off-by: bisingha <bikash.singha@amd.com>

* Removed unnecessary function calls

Signed-off-by: bisingha <bikash.singha@amd.com>

* Added slot_id check

Signed-off-by: bisingha <bikash.singha@amd.com>

* Added cu open/close context support

Signed-off-by: bisingha <bikash.singha@amd.com>

* Added execbuf support with hw context

Signed-off-by: bisingha <bikash.singha@amd.com>

* Adjusted previous commits

Signed-off-by: bisingha <bikash.singha@amd.com>

---------

Signed-off-by: bisingha <bikash.singha@amd.com>
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.

3 participants