Re: [RFC 00/15] ACPI graph support

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

 



On Wed, Oct 5, 2016 at 6:18 PM, Lorenzo Pieralisi
<lorenzo.pieralisi@xxxxxxx> wrote:
> On Wed, Oct 05, 2016 at 06:32:29PM +0300, Mika Westerberg wrote:
>
> [...]
>
>> > 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.
>>
>> Clocks and power supplies should be handled as native ACPI
>> PowerResources. We are not trying to represent those here.
>>
>> > 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.
>>
>> The hardware we are describing is exactly the same, only thing that
>> changes is the firmware interface. So if there is a hardware property
>> that cannot be discovered automatically it needs to be provided by the
>> firmware, like ACPI.
>
> We certainly agree that HW is the same and that the firmware interfaces
> differ, that's why mixing them is not exactly ideal.
>
>> If it happens that the property already has an existing DT binding, why
>> do you think it is gambling to use it instead of inventing the same with
>> annother name for ACPI?
>
> Do not spin the argument. I am telling you that what I am worried
> about is mixing the interfaces because that might trigger kernel
> control paths clashing while controlling HW (DT native vs ACPI control
> methods).

That would have been possible, had the *kernel* supported _DSD
properties that could have conflict with native ACPI stuff at the
framework level.  Yet, it doesn't and there are no plans to add any
support like that to it I'm aware of.

So far, we have been careful enough to avoid supporting any _DSD
properties that may potentially conflict with ACPI-defined HW control,
this way or another, and as long as we continue to do that, all should
be fine.  So the way to go, to me, is not to reject support for any
kind of generic _DSD properties that follow DT bindings, but to look
at every case carefully and see if they conflict with ACPI-defined HW
control in any way.  If they don't, I see no reason for not supporting
them.

> I am pretty sure this won't happen, still, if you do not mind
> please post this series (and drivers actually making use of it) to a
> wider audience (which includes devicetree and ARM mailing list) and we
> will restart the discussion from there.

I think that the target subsystem (V4L in this particular case) should
be notified of this in the first place as they are the user of the
bindings in question.

Thanks,
Rafael
--
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