* [PATCH v3] rcutorture: Add basic ARM64 support to run scripts
@ 2018-01-12 10:11 lianglihao at huawei.com
2018-01-12 17:52 ` Paul E. McKenney
0 siblings, 1 reply; 4+ messages in thread
From: lianglihao at huawei.com @ 2018-01-12 10:11 UTC (permalink / raw)
To: linux-arm-kernel
From: Lihao Liang <lianglihao@huawei.com>
This commit adds support of the qemu command qemu-system-aarch64
to rcutorture.
Signed-off-by: Lihao Liang <lianglihao@huawei.com>
---
Comparing to the previous version, this patch lifts the limitation of
maximum 8 CPUs of option "-M virt" by adding "gic-version=host" to it.
This allows qemu to use the maximum CPU number supported by the actual
hardware.
This commit is against RCU's git branch rcu/dev
commit 505b61b2ec1d ("EXP: rcu: Add debugging info to other assertion")
tools/testing/selftests/rcutorture/bin/functions.sh | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/rcutorture/bin/functions.sh b/tools/testing/selftests/rcutorture/bin/functions.sh
index 07a1377..65f6655 100644
--- a/tools/testing/selftests/rcutorture/bin/functions.sh
+++ b/tools/testing/selftests/rcutorture/bin/functions.sh
@@ -136,6 +136,9 @@ identify_boot_image () {
qemu-system-x86_64|qemu-system-i386)
echo arch/x86/boot/bzImage
;;
+ qemu-system-aarch64)
+ echo arch/arm64/boot/Image
+ ;;
*)
echo vmlinux
;;
@@ -158,6 +161,9 @@ identify_qemu () {
elif echo $u | grep -q "Intel 80386"
then
echo qemu-system-i386
+ elif echo $u | grep -q aarch64
+ then
+ echo qemu-system-aarch64
elif uname -a | grep -q ppc64
then
echo qemu-system-ppc64
@@ -176,16 +182,20 @@ identify_qemu () {
# Output arguments for the qemu "-append" string based on CPU type
# and the TORTURE_QEMU_INTERACTIVE environment variable.
identify_qemu_append () {
+ local console=ttyS0
case "$1" in
qemu-system-x86_64|qemu-system-i386)
echo noapic selinux=0 initcall_debug debug
;;
+ qemu-system-aarch64)
+ console=ttyAMA0
+ ;;
esac
if test -n "$TORTURE_QEMU_INTERACTIVE"
then
echo root=/dev/sda
else
- echo console=ttyS0
+ echo console=$console
fi
}
@@ -197,6 +207,9 @@ identify_qemu_args () {
case "$1" in
qemu-system-x86_64|qemu-system-i386)
;;
+ qemu-system-aarch64)
+ echo -machine virt,gic-version=host -cpu host
+ ;;
qemu-system-ppc64)
echo -enable-kvm -M pseries -nodefaults
echo -device spapr-vscsi
@@ -254,7 +267,7 @@ specify_qemu_cpus () {
echo $2
else
case "$1" in
- qemu-system-x86_64|qemu-system-i386)
+ qemu-system-x86_64|qemu-system-i386|qemu-system-aarch64)
echo $2 -smp $3
;;
qemu-system-ppc64)
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH v3] rcutorture: Add basic ARM64 support to run scripts 2018-01-12 10:11 [PATCH v3] rcutorture: Add basic ARM64 support to run scripts lianglihao at huawei.com @ 2018-01-12 17:52 ` Paul E. McKenney 2018-01-12 18:32 ` Lihao Liang 0 siblings, 1 reply; 4+ messages in thread From: Paul E. McKenney @ 2018-01-12 17:52 UTC (permalink / raw) To: linux-arm-kernel On Fri, Jan 12, 2018 at 06:11:32PM +0800, lianglihao at huawei.com wrote: > From: Lihao Liang <lianglihao@huawei.com> > > This commit adds support of the qemu command qemu-system-aarch64 > to rcutorture. > > Signed-off-by: Lihao Liang <lianglihao@huawei.com> This is to replace your previous patch, not to apply on top of it, correct? (Either way is fine, just please let me know.) Thanx, Paul > --- > > Comparing to the previous version, this patch lifts the limitation of > maximum 8 CPUs of option "-M virt" by adding "gic-version=host" to it. > This allows qemu to use the maximum CPU number supported by the actual > hardware. > > This commit is against RCU's git branch rcu/dev > > commit 505b61b2ec1d ("EXP: rcu: Add debugging info to other assertion") > > > tools/testing/selftests/rcutorture/bin/functions.sh | 17 +++++++++++++++-- > 1 file changed, 15 insertions(+), 2 deletions(-) > > diff --git a/tools/testing/selftests/rcutorture/bin/functions.sh b/tools/testing/selftests/rcutorture/bin/functions.sh > index 07a1377..65f6655 100644 > --- a/tools/testing/selftests/rcutorture/bin/functions.sh > +++ b/tools/testing/selftests/rcutorture/bin/functions.sh > @@ -136,6 +136,9 @@ identify_boot_image () { > qemu-system-x86_64|qemu-system-i386) > echo arch/x86/boot/bzImage > ;; > + qemu-system-aarch64) > + echo arch/arm64/boot/Image > + ;; > *) > echo vmlinux > ;; > @@ -158,6 +161,9 @@ identify_qemu () { > elif echo $u | grep -q "Intel 80386" > then > echo qemu-system-i386 > + elif echo $u | grep -q aarch64 > + then > + echo qemu-system-aarch64 > elif uname -a | grep -q ppc64 > then > echo qemu-system-ppc64 > @@ -176,16 +182,20 @@ identify_qemu () { > # Output arguments for the qemu "-append" string based on CPU type > # and the TORTURE_QEMU_INTERACTIVE environment variable. > identify_qemu_append () { > + local console=ttyS0 > case "$1" in > qemu-system-x86_64|qemu-system-i386) > echo noapic selinux=0 initcall_debug debug > ;; > + qemu-system-aarch64) > + console=ttyAMA0 > + ;; > esac > if test -n "$TORTURE_QEMU_INTERACTIVE" > then > echo root=/dev/sda > else > - echo console=ttyS0 > + echo console=$console > fi > } > > @@ -197,6 +207,9 @@ identify_qemu_args () { > case "$1" in > qemu-system-x86_64|qemu-system-i386) > ;; > + qemu-system-aarch64) > + echo -machine virt,gic-version=host -cpu host > + ;; > qemu-system-ppc64) > echo -enable-kvm -M pseries -nodefaults > echo -device spapr-vscsi > @@ -254,7 +267,7 @@ specify_qemu_cpus () { > echo $2 > else > case "$1" in > - qemu-system-x86_64|qemu-system-i386) > + qemu-system-x86_64|qemu-system-i386|qemu-system-aarch64) > echo $2 -smp $3 > ;; > qemu-system-ppc64) > -- > 2.7.4 > ^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v3] rcutorture: Add basic ARM64 support to run scripts 2018-01-12 17:52 ` Paul E. McKenney @ 2018-01-12 18:32 ` Lihao Liang 2018-01-12 19:09 ` Paul E. McKenney 0 siblings, 1 reply; 4+ messages in thread From: Lihao Liang @ 2018-01-12 18:32 UTC (permalink / raw) To: linux-arm-kernel On 2018/1/13 1:52, Paul E. McKenney wrote: > On Fri, Jan 12, 2018 at 06:11:32PM +0800, lianglihao at huawei.com wrote: >> From: Lihao Liang <lianglihao@huawei.com> >> >> This commit adds support of the qemu command qemu-system-aarch64 >> to rcutorture. >> >> Signed-off-by: Lihao Liang <lianglihao@huawei.com> > > This is to replace your previous patch, not to apply on top of it, > correct? (Either way is fine, just please let me know.) > Please replace the previous one. Thanks, Lihao. > Thanx, Paul > >> --- >> >> Comparing to the previous version, this patch lifts the limitation of >> maximum 8 CPUs of option "-M virt" by adding "gic-version=host" to it. >> This allows qemu to use the maximum CPU number supported by the actual >> hardware. >> >> This commit is against RCU's git branch rcu/dev >> >> commit 505b61b2ec1d ("EXP: rcu: Add debugging info to other assertion") >> >> >> tools/testing/selftests/rcutorture/bin/functions.sh | 17 +++++++++++++++-- >> 1 file changed, 15 insertions(+), 2 deletions(-) >> >> diff --git a/tools/testing/selftests/rcutorture/bin/functions.sh b/tools/testing/selftests/rcutorture/bin/functions.sh >> index 07a1377..65f6655 100644 >> --- a/tools/testing/selftests/rcutorture/bin/functions.sh >> +++ b/tools/testing/selftests/rcutorture/bin/functions.sh >> @@ -136,6 +136,9 @@ identify_boot_image () { >> qemu-system-x86_64|qemu-system-i386) >> echo arch/x86/boot/bzImage >> ;; >> + qemu-system-aarch64) >> + echo arch/arm64/boot/Image >> + ;; >> *) >> echo vmlinux >> ;; >> @@ -158,6 +161,9 @@ identify_qemu () { >> elif echo $u | grep -q "Intel 80386" >> then >> echo qemu-system-i386 >> + elif echo $u | grep -q aarch64 >> + then >> + echo qemu-system-aarch64 >> elif uname -a | grep -q ppc64 >> then >> echo qemu-system-ppc64 >> @@ -176,16 +182,20 @@ identify_qemu () { >> # Output arguments for the qemu "-append" string based on CPU type >> # and the TORTURE_QEMU_INTERACTIVE environment variable. >> identify_qemu_append () { >> + local console=ttyS0 >> case "$1" in >> qemu-system-x86_64|qemu-system-i386) >> echo noapic selinux=0 initcall_debug debug >> ;; >> + qemu-system-aarch64) >> + console=ttyAMA0 >> + ;; >> esac >> if test -n "$TORTURE_QEMU_INTERACTIVE" >> then >> echo root=/dev/sda >> else >> - echo console=ttyS0 >> + echo console=$console >> fi >> } >> >> @@ -197,6 +207,9 @@ identify_qemu_args () { >> case "$1" in >> qemu-system-x86_64|qemu-system-i386) >> ;; >> + qemu-system-aarch64) >> + echo -machine virt,gic-version=host -cpu host >> + ;; >> qemu-system-ppc64) >> echo -enable-kvm -M pseries -nodefaults >> echo -device spapr-vscsi >> @@ -254,7 +267,7 @@ specify_qemu_cpus () { >> echo $2 >> else >> case "$1" in >> - qemu-system-x86_64|qemu-system-i386) >> + qemu-system-x86_64|qemu-system-i386|qemu-system-aarch64) >> echo $2 -smp $3 >> ;; >> qemu-system-ppc64) >> -- >> 2.7.4 >> > > > . > ^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v3] rcutorture: Add basic ARM64 support to run scripts 2018-01-12 18:32 ` Lihao Liang @ 2018-01-12 19:09 ` Paul E. McKenney 0 siblings, 0 replies; 4+ messages in thread From: Paul E. McKenney @ 2018-01-12 19:09 UTC (permalink / raw) To: linux-arm-kernel On Sat, Jan 13, 2018 at 02:32:20AM +0800, Lihao Liang wrote: > > > On 2018/1/13 1:52, Paul E. McKenney wrote: > > On Fri, Jan 12, 2018 at 06:11:32PM +0800, lianglihao at huawei.com wrote: > >> From: Lihao Liang <lianglihao@huawei.com> > >> > >> This commit adds support of the qemu command qemu-system-aarch64 > >> to rcutorture. > >> > >> Signed-off-by: Lihao Liang <lianglihao@huawei.com> > > > > This is to replace your previous patch, not to apply on top of it, > > correct? (Either way is fine, just please let me know.) > > Please replace the previous one. It has been replaced, thank you! Thanx, Paul > Thanks, > Lihao. > > > Thanx, Paul > > > >> --- > >> > >> Comparing to the previous version, this patch lifts the limitation of > >> maximum 8 CPUs of option "-M virt" by adding "gic-version=host" to it. > >> This allows qemu to use the maximum CPU number supported by the actual > >> hardware. > >> > >> This commit is against RCU's git branch rcu/dev > >> > >> commit 505b61b2ec1d ("EXP: rcu: Add debugging info to other assertion") > >> > >> > >> tools/testing/selftests/rcutorture/bin/functions.sh | 17 +++++++++++++++-- > >> 1 file changed, 15 insertions(+), 2 deletions(-) > >> > >> diff --git a/tools/testing/selftests/rcutorture/bin/functions.sh b/tools/testing/selftests/rcutorture/bin/functions.sh > >> index 07a1377..65f6655 100644 > >> --- a/tools/testing/selftests/rcutorture/bin/functions.sh > >> +++ b/tools/testing/selftests/rcutorture/bin/functions.sh > >> @@ -136,6 +136,9 @@ identify_boot_image () { > >> qemu-system-x86_64|qemu-system-i386) > >> echo arch/x86/boot/bzImage > >> ;; > >> + qemu-system-aarch64) > >> + echo arch/arm64/boot/Image > >> + ;; > >> *) > >> echo vmlinux > >> ;; > >> @@ -158,6 +161,9 @@ identify_qemu () { > >> elif echo $u | grep -q "Intel 80386" > >> then > >> echo qemu-system-i386 > >> + elif echo $u | grep -q aarch64 > >> + then > >> + echo qemu-system-aarch64 > >> elif uname -a | grep -q ppc64 > >> then > >> echo qemu-system-ppc64 > >> @@ -176,16 +182,20 @@ identify_qemu () { > >> # Output arguments for the qemu "-append" string based on CPU type > >> # and the TORTURE_QEMU_INTERACTIVE environment variable. > >> identify_qemu_append () { > >> + local console=ttyS0 > >> case "$1" in > >> qemu-system-x86_64|qemu-system-i386) > >> echo noapic selinux=0 initcall_debug debug > >> ;; > >> + qemu-system-aarch64) > >> + console=ttyAMA0 > >> + ;; > >> esac > >> if test -n "$TORTURE_QEMU_INTERACTIVE" > >> then > >> echo root=/dev/sda > >> else > >> - echo console=ttyS0 > >> + echo console=$console > >> fi > >> } > >> > >> @@ -197,6 +207,9 @@ identify_qemu_args () { > >> case "$1" in > >> qemu-system-x86_64|qemu-system-i386) > >> ;; > >> + qemu-system-aarch64) > >> + echo -machine virt,gic-version=host -cpu host > >> + ;; > >> qemu-system-ppc64) > >> echo -enable-kvm -M pseries -nodefaults > >> echo -device spapr-vscsi > >> @@ -254,7 +267,7 @@ specify_qemu_cpus () { > >> echo $2 > >> else > >> case "$1" in > >> - qemu-system-x86_64|qemu-system-i386) > >> + qemu-system-x86_64|qemu-system-i386|qemu-system-aarch64) > >> echo $2 -smp $3 > >> ;; > >> qemu-system-ppc64) > >> -- > >> 2.7.4 > >> > > > > > > . > > > ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-01-12 19:09 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2018-01-12 10:11 [PATCH v3] rcutorture: Add basic ARM64 support to run scripts lianglihao at huawei.com 2018-01-12 17:52 ` Paul E. McKenney 2018-01-12 18:32 ` Lihao Liang 2018-01-12 19:09 ` Paul E. McKenney
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).