From: Alison Schofield <alison.schofield@intel.com>
To: Davidlohr Bueso <dave@stgolabs.net>
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 2/4] cxl/hdm: Only interpret interleave settings on committed decoders
Date: Fri, 7 Aug 2026 16:47:16 -0700 [thread overview]
Message-ID: <anZuhM_aiMibSANs@aschofie-mobl2.lan> (raw)
In-Reply-To: <20260729163435.7bkqk43tngtkx35w@offworld>
On Wed, Jul 29, 2026 at 09:34:35AM -0700, Davidlohr Bueso wrote:
> On Mon, 20 Jul 2026, Alison Schofield wrote:
>
> > Decoder enumeration reads the interleave ways and granularity fields
> > from the CTRL register unconditionally, then decodes and validates
> > them for every decoder. On an uncommitted decoder these fields are
> > stale. They hold whatever was last latched and are reprogrammed when
> > the decoder is committed. Interpreting them serves no purpose, and
> > rejecting enumeration on a reserved encoding in those stale bits can
> > fail an otherwise usable decoder.
> >
> > Decode and validate interleave ways and granularity only when the
> > decoder is committed. On an uncommitted decoder the stale register
> > values are not interpreted. The interleave fields are set when the
> > decoder is programmed at commit time.
> >
>
> It's weird to cat the respective sysfs file and get bogus values.
> imo this should be kept as is.
Thanks for the reviews Davidlohr,
Agreed, the patch is dropped in v5. It changes what userspace sees:
decoderX.Y/interleave_ways and decoderX.Y/interleave_granularity are
documented read-only attributes that report the decoded register fields,
and skipping the decode makes them report driver defaults instead.
>
> Thanks,
> Davidlohr
next prev parent reply other threads:[~2026-08-07 23:47 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
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 [this message]
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=anZuhM_aiMibSANs@aschofie-mobl2.lan \
--to=alison.schofield@intel.com \
--cc=dave.jiang@intel.com \
--cc=dave@stgolabs.net \
--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.