Re: [PATCH] kexec: return error of machine_kexec() fails

2013-07-10 Thread Russell King - ARM Linux
On Wed, Jul 10, 2013 at 01:42:17PM -0700, Eric W. Biederman wrote: > I meant code not hardware architecture. We keep having code thrown in > the the shutdown paths because ARM only supports cpu shutdown via cpu > hotunplug and cpu hotunplug is not universally available. > > That is a software

Re: [PATCH] kexec: return error of machine_kexec() fails

2013-07-10 Thread Eric W. Biederman
Stephen Warren writes: > On 07/10/2013 08:36 AM, Eric W. Biederman wrote: >> Simon Horman writes: >> >>> From: Stephen Warren >>> >>> Prior to commit 3ab8352 "kexec jump", if machine_kexec() returned, >>> sys_reboot() would return -EINVAL. This patch restores this behaviour >>> for the

Re: [PATCH] kexec: return error of machine_kexec() fails

2013-07-10 Thread Stephen Warren
On 07/10/2013 08:36 AM, Eric W. Biederman wrote: > Simon Horman writes: > >> From: Stephen Warren >> >> Prior to commit 3ab8352 "kexec jump", if machine_kexec() returned, >> sys_reboot() would return -EINVAL. This patch restores this behaviour >> for the non-KEXEC_JUMP case, where

Re: [PATCH] kexec: return error of machine_kexec() fails

2013-07-10 Thread Eric W. Biederman
Simon Horman writes: > From: Stephen Warren > > Prior to commit 3ab8352 "kexec jump", if machine_kexec() returned, > sys_reboot() would return -EINVAL. This patch restores this behaviour > for the non-KEXEC_JUMP case, where machine_kexec() is not expected to > return. > > This situation can

Re: [PATCH] kexec: return error of machine_kexec() fails

2013-07-10 Thread Eric W. Biederman
Simon Horman ho...@verge.net.au writes: From: Stephen Warren swar...@nvidia.com Prior to commit 3ab8352 kexec jump, if machine_kexec() returned, sys_reboot() would return -EINVAL. This patch restores this behaviour for the non-KEXEC_JUMP case, where machine_kexec() is not expected to

Re: [PATCH] kexec: return error of machine_kexec() fails

2013-07-10 Thread Stephen Warren
On 07/10/2013 08:36 AM, Eric W. Biederman wrote: Simon Horman ho...@verge.net.au writes: From: Stephen Warren swar...@nvidia.com Prior to commit 3ab8352 kexec jump, if machine_kexec() returned, sys_reboot() would return -EINVAL. This patch restores this behaviour for the non-KEXEC_JUMP

Re: [PATCH] kexec: return error of machine_kexec() fails

2013-07-10 Thread Eric W. Biederman
Stephen Warren swar...@wwwdotorg.org writes: On 07/10/2013 08:36 AM, Eric W. Biederman wrote: Simon Horman ho...@verge.net.au writes: From: Stephen Warren swar...@nvidia.com Prior to commit 3ab8352 kexec jump, if machine_kexec() returned, sys_reboot() would return -EINVAL. This patch

Re: [PATCH] kexec: return error of machine_kexec() fails

2013-07-10 Thread Russell King - ARM Linux
On Wed, Jul 10, 2013 at 01:42:17PM -0700, Eric W. Biederman wrote: I meant code not hardware architecture. We keep having code thrown in the the shutdown paths because ARM only supports cpu shutdown via cpu hotunplug and cpu hotunplug is not universally available. That is a software

[PATCH] kexec: return error of machine_kexec() fails

2013-07-09 Thread Simon Horman
From: Stephen Warren Prior to commit 3ab8352 "kexec jump", if machine_kexec() returned, sys_reboot() would return -EINVAL. This patch restores this behaviour for the non-KEXEC_JUMP case, where machine_kexec() is not expected to return. This situation can occur on ARM, where kexec requires

[PATCH] kexec: return error of machine_kexec() fails

2013-07-09 Thread Simon Horman
From: Stephen Warren swar...@nvidia.com Prior to commit 3ab8352 kexec jump, if machine_kexec() returned, sys_reboot() would return -EINVAL. This patch restores this behaviour for the non-KEXEC_JUMP case, where machine_kexec() is not expected to return. This situation can occur on ARM, where