Linux CXL
 help / color / mirror / Atom feed
* [PATCH -qemu 0/2] hw/cxl: Firmware Update support
@ 2024-01-09  7:04 Davidlohr Bueso
  2024-01-09  7:04 ` [PATCH 1/2] hw/cxl: Add Transfer FW support Davidlohr Bueso
  2024-01-09  7:04 ` [PATCH 2/2] hw/cxl: Add Activate " Davidlohr Bueso
  0 siblings, 2 replies; 11+ messages in thread
From: Davidlohr Bueso @ 2024-01-09  7:04 UTC (permalink / raw)
  To: Jonathan.Cameron
  Cc: vishal.l.verma, fan.ni, a.manzanares, mounika.k, dave, linux-cxl

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


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

end of thread, other threads:[~2024-01-26 23:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-09  7:04 [PATCH -qemu 0/2] hw/cxl: Firmware Update support Davidlohr Bueso
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox