selftests: powerpc: Use "grep -E" instead of "egrep"The latest version of grep claims the egrep is now obsolete so the buildnow contains warnings that look like: egrep: warning: egrep is obsolesc
selftests: powerpc: Use "grep -E" instead of "egrep"The latest version of grep claims the egrep is now obsolete so the buildnow contains warnings that look like: egrep: warning: egrep is obsolescent; using grep -Efix this using "grep -E" instead. sed -i "s/egrep/grep -E/g" `grep egrep -rwl tools/testing/selftests/powerpc`Here are the steps to install the latest grep: wget http://ftp.gnu.org/gnu/grep/grep-3.8.tar.gz tar xf grep-3.8.tar.gz cd grep-3.8 && ./configure && make sudo make install export PATH=/usr/local/bin:$PATHSigned-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>Link: https://lore.kernel.org/r/1669862997-31335-1-git-send-email-yangtiezhu@loongson.cn
show more ...
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 285Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of th
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 285Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation version 2 of the license this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more detailsextracted by the scancode license scanner the SPDX license identifier GPL-2.0-onlyhas been chosen to replace the boilerplate/reference in 100 file(s).Signed-off-by: Thomas Gleixner <tglx@linutronix.de>Reviewed-by: Alexios Zavras <alexios.zavras@intel.com>Reviewed-by: Allison Randal <allison@lohutok.net>Cc: linux-spdx@vger.kernel.orgLink: https://lkml.kernel.org/r/20190529141900.918357685@linutronix.deSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
selftests/powerpc: Add script to test HMI functionalityHMIs (Hypervisor Management|Maintenance Interrupts) are a class of interrupton POWER systems.HMI support has traditionally been exceptional
selftests/powerpc: Add script to test HMI functionalityHMIs (Hypervisor Management|Maintenance Interrupts) are a class of interrupton POWER systems.HMI support has traditionally been exceptionally difficult to test, howeverSkiboot ships a tool that, with the correct magic numbers, will inject them.This, therefore, is a first pass at a script to inject HMIs and monitorLinux's response. It injects an HMI on each core on every chip in turnIt then watches dmesg to see if it's acknowledged by Linux.On a Tuletta, I observed that we see 8 (or sometimes 9 or more) events perinjection, regardless of SMT setting, so we wait for 8 before progressing.It sits in a new scripts/ directory in selftests/powerpc, because it's notdesigned to be run as part of the regular make selftests process. Inparticular, it is quite possibly going to end up garding lots of your CPUs,so it should only be run if you know how to undo that.CC: Mahesh J Salgaonkar <mahesh.salgaonkar@in.ibm.com>Signed-off-by: Daniel Axtens <dja@axtens.net>Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>