Skip to content

Commit

Permalink
cxl/pci: Remove locked check for dvsec_range_allowed()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
davejiang authored and djbw committed Feb 14, 2023
1 parent d7a2153 commit 6980daa
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/cxl/core/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 6980daa

Please sign in to comment.