linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] cxl/port: Robustness fixes for decoder enumeration
@ 2022-01-26  5:23 Dan Williams
  2022-01-26  5:24 ` [PATCH 1/2] cxl/core/port: Fix / relax decoder target enumeration Dan Williams
  2022-01-26  5:24 ` [PATCH 2/2] cxl/core/port: Handle invalid decoders Dan Williams
  0 siblings, 2 replies; 5+ messages in thread
From: Dan Williams @ 2022-01-26  5:23 UTC (permalink / raw)
  To: linux-cxl; +Cc: linux-pci, nvdimm, ben.widawsky

Further testing of the decoder toplogy enumeration patches found cases
where the driver is too strict about what it accepts. First, there is no
expectation that the decoder's target list is valid when the decoder is
disabled. Make decoder_populate_targets() failures non-fatal on disabled
decoders. Second, if the decoder emits out-of-bounds / reserved values
at init warn and continue if at least one valid decoder was found. This
future-proofs the driver against changes to the interleave_ways
encoding, at least for continuing to operate decoders that conform to
current expectations.

Applies on top of:

https://lore.kernel.org/r/164298411792.3018233.7493009997525360044.stgit@dwillia2-desk3.amr.corp.intel.com

---

Dan Williams (2):
      cxl/core/port: Fix / relax decoder target enumeration
      cxl/core/port: Handle invalid decoders


 drivers/cxl/acpi.c      |    2 +-
 drivers/cxl/core/hdm.c  |   36 ++++++++++++++++++++++++++++++------
 drivers/cxl/core/port.c |    5 ++++-
 3 files changed, 35 insertions(+), 8 deletions(-)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-02-01 12:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-26  5:23 [PATCH 0/2] cxl/port: Robustness fixes for decoder enumeration Dan Williams
2022-01-26  5:24 ` [PATCH 1/2] cxl/core/port: Fix / relax decoder target enumeration Dan Williams
2022-02-01 12:55   ` Jonathan Cameron
2022-01-26  5:24 ` [PATCH 2/2] cxl/core/port: Handle invalid decoders Dan Williams
2022-02-01 12:59   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).