All of lore.kernel.org
 help / color / mirror / Atom feed
From: Harsh Prateek Bora <harshpb@linux.ibm.com>
To: "Daniel P. Berrangé" <berrange@redhat.com>
Cc: qemu-devel@nongnu.org, qemu-ppc@nongnu.org, npiggin@gmail.com,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>
Subject: Re: [PATCH] ppc/spapr: fix default cpu for pre-10.0 machines.
Date: Thu, 13 Mar 2025 15:19:49 +0530	[thread overview]
Message-ID: <b3e88144-4b24-4bbe-92c9-b2cd053a40b9@linux.ibm.com> (raw)
In-Reply-To: <Z9KmFPu-vplBDPcw@redhat.com>



On 3/13/25 15:02, Daniel P. Berrangé wrote:
> On Wed, Mar 12, 2025 at 11:28:04AM +0530, Harsh Prateek Bora wrote:
>> When POWER10 CPU was made as default, we missed keeping POWER9 as
>> default for older pseries releases (pre-10.0) at that time.
>> This caused breakge in default cpu evaluation for older pseries
>> machines and hence this fix.
>>
>> Fixes: 51113013f3 ("ppc/spapr: change pseries machine default to POWER10 CPU")
>> Signed-off-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
>> ---
>>   hw/ppc/spapr.c | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
>> index c15340a58d..b31a91e2e2 100644
>> --- a/hw/ppc/spapr.c
>> +++ b/hw/ppc/spapr.c
>> @@ -4748,6 +4748,7 @@ static void spapr_machine_9_2_class_options(MachineClass *mc)
>>   {
>>       spapr_machine_10_0_class_options(mc);
>>       compat_props_add(mc->compat_props, hw_compat_9_2, hw_compat_9_2_len);
>> +    mc->default_cpu_type = POWERPC_CPU_TYPE_NAME("power9_v2.2");
>>   }
> 
> This doesn't make sense.
> 
> AFAICT, the commit 51113013f3 was introduced in the QEMU 9.0.0 release,
> so it is correct that every machine from pseries-9.0 and newer had the
> POWER10 CPU model.
> 
> What broke were the machines that already existed prior to the
> 9.0.0 release, whose default CPU got changed.  IOW, the pseries-8.2
> and earlier machines.

Thanks Daniel for catching this.
I should have checked using git tags. I have posted v2 here:

https://lore.kernel.org/qemu-devel/20250313094705.2361997-1-harshpb@linux.ibm.com/T/#u

regards,
Harsh

> 
> 
> With regards,
> Daniel


      reply	other threads:[~2025-03-13  9:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-12  5:58 [PATCH] ppc/spapr: fix default cpu for pre-10.0 machines Harsh Prateek Bora
2025-03-12 10:09 ` Philippe Mathieu-Daudé
2025-03-12 10:20   ` Harsh Prateek Bora
2025-03-13  4:45     ` Harsh Prateek Bora
2025-03-13  9:32 ` Daniel P. Berrangé
2025-03-13  9:49   ` Harsh Prateek Bora [this message]

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=b3e88144-4b24-4bbe-92c9-b2cd053a40b9@linux.ibm.com \
    --to=harshpb@linux.ibm.com \
    --cc=berrange@redhat.com \
    --cc=npiggin@gmail.com \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@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.