提交 ba268647 编写于 作者: B Ben Widawsky 提交者: Dan Williams

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: 08422378 ("cxl/pci: Add HDM decoder capabilities")
Signed-off-by: NBen Widawsky <ben.widawsky@intel.com>
Acked-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20210611051113.224328-1-ben.widawsky@intel.comSigned-off-by: NDan Williams <dan.j.williams@intel.com>
上级 6423035f
...@@ -599,7 +599,7 @@ void cxl_probe_component_regs(struct device *dev, void __iomem *base, ...@@ -599,7 +599,7 @@ void cxl_probe_component_regs(struct device *dev, void __iomem *base,
length = 0x20 * decoder_cnt + 0x10; length = 0x20 * decoder_cnt + 0x10;
map->hdm_decoder.valid = true; map->hdm_decoder.valid = true;
map->hdm_decoder.offset = offset; map->hdm_decoder.offset = CXL_CM_OFFSET + offset;
map->hdm_decoder.size = length; map->hdm_decoder.size = length;
break; break;
default: default:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册