]> git.baikalelectronics.ru Git - kernel.git/commit
cxl/mem: Skip range enumeration if mem_enable clear
authorDan Williams <dan.j.williams@intel.com>
Wed, 18 May 2022 23:34:54 +0000 (16:34 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 19 May 2022 15:50:41 +0000 (08:50 -0700)
commitc7bf92123b73b35baab3bc3f91b458d5df065d66
tree1c227dbf211e9c9ab805e8129c5955713a7ac5a9
parent8da28d43d4d3d7ee2b0440cec03dcde5232c0b84
cxl/mem: Skip range enumeration if mem_enable clear

When a device does not have mem_enable set then the current range
settings are moot. Skip the enumeration and cause cxl_hdm_decode_init()
to proceed directly to enable the HDM Decoder Capability.

Fixes: 0a2babbd1288 ("cxl/pci: Retrieve CXL DVSEC memory info")
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/165291689442.1426646.18012291761753694336.stgit@dwillia2-xfh
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/core/pci.c
drivers/cxl/mem.c