From: Alison Schofield <alison.schofield@intel.com>
To: Dan Williams <dan.j.williams@intel.com>
Cc: Davidlohr Bueso <dave@stgolabs.net>,
Jonathan Cameron <jonathan.cameron@huawei.com>,
Dave Jiang <dave.jiang@intel.com>,
Vishal Verma <vishal.l.verma@intel.com>,
Ira Weiny <ira.weiny@intel.com>,
linux-cxl@vger.kernel.org, Steven Rostedt <rostedt@goodmis.org>
Subject: Re: [PATCH v2 4/4] cxl/core: Remove cxlr dependency from cxl_poison trace events
Date: Wed, 24 Apr 2024 12:57:54 -0700 [thread overview]
Message-ID: <ZilkQnc7++83d74B@aschofie-mobl2> (raw)
In-Reply-To: <66289991202c4_a96f29484@dwillia2-mobl3.amr.corp.intel.com.notmuch>
On Tue, Apr 23, 2024 at 10:33:05PM -0700, Dan Williams wrote:
> alison.schofield@ wrote:
> > From: Alison Schofield <alison.schofield@intel.com>
> >
> > cxl_poison trace events pass a pointer to a struct cxl_region
> > when poison is discovered in a mapped endpoint. This made for
> > easy look up of region name, uuid, and was useful in starting
> > the dpa->hpa translation.
> >
> > Another set of trace helpers is now available that eliminates
> > the need to pass on that cxlr. (It was passed along a lot!)
> >
> > In addition to tidying up the cxl_poison calling path, shifting
> > to the new helpers also means all CXL trace events will share
> > the same code in that regard.
> >
> > Switch from a uuid array to the field_struct type uuid_t to
> > align on one uuid format in all CXL trace events. That is useful
> > when sharing region uuid lookup helpers.
> >
> > No externally visible naming changes are made to cxl_poison trace
> > events.
> >
> > Signed-off-by: Alison Schofield <alison.schofield@intel.com>
> > Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> > Reviewed-by: Ira Weiny <ira.weiny@intel.com>
> > ---
> > drivers/cxl/core/mbox.c | 5 ++---
> > drivers/cxl/core/memdev.c | 8 ++++----
> > drivers/cxl/core/region.c | 8 ++++----
> > drivers/cxl/core/trace.h | 27 +++++++++++----------------
> > drivers/cxl/cxlmem.h | 3 +--
> > 5 files changed, 22 insertions(+), 29 deletions(-)
>
> A lot of the thrash here is about removing cxlr as an argument, and per
> the comment on patch3 I think it is cleaner to go the other way and
> always pass it in.
I still think we can mimic what is done for general_media and dram
trace events. ie. lookup the region only if trace_cxl_poison_enabled().
as you suggested in previous patch.
I can see why you call it thrash. I'll counter that with the fact that
it is a fairly easy to read diff, and the fact that removing the passed
along cxlr param, is pretty much 'tested' when it compiles.
-- Alison
prev parent reply other threads:[~2024-04-24 19:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-23 3:48 [PATCH v2 0/4] Add DPA->HPA translation to dram & general_media alison.schofield
2024-04-23 3:48 ` [PATCH v2 1/4] cxl/region: Move cxl_dpa_to_region() work to the region driver alison.schofield
2024-04-23 3:48 ` [PATCH v2 2/4] cxl/region: Move cxl_trace_hpa() " alison.schofield
2024-04-23 3:48 ` [PATCH v2 3/4] cxl/core: Add region info to cxl_general_media and cxl_dram events alison.schofield
2024-04-23 4:23 ` Ira Weiny
2024-04-23 16:37 ` Alison Schofield
2024-04-24 5:17 ` Dan Williams
2024-04-24 19:47 ` Alison Schofield
2024-04-25 3:47 ` Dan Williams
2024-04-23 3:48 ` [PATCH v2 4/4] cxl/core: Remove cxlr dependency from cxl_poison trace events alison.schofield
2024-04-24 5:33 ` Dan Williams
2024-04-24 19:57 ` Alison Schofield [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=ZilkQnc7++83d74B@aschofie-mobl2 \
--to=alison.schofield@intel.com \
--cc=dan.j.williams@intel.com \
--cc=dave.jiang@intel.com \
--cc=dave@stgolabs.net \
--cc=ira.weiny@intel.com \
--cc=jonathan.cameron@huawei.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox