Re: [U-Boot] [PATCH 1/4] x86: Implement reset_cpu() correctly for modern CPUs

2015-04-28 Thread Simon Glass
Hi Bin, On 26 April 2015 at 22:56, Bin Meng wrote: > Hi Simon, > > On Sat, Apr 25, 2015 at 11:04 PM, Simon Glass wrote: >> The existing code is pretty ancient and is unreliable on modern hardware. >> Generally it will hang. >> >> We can use port 0xcf9 to initiate reset on more modern hardware (s

Re: [U-Boot] [PATCH 1/4] x86: Implement reset_cpu() correctly for modern CPUs

2015-04-26 Thread Bin Meng
Hi Simon, On Sat, Apr 25, 2015 at 11:04 PM, Simon Glass wrote: > The existing code is pretty ancient and is unreliable on modern hardware. > Generally it will hang. > > We can use port 0xcf9 to initiate reset on more modern hardware (say in the > last 10 years). Update the reset_cpu() function to

[U-Boot] [PATCH 1/4] x86: Implement reset_cpu() correctly for modern CPUs

2015-04-25 Thread Simon Glass
The existing code is pretty ancient and is unreliable on modern hardware. Generally it will hang. We can use port 0xcf9 to initiate reset on more modern hardware (say in the last 10 years). Update the reset_cpu() function to do this, and add a new 'full reset' function to perform a full power cycl