From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: "Daniel P. Berrangé" <berrange@redhat.com>
Cc: Song Gao <gaosong@loongson.cn>,
qemu-devel@nongnu.org, richard.henderson@linaro.org,
Xianglai Li <lixianglai@loongson.cn>,
Peter Xu <peterx@redhat.com>, Fabiano Rosas <farosas@suse.de>
Subject: Re: [PULL 3/3] hw/loongarch: Modify flash block size to 256K
Date: Fri, 19 Jul 2024 11:22:54 +0200 [thread overview]
Message-ID: <f92a1c5e-c9fe-4062-bbb5-a42432504d0f@linaro.org> (raw)
In-Reply-To: <ZpohPHRh7gOeTV4o@redhat.com>
On 19/7/24 10:18, Daniel P. Berrangé wrote:
> On Fri, Jul 19, 2024 at 10:12:20AM +0200, Philippe Mathieu-Daudé wrote:
>> On 19/7/24 04:26, Song Gao wrote:
>>> From: Xianglai Li <lixianglai@loongson.cn>
>>>
>>> loongarch added a common library for edk2 to
>>> parse flash base addresses through fdt.
>>> For compatibility with other architectures,
>>> the flash block size in qemu is now changed to 256k.
>>>
>>> Signed-off-by: Xianglai Li <lixianglai@loongson.cn>
>>> Reviewed-by: Song Gao <gaosong@loongson.cn>
>>> Message-Id: <20240624033319.999631-1-lixianglai@loongson.cn>
>>> Signed-off-by: Song Gao <gaosong@loongson.cn>
>>> ---
>>> include/hw/loongarch/virt.h | 2 +-
>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/include/hw/loongarch/virt.h b/include/hw/loongarch/virt.h
>>> index 8fdfacf268..603c1cebdb 100644
>>> --- a/include/hw/loongarch/virt.h
>>> +++ b/include/hw/loongarch/virt.h
>>> @@ -20,7 +20,7 @@
>>> #define VIRT_FWCFG_BASE 0x1e020000UL
>>> #define VIRT_BIOS_BASE 0x1c000000UL
>>> #define VIRT_BIOS_SIZE (16 * MiB)
>>> -#define VIRT_FLASH_SECTOR_SIZE (128 * KiB)
>>> +#define VIRT_FLASH_SECTOR_SIZE (256 * KiB)
>>
>> Again, I believe this breaks machine migration. See the recent
>> example Daniel explained to me:
>> https://lore.kernel.org/qemu-devel/Zn6EQ39Q57KtmKPU@redhat.com/
>
> Yes, changing flash size breaks migration compat, but note that loongarch
> does not have any versioned machine types, so it has zero migration compat
> right now regardles of this change. IOW, now is the right time to make the
> change, before someone asks for versioned machines with loongarch.
Oh I see now, thanks for clarifying!
It would have been nice to mention that in the commit description,
but too late so I don't mind.
Regards,
Phil.
next prev parent reply other threads:[~2024-07-19 9:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-19 2:26 [PULL 0/3] loongarch-to-apply queue Song Gao
2024-07-19 2:26 ` [PULL 1/3] target/loongarch/gdbstub: Add vector registers support Song Gao
2024-07-19 2:26 ` [PULL 2/3] hw/loongarch: Remove unimplemented extioi INT_encode mode Song Gao
2024-07-19 2:26 ` [PULL 3/3] hw/loongarch: Modify flash block size to 256K Song Gao
2024-07-19 8:12 ` Philippe Mathieu-Daudé
2024-07-19 8:18 ` Daniel P. Berrangé
2024-07-19 9:22 ` Philippe Mathieu-Daudé [this message]
2024-07-19 20:39 ` [PULL 0/3] loongarch-to-apply queue Richard Henderson
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=f92a1c5e-c9fe-4062-bbb5-a42432504d0f@linaro.org \
--to=philmd@linaro.org \
--cc=berrange@redhat.com \
--cc=farosas@suse.de \
--cc=gaosong@loongson.cn \
--cc=lixianglai@loongson.cn \
--cc=peterx@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.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 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).