Skip to content

Commit 6980daa

Browse files
davejiangdjbw
authored andcommitted
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>
1 parent d7a2153 commit 6980daa

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/cxl/core/pci.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,6 @@ static int dvsec_range_allowed(struct device *dev, void *arg)
228228

229229
cxld = to_cxl_decoder(dev);
230230

231-
if (!(cxld->flags & CXL_DECODER_F_LOCK))
232-
return 0;
233231
if (!(cxld->flags & CXL_DECODER_F_RAM))
234232
return 0;
235233

0 commit comments

Comments
 (0)