Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-12-04 Thread Pali Rohár
On Friday 28 November 2014 23:24:26 Tony Lindgren wrote: * Pali Rohár pali.ro...@gmail.com [141128 13:43]: On Friday 28 November 2014 21:27:19 Tony Lindgren wrote: Are you saying there are some issues with that? uboot (in mode when is loaded from NOLO) has those issues: 1) uboot

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-12-04 Thread Tony Lindgren
* Pali Rohár pali.ro...@gmail.com [141204 10:36]: see last mail in thread (I CCed you): [PATCH] ARM: /proc/cpuinfo: Use DT machine name when possible There is already some layer for converting ATAGs to DTB and it is in decompresser: arch/arm/boot/compressed/atags_to_fdt.c I do not know

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-12-04 Thread Pali Rohár
On Thursday 04 December 2014 19:40:34 Tony Lindgren wrote: * Pali Rohár pali.ro...@gmail.com [141204 10:36]: see last mail in thread (I CCed you): [PATCH] ARM: /proc/cpuinfo: Use DT machine name when possible There is already some layer for converting ATAGs to DTB and it is in

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-12-03 Thread Pavel Machek
On Fri 2014-11-28 12:27:19, Tony Lindgren wrote: * Pali Rohár pali.ro...@gmail.com [141127 03:34]: On Thursday 27 November 2014 02:12:04 Tony Lindgren wrote: Thinking about this probably the best long term solution is to pass optional board_revision in the kernel cmdline that can

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-12-03 Thread Dmitry Eremin-Solenikov
On Wed, 03 Dec 2014 17:52:04 +0100, Pavel Machek wrote: On Fri 2014-11-28 12:27:19, Tony Lindgren wrote: * Pali Rohár pali.ro...@gmail.com [141127 03:34]: On Thursday 27 November 2014 02:12:04 Tony Lindgren wrote: Thinking about this probably the best long term solution is to pass

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-12-02 Thread Pali Rohár
On Friday 28 November 2014 21:27:19 Tony Lindgren wrote: * Pali Rohár pali.ro...@gmail.com [141127 03:34]: On Thursday 27 November 2014 02:12:04 Tony Lindgren wrote: Thinking about this probably the best long term solution is to pass optional board_revision in the kernel cmdline that

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-11-28 Thread Tony Lindgren
* Pali Rohár pali.ro...@gmail.com [141127 03:34]: On Thursday 27 November 2014 02:12:04 Tony Lindgren wrote: Thinking about this probably the best long term solution is to pass optional board_revision in the kernel cmdline that can be parsed early and copied to system_rev variable.

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-11-28 Thread Pali Rohár
On Friday 28 November 2014 21:27:19 Tony Lindgren wrote: * Pali Rohár pali.ro...@gmail.com [141127 03:34]: On Thursday 27 November 2014 02:12:04 Tony Lindgren wrote: Thinking about this probably the best long term solution is to pass optional board_revision in the kernel cmdline that

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-11-28 Thread Aaro Koskinen
Hi, On Fri, Nov 28, 2014 at 10:41:12PM +0100, Pali Rohár wrote: Does kernel provide some interface for telling userspace applications something like bootreason (e.g power key, software reset, rtc alarm, charger connected, ...)? In N950/N9, NOLO passes this information using kernel command

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-11-28 Thread Tony Lindgren
* Pali Rohár pali.ro...@gmail.com [141128 13:43]: On Friday 28 November 2014 21:27:19 Tony Lindgren wrote: Are you saying there are some issues with that? uboot (in mode when is loaded from NOLO) has those issues: 1) uboot cannot read n900 onenand mtd (uboot onenand driver not working,

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-11-28 Thread Aaro Koskinen
Hi, On Fri, Nov 28, 2014 at 10:41:12PM +0100, Pali Rohár wrote: uboot (in mode when is loaded from NOLO) has those issues: 1) uboot cannot read n900 onenand mtd (uboot onenand driver not working, do not know why) 2) missing support for battery charging (can totally discharge battery) NOLO

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-11-28 Thread Pali Rohár
On Friday 28 November 2014 23:24:26 Tony Lindgren wrote: * Pali Rohár pali.ro...@gmail.com [141128 13:43]: On Friday 28 November 2014 21:27:19 Tony Lindgren wrote: Are you saying there are some issues with that? uboot (in mode when is loaded from NOLO) has those issues: 1) uboot

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-11-28 Thread Pali Rohár
On Friday 28 November 2014 23:26:30 Aaro Koskinen wrote: Hi, On Fri, Nov 28, 2014 at 10:41:12PM +0100, Pali Rohár wrote: Does kernel provide some interface for telling userspace applications something like bootreason (e.g power key, software reset, rtc alarm, charger connected, ...)?

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-11-28 Thread Pali Rohár
On Friday 28 November 2014 23:41:35 Aaro Koskinen wrote: Hi, On Fri, Nov 28, 2014 at 10:41:12PM +0100, Pali Rohár wrote: uboot (in mode when is loaded from NOLO) has those issues: 1) uboot cannot read n900 onenand mtd (uboot onenand driver not working, do not know why) 2) missing

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-11-28 Thread Aaro Koskinen
Hi, On Fri, Nov 28, 2014 at 11:49:00PM +0100, Pali Rohár wrote: On Friday 28 November 2014 23:41:35 Aaro Koskinen wrote: On Fri, Nov 28, 2014 at 10:41:12PM +0100, Pali Rohár wrote: uboot (in mode when is loaded from NOLO) has those issues: 1) uboot cannot read n900 onenand mtd (uboot

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-11-27 Thread Pavel Machek
8 From: Tony Lindgren t...@atomide.com Date: Wed, 26 Nov 2014 11:55:29 -0800 Subject: [PATCH] ARM: OMAP2+: Fix n900 board name for legacy user space N900 legacy user space apps need the board name in /proc/cpuinfo to work properly for the Hardware entry. For other boards

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-11-27 Thread Pali Rohár
On Thursday 27 November 2014 02:12:04 Tony Lindgren wrote: * Pali Rohár pali.ro...@gmail.com [141126 15:40]: With enabled CONFIG_ARM_APPENDED_DTB=y file /proc/atags is missing. OK I guess it should not be needed for DT based booting. If I do not enable CONFIG_ARM_APPENDED_DTB=y then

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-11-26 Thread Pavel Machek
On Tue 2014-10-28 01:01:38, Aaro Koskinen wrote: Hi, On Mon, Oct 27, 2014 at 01:00:09PM -0700, Tony Lindgren wrote: + + if (!of_have_populated_dt()) + pr_warn(WARNING: legacy booting deprecated, please update to boot with .dts\n); + Maybe use WARN so that the warning

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-11-26 Thread Tony Lindgren
* Pavel Machek pa...@ucw.cz [141126 09:31]: On Tue 2014-10-28 01:01:38, Aaro Koskinen wrote: Hi, On Mon, Oct 27, 2014 at 01:00:09PM -0700, Tony Lindgren wrote: + + if (!of_have_populated_dt()) + pr_warn(WARNING: legacy booting deprecated, please update to boot with

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-11-26 Thread Pali Rohár
On Wednesday 26 November 2014 19:19:35 Tony Lindgren wrote: * Pavel Machek pa...@ucw.cz [141126 09:31]: On Tue 2014-10-28 01:01:38, Aaro Koskinen wrote: Hi, On Mon, Oct 27, 2014 at 01:00:09PM -0700, Tony Lindgren wrote: + + if (!of_have_populated_dt()) +

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-11-26 Thread Tony Lindgren
* Pali Rohár pali.ro...@gmail.com [141126 10:59]: On Wednesday 26 November 2014 19:19:35 Tony Lindgren wrote: Maybe Pali can try to restart that discussion? To me it seems the /proc/cpuinfo should be the same as it's a user interface. Sorry forgot the details of the previous

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-11-26 Thread Pali Rohár
On Wednesday 26 November 2014 20:10:28 Tony Lindgren wrote: * Pali Rohár pali.ro...@gmail.com [141126 10:59]: On Wednesday 26 November 2014 19:19:35 Tony Lindgren wrote: Maybe Pali can try to restart that discussion? To me it seems the /proc/cpuinfo should be the same as it's a user

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-11-26 Thread Tony Lindgren
* Pali Rohár pali.ro...@gmail.com [141126 11:24]: On Wednesday 26 November 2014 20:10:28 Tony Lindgren wrote: * Pali Rohár pali.ro...@gmail.com [141126 10:59]: On Wednesday 26 November 2014 19:19:35 Tony Lindgren wrote: Maybe Pali can try to restart that discussion? To me it seems

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-11-26 Thread Pali Rohár
On Wednesday 26 November 2014 21:08:06 Tony Lindgren wrote: * Pali Rohár pali.ro...@gmail.com [141126 11:24]: On Wednesday 26 November 2014 20:10:28 Tony Lindgren wrote: * Pali Rohár pali.ro...@gmail.com [141126 10:59]: On Wednesday 26 November 2014 19:19:35 Tony Lindgren wrote:

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-11-26 Thread Tony Lindgren
* Pali Rohár pali.ro...@gmail.com [141126 15:03]: On Wednesday 26 November 2014 21:08:06 Tony Lindgren wrote: With your patch I'm getting: Hardware: Nokia RX-51 board So patch is good. Is that a Tested-by: then? :) Revision comes from bootloader (via ATAG) and it is HW

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-11-26 Thread Pali Rohár
On Thursday 27 November 2014 00:14:36 Tony Lindgren wrote: * Pali Rohár pali.ro...@gmail.com [141126 15:03]: On Wednesday 26 November 2014 21:08:06 Tony Lindgren wrote: With your patch I'm getting: Hardware: Nokia RX-51 board So patch is good. Is that a Tested-by:

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-11-26 Thread Tony Lindgren
* Pali Rohár pali.ro...@gmail.com [141126 15:40]: With enabled CONFIG_ARM_APPENDED_DTB=y file /proc/atags is missing. OK I guess it should not be needed for DT based booting. The build_tag_list() should parse ATAG_REVISION and then parse_tag_revision() should copy it to system_rev.

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-11-02 Thread Tony Lindgren
* Tony Lindgren t...@atomide.com [141101 15:00]: * Russell King - ARM Linux li...@arm.linux.org.uk [141031 17:46]: However, these are minor compared to the dreadful poweroff behaviour. Still going to have to disable DT booting for the LDP because of that. Sure, I'll let you know as soon

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-11-01 Thread Tony Lindgren
* Russell King - ARM Linux li...@arm.linux.org.uk [141031 17:46]: On Fri, Oct 31, 2014 at 04:37:23PM -0700, Tony Lindgren wrote: Like I posted in this thread, I'm not seeing same errors as you are with your config modified for DT: http://muru.com/for-rmk/dmesg-ldp-dt-v3.18-rc2 Gah,

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-10-31 Thread Russell King - ARM Linux
On Mon, Oct 27, 2014 at 01:00:09PM -0700, Tony Lindgren wrote: We're moving omaps to use device tree based booting and already have omap2, omap4, omap5, am335x and am437x booting in device tree only mode. Only omap3 still has legacy booting still around and we really want to make that

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-10-31 Thread Tony Lindgren
* Russell King - ARM Linux li...@arm.linux.org.uk [141031 12:32]: Last night I tried enabling DT booting on the LDP. This resulted in quite a horrid mess, so I don't think you're there still. Thanks for trying. Other than the mystery battery issue, the others should pretty much go away with

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-10-31 Thread Tony Lindgren
* Tony Lindgren t...@atomide.com [141031 14:16]: * Russell King - ARM Linux li...@arm.linux.org.uk [141031 12:32]: Last night I tried enabling DT booting on the LDP. This resulted in quite a horrid mess, so I don't think you're there still. Thanks for trying. Other than the mystery

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-10-31 Thread Russell King - ARM Linux
On Fri, Oct 31, 2014 at 02:13:26PM -0700, Tony Lindgren wrote: * Russell King - ARM Linux li...@arm.linux.org.uk [141031 12:32]: Last night I tried enabling DT booting on the LDP. This resulted in quite a horrid mess, so I don't think you're there still. Thanks for trying. Other than

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-10-31 Thread Tony Lindgren
* Russell King - ARM Linux li...@arm.linux.org.uk [141031 15:35]: On Fri, Oct 31, 2014 at 02:13:26PM -0700, Tony Lindgren wrote: * Russell King - ARM Linux li...@arm.linux.org.uk [141031 12:32]: WARNING: CPU: 0 PID: 1 at arch/arm/mach-omap2/omap_hwmod.c:2538 _init+0xc8/0x170()

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-10-31 Thread Russell King - ARM Linux
On Fri, Oct 31, 2014 at 04:37:23PM -0700, Tony Lindgren wrote: * Russell King - ARM Linux li...@arm.linux.org.uk [141031 15:35]: On Fri, Oct 31, 2014 at 02:13:26PM -0700, Tony Lindgren wrote: * Russell King - ARM Linux li...@arm.linux.org.uk [141031 12:32]: WARNING: CPU: 0 PID: 1 at

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-10-30 Thread Nishanth Menon
On 10/29/2014 05:31 PM, Aaro Koskinen wrote: Also, you cannot expect all kernel users to know what you have been talking about. E.g. OMAP DMA API deprecation may have been discussed before, but I only learned it after the WARN appeared in the kernel tree. So you should start counting from that.

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-10-29 Thread Nishanth Menon
On 10/28/2014 05:12 PM, Tony Lindgren wrote: * Aaro Koskinen aaro.koski...@iki.fi [141027 16:03]: Hi, On Mon, Oct 27, 2014 at 01:00:09PM -0700, Tony Lindgren wrote: + + if (!of_have_populated_dt()) + pr_warn(WARNING: legacy booting deprecated, please update to boot with

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-10-29 Thread Sebastian Reichel
Hi, On Wed, Oct 29, 2014 at 08:43:03AM -0500, Nishanth Menon wrote: On 10/28/2014 05:12 PM, Tony Lindgren wrote: * Aaro Koskinen aaro.koski...@iki.fi [141027 16:03]: Hi, On Mon, Oct 27, 2014 at 01:00:09PM -0700, Tony Lindgren wrote: + + if (!of_have_populated_dt()) +

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-10-29 Thread Tony Lindgren
* Sebastian Reichel s...@ring0.de [141029 12:01]: Hi, On Wed, Oct 29, 2014 at 08:43:03AM -0500, Nishanth Menon wrote: On 10/28/2014 05:12 PM, Tony Lindgren wrote: * Aaro Koskinen aaro.koski...@iki.fi [141027 16:03]: Hi, On Mon, Oct 27, 2014 at 01:00:09PM -0700, Tony Lindgren

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-10-29 Thread Nishanth Menon
On 12:39-20141029, Tony Lindgren wrote: * Sebastian Reichel s...@ring0.de [141029 12:01]: Hi, On Wed, Oct 29, 2014 at 08:43:03AM -0500, Nishanth Menon wrote: On 10/28/2014 05:12 PM, Tony Lindgren wrote: * Aaro Koskinen aaro.koski...@iki.fi [141027 16:03]: Hi, On Mon, Oct

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-10-29 Thread Tony Lindgren
* Nishanth Menon n...@ti.com [141029 14:47]: On 12:39-20141029, Tony Lindgren wrote: * Sebastian Reichel s...@ring0.de [141029 12:01]: Hi, On Wed, Oct 29, 2014 at 08:43:03AM -0500, Nishanth Menon wrote: On 10/28/2014 05:12 PM, Tony Lindgren wrote: * Aaro Koskinen

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-10-29 Thread Aaro Koskinen
On Wed, Oct 29, 2014 at 04:45:41PM -0500, Nishanth Menon wrote: On 12:39-20141029, Tony Lindgren wrote: OK, you want me to guess? A hundred million days, or maybe ten more minutes, somewhere in there, I just can't say, don't know. How about ~1 year? We have been talking about dt only boot

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-10-29 Thread Sebastian Reichel
Hi, On Wed, Oct 29, 2014 at 12:39:16PM -0700, Tony Lindgren wrote: 8 --- From: Tony Lindgren t...@atomide.com Date: Mon, 27 Oct 2014 13:05:54 -0700 Subject: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode We're moving omaps to use device tree based

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-10-29 Thread Aaro Koskinen
On Wed, Oct 29, 2014 at 12:39:16PM -0700, Tony Lindgren wrote: From: Tony Lindgren t...@atomide.com Date: Mon, 27 Oct 2014 13:05:54 -0700 Subject: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode We're moving omaps to use device tree based booting and already have omap2,

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-10-29 Thread Javier Martinez Canillas
Hello Tony, On Thu, Oct 30, 2014 at 12:11 AM, Aaro Koskinen aaro.koski...@iki.fi wrote: On Wed, Oct 29, 2014 at 12:39:16PM -0700, Tony Lindgren wrote: From: Tony Lindgren t...@atomide.com Date: Mon, 27 Oct 2014 13:05:54 -0700 Subject: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-10-28 Thread Tony Lindgren
* Aaro Koskinen aaro.koski...@iki.fi [141027 16:03]: Hi, On Mon, Oct 27, 2014 at 01:00:09PM -0700, Tony Lindgren wrote: + + if (!of_have_populated_dt()) + pr_warn(WARNING: legacy booting deprecated, please update to boot with .dts\n); + Maybe use WARN so that the

Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode

2014-10-27 Thread Aaro Koskinen
Hi, On Mon, Oct 27, 2014 at 01:00:09PM -0700, Tony Lindgren wrote: + + if (!of_have_populated_dt()) + pr_warn(WARNING: legacy booting deprecated, please update to boot with .dts\n); + Maybe use WARN so that the warning is more verbose and kernel gets tainted? A. -- To