mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jongwon Lee <ai@linux.com>
To: Jonathan Cameron <jic23@kernel.org>
Cc: Davidlohr Bueso <dave@stgolabs.net>,
	Dave Jiang <dave.jiang@intel.com>,
	Alison Schofield <alison.schofield@intel.com>,
	Vishal Verma <vishal.l.verma@intel.com>,
	Dan Williams <djbw@kernel.org>, Ira Weiny <iweiny@kernel.org>,
	Li Ming <ming.li@zohomail.com>, Richard Cheng <icheng@nvidia.com>,
	linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org,
	Michal Schmidt <mschmidt@redhat.com>
Subject: Re: [PATCH v5 2/3] cxl/edac: Skip event records marked NOT_REPAIRABLE
Date: Thu, 26 Nov 2026 11:35:30 +0900	[thread overview]
Message-ID: <20261126023520.39368-r1-ai@linux.com> (raw)
In-Reply-To: <20261117013017.3e16c98a@jic23-hlaptop>

On Tue, 17 Nov 2026 01:30:17 +0000, Jonathan Cameron wrote:
> It's silly but broken?  I'd argue no. This feels like a useability improvement
> to me rather than something we want to call a fix which suggests backports
> make sense.

OK, I dropped the Fixes tag in v6.

One dependency to note: 3/3 keeps its Fixes tag, and it needs this
patch. Today a NOT_REPAIRABLE record is only missed because its key
still has bit 1 set. With 3/3 alone the masked DPA would find it, so
if 3/3 goes to stable, this patch has to go with it. I wrote this in
the 3/3 changelog. If you would rather keep a Fixes tag here for the
backport, or add "Cc: stable@vger.kernel.org # needs 'cxl/edac: Skip
event records marked NOT_REPAIRABLE'" to 3/3, I can do either.

> A find routine that doesn't return the thing requested seems misnamed.
>
> cxl_check_for_rec_gen_media() or something like that is probably clearer.

Renamed to cxl_check_for_rec_gen_media() in v6.

> I'd split those two conditions as they are completely unrelated.

Done, they are two separate if statements now.

> Hmm. Was assuming there would be guard() available but nope.
> Was proposed but nothing happened with it.
> https://lore.kernel.org/all/20240228135352.14444-1-mschmidt@redhat.com/#r
>
> Maybe worth resurrecting that. +CC Michal.

I'd like to keep the guard out of this series. 1/3 fixes a
use-after-free and has Fixes tags, so it is likely to be backported,
and an xarray.h change would have to go back with it. Once this lands
I can send a follow-up that adds the xa_lock guard and converts these
call sites, unless Michal wants to repost his patch.

v6: https://lore.kernel.org/r/20261126023520.39368-1-ai@linux.com

Thanks,
Jongwon

  reply	other threads:[~2026-11-26  2:36 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-08  2:20 [PATCH v5 0/3] cxl/edac: Fix event record lookups for memory repair Jongwon Lee
2026-11-08  2:20 ` [PATCH v5 1/3] cxl/edac: Read cached DRAM event records under the xarray lock Jongwon Lee
2026-11-17  1:35   ` Jonathan Cameron
2026-11-26  2:35     ` Jongwon Lee
2026-11-18  1:46   ` Alison Schofield
2026-11-08  2:20 ` [PATCH v5 2/3] cxl/edac: Skip event records marked NOT_REPAIRABLE Jongwon Lee
2026-11-10 12:53   ` Li Ming
2026-11-17  1:30   ` Jonathan Cameron
2026-11-26  2:35     ` Jongwon Lee [this message]
2026-11-18  1:49   ` Alison Schofield
2026-11-26  2:35     ` Jongwon Lee
2026-11-08  2:20 ` [PATCH v5 3/3] cxl/edac: Mask DPA flags in the event record cache key Jongwon Lee
2026-11-10 12:54   ` Li Ming
2026-11-17  1:39   ` Jonathan Cameron
2026-11-18  1:47   ` Alison Schofield

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=20261126023520.39368-r1-ai@linux.com \
    --to=ai@linux.com \
    --cc=alison.schofield@intel.com \
    --cc=dave.jiang@intel.com \
    --cc=dave@stgolabs.net \
    --cc=djbw@kernel.org \
    --cc=icheng@nvidia.com \
    --cc=iweiny@kernel.org \
    --cc=jic23@kernel.org \
    --cc=linux-cxl@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ming.li@zohomail.com \
    --cc=mschmidt@redhat.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

all inboxes | Powered by JetHome®