Re: [PATCH] MIPS: kexec: Add crashkernel=YM handling

2020-09-21 Thread Thomas Bogendoerfer
On Sat, Sep 19, 2020 at 09:55:46AM +0800, Youling Tang wrote: > When the kernel crashkernel parameter is specified with just a size, > we are supposed to allocate a region from RAM to store the crashkernel. > However, MIPS merely reserves physical address zero with no checking > that there is even

Re: [PATCH] MIPS: kexec: Add crashkernel=YM handling

2020-09-19 Thread Jiaxun Yang
于 2020年9月19日 GMT+08:00 下午4:29:39, Youling Tang 写到: > > >On 09/19/2020 03:02 PM, Jiaxun Yang wrote: >> >> 于 2020年9月19日 GMT+08:00 上午9:55:46, Youling Tang 写到: >>> When the kernel crashkernel parameter is specified with just a size, >>> we are supposed to allocate a region from RAM to store the cr

Re: [PATCH] MIPS: kexec: Add crashkernel=YM handling

2020-09-19 Thread Youling Tang
On 09/19/2020 03:02 PM, Jiaxun Yang wrote: 于 2020年9月19日 GMT+08:00 上午9:55:46, Youling Tang 写到: When the kernel crashkernel parameter is specified with just a size, we are supposed to allocate a region from RAM to store the crashkernel. However, MIPS merely reserves physical address zero with

Re: [PATCH] MIPS: kexec: Add crashkernel=YM handling

2020-09-19 Thread Jiaxun Yang
于 2020年9月19日 GMT+08:00 上午9:55:46, Youling Tang 写到: >When the kernel crashkernel parameter is specified with just a size, >we are supposed to allocate a region from RAM to store the crashkernel. >However, MIPS merely reserves physical address zero with no checking >that there is even RAM there.

[PATCH] MIPS: kexec: Add crashkernel=YM handling

2020-09-18 Thread Youling Tang
When the kernel crashkernel parameter is specified with just a size, we are supposed to allocate a region from RAM to store the crashkernel. However, MIPS merely reserves physical address zero with no checking that there is even RAM there. Fix this by lifting similar code from x86, importing it to