You need to sign in or sign up before continuing.
提交 dd2a93a8 编写于 作者: B Ben Widawsky 提交者: Dan Williams

cxl/mem: Demarcate vendor specific capability IDs

Vendor capabilities occupy 0x8000 to 0xFFFF according to CXL 2.0 spec
8.2.8.2.1 CXL Device Capabilities. While they are not defined by the
spec, they are allowed and not "unknown". Call this detail out in the
logs to let users easily distinguish the difference.

This patch is a squash of two earlier patches and take in some minor
suggestions from both Vishal and Dan.

Cc: Vishal Verma <vishal.l.verma@intel.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: NBen Widawsky <ben.widawsky@intel.com>
Reviewed-by: NVishal Verma <vishal.l.verma@intel.com>
Link: https://lore.kernel.org/r/20210520204852.1070780-1-ben.widawsky@intel.comSigned-off-by: NDan Williams <dan.j.williams@intel.com>
上级 199cf8c3
...@@ -60,7 +60,10 @@ void cxl_setup_device_regs(struct device *dev, void __iomem *base, ...@@ -60,7 +60,10 @@ void cxl_setup_device_regs(struct device *dev, void __iomem *base,
regs->memdev = register_block; regs->memdev = register_block;
break; break;
default: default:
dev_dbg(dev, "Unknown cap ID: %d (0x%x)\n", cap_id, offset); if (cap_id >= 0x8000)
dev_dbg(dev, "Vendor cap ID: %#x offset: %#x\n", cap_id, offset);
else
dev_dbg(dev, "Unknown cap ID: %#x offset: %#x\n", cap_id, offset);
break; break;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册