Re: [RFC 00/15] ACPI graph support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 05, 2016 at 02:41:29PM +0300, Mika Westerberg wrote:
> On Wed, Oct 05, 2016 at 10:22:15AM +0100, Lorenzo Pieralisi wrote:
> > [ +MarkR, MarkB, Rob, Al - I suspect they may want to have a say]
> > 
> > On Wed, Oct 05, 2016 at 01:45:33AM +0300, Sakari Ailus wrote:
> > > Hello everyone,
> > > 
> > > I've been working awhile with my collegue Mika Westerberg to bring
> > > firmware graph support to ACPI based systems. In practice the
> > > functionality achieved by these patches is very similar to what the Device
> > > tree provides: the port and the endpoint concept are being employed. The
> > > patches make use of the _DSD property and data extensions to achieve this.
> > > The fwnode interface is extended by graph functionality; this way graph
> > > information originating from both OF and ACPI may be accessed using the
> > > same interface.
> > 
> > There is an ongoing effort to avoid wholesale import of DT bindings
> > into ACPI, I am not a V4L2 expert but it seems to me that with patches
> > like the one you have submitted we are getting closer and closer to
> > achieving it instead of avoiding it.
> 
> The whole purpose of PRP0001 ID is to allow DT bindings to be reused in
> ACPI systems, so that the drivers can just call device_property_* and
> get the properties regardless of the underlying firmware interface.
> 
> Are you saying that's not wanted?

Not wholesale DT bindings import into ACPI, just no way.

> > For your information, Al is working on a process to submit _DSD
> > bindings and this patchset should at least be vetted within that
> > context.
> 
> Of course but is it more like "use these properties for our hardware
> XYZ"? I mean remote endpoints is a generic concept and not tied to a
> certain hardware.
> 
> > It is an RFC and my comment is that I do not like the direction
> > this ACPI->_DSD->DT is taking, I would like to understand where
> > this is intended to stop because I am getting worried.
> 
> I understand that if there is already an existing native ACPI way of
> doing things, that should be used. However, we do not have such thing
> for remote endpoints used between camera components, and on the other
> hand there is an exiting DT binding which only requires small changes to
> the v4l2 framework (convert it to use fwnodes) to get the thing
> supported on both DT and ACPI systems.

FWIW I had a quick look at dts bindings with "compatible = nokia,smia"
and related kernel driver.

Those nodes require properties like clocks and power supplies, it
seems to me that there are already ACPI PM methods to control those
properties and therefore they should not be handled with PRP0001,
I am happy to be corrected if I am wrong.

When you start matching whole subsystem through PRP0001 and related
compatible strings you can end up in a situation where DT and ACPI
FW handling clash and that's why we were opposed to mixing them from
the beginning, in ARM world if we need a DT we boot with a devicetree.

If PRP0001 is used for leaf-nodes drivers properties it may work,
everything else, frankly, is a bit of a gamble you are taking.

At least you should CC devicetree mailing lists and reach out to a
wider audience than linux-acpi, you will get the comments you are
requesting then.

Thanks,
Lorenzo
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux