]> git.baikalelectronics.ru Git - kernel.git/commit
cxl/component_regs: Fix offset
authorBen Widawsky <ben.widawsky@intel.com>
Fri, 11 Jun 2021 05:11:13 +0000 (22:11 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sat, 12 Jun 2021 17:30:41 +0000 (10:30 -0700)
commit7826e6f71fbf95ed1ecbb0174113217f3d104c42
tree2a0c54fd82a3a5d0211e58ca0a9d3b831677fa43
parent25b943cd6fe5d33ece6a91668592fa5ea150979f
cxl/component_regs: Fix offset

The CXL.cache and CXL.mem registers begin after the CXL.io registers
which occupy the first 0x1000 bytes. The current code wasn't setting
this up properly for future users of the component registers. It was
correct for the probing code however.

Cc: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Ira Weiny <ira.weiny@intel.com>
Fixes: 74f3d6bf8447 ("cxl/pci: Add HDM decoder capabilities")
Signed-off-by: Ben Widawsky <ben.widawsky@intel.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20210611051113.224328-1-ben.widawsky@intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/core.c