Re: AFTR does not work on arndale 5250

2014-04-08 Thread Daniel Lezcano

On 04/08/2014 06:13 PM, Tomasz Figa wrote:

Hi Daniel, Vikas, Chander,

On 08.04.2014 16:27, Daniel Lezcano wrote:

On 04/08/2014 03:32 PM, Vikas Sajjan wrote:

  Hi Daniel,

  I checked AFTR on v3.14 (
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/log/?id=refs/tags/v3.14)


  on exynos5250 based chromebook (exynos5250-snow.dtb)

I am able to hotplug CPU1  (echo 0 >
/sys/devices/system/cpu/cpu1/online).
I can see, it enters exynos4_enter_core0_aftr() when I hotplug CPU1.


Hi,

thanks a lot for your help.

I reproduced it on my arndale board with linux-samsung/for-next and on
v3.14.

Used the exynos_defconfig, enabled cpuidle and used
exynos5250-arndale.dtb.



You should compare your bootloader versions as this is one of the
aspects that can break AFTR support as it relies on kind of ABI between
bootloader and kernel.


U-Boot 2013.01.-rc1 (Jul 10 2013 - 15:16:09) for ARNDALE5250
gcc-4.7 (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3
GNU ld (GNU Binutils for Ubuntu) 2.23.2



--
  Linaro.org │ Open source software for ARM SoCs

Follow Linaro:   Facebook |
 Twitter |
 Blog

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: AFTR does not work on arndale 5250

2014-04-08 Thread Tomasz Figa

Hi Daniel, Vikas, Chander,

On 08.04.2014 16:27, Daniel Lezcano wrote:

On 04/08/2014 03:32 PM, Vikas Sajjan wrote:

  Hi Daniel,

  I checked AFTR on v3.14 (
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/log/?id=refs/tags/v3.14)

  on exynos5250 based chromebook (exynos5250-snow.dtb)

I am able to hotplug CPU1  (echo 0 >
/sys/devices/system/cpu/cpu1/online).
I can see, it enters exynos4_enter_core0_aftr() when I hotplug CPU1.


Hi,

thanks a lot for your help.

I reproduced it on my arndale board with linux-samsung/for-next and on
v3.14.

Used the exynos_defconfig, enabled cpuidle and used exynos5250-arndale.dtb.



You should compare your bootloader versions as this is one of the 
aspects that can break AFTR support as it relies on kind of ABI between 
bootloader and kernel.


Bets regards,
Tomasz
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: AFTR does not work on arndale 5250

2014-04-08 Thread Daniel Lezcano

On 04/08/2014 03:32 PM, Vikas Sajjan wrote:

  Hi Daniel,

  I checked AFTR on v3.14 (
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/log/?id=refs/tags/v3.14)
  on exynos5250 based chromebook (exynos5250-snow.dtb)

I am able to hotplug CPU1  (echo 0 > /sys/devices/system/cpu/cpu1/online).
I can see, it enters exynos4_enter_core0_aftr() when I hotplug CPU1.


Hi,

thanks a lot for your help.

I reproduced it on my arndale board with linux-samsung/for-next and on 
v3.14.


Used the exynos_defconfig, enabled cpuidle and used exynos5250-arndale.dtb.

I unplugged the cpu1 and then => reboot

echo 0 > /sys/devices/system/cpu/cpu1/online
[   10.220448] IRQ153 no longer affine to CPU1
[   10.220595] CPU1: shutdown
# [0.00] PERCPU: Embedded 7 pages/cpu @ee7c1000 s8192 r8192 
d12288 u32768
[0.00] Built 1 zonelists in Zone order, mobility grouping on. 
Total pages: 516624
[0.00] Kernel command line: console=tty0 
console=ttySAC2,115200n8 drm_kms_helper.edid_firmware=edid-1920x1080.fw 
 root=UUID=fd363

[0.00] PID hash table entries: 4096 (order: 2, 16384 bytes)
[0.00] Dentry cache hash table entries: 131072 (order: 7, 524288 
bytes)
[0.00] Inode-cache hash table entries: 65536 (order: 6, 262144 
bytes)
[0.00] Memory: 2047332K/2072576K available (3678K kernel code, 
228K rwdata, 1148K rodata, 224K init, 263K bss, 25244K reserved, )

[0.00] Virtual kernel memory layout:
[0.00] vector  : 0x - 0x1000   (   4 kB)
[0.00] fixmap  : 0xfff0 - 0xfffe   ( 896 kB)
[0.00] vmalloc : 0xf000 - 0xff00   ( 240 MB)
[0.00] lowmem  : 0xc000 - 0xef80   ( 760 MB)
[0.00] pkmap   : 0xbfe0 - 0xc000   (   2 MB)
[0.00] modules : 0xbf00 - 0xbfe0   (  14 MB)
[0.00]   .text : 0xc0008000 - 0xc04bebfc   (4827 kB)
[0.00]   .init : 0xc04bf000 - 0xc04f7000   ( 224 kB)
[0.00]   .data : 0xc04f8000 - 0xc05312c0   ( 229 kB)
[0.00].bss : 0xc05312cc - 0xc0573274   ( 264 kB)
[0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[0.00] Preemptible hierarchical RCU implementation.
[0.00]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[0.00] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[0.00] NR_IRQS:16 nr_irqs:16 16
[0.00] Exynos5250: clock setup completed, armclk=10
[0.00] Architected cp15 timer(s) running at 24.00MHz (phys).
[0.00] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps 
every 2863311519744ns

[0.00] Switching to timer-based delay loop
[0.000162] Console: colour dummy device 80x30
[0.000510] console [tty0] enabled
[0.000537] Calibrating delay loop (skipped), value calculated using 
timer frequency.. 48.00 BogoMIPS (lpj=12)

[0.000568] pid_max: default: 32768 minimum: 301
[0.000793] Mount-cache hash table entries: 512
[0.013127] CPU: Testing write buffer coherency: ok
[0.013342] CPU0: update cpu_power 1024
[0.013361] CPU0: thread -1, cpu 0, socket 0, mpidr 8000
[0.013389] Setting up static identity map for 0x4037df28 - 0x4037df80
[0.040384] CPU1: Booted secondary processor
[0.040423] CPU1: update cpu_power 1024
[0.040427] CPU1: thread -1, cpu 1, socket 0, mpidr 8001
[0.040511] Brought up 2 CPUs
[0.040552] SMP: Total of 2 processors activated.
[0.040564] CPU: All CPU(s) started in HYP mode.
[0.040576] CPU: Virtualization extensions available.
[0.041035] devtmpfs: initialized
[0.044703] VFP support v0.3: implementor 41 architecture 4 part 30 
variant f rev 0

[0.045189] pinctrl core: initialized pinctrl subsystem
[0.045595] regulator-dummy: no parameters
[0.045937] NET: Registered protocol family 16
[0.046099] DMA: preallocated 256 KiB pool for atomic coherent 
allocations

[0.047025] cpuidle: using governor menu
[0.053567] exynos-audss-clk 381.audss-clock-controller: setup 
completed

[0.061129] EXYNOS5250 PMU Initialize
[0.073526] bio: create slab  at 0
[0.074229] MAIN_DC: no parameters
[0.074479] VDD_33ON_2.8V: 2800 mV
[0.074707] hdmi-en: no parameters
[0.076562] SCSI subsystem initialized
[0.077200] usbcore: registered new interface driver usbfs
[0.077339] usbcore: registered new interface driver hub
[0.077497] usbcore: registered new device driver usb
[0.077983] s3c-i2c 12c6.i2c: slave address 0x66
[0.078004] s3c-i2c 12c6.i2c: bus frequency set to 18 KHz
[0.140328] VDD_ALIVE_1.0V: 1100 mV
[0.160365] VDD_28IO_DP_1.35V: 1200 mV
[0.180403] VDD_COMMON1_1.8V: 1800 mV
[0.195432] VDD_IOPERI_1.8V: 1800 mV
[0.215469] VDD_EXT_1.8V: 1800 mV
[0.235505] VDD_MPLL_1.1V: 1100 mV
[0.255542] VDD_XPLL_1.1V: 1100 mV
[0.275579] VDD_COMMON2_1.0V: 1000 mV
[0.290609] VDD_33ON_3.0V: 3000 mV
[0.310644]

Re: AFTR does not work on arndale 5250

2014-04-08 Thread Chander Kashyap
Hi Daniel,

I have tested on v3.14 Stable on arndale board.
I have tested wit cramfs.

Last commit on tree is:

01d5f3b598b18a5035426c30801adf65822dbd0c

Below are the logs from the console.
$ uname -a
Linux (none) 3.14.0-00604-g0c6d388 #28 SMP PREEMPT Tue Apr 8 19:19:09
IST 2014 armv7l unknown

$ mount -t sysfs sys sys
/ $ echo 0 > /sys/devices/system/cpu/cpu1/online
[  152.439901] IRQ153 no longer affine to CPU1
[  152.440120] CPU1: shutdown

$ cat /sys/devices/system/cpu/cpu0/cpuidle/state1/usage
39
/ $ cat /sys/devices/system/cpu/cpu0/cpuidle/state1/usage
44
/ $ cat /sys/devices/system/cpu/cpu0/cpuidle/state1/usage
46
/ $ cat /sys/devices/system/cpu/cpu0/cpuidle/state1/usage
51
/ $ cat /sys/devices/system/cpu/cpu0/cpuidle/state1/usage
56
/ $ cat /sys/devices/system/cpu/cpu0/cpuidle/state1/usage
61
/ $


It is working perfectly fine.

If still issue is there, please feel free to ask.

On 4 April 2014 18:36, Daniel Lezcano  wrote:
>
> Hi,
>
> I tried to make the idle AFTR state working on arndale 5250 but that leads
> to a kernel reboot and crash.
>
> How to reproduce ?
>
> echo 0 > /sys/devices/system/cpu/cpu1/online
>
> Reproductible on v3.14 and samsung/for-next
>
> Any ideas ?
>
> Thanks
>
>   -- Daniel
>
> --
>   Linaro.org │ Open source software for ARM SoCs
>
> Follow Linaro:   Facebook |
>  Twitter |
>  Blog
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc"
> in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
with warm regards,
Chander Kashyap
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: AFTR does not work on arndale 5250

2014-04-08 Thread Vikas Sajjan
 Hi Daniel,

 I checked AFTR on v3.14 (
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/log/?id=refs/tags/v3.14)
 on exynos5250 based chromebook (exynos5250-snow.dtb)

I am able to hotplug CPU1  (echo 0 > /sys/devices/system/cpu/cpu1/online).
I can see, it enters exynos4_enter_core0_aftr() when I hotplug CPU1.



On Tue, Apr 8, 2014 at 4:31 PM, Tomasz Figa  wrote:
> Hi Daniel,
>
>
> On 04.04.2014 15:06, Daniel Lezcano wrote:
>>
>>
>> Hi,
>>
>> I tried to make the idle AFTR state working on arndale 5250 but that
>> leads to a kernel reboot and crash.
>>
>> How to reproduce ?
>>
>> echo 0 > /sys/devices/system/cpu/cpu1/online
>>
>> Reproductible on v3.14 and samsung/for-next
>>
>> Any ideas ?
>
>
> Added some people that I know that have been working with Arndale.
>
> Best regards,
> Tomasz
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc"
> in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: AFTR does not work on arndale 5250

2014-04-08 Thread Tomasz Figa

Hi Daniel,

On 04.04.2014 15:06, Daniel Lezcano wrote:


Hi,

I tried to make the idle AFTR state working on arndale 5250 but that
leads to a kernel reboot and crash.

How to reproduce ?

echo 0 > /sys/devices/system/cpu/cpu1/online

Reproductible on v3.14 and samsung/for-next

Any ideas ?


Added some people that I know that have been working with Arndale.

Best regards,
Tomasz
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


AFTR does not work on arndale 5250

2014-04-04 Thread Daniel Lezcano


Hi,

I tried to make the idle AFTR state working on arndale 5250 but that 
leads to a kernel reboot and crash.


How to reproduce ?

echo 0 > /sys/devices/system/cpu/cpu1/online

Reproductible on v3.14 and samsung/for-next

Any ideas ?

Thanks

  -- Daniel

--
  Linaro.org │ Open source software for ARM SoCs

Follow Linaro:   Facebook |
 Twitter |
 Blog

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html