On Wed, Oct 30, 2019 at 09:22:24PM +0800, Jiaxun Yang wrote:
A Golang developer reported MIPS hwcap isn't reflecting instructions that the processor actually supported so programs can't apply optimized code at runtime.
Thus we export the ASEs that can be used in userspace programs.
Reported-by: Meng Zhuo mengzhuo1203@gmail.com Signed-off-by: Jiaxun Yang jiaxun.yang@flygoat.com Cc: linux-mips@vger.kernel.org Cc: Paul Burton paul.burton@mips.com Cc: stable@vger.kernel.org # 4.14+ Signed-off-by: Paul Burton paul.burton@mips.com
arch/mips/include/uapi/asm/hwcap.h | 11 ++++++++++ arch/mips/kernel/cpu-probe.c | 33 ++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+)
This fails to apply to the current 4.14.y tree:
checking file arch/mips/include/uapi/asm/hwcap.h Hunk #1 FAILED at 6. 1 out of 1 hunk FAILED checking file arch/mips/kernel/cpu-probe.c Hunk #1 succeeded at 2076 (offset -104 lines).
Can you refresh it and resend? Also remember to include the git id that this patch is in Linus's tree, I had to look it up by hand :(
thanks,
greg k-h