]> git.baikalelectronics.ru Git - kernel.git/commit
cxl/mem: Make cxl_dvsec_range() init failure fatal
authorDan Williams <dan.j.williams@intel.com>
Tue, 15 Mar 2022 01:22:33 +0000 (18:22 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 13 Apr 2022 02:11:58 +0000 (19:11 -0700)
commit7adbbde9515c34244a4e3865022b7fa7c3c9b435
tree486c3fb2116b76fa06636da11dab3027d4049b09
parente98c98bb575a3651f3a3396c2c18fb0add94f100
cxl/mem: Make cxl_dvsec_range() init failure fatal

In preparation for the cxl_pci driver to continue operation after
cxl_dvsec_range() failure, update cxl_mem to check for negative error
codes in info->ranges. Treat that condition as fatal regardless of the
state of the HDM configuration since cxl_mem needs positive confirmation
that legacy ranges were not established by platform firmware or another
agent.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com.
Reviewed-by: Ben Widawsky <ben.widawsky@intel.com>
Reviewed-by: Davidlohr Bueso <dave@stgolabs.net>
Link: https://lore.kernel.org/r/164730735324.3806189.4167509857771192422.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/mem.c