From: "Alex Bennée" <alex.bennee@linaro.org>
To: Niek Linnenbank <nieklinnenbank@gmail.com>
Cc: qemu-devel@nongnu.org, qemu-arm@nongnu.org,
peter.maydell@linaro.org, philmd@redhat.com, b.galvani@gmail.com,
jasowang@redhat.com, imammedo@redhat.com
Subject: Re: [PATCH v6 06/18] hw/arm/allwinner: add CPU Configuration module
Date: Tue, 03 Mar 2020 12:09:17 +0000 [thread overview]
Message-ID: <87d09t7i8i.fsf@linaro.org> (raw)
In-Reply-To: <20200301215029.15196-7-nieklinnenbank@gmail.com>
Niek Linnenbank <nieklinnenbank@gmail.com> writes:
> Various Allwinner System on Chip designs contain multiple processors
> that can be configured and reset using the generic CPU Configuration
> module interface. This commit adds support for the Allwinner CPU
> configuration interface which emulates the following features:
>
> * CPU reset
> * CPU status
>
> Signed-off-by: Niek Linnenbank <nieklinnenbank@gmail.com>
<snip>
> +
> +/* CPUCFG constants */
> +enum {
> + CPU_EXCEPTION_LEVEL_ON_RESET = 3, /* EL3 */
> +};
> +
> +static void allwinner_cpucfg_cpu_reset(AwCpuCfgState *s, uint8_t cpu_id)
> +{
> + int ret;
> +
> + trace_allwinner_cpucfg_cpu_reset(cpu_id, s->entry_addr);
> +
> + ret = arm_set_cpu_on(cpu_id, s->entry_addr, 0,
> + CPU_EXCEPTION_LEVEL_ON_RESET, false);
According to the arm_set_cpu_on code:
if (!target_aa64 && arm_feature(&target_cpu->env, ARM_FEATURE_AARCH64)) {
/*
* For now we don't support booting an AArch64 CPU in AArch32 mode
* TODO: We should add this support later
*/
qemu_log_mask(LOG_UNIMP,
"[ARM]%s: Starting AArch64 CPU %" PRId64
" in AArch32 mode is not supported yet\n",
__func__, cpuid);
return QEMU_ARM_POWERCTL_INVALID_PARAM;
}
Do you really want to reboot in aarch32 mode on a reset? If so we should
fix the TODO.
--
Alex Bennée
WARNING: multiple messages have this Message-ID (diff)
From: "Alex Bennée" <alex.bennee@linaro.org>
To: Niek Linnenbank <nieklinnenbank@gmail.com>
Cc: peter.maydell@linaro.org, jasowang@redhat.com,
qemu-devel@nongnu.org, b.galvani@gmail.com, qemu-arm@nongnu.org,
imammedo@redhat.com, philmd@redhat.com
Subject: Re: [PATCH v6 06/18] hw/arm/allwinner: add CPU Configuration module
Date: Tue, 03 Mar 2020 12:09:17 +0000 [thread overview]
Message-ID: <87d09t7i8i.fsf@linaro.org> (raw)
In-Reply-To: <20200301215029.15196-7-nieklinnenbank@gmail.com>
Niek Linnenbank <nieklinnenbank@gmail.com> writes:
> Various Allwinner System on Chip designs contain multiple processors
> that can be configured and reset using the generic CPU Configuration
> module interface. This commit adds support for the Allwinner CPU
> configuration interface which emulates the following features:
>
> * CPU reset
> * CPU status
>
> Signed-off-by: Niek Linnenbank <nieklinnenbank@gmail.com>
<snip>
> +
> +/* CPUCFG constants */
> +enum {
> + CPU_EXCEPTION_LEVEL_ON_RESET = 3, /* EL3 */
> +};
> +
> +static void allwinner_cpucfg_cpu_reset(AwCpuCfgState *s, uint8_t cpu_id)
> +{
> + int ret;
> +
> + trace_allwinner_cpucfg_cpu_reset(cpu_id, s->entry_addr);
> +
> + ret = arm_set_cpu_on(cpu_id, s->entry_addr, 0,
> + CPU_EXCEPTION_LEVEL_ON_RESET, false);
According to the arm_set_cpu_on code:
if (!target_aa64 && arm_feature(&target_cpu->env, ARM_FEATURE_AARCH64)) {
/*
* For now we don't support booting an AArch64 CPU in AArch32 mode
* TODO: We should add this support later
*/
qemu_log_mask(LOG_UNIMP,
"[ARM]%s: Starting AArch64 CPU %" PRId64
" in AArch32 mode is not supported yet\n",
__func__, cpuid);
return QEMU_ARM_POWERCTL_INVALID_PARAM;
}
Do you really want to reboot in aarch32 mode on a reset? If so we should
fix the TODO.
--
Alex Bennée
next prev parent reply other threads:[~2020-03-03 12:09 UTC|newest]
Thread overview: 84+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-01 21:50 [PATCH v6 00/18] Add Allwinner H3 SoC and Orange Pi PC Machine Niek Linnenbank
2020-03-01 21:50 ` Niek Linnenbank
2020-03-01 21:50 ` [PATCH v6 01/18] hw/arm: add Allwinner H3 System-on-Chip Niek Linnenbank
2020-03-01 21:50 ` Niek Linnenbank
2020-03-03 10:53 ` Alex Bennée
2020-03-03 10:53 ` Alex Bennée
2020-03-01 21:50 ` [PATCH v6 02/18] hw/arm: add Xunlong Orange Pi PC machine Niek Linnenbank
2020-03-01 21:50 ` Niek Linnenbank
2020-03-03 11:02 ` Alex Bennée
2020-03-03 11:02 ` Alex Bennée
2020-03-01 21:50 ` [PATCH v6 03/18] hw/arm/allwinner-h3: add Clock Control Unit Niek Linnenbank
2020-03-01 21:50 ` Niek Linnenbank
2020-03-03 11:10 ` Alex Bennée
2020-03-03 11:10 ` Alex Bennée
2020-03-01 21:50 ` [PATCH v6 04/18] hw/arm/allwinner-h3: add USB host controller Niek Linnenbank
2020-03-01 21:50 ` Niek Linnenbank
2020-03-03 11:11 ` Alex Bennée
2020-03-03 11:11 ` Alex Bennée
2020-03-01 21:50 ` [PATCH v6 05/18] hw/arm/allwinner-h3: add System Control module Niek Linnenbank
2020-03-01 21:50 ` Niek Linnenbank
2020-03-03 12:01 ` Alex Bennée
2020-03-03 12:01 ` Alex Bennée
2020-03-01 21:50 ` [PATCH v6 06/18] hw/arm/allwinner: add CPU Configuration module Niek Linnenbank
2020-03-01 21:50 ` Niek Linnenbank
2020-03-03 12:09 ` Alex Bennée [this message]
2020-03-03 12:09 ` Alex Bennée
2020-03-03 20:15 ` Niek Linnenbank
2020-03-03 20:15 ` Niek Linnenbank
2020-03-09 11:18 ` Peter Maydell
2020-03-09 11:18 ` Peter Maydell
2020-03-10 19:30 ` Niek Linnenbank
2020-03-10 19:30 ` Niek Linnenbank
2020-03-01 21:50 ` [PATCH v6 07/18] hw/arm/allwinner: add Security Identifier device Niek Linnenbank
2020-03-01 21:50 ` Niek Linnenbank
2020-03-01 21:50 ` [PATCH v6 08/18] hw/arm/allwinner: add SD/MMC host controller Niek Linnenbank
2020-03-01 21:50 ` Niek Linnenbank
2020-03-03 12:34 ` Alex Bennée
2020-03-03 12:34 ` Alex Bennée
2020-03-01 21:50 ` [PATCH v6 09/18] hw/arm/allwinner-h3: add EMAC ethernet device Niek Linnenbank
2020-03-01 21:50 ` Niek Linnenbank
2020-03-01 21:50 ` [PATCH v6 10/18] hw/arm/allwinner-h3: add Boot ROM support Niek Linnenbank
2020-03-01 21:50 ` Niek Linnenbank
2020-03-01 21:50 ` [PATCH v6 11/18] hw/arm/allwinner-h3: add SDRAM controller device Niek Linnenbank
2020-03-01 21:50 ` Niek Linnenbank
2020-03-01 21:50 ` [PATCH v6 12/18] hw/arm/allwinner: add RTC device support Niek Linnenbank
2020-03-01 21:50 ` Niek Linnenbank
2020-03-01 21:50 ` [PATCH v6 13/18] tests/boot_linux_console: Add a quick test for the OrangePi PC board Niek Linnenbank
2020-03-01 21:50 ` Niek Linnenbank
2020-03-01 21:50 ` [PATCH v6 14/18] tests/boot_linux_console: Add initrd test for the Orange Pi " Niek Linnenbank
2020-03-01 21:50 ` Niek Linnenbank
2020-03-01 21:50 ` [PATCH v6 15/18] tests/boot_linux_console: Add a SD card test for the OrangePi " Niek Linnenbank
2020-03-01 21:50 ` Niek Linnenbank
2020-03-01 21:50 ` [PATCH v6 16/18] tests/boot_linux_console: Add a SLOW test booting Ubuntu on OrangePi PC Niek Linnenbank
2020-03-01 21:50 ` Niek Linnenbank
2020-03-01 21:50 ` [PATCH v6 17/18] tests/boot_linux_console: Test booting NetBSD via U-Boot " Niek Linnenbank
2020-03-01 21:50 ` Niek Linnenbank
2020-03-01 21:50 ` [PATCH v6 18/18] docs: add Orange Pi PC document Niek Linnenbank
2020-03-01 21:50 ` Niek Linnenbank
2020-03-04 10:35 ` Alex Bennée
2020-03-04 10:35 ` Alex Bennée
2020-03-04 20:55 ` Niek Linnenbank
2020-03-04 20:55 ` Niek Linnenbank
2020-03-09 11:21 ` Peter Maydell
2020-03-09 11:21 ` Peter Maydell
2020-03-09 19:38 ` Niek Linnenbank
2020-03-09 19:38 ` Niek Linnenbank
2020-03-09 19:42 ` Peter Maydell
2020-03-09 19:42 ` Peter Maydell
2020-03-09 20:05 ` Niek Linnenbank
2020-03-09 20:05 ` Niek Linnenbank
2020-03-09 20:12 ` Peter Maydell
2020-03-09 20:12 ` Peter Maydell
2020-03-09 20:47 ` Niek Linnenbank
2020-03-09 20:47 ` Niek Linnenbank
2020-03-09 22:01 ` Peter Maydell
2020-03-09 22:01 ` Peter Maydell
2020-03-10 19:09 ` Niek Linnenbank
2020-03-10 19:09 ` Niek Linnenbank
2020-03-09 19:35 ` Niek Linnenbank
2020-03-09 19:35 ` Niek Linnenbank
2020-03-10 8:15 ` Alex Bennée
2020-03-10 8:15 ` Alex Bennée
2020-03-10 19:10 ` Niek Linnenbank
2020-03-10 19:10 ` Niek Linnenbank
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d09t7i8i.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=b.galvani@gmail.com \
--cc=imammedo@redhat.com \
--cc=jasowang@redhat.com \
--cc=nieklinnenbank@gmail.com \
--cc=peter.maydell@linaro.org \
--cc=philmd@redhat.com \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.