All of lore.kernel.org
 help / color / mirror / Atom feed
* Assertion triggers with power8e_v2.1-powernv-cpu-core
@ 2020-01-29 10:31 Thomas Huth
  2020-01-29 10:39 ` Cédric Le Goater
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Huth @ 2020-01-29 10:31 UTC (permalink / raw)
  To: QEMU Developers, qemu-ppc; +Cc: Cédric Le Goater, David Gibson

FYI, scripts/device-crash-test reported an assertion, triggerable like this:

$ qemu-system-ppc64 -machine ppce500 -device power8e_v2.1-powernv-cpu-core
qemu-system-ppc64: hw/ppc/pnv_core.c:221: pnv_core_realize: Assertion
`pc->chip' failed.
Aborted (core dumped)

Of course using that CPU is not possible on ppce500, but there should be
a proper error message instead of that assertion.

Does anybody have an idea what's the best place to fix this issue?

 Thomas



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Assertion triggers with power8e_v2.1-powernv-cpu-core
  2020-01-29 10:31 Assertion triggers with power8e_v2.1-powernv-cpu-core Thomas Huth
@ 2020-01-29 10:39 ` Cédric Le Goater
  2020-01-29 10:48   ` Thomas Huth
  0 siblings, 1 reply; 3+ messages in thread
From: Cédric Le Goater @ 2020-01-29 10:39 UTC (permalink / raw)
  To: Thomas Huth, QEMU Developers, qemu-ppc; +Cc: David Gibson

On 1/29/20 11:31 AM, Thomas Huth wrote:
> FYI, scripts/device-crash-test reported an assertion, triggerable like this:
> 
> $ qemu-system-ppc64 -machine ppce500 -device power8e_v2.1-powernv-cpu-core
> qemu-system-ppc64: hw/ppc/pnv_core.c:221: pnv_core_realize: Assertion
> `pc->chip' failed.
> Aborted (core dumped)
> 
> Of course using that CPU is not possible on ppce500, but there should be
> a proper error message instead of that assertion.
> 
> Does anybody have an idea what's the best place to fix this issue?

The cores should be instantiated by a PowerNV chip. So may be we
should fix this issue with :

@@ -325,6 +325,7 @@ static void pnv_core_class_init(ObjectCl
     dc->realize = pnv_core_realize;
     dc->unrealize = pnv_core_unrealize;
     device_class_set_props(dc, pnv_core_properties);
+    dc->user_creatable = false;
 }
 
 #define DEFINE_PNV_CORE_TYPE(family, cpu_model) \


I think that most of the PowerNV devices are not user creatable.

C.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Assertion triggers with power8e_v2.1-powernv-cpu-core
  2020-01-29 10:39 ` Cédric Le Goater
@ 2020-01-29 10:48   ` Thomas Huth
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Huth @ 2020-01-29 10:48 UTC (permalink / raw)
  To: Cédric Le Goater, QEMU Developers, qemu-ppc; +Cc: David Gibson

On 29/01/2020 11.39, Cédric Le Goater wrote:
> On 1/29/20 11:31 AM, Thomas Huth wrote:
>> FYI, scripts/device-crash-test reported an assertion, triggerable like this:
>>
>> $ qemu-system-ppc64 -machine ppce500 -device power8e_v2.1-powernv-cpu-core
>> qemu-system-ppc64: hw/ppc/pnv_core.c:221: pnv_core_realize: Assertion
>> `pc->chip' failed.
>> Aborted (core dumped)
>>
>> Of course using that CPU is not possible on ppce500, but there should be
>> a proper error message instead of that assertion.
>>
>> Does anybody have an idea what's the best place to fix this issue?
> 
> The cores should be instantiated by a PowerNV chip. So may be we
> should fix this issue with :
> 
> @@ -325,6 +325,7 @@ static void pnv_core_class_init(ObjectCl
>      dc->realize = pnv_core_realize;
>      dc->unrealize = pnv_core_unrealize;
>      device_class_set_props(dc, pnv_core_properties);
> +    dc->user_creatable = false;
>  }
>  
>  #define DEFINE_PNV_CORE_TYPE(family, cpu_model) \
> 
> 
> I think that most of the PowerNV devices are not user creatable.

Right, there are also aborts with: pnv-lpc, pnv-homer, pnv-occ, ...

Do you have some spare time for a patch?

 Thomas



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-01-29 10:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-29 10:31 Assertion triggers with power8e_v2.1-powernv-cpu-core Thomas Huth
2020-01-29 10:39 ` Cédric Le Goater
2020-01-29 10:48   ` Thomas Huth

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.