All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] cxl: add interleave capability check
@ 2024-04-03  2:17 Yao Xingtao
  2024-04-03  2:17 ` [PATCH v2 1/2] cxl/core/hdm: rename interleave_mask to ig_cap_mask Yao Xingtao
  2024-04-03  2:17 ` [PATCH v2 2/2] cxl/core/region: check interleave capability Yao Xingtao
  0 siblings, 2 replies; 8+ messages in thread
From: Yao Xingtao @ 2024-04-03  2:17 UTC (permalink / raw)
  To: dave, jonathan.cameron, dave.jiang, alison.schofield,
	vishal.l.verma, ira.weiny, dan.j.williams, jim.harris
  Cc: linux-cxl, Yao Xingtao

Changes:
v1 -> v2:
1. rename interleave_mask to ig_cap_mask
2. add a check for interleave granularity
3. update commit message of PATCH 2

Currently driver does not check the interleave capability of target, it can
attach target to region even if target does not support the interleave
granularity or interleave ways. Thus, applications access the memory
will occur unexpected behavior, such as segmentation fault.

Therefore, it is necessary to check the interleave capability of target
before attaching it to region. If the check fails, the attachment
operation should be stopped.

Yao Xingtao (2):
  cxl/core/hdm: rename interleave_mask to ig_cap_mask
  cxl/core/region: check interleave capability

 drivers/cxl/core/hdm.c    |  8 ++++++--
 drivers/cxl/core/region.c | 37 +++++++++++++++++++++++++++++++++++++
 drivers/cxl/cxl.h         |  2 ++
 drivers/cxl/cxlmem.h      |  3 ++-
 4 files changed, 47 insertions(+), 3 deletions(-)

-- 
2.37.3


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

end of thread, other threads:[~2024-04-08 23:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-03  2:17 [PATCH v2 0/2] cxl: add interleave capability check Yao Xingtao
2024-04-03  2:17 ` [PATCH v2 1/2] cxl/core/hdm: rename interleave_mask to ig_cap_mask Yao Xingtao
2024-04-03 14:06   ` Jonathan Cameron
2024-04-08  2:42     ` Xingtao Yao (Fujitsu)
2024-04-03  2:17 ` [PATCH v2 2/2] cxl/core/region: check interleave capability Yao Xingtao
2024-04-03 14:27   ` Jonathan Cameron
2024-04-08  2:50     ` Xingtao Yao (Fujitsu)
2024-04-08 23:10       ` Dan Williams

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.