All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <Jonathan.Cameron@Huawei.com>
To: <alison.schofield@intel.com>
Cc: Dan Williams <dan.j.williams@intel.com>,
	Ira Weiny <ira.weiny@intel.com>,
	Vishal Verma <vishal.l.verma@intel.com>,
	Dave Jiang <dave.jiang@intel.com>,
	Ben Widawsky <bwidawsk@kernel.org>,
	Steven Rostedt <rostedt@goodmis.org>, <linux-cxl@vger.kernel.org>
Subject: Re: [PATCH v11 0/6] CXL Poison List Retrieval & Tracing
Date: Thu, 30 Mar 2023 18:45:14 +0100	[thread overview]
Message-ID: <20230330184514.000011ac@Huawei.com> (raw)
In-Reply-To: <cover.1679888450.git.alison.schofield@intel.com>

On Sun, 26 Mar 2023 22:02:06 -0700
alison.schofield@intel.com wrote:

> From: Alison Schofield <alison.schofield@intel.com>

FYI, I took a glance at the changes since v9 and this looks good to me.

Jonathan

> 
> Changes in v11:
> - Introduce the hpa field in TP_printk in Patch5, not Patch2. (0-day)
> - cxl_trigger_poison_list() make rc ssize_t
> - trace naming: s/LIST/List, s/type/trace_type
> 
> Link to v10:
> https://lore.kernel.org/linux-cxl/cover.1679448904.git.alison.schofield@intel.com/
> 
> Add support for retrieving device poison lists and store the returned
> error records as kernel trace events.
> 
> The handling of the poison list is guided by the CXL 3.0 Specification
> Section 8.2.9.8.4.1. [1] 
> 
> Example trigger:
> $ echo 1 > /sys/bus/cxl/devices/mem0/trigger_poison_list
> 
> Example Trace Events:
> 
> Poison found in a PMEM Region:
> cxl_poison: memdev=mem0 host=cxl_mem.0 serial=0 trace_type=List region=region11 region_uuid=d96e67ec-76b0-406f-8c35-5b52630dcad1 hpa=0xf100000000 dpa=0x70000000 dpa_length=0x40 source=Injected flags= overflow_time=0
> 
> Poison found in RAM Region:
> cxl_poison: memdev=mem0 host=cxl_mem.0 serial=0 trace_type=List region=region2 region_uuid=00000000-0000-0000-0000-000000000000 hpa=0xf010000000 dpa=0x0 dpa_length=0x40 source=Injected flags= overflow_time=0
> 
> Poison found in an unmapped DPA resource:
> cxl_poison: memdev=mem3 host=cxl_mem.3 serial=3 trace_type=List region= region_uuid=00000000-0000-0000-0000-000000000000 hpa=0xffffffffffffffff dpa=0x40000000 dpa_length=0x40 source=Injected flags= overflow_time=0
> 
> [1]: https://www.computeexpresslink.org/download-the-specification
> 
> Alison Schofield (6):
>   cxl/mbox: Add GET_POISON_LIST mailbox command
>   cxl/trace: Add TRACE support for CXL media-error records
>   cxl/memdev: Add trigger_poison_list sysfs attribute
>   cxl/region: Provide region info to the cxl_poison trace event
>   cxl/trace: Add an HPA to cxl_poison trace events
>   tools/testing/cxl: Mock support for Get Poison List
> 
>  Documentation/ABI/testing/sysfs-bus-cxl |  14 +++
>  drivers/cxl/core/core.h                 |  15 ++++
>  drivers/cxl/core/mbox.c                 |  75 ++++++++++++++++
>  drivers/cxl/core/memdev.c               | 108 ++++++++++++++++++++++++
>  drivers/cxl/core/region.c               |  63 ++++++++++++++
>  drivers/cxl/core/trace.c                |  94 +++++++++++++++++++++
>  drivers/cxl/core/trace.h                | 101 ++++++++++++++++++++++
>  drivers/cxl/cxlmem.h                    |  72 +++++++++++++++-
>  drivers/cxl/mem.c                       |  36 ++++++++
>  drivers/cxl/pci.c                       |   4 +
>  tools/testing/cxl/test/mem.c            |  42 +++++++++
>  11 files changed, 623 insertions(+), 1 deletion(-)
> 
> 
> base-commit: e686c32590f40bffc45f105c04c836ffad3e531a


      parent reply	other threads:[~2023-03-30 17:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-27  5:02 [PATCH v11 0/6] CXL Poison List Retrieval & Tracing alison.schofield
2023-03-27  5:02 ` [PATCH v11 1/6] cxl/mbox: Add GET_POISON_LIST mailbox command alison.schofield
2023-03-27  5:02 ` [PATCH v11 2/6] cxl/trace: Add TRACE support for CXL media-error records alison.schofield
2023-03-29 20:44   ` Ira Weiny
2023-03-27  5:02 ` [PATCH v11 3/6] cxl/memdev: Add trigger_poison_list sysfs attribute alison.schofield
2023-03-30 17:42   ` Jonathan Cameron
2023-03-30 20:20     ` Alison Schofield
2023-03-27  5:02 ` [PATCH v11 4/6] cxl/region: Provide region info to the cxl_poison trace event alison.schofield
2023-03-29 20:43   ` Ira Weiny
2023-03-31 15:52     ` Alison Schofield
2023-03-27  5:02 ` [PATCH v11 5/6] cxl/trace: Add an HPA to cxl_poison trace events alison.schofield
2023-03-27  5:02 ` [PATCH v11 6/6] tools/testing/cxl: Mock support for Get Poison List alison.schofield
2023-03-30 17:45 ` Jonathan Cameron [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=20230330184514.000011ac@Huawei.com \
    --to=jonathan.cameron@huawei.com \
    --cc=alison.schofield@intel.com \
    --cc=bwidawsk@kernel.org \
    --cc=dan.j.williams@intel.com \
    --cc=dave.jiang@intel.com \
    --cc=ira.weiny@intel.com \
    --cc=linux-cxl@vger.kernel.org \
    --cc=rostedt@goodmis.org \
    --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 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.