cxl/pci: Remove locked check for dvsec_range_allowed()
Remove the CXL_DECODER_F_LOCK check to be permissive of platform BIOSes that allow CXL.mem to be remapped. Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Dave Jiang <dave.jiang@intel.com> Link: https://lore.kernel.org/r/167640370085.935665.13128321011001358077.stgit@dwillia2-xfh.jf.intel.com Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
parent
d7a2153762
commit
6980daaa3e
|
@ -228,8 +228,6 @@ static int dvsec_range_allowed(struct device *dev, void *arg)
|
||||||
|
|
||||||
cxld = to_cxl_decoder(dev);
|
cxld = to_cxl_decoder(dev);
|
||||||
|
|
||||||
if (!(cxld->flags & CXL_DECODER_F_LOCK))
|
|
||||||
return 0;
|
|
||||||
if (!(cxld->flags & CXL_DECODER_F_RAM))
|
if (!(cxld->flags & CXL_DECODER_F_RAM))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue