[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 4/6] hw/cxl: QMP based poison injection support
From: |
Ira Weiny |
Subject: |
Re: [PATCH v4 4/6] hw/cxl: QMP based poison injection support |
Date: |
Fri, 3 Mar 2023 13:21:31 -0800 |
Jonathan Cameron wrote:
> Inject poison using qmp command cxl-inject-poison to add an entry to the
> poison list.
>
> For now, the poison is not returned CXL.mem reads, but only via the
> mailbox command Get Poison List.
>
> See CXL rev 3.0, sec 8.2.9.8.4.1 Get Poison list (Opcode 4300h)
>
> Kernel patches to use this interface here:
> https://lore.kernel.org/linux-cxl/cover.1665606782.git.alison.schofield@intel.com/
>
> To inject poison using qmp (telnet to the qmp port)
> { "execute": "qmp_capabilities" }
>
> { "execute": "cxl-inject-poison",
> "arguments": {
> "path": "/machine/peripheral/cxl-pmem0",
> "start": 2048,
> "length": 256
> }
> }
>
> Adjusted to select a device on your machine.
>
> Note that the poison list supported is kept short enough to avoid the
> complexity of state machine that is needed to handle the MORE flag.
>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
>
> ---
> v4:
> - Widen the mask on Poison source (lower bits of the address)
> to allow for Vendor Defined. Change will make it easier to potentially
> add a means to inject such poison in the future. Today it has no
> impact.
[...]
- [PATCH v4 0/6] hw/cxl: Poison get, inject, clear, Jonathan Cameron, 2023/03/03
- [PATCH v4 1/6] hw/cxl: rename mailbox return code type from ret_code to CXLRetCode, Jonathan Cameron, 2023/03/03
- [PATCH v4 2/6] hw/cxl: Introduce cxl_device_get_timestamp() utility function, Jonathan Cameron, 2023/03/03
- [PATCH v4 3/6] bswap: Add the ability to store to an unaligned 24 bit field, Jonathan Cameron, 2023/03/03
- [PATCH v4 4/6] hw/cxl: QMP based poison injection support, Jonathan Cameron, 2023/03/03
- [PATCH v4 5/6] hw/cxl: Add poison injection via the mailbox., Jonathan Cameron, 2023/03/03
- [PATCH v4 6/6] hw/cxl: Add clear poison mailbox command support., Jonathan Cameron, 2023/03/03