cxl/pci: Remove locked check for dvsec_range_allowed()
authorDave Jiang <dave.jiang@intel.com>
Tue, 14 Feb 2023 19:41:40 +0000 (11:41 -0800)
committerDan Williams <dan.j.williams@intel.com>
Tue, 14 Feb 2023 23:45:21 +0000 (15:45 -0800)
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>
drivers/cxl/core/pci.c

index 4eb34de..c18ed1b 100644 (file)
@@ -228,8 +228,6 @@ static int dvsec_range_allowed(struct device *dev, void *arg)
 
        cxld = to_cxl_decoder(dev);
 
-       if (!(cxld->flags & CXL_DECODER_F_LOCK))
-               return 0;
        if (!(cxld->flags & CXL_DECODER_F_RAM))
                return 0;