Linux CXL
 help / color / mirror / Atom feed
* [PATCH v2 0/4] cxl/mbox: Robustify handling of mbox_cmd.return_code
@ 2022-04-04  2:12 Davidlohr Bueso
  2022-04-04  2:12 ` [PATCH 1/4] cxl/mbox: Drop mbox_mutex comment Davidlohr Bueso
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Davidlohr Bueso @ 2022-04-04  2:12 UTC (permalink / raw)
  To: linux-cxl
  Cc: dan.j.williams, ben.widawsky, ira.weiny, vishal.l.verma,
	alison.schofield, a.manzanares, dave

Hi,

Changes from v1 (https://lore.kernel.org/all/20220317234049.69323-1-dave@stgolabs.net/):
 - Patch 1 now just removes the lock comment, instead of moving it. (Dan)
 - Modified pach 3 to use CPP hackery + misc table improvements. (Dan and Adam)
 - Dropped patch 5 per concerns about implications with FW. (Dan)
 - Picked up Adam's review tags.

Currently the return_code from a completed mbox command is handled as
either successful or not. This series teaches the driver to better deal
with the different returns from the hardware, allowing better debugging
and mapping to proper kernel errno semantics (which are left unchanged
for now) as well as more ad-hoc handling.

Applies against linux-cxl's next branch.

Patches 1 and 2 are small nits.
Patch 3 and 4 implement and use the new calls.

Thanks!

Davidlohr Bueso (4):
  cxl/mbox: Drop mbox_mutex comment
  cxl/pci: Use CXL_MBOX_SUCCESS to check against mbox_cmd return code
  cxl/mbox: Improve handling of mbox_cmd hw return codes
  cxl/mbox: Use new return_code handling

 drivers/cxl/core/mbox.c |  7 +++---
 drivers/cxl/cxlmem.h    | 53 ++++++++++++++++++++++++++++++++++++++++-
 drivers/cxl/pci.c       |  7 +++---
 3 files changed, 59 insertions(+), 8 deletions(-)

--
2.26.2


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

end of thread, other threads:[~2022-04-04  3:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-04  2:12 [PATCH v2 0/4] cxl/mbox: Robustify handling of mbox_cmd.return_code Davidlohr Bueso
2022-04-04  2:12 ` [PATCH 1/4] cxl/mbox: Drop mbox_mutex comment Davidlohr Bueso
2022-04-04  2:12 ` [PATCH 2/4] cxl/pci: Use CXL_MBOX_SUCCESS to check against mbox_cmd return code Davidlohr Bueso
2022-04-04  2:12 ` [PATCH 3/4] cxl/mbox: Improve handling of mbox_cmd hw return codes Davidlohr Bueso
2022-04-04  2:12 ` [PATCH 4/4] cxl/mbox: Use new return_code handling Davidlohr Bueso
2022-04-04  3:39 ` [PATCH v2 0/4] cxl/mbox: Robustify handling of mbox_cmd.return_code Dan Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox