From: Davidlohr Bueso <dave@stgolabs.net>
To: Alison Schofield <alison.schofield@intel.com>
Cc: Jonathan Cameron <jic23@kernel.org>,
Dave Jiang <dave.jiang@intel.com>,
Vishal Verma <vishal.l.verma@intel.com>,
Ira Weiny <iweiny@kernel.org>, Dan Williams <djbw@kernel.org>,
Li Ming <ming.li@zohomail.com>,
linux-cxl@vger.kernel.org,
Srirangan Madhavan <smadhavan@nvidia.com>
Subject: Re: [PATCH v4 1/4] cxl/hdm: Reject switch decoder interleave ways that overflow targets
Date: Wed, 29 Jul 2026 09:45:14 -0700 [thread overview]
Message-ID: <20260729164514.esgrps5ajkydfqhz@offworld> (raw)
In-Reply-To: <1e0e4d7b431a97efa0a8c83591b42b7a0622cea1.1784595445.git.alison.schofield@intel.com>
On Mon, 20 Jul 2026, Alison Schofield wrote:
>Switch decoder enumeration validates that the interleave ways encoding
>is legal, but not that the resulting number of ways fits the available
>targets. This can overrun the target arrays during enumeration.
>
>Reject committed decoders whose interleave ways exceed either the
>hardware target list capacity or the reported target count. Reject
>switch decoders that report zero targets.
>
>For uncommitted decoders, ignore the stale interleave ways value and
>reset it to one until the decoder is committed.
>
>Add a clarifying comment that target_count is a direct count, not
>0-based like decoder_count.
Tested-by: Davidlohr Bueso <dave@stgolabs.net>
Reviewed-by: Davidlohr Bueso <dave@stgolabs.net>
next prev parent reply other threads:[~2026-07-29 18:40 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-21 1:59 [PATCH v4 0/4] Harden HDM decoder enumeration Alison Schofield
2026-07-21 1:59 ` [PATCH v4 1/4] cxl/hdm: Reject switch decoder interleave ways that overflow targets Alison Schofield
2026-07-21 2:14 ` sashiko-bot
2026-07-21 6:27 ` Li Ming
2026-08-07 23:45 ` Alison Schofield
2026-07-22 0:55 ` Jonathan Cameron
2026-08-07 23:42 ` Alison Schofield
2026-07-29 16:45 ` Davidlohr Bueso [this message]
2026-07-21 1:59 ` [PATCH v4 2/4] cxl/hdm: Only interpret interleave settings on committed decoders Alison Schofield
2026-07-21 6:26 ` Li Ming
2026-08-07 23:50 ` Alison Schofield
2026-07-29 16:34 ` Davidlohr Bueso
2026-08-07 23:47 ` Alison Schofield
2026-07-21 1:59 ` [PATCH v4 3/4] cxl/hdm: Make switch decoder target parsing endian-safe Alison Schofield
2026-07-21 15:09 ` Dave Jiang
2026-07-22 1:07 ` Jonathan Cameron
2026-08-07 23:56 ` Alison Schofield
2026-07-21 1:59 ` [PATCH v4 4/4] cxl/hdm: Restore commit_end when decoder enumeration fails Alison Schofield
2026-07-21 6:28 ` Li Ming
2026-07-21 15:12 ` Dave Jiang
2026-08-07 23:58 ` Alison Schofield
2026-07-22 1:17 ` Jonathan Cameron
2026-07-21 9:41 ` [PATCH v4 0/4] Harden HDM decoder enumeration Richard Cheng
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=20260729164514.esgrps5ajkydfqhz@offworld \
--to=dave@stgolabs.net \
--cc=alison.schofield@intel.com \
--cc=dave.jiang@intel.com \
--cc=djbw@kernel.org \
--cc=iweiny@kernel.org \
--cc=jic23@kernel.org \
--cc=linux-cxl@vger.kernel.org \
--cc=ming.li@zohomail.com \
--cc=smadhavan@nvidia.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 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.