Re: [PATCH v4 3/5] ARM: topology: Update cpu_power according to DT information

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

On 9 July 2012 16:37, Shilimkar, Santosh <santosh.shilimkar@xxxxxx> wrote:
> On Mon, Jul 9, 2012 at 8:06 PM, Vincent Guittot
> <vincent.guittot@xxxxxxxxxx> wrote:
>> On 9 July 2012 15:00, Shilimkar, Santosh <santosh.shilimkar@xxxxxx> wrote:
>>> On Mon, Jul 9, 2012 at 6:02 PM, Vincent Guittot
>>> <vincent.guittot@xxxxxxxxxx> wrote:
>>>> On 9 July 2012 12:55, Shilimkar, Santosh <santosh.shilimkar@xxxxxx> wrote:
>>>>> Vincent,
>>>>> On Mon, Jul 9, 2012 at 2:57 PM, Vincent Guittot
>>>>> <vincent.guittot@xxxxxxxxxx> wrote:
>>>>>> Use cpu compatibility field and clock-frequency field of DT to
>>>>>> estimate the capacity of each core of the system and to update
>>>>>> the cpu_power field accordingly.
>>>>>> This patch enables to put more running tasks on big cores than
>>>>>> on LITTLE ones. But this patch doesn't ensure that long running
>>>>>> tasks will run on big cores and short ones on LITTLE cores.
>>>>>> Signed-off-by: Vincent Guittot <vincent.guittot@xxxxxxxxxx>
>>>>>> Reviewed-by: Namhyung Kim <namhyung@xxxxxxxxxx>
>>>>>> ---
>>>>>>  arch/arm/kernel/topology.c |  153 ++++++++++++++++++++++++++++++++++++++++++++
>>>>>>  1 file changed, 153 insertions(+)
>>>>> Sorry for not giving this comment on previous version but we should also
>>>>> have a way to provide the big.LITTLE information without Device Tree.
>>>>> May be a platform device/data.
>>>> Hi Santosh,
>>>> I had thought of adding such additional way to set cpu_power of
>>>> big.LITTLE but my conclusion was
>>>> -it's a new platform so it should come with DT
>>>> -DT is already required by other patches linked to big.LITTLE
>>>> (
>>>> -There is no device that can be easily used to get such information at
>>>> this early boot stage.
>>> I see. Its new processor but it is just 1 one of the IP in an entire SOC.
>>> As mentioned below I was talking about full SOC support including
>>> all the driver subsystem with DT.
>>>>> I know we are moving DT way, but remember apart from core kernel
>>>>> infrastructure, to have a complete product build with DT means all the
>>>>> drivers must be already supporting DT which is not the case with
>>>>> many huge driver sub-systems like USB, display subsystem, Audio etc.
>>>>> Having that support would greatly help for the SOC's which have not yet
>>>>> reached to stage where entire SOC is DT compliant and want to use
>>>>> big.LITTLE infrastructure.
>>>> Can't you support both type of devices on your platform ? You can move
>>>> your device to DT mode when it is supported ?
>>> That is what eventually people end up doing who don't have
>>> DT ready for entire SOC. I was trying to ask whether at least some
>>> method is proposed(need not be merged in mainline) to have
>>> the big.LITTLE information parsing without DT.
>> Ok, IIUC, you need a temporary methods, which doesn't need to be
>> merged in mainline, to set the cpu_scale field ?
> Yep.

You could use set_power_scale in your platform code to set the
cpu_power of your CPUs until DT is ready for your platform.


> Regards
> Santosh
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at

[Other Archives]     [Linux Kernel Newbies]     [Linux Driver Development]     [Linux Kbuild]     [Fedora Kernel]     [Linux Kernel Testers]     [Linux SH]     [Linux Omap]     [Linux Tape]     [Linux Input]     [Linux Kernel Janitors]     [Linux Kernel Packagers]     [Linux Doc]     [Linux Man Pages]     [Linux API]     [Linux Memory Management]     [Linux Modules]     [Linux Standards]     [Kernel Announce]     [Netdev]     [Git]     [Linux PCI]     Linux CAN Development     [Linux I2C]     [Linux RDMA]     [Linux NUMA]     [Netfilter]     [Netfilter Devel]     [SELinux]     [Bugtraq]     [FIO]     [Linux Perf Users]     [Linux Serial]     [Linux PPP]     [Linux ISDN]     [Linux Next]     [Kernel Stable Commits]     [Linux Tip Commits]     [Kernel MM Commits]     [Linux Security Module]     [AutoFS]     [Filesystem Development]     [Ext3 Filesystem]     [Linux bcache]     [Ext4 Filesystem]     [Linux BTRFS]     [Linux CEPH Filesystem]     [Linux XFS]     [XFS]     [Linux NFS]     [Linux CIFS]     [Ecryptfs]     [Linux NILFS]     [Linux Cachefs]     [Reiser FS]     [Initramfs]     [Linux FB Devel]     [Linux OpenGL]     [DRI Devel]     [Fastboot]     [Linux RT Users]     [Linux RT Stable]     [eCos]     [Corosync]     [Linux Clusters]     [LVS Devel]     [Hot Plug]     [Linux Virtualization]     [KVM]     [KVM PPC]     [KVM ia64]     [Linux Containers]     [Linux Hexagon]     [Linux Cgroups]     [Util Linux]     [Wireless]     [Linux Bluetooth]     [Bluez Devel]     [Ethernet Bridging]     [Embedded Linux]     [Barebox]     [Linux MMC]     [Linux IIO]     [Sparse]     [Smatch]     [Linux Arch]     [x86 Platform Driver]     [Linux ACPI]     [Linux IBM ACPI]     [LM Sensors]     [CPU Freq]     [Linux Power Management]     [Linmodems]     [Linux DCCP]     [Linux SCTP]     [ALSA Devel]     [Linux USB]     [Linux PA RISC]     [Linux Samsung SOC]     [MIPS Linux]     [IBM S/390 Linux]     [ARM Linux]     [ARM Kernel]     [ARM MSM]     [Tegra Devel]     [Sparc Linux]     [Linux Security]     [Linux Sound]     [Linux Media]     [Video 4 Linux]     [Linux IRDA Users]     [Linux for the blind]     [Linux RAID]     [Linux ATA RAID]     [Device Mapper]     [Linux SCSI]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Linux IDE]     [Linux SMP]     [Linux AXP]     [Linux Alpha]     [Linux M68K]     [Linux ia64]     [Linux 8086]     [Linux x86_64]     [Linux Config]     [Linux Apps]     [Linux MSDOS]     [Linux X.25]     [Linux Crypto]     [DM Crypt]     [Linux Trace Users]     [Linux Btrace]     [Linux Watchdog]     [Utrace Devel]     [Linux C Programming]     [Linux Assembly]     [Dash]     [DWARVES]     [Hail Devel]     [Linux Kernel Debugger]     [Linux gcc]     [Gcc Help]     [X.Org]     [Wine]

Add to Google Powered by Linux

[Older Kernel Discussion]     [Yosemite National Park Forum]     [Large Format Photos]     [Gimp]     [Yosemite Photos]     [Stuff]