* habanalabs user-space thunk library available in GitHub
@ 2019-03-01 15:50 Oded Gabbay
2019-03-01 16:12 ` Greg Kroah-Hartman
0 siblings, 1 reply; 2+ messages in thread
From: Oded Gabbay @ 2019-03-01 15:50 UTC (permalink / raw)
To: Greg Kroah-Hartman, Olof Johansson, Linux-Kernel@Vger. Kernel. Org
Cc: Omer Shpigelman, Tomer Tayar, Mike Rapoport
Hi Greg and Olof,
I wanted to let you know that I put the sources of our new userspace
thunk library in GitHub, as we discussed a few weeks ago during the
review of the driver.
The link is: https://github.com/HabanaAI/hl-thunk
As this library was written from scratch in the past month, it is
still quite small and provides only the minimal functionality over the
IOCTLs.
We did ported some of the userspace tests we have in our runtime to
this library (using CMocka framework) to demonstrate how to use the
IOCTLs.
The library is written in pure C. It is a stateless library (at least
for now) and I took the basic design from drm library.
Going forward, we plan to (in order of importance):
1. Integrate this in our S/W stack. In effect, remove the functionally
we expose in the thunk layer from the runtime and make the runtime
link with the thunk layer and call it instead of calling directly to
the IOCTLs. This will be done in the next week or two.
2. Add additional tests for Goya and for future ASICs. We plan to use
this library for doing bring-ups on Palladium and the real ASICs as it
provides us with easy platform for testing purposes.
3. Add more functionality to the library. I didn't yet decided how
much functionality I want to add to this layer though, because I want
to keep it thin.
Bottom line, this is definitely not some mockup library. This will be
an integral part of our S/W stack going forward.
I sincerely hope we can open source additional S/W parts in the
future. I'll try pushing to this goal as much as I can inside the
company.
Thanks,
Oded
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: habanalabs user-space thunk library available in GitHub
2019-03-01 15:50 habanalabs user-space thunk library available in GitHub Oded Gabbay
@ 2019-03-01 16:12 ` Greg Kroah-Hartman
0 siblings, 0 replies; 2+ messages in thread
From: Greg Kroah-Hartman @ 2019-03-01 16:12 UTC (permalink / raw)
To: Oded Gabbay
Cc: Olof Johansson, Linux-Kernel@Vger. Kernel. Org, Omer Shpigelman,
Tomer Tayar, Mike Rapoport
On Fri, Mar 01, 2019 at 05:50:09PM +0200, Oded Gabbay wrote:
> Hi Greg and Olof,
> I wanted to let you know that I put the sources of our new userspace
> thunk library in GitHub, as we discussed a few weeks ago during the
> review of the driver.
> The link is: https://github.com/HabanaAI/hl-thunk
That is wonderful to see, thanks so much for doing this and posting the
link.
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-03-01 16:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-01 15:50 habanalabs user-space thunk library available in GitHub Oded Gabbay
2019-03-01 16:12 ` Greg Kroah-Hartman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).