From: Davidlohr Bueso <dave@stgolabs.net>
To: Jonathan.Cameron@huawei.com
Cc: vishal.l.verma@intel.com, fan.ni@samsung.com,
a.manzanares@samsung.com, mounika.k@samsung.com,
dave@stgolabs.net, linux-cxl@vger.kernel.org
Subject: [PATCH -qemu 0/2] hw/cxl: Firmware Update support
Date: Mon, 8 Jan 2024 23:04:34 -0800 [thread overview]
Message-ID: <20240109070436.21253-1-dave@stgolabs.net> (raw)
Hello,
The following implements the remaining commands for emulating the cxl
firmware update operations, similar to what the mock device does.
# cxl update-firmware mem0
...
"firmware":{
"num_slots":2,
"active_slot":1,
"staged_slot":1,
"online_activate_capable":true,
"slot_1_version":"BWFW VERSION 0",
"fw_update_in_progress":false
}
}
# cxl update-firmware mem0 -F ~/fw.bin -w
{
...
"firmware":{
"num_slots":2,
"active_slot":1,
"staged_slot":2,
"online_activate_capable":true,
"slot_1_version":"BWFW VERSION 0",
"slot_2_version":"BWFW VERSION 1",
"fw_update_in_progress":false
}
}
One note is that this implementation will optimistically set the new firmware
before the successful completion of a full or end transfer, for example:
"firmware":{
"num_slots":2,
"active_slot":1,
"staged_slot":2,
"online_activate_capable":true,
"slot_1_version":"BWFW VERSION 0",
"slot_2_version":"BWFW VERSION 1",
"fw_update_in_progress":true,
"remaining_size":5091200
}
Applies against Jonathan's latst branch:
https://gitlab.com/jic23/qemu/-/tree/cxl-2023-11-02
Thanks!
Davidlohr Bueso (2):
hw/cxl: Add Transfer FW support
hw/cxl: Add Activate FW support
hw/cxl/cxl-mailbox-utils.c | 179 +++++++++++++++++++++++++++++++++++-
include/hw/cxl/cxl_device.h | 9 ++
2 files changed, 183 insertions(+), 5 deletions(-)
--
2.43.0
next reply other threads:[~2024-01-09 7:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-09 7:04 Davidlohr Bueso [this message]
2024-01-09 7:04 ` [PATCH 1/2] hw/cxl: Add Transfer FW support Davidlohr Bueso
2024-01-09 22:36 ` fan
2024-01-10 16:43 ` Davidlohr Bueso
2024-01-26 15:42 ` Jonathan Cameron
2024-01-26 17:17 ` Davidlohr Bueso
2024-01-26 17:48 ` Jonathan Cameron
2024-01-09 7:04 ` [PATCH 2/2] hw/cxl: Add Activate " Davidlohr Bueso
2024-01-26 15:54 ` Jonathan Cameron
2024-01-26 16:57 ` Davidlohr Bueso
2024-01-26 17:35 ` Jonathan Cameron
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=20240109070436.21253-1-dave@stgolabs.net \
--to=dave@stgolabs.net \
--cc=Jonathan.Cameron@huawei.com \
--cc=a.manzanares@samsung.com \
--cc=fan.ni@samsung.com \
--cc=linux-cxl@vger.kernel.org \
--cc=mounika.k@samsung.com \
--cc=vishal.l.verma@intel.com \
/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