summaryrefslogtreecommitdiff
path: root/net/xdp
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2023-02-10 01:06:04 -0800
committerDan Williams <dan.j.williams@intel.com>2023-02-10 17:32:15 -0800
commit3528b1e101a40ff75c8130e0b94e9555d2976f45 (patch)
tree646f2ba1aaf68df764aeaea7c42d22720c4b3e8f /net/xdp
parent6e099264185d05f50400ea494f5029264a4fe995 (diff)
downloadlinux-3528b1e101a40ff75c8130e0b94e9555d2976f45.tar.gz
linux-3528b1e101a40ff75c8130e0b94e9555d2976f45.tar.bz2
linux-3528b1e101a40ff75c8130e0b94e9555d2976f45.zip
cxl/region: Refactor attach_target() for autodiscovery
Region autodiscovery is the process of kernel creating 'struct cxl_region' object to represent active CXL memory ranges it finds already active in hardware when the driver loads. Typically this happens when platform firmware establishes CXL memory regions and then publishes them in the memory map. However, this can also happen in the case of kexec-reboot after the kernel has created regions. In the autodiscovery case the region creation process starts with a known endpoint decoder. Refactor attach_target() into a helper that is suitable to be called from either sysfs, for runtime region creation, or from cxl_port_probe() after it has enumerated all endpoint decoders. The cxl_port_probe() context is an async device-core probing context, so it is not appropriate to allow SIGTERM to interrupt the assembly process. Refactor attach_target() to take @cxled and @state as arguments where @state indicates whether waiting from the region rwsem is interruptible or not. No behavior change is intended. Reviewed-by: Vishal Verma <vishal.l.verma@intel.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Tested-by: Fan Ni <fan.ni@samsung.com> Link: https://lore.kernel.org/r/167601996393.1924368.2202255054618600069.stgit@dwillia2-xfh.jf.intel.com Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'net/xdp')
0 files changed, 0 insertions, 0 deletions