News for hackers. Stuff that matters.
Re:Allwinner VPU support for the Linux kernel by jagger27 on Friday February 02, 2018 @05:25PM (#16294701)
Allwinner would be pretty foolish not to fully fund this endeavour (including stretch goals). They couldn't do it themselves this cheap. They'd make up the costs in new sales faster from FOSS-minded devs in no time flat and they'll have minimal recurring dev costs in the long run.

To me this is a no-brainer.

Re:Allwinner VPU support for the Linux kernel by ZenoArrow on Friday February 02, 2018 @05:37PM (#16294778)
> "Allwinner would be pretty foolish not to fully fund this endeavour"

Why would they fund it? If they saw the potential benefits, they could probably open source their own closed source drivers and avoid this Kickstarter being needed, or at the very least provide documentation to speed this work along.

Re:Allwinner VPU support for the Linux kernel by amluto on Friday February 02, 2018 @05:46PM (#16294850)
If I were Allwinner, I'd be quite nervous about open-sourcing my code. Who knows what patents it infringes?
Re:Allwinner VPU support for the Linux kernel by ktta on Friday February 02, 2018 @10:51PM (#16296055)
I think you've put forward an important point many don't consider when debating why companies won't open source.
Re:Allwinner VPU support for the Linux kernel by joezydeco on Friday February 02, 2018 @06:39PM (#16295135)
We have a winner!
Re:Allwinner VPU support for the Linux kernel by squarefoot on Saturday February 03, 2018 @01:48PM (#16298902)
This is why the recent proposal by Bunnie of trading transparency against liability would be so important.
Re:Allwinner VPU support for the Linux kernel by ZenoArrow on Saturday February 03, 2018 @05:58AM (#16297130)
Patents for what? Algorithms? I've heard similar arguments/excuses made before, I'd like to understand if there's any legal precedence for them, or if it's more of a hypothetical risk.

Lastly, with the 'supply of documentation' approach, does this (to your knowledge) carry the same legal risks?

Re:Allwinner VPU support for the Linux kernel by joezydeco on Saturday February 03, 2018 @10:17AM (#16297912)
The API would expose what IP cores are inside the GPU.

A competitor could easily dissect the code and figure out what blocks and/or techniques are violating their patent rights.

Re:Allwinner VPU support for the Linux kernel by ZenoArrow on Saturday February 03, 2018 @10:59AM (#16298081)
> "The API would expose what IP cores are inside the GPU."

How would an open-source driver developed by a third party be less effective at doing so?

Re:Allwinner VPU support for the Linux kernel by joezydeco on Saturday February 03, 2018 @11:38AM (#16298257)
The third-party is probing into a black box. They have no idea what is or isn't there. So it could be plausible deniability on the side of the chipmaker.
Re:Allwinner VPU support for the Linux kernel by ZenoArrow on Sunday February 04, 2018 @02:03AM (#16301733)
How about documentation then? Let's say Allwinner releases C header files, plus high level descriptions of what each function does. Do they still maintain plausible deniability if the hardware design infringes on patents?
Re:Allwinner VPU support for the Linux kernel by jagger27 on Friday February 02, 2018 @05:52PM (#16294900)
It means they don't need to get lawyers involved to check for any licencing gotchas from other non-free code in the tool chain. They might see it as a liability or reveals other tangentially related proprietary details of their tooling. There may not be much formal documentation, and if there is it would likely need to be combed through, updated, translated, etc.

Even without getting lawyers involved, I don't see how they could do any of the above tasks for less than the price of this Kickstarter.

Re:Allwinner VPU support for the Linux kernel by ZenoArrow on Saturday February 03, 2018 @06:11AM (#16297165)
> "It means they don't need to get lawyers involved to check for any licencing gotchas from other non-free code in the tool chain."

They don't need to open source the whole toolchain, just the parts of the code they own/wrote themselves. For the parts of the toolchain they can provide documentation (writing it out if this documentation needed to be created/revised) to fill in the missing pieces.

> "I don't see how they could do any of the above tasks for less than the price of this Kickstarter."

You seem to be overlooking that reverse engineering hardware drivers is a hugely inefficient process. People only do it out of necessity. Furthermore, the Kickstarter has set modest goals of enhancing the work that has already been done (MPEG2 acceleration, etc...), the end result is not a driver that can be used for more general purpose graphics acceleration (e.g. no OpenGL driver). That's not to say it isn't a good step forward, I welcome it, but you should be aware that there's a long road ahead after the work for the Kickstarter has been completed. If you don't believe me, look at the ongoing work being done by the Nouveau team.

Re:Allwinner VPU support for the Linux kernel by WhitneyLand on Friday February 02, 2018 @05:23PM (#16294687)
Why do more work on mpeg-2?

Couldn’t that path just be left without acceleration, being it’s a less complex codec to begin with, usage is not growing, and the data sources are likely smaller to begin with (no 4k for example)?

Re:Allwinner VPU support for the Linux kernel by bonyt on Friday February 02, 2018 @05:25PM (#16294696)
It's still useful for some applications. ATSC digital broadcasts in the U.S., for example, are in MPEG-2, as are the signals provided by many cable companies. I have an HDHomeRun Prime, and purchased the MPEG-2 HW Decoder license[1] for my Raspberry Pi 3 to make things a bit smoother.

[1]: http://www.raspberrypi.com/mpeg-2-license-key/

Re:Allwinner VPU support for the Linux kernel by Narishma on Friday February 02, 2018 @06:52PM (#16295195)
Isn't the Raspberry Pi 3 powerful enough to do MPEG-2 decoding in software?
Re:Allwinner VPU support for the Linux kernel by dsr_ on Saturday February 03, 2018 @02:18PM (#16299040)
Not if you want it to do anything else at the same time, and not if you need de-interlacing of the 1080i streams that half the over-the-air channels use.
Re:Allwinner VPU support for the Linux kernel by djsumdog on Friday February 02, 2018 @05:48PM (#16294862)
Since they want to do hardware x264, are there any patent issues they'll have to deal with, or will that be included in the cost? I didn't see anything listed on the Kickstarter page.
Re:Allwinner VPU support for the Linux kernel by mastax on Friday February 02, 2018 @06:48PM (#16295171)
Looks like Bootlin is located in France. France doesn't recognize software patents (as I understand it), which is why VLC can exist.

(Though I noticed on VLC's website that the EC could try to change that: https://www.videolan.org/press/patents.html)

Re:Allwinner VPU support for the Linux kernel by gsnedders on Friday February 02, 2018 @06:28PM (#16295101)
DVDs, too, are almost all MPEG-2.
Re:Allwinner VPU support for the Linux kernel by pedrocr on Friday February 02, 2018 @05:10PM (#16294602)
What kind of hardware is this that makes it usable for encoding/decoding mpeg2/h264/h265? Is this something that should be exposed as a general programming target instead of a set of video specific APIs?
Re:Allwinner VPU support for the Linux kernel by bri3d on Friday February 02, 2018 @05:16PM (#16294640)
As you can see from the documented reverse-engineering of the hardware here:

http://linux-sunxi.org/VE_Register_guide

the device is generally single-function for each codec, with the decoding pipeline implemented in actual hardware. Unless you were able to express your kernel as a data transform used in a common video codec and express your I/O data as pixels, you're unlikely to accelerate a general purpose task this way.

Re:Allwinner VPU support for the Linux kernel by revelation on Friday February 02, 2018 @05:20PM (#16294669)
It's a DSP firmware turned into silicon. If you look at for example the VP8 decoder registers for a Rockchip VPU here:

https://patchwork.kernel.org/patch/8118991/

You can see it's quite specific to the primitives the codec needs. If you want general purpose, we now have Vulkan for that.

(And this one is reasonably low-level. On some like the Raspberry Pi, you throw bitstream over the wall to a coprocessor which gives you YUV back)

Re:Allwinner VPU support for the Linux kernel by snaky on Friday February 02, 2018 @06:37PM (#16295128)
On Raspberry Pi it's not clear who is coprocessor, actually.