<div class="gmail_quote">Le 14 mai 2014 21:02, "Mohamed MEDIOUNI" <<a href="mailto:mohamedmediouni91@gmail.com">mohamedmediouni91@gmail.com</a>> a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p dir="ltr"><br>
Le 29 avr. 2014 02:52, "Rob Clark" <<a href="mailto:robdclark@gmail.com" target="_blank">robdclark@gmail.com</a>> a écrit :<br>
><br>
> On Sun, Apr 27, 2014 at 5:51 AM, Mohamed MEDIOUNI<br>
> <<a href="mailto:mohamedmediouni91@gmail.com" target="_blank">mohamedmediouni91@gmail.com</a>> wrote:<br>
> ><br>
> > Le 21 avr. 2014 13:16, "Rob Clark" <<a href="mailto:robdclark@gmail.com" target="_blank">robdclark@gmail.com</a>> a écrit :<br>
> >><br>
> >> On Sat, Apr 19, 2014 at 9:32 AM, Mohamed MEDIOUNI<br>
> >> <<a href="mailto:mohamedmediouni91@gmail.com" target="_blank">mohamedmediouni91@gmail.com</a>> wrote:<br>
> >> > The VideoCore IV GPU has 14 cores:<br>
> >> ><br>
> >> > - 2 VPU Cores : Full-blown cores which run the ThreadX RTOS.<br>
> >> > There is an experimental LLVM port to it and also the VBCC C89<br>
> >> > compiler(which has'nt time support so classic benchmarks run<br>
> >> > indefinitely).<br>
> >> > The binary blob run on that.<br>
> >> > 5 GFlops<br>
> >> ><br>
> >> > - 12 QPU Cores : 3D cores officially documented by Broadcom and using a<br>
> >> > tile-mode rendering architecture.<br>
> >> > The full Android driver for that was open-sourced at the end of<br>
> >> > February.<br>
> >> ><br>
> >> > 24Gflops<br>
> >> ><br>
> >> > Questions:<br>
> >> ><br>
> >> > Can Gallium3D run with tile-mode rendering architecture ?<br>
> >><br>
> >> yes, adreno (freedreno) is a tiler<br>
> >><br>
> >> > Is it better using Mesa and  the Broadcom shader compiler ?<br>
> >><br>
> >> Allegedly it may be easier to shoehorn in the blob compiler with a<br>
> >> mesa/dri driver vs mesa/gallium driver.  That probably shouldn't be<br>
> >> too much of a concern in the long run.  Overall I think a gallium<br>
> >> driver would be much easier to implement... gallium plus helpers<br>
> >> provide a lot to the driver writer.<br>
> >><br>
> >> > Is it better using the VPU and an adapted LLVMpipe ?<br>
> >><br>
> >> I guess you are talking about keeping the driver-on-videocore<br>
> >> approach?  That may have some advantages when it comes to handling<br>
> >> security (lack of mmu) on r-pi.  But other than that, I suspect<br>
> >> everything else will be easier to develop/debug on the arm side.  And<br>
> >> I suspect avoiding round trips to the coprocessor will help<br>
> >> performance in a lot of cases.<br>
> >><br>
> >> so if you can figure out a way to deal with security aspect with arm<br>
> >> side driver, then I'd go for arm side gallium driver as my first<br>
> >> choice.<br>
> >><br>
> > Have now some problems including :<br>
> ><br>
> > Need to run the programs as root or chmod 777 /dev/mem and chmod 777<br>
> > /dev/vc-mem<br>
> ><br>
><br>
> yeah, that is a pretty good sign that you are doing something wrong.<br>
> Normally you need some kernel driver that is mediating access to the<br>
> hardware.  In fact no modern hardware is directly accessing hw<br>
> ioregion from userspace.  Normally userspace is constructing cmdstream<br>
> buffers passed down to kernel mode driver component which is what is<br>
> dealing with the actual hw<br>
><br>
> BR,<br>
> -R<br>
I need that because of the MMU. Will experiment with uCLinux the next few days. <br>
But I will need  to finish the VideoCore LLVM backend before that.</p>
</blockquote></div>