getting allwinner SoC support upstream (was Re: Uploading linux (3.9.4-1))

Tomasz Figa tomasz.figa at gmail.com
Thu Jun 6 08:11:30 EST 2013


On Wednesday 05 of June 2013 16:48:27 jonsmirl at gmail.com wrote:
> On Wed, Jun 5, 2013 at 3:46 PM, Luke Kenneth Casson Leighton
> 
> <lkcl at lkcl.net> wrote:
> > On Fri, May 31, 2013 at 3:52 AM, Ben Hutchings <ben at decadent.org.uk> 
wrote:
> > > The 3.8.y branch is over, so I think we have to move to 3.9, ready
> > > or
> > > not.  I merged the work in progress from trunk to sid and am going
> > > through the config changes at the moment.
> > > 
> > > I'm rather disappointed that nothing at all has been committed by
> > > ARM
> > > porters to either branch in the last month.
> >  
> >  *sigh* i didn't want to leave this as it stood, ben, purely for the
> > 
> > reason that i don't want to see you discouraged!  but, i also had to
> > think a bit about what potentially to say.
> > 
> >  the one SoC family that's going to become increasingly important to
> > 
> > have both upstream and in debian is support for allwinner's
> > processors.  with 40% world-wide tablet market share [*0], they must
> > be doing something right, and it's basically getting a staggering
> > price-performance value as well as having a set of interfaces and
> > level of integration that is really second to none.
> > 
> >  to begin to describe the problem in getting allwinner soc source code
> > 
> > upstream is this: not only do we have the usual "let's get it out the
> > door as fast as possible" learning curve of a very young, very new and
> > bewilderingly-successful fabless SoC company, but we also have a
> > completely new type of very successful and comprehensive
> > device-tree-like dynamic configuration system to deal with, which
> > allwinner have called "fex" [*1].
> > 
> >  basically at the time when device-tree was being thought of,
> > 
> > allwinner needed something that they could *right then* - not waiting
> > for developers to finish device-tree - they needed to be able to
> > reconfigure their customer's kernels *without* needing a recompile.
> > so they invented the script.fex system, which is a simple config.ini
> > file-format, compile it to binary, and get the bootloader to upload it
> > to memory and read it.
> 
> Why don't you try converting the sunxi code over to device tree? I
> don't think it will be as hard as you may think it is. Start off by
> mapping the existing fex syntax into a DTS file. Send your DTS file to
> devicetree-discuss to get help with the correct syntax. Once this DTS
> template is constructed you can write a program to convert any fex
> file into it.
> 
> Now boot with this DTB; that will get all of the existing info into
> the kernel's internal FDT.  Then start converting your drivers over to
> use the of_ support for accessing the FDT. You've already done all of
> the hard work in making the drivers configurable at boot. As a
> transition tool allow the kernel to boot with both fex and DT untill
> you get all of the drivers converted.
> 
> BTW, device tree has been in the kernel since 2007 (or earlier).
> About two years ago the ARM community decided to switch all new
> development onto it in order to stop the proliferation of
> platform/machine files. I believe the rule about no new non-DT ARM
> platforms has been in place for over eighteen months.

Well, it not only has been in the kernel, but has been extensively used 
for PowerPC. Not even saying that the idea started even earlier, 
originating from OpenFirmware.

Allwinner has just reinvented a wheel, without even considering the fact 
that it has been already invented. This is actually not so uncommon plot, 
because for such companies it is often easier to develop (or hack up) a 
completely new solution without any supervision, than to extend an 
existing solution that would need cooperation with community and (whoaa) 
being compliant with open source policy.

IMHO this is completely wrong and can't be justified. Not even saying 
about adopting such solution now that we already have a standard and 
widely accepted one, which they could have used as well.

Best regards,
Tomasz



More information about the devicetree-discuss mailing list