[lkml]   [2010]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] x86/mrst: add SFI platform device parsing code
On Thu, Sep 23, 2010 at 11:13:47AM +0100, Alan Cox wrote:

> > So the expectation is that the platform data parser functions in the
> > SFI device list will be querying the DMI data and selecting the actual
> > parsing based on that? Perhaps adding DMI keys to the match tables so
> > the infrastructure is there for doing the device specific things would

> That will just encourage people not to be careful.

I'm not see anything here which provides a way for people to be careful
- people just need to add the code directly into the parser if there's
no format defined in the kernel the're working on. If (as will be the
case with most chips) there's nothing there then people are pretty much
left to their own devices unless they choose to work upstream. From
experience what the overwheming majority of OEMs will actually do is
work on the latest kernel from their distro of choice, normally without
contributing their changes anywhere.

> > My main issue here is that the code is working on the assumption that
> > we have one standard idea of what the SFI data means and provides no
> > guidance to users about handling the inevitable variations.

> There should be no variations and the nature of the platform means that
> might even work out. I don't really want to add it to the table unless
> we have lots needing DMI data. Right now we don't and there are
> multiple platform implementations in existence.

What is it about this platform that is going to restrict the problem?

Code which makes this sort of assumption about knowing the platforms
that the device will be deployed on well is relatively common but the
usual result is that OEMs want to change the reference platforms and the
assumptions that the code has been making about the systems and about
how people will work with the code break down. This problem is much
more pronounced in the embedded space where the hardware is much less
self-describing and regular than on PCs.

 \ /
  Last update: 2010-09-27 20:09    [W:0.075 / U:0.400 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site