[PATCH 0/3] target/riscv: profile handling fixes

Daniel Henrique Barboza posted 3 patches 5 months, 4 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20250520172336.759708-1-dbarboza@ventanamicro.com
Maintainers: Palmer Dabbelt <palmer@dabbelt.com>, Alistair Francis <alistair.francis@wdc.com>, Weiwei Li <liwei1518@gmail.com>, Daniel Henrique Barboza <dbarboza@ventanamicro.com>, Liu Zhiwei <zhiwei_liu@linux.alibaba.com>
There is a newer version of this series
target/riscv/cpu.h            |  15 ++++
target/riscv/riscv-qmp-cmds.c |   2 +-
target/riscv/tcg/tcg-cpu.c    | 138 +++++++++++++++++-----------------
3 files changed, 86 insertions(+), 69 deletions(-)
[PATCH 0/3] target/riscv: profile handling fixes
Posted by Daniel Henrique Barboza 5 months, 4 weeks ago
Hi,

The motivation of this short series is to fix a reported in [1]. A
couple of bugs were fixed along the way.

Björn, these patches should remediate the situation you're experiencing.

Patches based on master.

[1] https://lore.kernel.org/qemu-riscv/87y0usiz22.fsf@all.your.base.are.belong.to.us/

Daniel Henrique Barboza (3):
  target/riscv/tcg: restrict satp_mode changes in cpu_set_profile
  target/riscv/tcg: decouple profile enablement from user prop
  target/riscv: add profile->present flag

 target/riscv/cpu.h            |  15 ++++
 target/riscv/riscv-qmp-cmds.c |   2 +-
 target/riscv/tcg/tcg-cpu.c    | 138 +++++++++++++++++-----------------
 3 files changed, 86 insertions(+), 69 deletions(-)

-- 
2.49.0


Re: [PATCH 0/3] target/riscv: profile handling fixes
Posted by Alistair Francis 5 months, 2 weeks ago
On Wed, May 21, 2025 at 3:24 AM Daniel Henrique Barboza
<dbarboza@ventanamicro.com> wrote:
>
> Hi,
>
> The motivation of this short series is to fix a reported in [1]. A
> couple of bugs were fixed along the way.
>
> Björn, these patches should remediate the situation you're experiencing.
>
> Patches based on master.
>
> [1] https://lore.kernel.org/qemu-riscv/87y0usiz22.fsf@all.your.base.are.belong.to.us/
>
> Daniel Henrique Barboza (3):
>   target/riscv/tcg: restrict satp_mode changes in cpu_set_profile
>   target/riscv/tcg: decouple profile enablement from user prop
>   target/riscv: add profile->present flag

Thanks!

Applied to riscv-to-apply.next

Alistair

>
>  target/riscv/cpu.h            |  15 ++++
>  target/riscv/riscv-qmp-cmds.c |   2 +-
>  target/riscv/tcg/tcg-cpu.c    | 138 +++++++++++++++++-----------------
>  3 files changed, 86 insertions(+), 69 deletions(-)
>
> --
> 2.49.0
>
>
Re: [PATCH 0/3] target/riscv: profile handling fixes
Posted by Björn Töpel 5 months, 4 weeks ago
Daniel!

Daniel Henrique Barboza <dbarboza@ventanamicro.com> writes:

> Hi,
>
> The motivation of this short series is to fix a reported in [1]. A
> couple of bugs were fixed along the way.
>
> Björn, these patches should remediate the situation you're experiencing.

Thanks for the fast turn-around!

This indeed fixes the hart0 boot!

Tested-by: Björn Töpel <bjorn@rivosinc.com>