]> git.baikalelectronics.ru Git - kernel.git/commit
cxl/mem: Drop DVSEC vs EFI Memory Map sanity check
authorDan Williams <dan.j.williams@intel.com>
Tue, 15 Mar 2022 01:22:22 +0000 (18:22 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 13 Apr 2022 02:11:57 +0000 (19:11 -0700)
commit43636e4c7de9ced54f517941e94a2069b8ac7212
treeb0a2ff24bfb9e0a50cc7d33c84a15b91da8ecef7
parent800427968443001d96274ef469fc1a16748a2a21
cxl/mem: Drop DVSEC vs EFI Memory Map sanity check

When the driver finds legacy DVSEC ranges active on a CXL Memory
Expander it indicates that platform firmware is not aware of, or is
deliberately disabling common CXL 2.0 operation. In this case Linux
generally has no choice, but to leave the device alone.

The driver attempts to validate that the DVSEC range is in the EFI
memory map. Remove that logic since there is no requirement that the
BIOS publish DVSEC ranges in the EFI Memory Map.

In the future the driver will want to permanently reserve this capacity
out of the available CFMWS capacity and hide it from
request_free_mem_region(), but it serves no purpose to warn about the
range not appearing in the EFI Memory Map.

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