Message ID | 20240925024647.46735-6-ying.huang@intel.com |
---|---|
State | New |
Headers | show |
Series | cxl: Preparation of type2 accelerators support | expand |
diff --git a/drivers/cxl/core/region.c b/drivers/cxl/core/region.c index 9c68ec445128..b276752c38da 100644 --- a/drivers/cxl/core/region.c +++ b/drivers/cxl/core/region.c @@ -3466,6 +3466,14 @@ static int cxl_region_probe(struct device *dev) p->res->start, p->res->end, cxlr, is_system_ram) > 0) return 0; + /* + * Accelerator regions have specific usage, skip + * device-dax registration. + */ + if (cxlr->type == CXL_DECODER_ACCEL) + return 0; + + /* Expander routes to device-dax */ return devm_cxl_add_dax_region(cxlr); default: dev_dbg(&cxlr->dev, "unsupported region mode: %d\n",