]> git.ipfire.org Git - thirdparty/linux.git/commit
cxl: Make region type based on endpoint type
authorAlejandro Lucero <alucerop@amd.com>
Sat, 28 Feb 2026 17:36:01 +0000 (17:36 +0000)
committerDave Jiang <dave.jiang@intel.com>
Mon, 16 Mar 2026 23:31:56 +0000 (16:31 -0700)
commit09d065d256b1d5965fe6512cfd1c23ef44d2efc9
tree93824b123fcde840334b173aa7c63d21894503b8
parentd537d953c47866bafc89feb66d8ef34baf17659a
cxl: Make region type based on endpoint type

Current code is expecting Type3 or CXL_DECODER_HOSTONLYMEM devices only.
Support for Type2 implies region type needs to be based on the endpoint
type HDM-D[B] instead.

Signed-off-by: Alejandro Lucero <alucerop@amd.com>
Reviewed-by: Zhi Wang <zhiw@nvidia.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Ben Cheatham <benjamin.cheatham@amd.com>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Davidlohr Bueso <daves@stgolabs.net>
Reviewed-by: Gregory Price <gourry@gourry.net>
Tested-by: Gregory Price <gourry@gourry.net>
Reviewed-by: Davidlohr Bueso <dave@stgolabs.net>
Link: https://patch.msgid.link/20260228173603.1125109-2-alejandro.lucero-palau@amd.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
drivers/cxl/core/region.c