[linux-pm] [RFC] PowerOP Take 3, sysfs UI core 2/5

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

 



Here is the use case we are picturing:

The semiconductor vendor creates the full list of operating points 
supported on a SoC (and reference board).  A device (cell phone, etc) 
manufacturer decides to use only a subset of the full operating points 
due to their use cases and board design.   We want to enable the 
semiconductor vendor and device manufacturer to easily update the 
operating points and selectively enable ones for their use in a way 
that doesn't require maintaining out of tree patches or submitting 
patches for every update and every device made.

We came up with the idea of creating operating points at run-time 
(initscript at boot usually) to address this scenario.   Hard coding a 
list operating points in the kernel is fine as long as there is an 
interface to override and/or extend that list.

Another use case for creating operating points is to enable device 
manufacturers and others to create a custom name for the  operating 
point.  The entire operating point does not need to be created to 
address this case but we would need a method for creating a mapping of 
points to names.

On Jul 25, 2006, at 10:05 PM, David Brownell wrote:

> On Tuesday 25 July 2006 3:09 am, Amit Kucheria wrote:
>> On Mon, 2006-07-24 at 17:32 -0700, ext David Brownell wrote:
>>> On Monday 24 July 2006 2:58 pm, Preece Scott-PREECE wrote:
>>>> If they're defined dynamically, you can change them without 
>>>> recompiling
>>>> the system, building a new rootfs image, etc. This is especially 
>>>> useful
>>>> during development and tuning of systems built on new hardware, 
>>>> since
>>>> the set of Ops available (that is, that are documented by the chip
>>>> vendor to work) can vary over time and even board-to-board.
>>>
>>> I could easily buy such a mechanism being dependent on EXPERIMENTAL,
>>> for use with developer/prototype boards ... thanks for that scenario.
>>>
>>> But I have a harder time seeing it used in production systems, burnt
>>> into flash on a manufacturing line that already had to qualify that
>>> new hardware before the next production run (of say 10,000 units) was
>>> approved by the powers-that-be.
>>>
>>> - Dave
>>
>> Sometimes a certain operating point is not desired for regular 
>> operation
>> of the device. So it would not be in the board-xx.c file.
>>
>> But connect a peripheral and suddenly this is the most attractive OP 
>> for
>> the system.
>
> And you'd know that in advance, and thus could predefine that OP.  :)
>
> Even in the worst case, where you somehow add a driver without
> upgrading the rest of the kernel in flash, that driver should be
> able to define an OP without userspace.  (I suppose there are some
> product vendors willing to do that type of field upgrade.)
>
> I'm still not persuaded that a UI for OP creation is needed except
> for development.  Feel free to keep trying to persuade me though;
> I'm just pushing back on what I see as weak points, since that's
> the best way I know to come up with good solutions.
>
> - Dave
>
>
>> So the ability to add operating points from userspace might
>> be helpful there.
>>
>> Regards,
>> Amit
>>
>>>
>>>>> I meant "they could suggest how to do the sysfs thing, in 
>>>>> reasonable
>>>>> way". Like echo new_config > file is extermely ugly, but perhaps
>>>>> configfs is suitable?
>>>>
>>>> Makes some sense.  But I'm still puzzled why _creating_ an operating
>>>> point would be done outside of the arch/.../board-xx.c file.
>>> _______________________________________________
>>> linux-pm mailing list
>>> linux-pm at lists.osdl.org
>>> https://lists.osdl.org/mailman/listinfo/linux-pm
>> -- 
>> Amit Kucheria <amit.kucheria at nokia.com>
>> Nokia
>> _______________________________________________
>> linux-pm mailing list
>> linux-pm at lists.osdl.org
>> https://lists.osdl.org/mailman/listinfo/linux-pm
>>
>



[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux