mirror of
https://github.com/torvalds/linux.git
synced 2024-12-11 21:52:04 +00:00
6e7f3ee97b
The original architecture of /sys/bus/dsa invented a scheme whereby a single entry in the list of bus drivers, /sys/bus/drivers/dsa, handled all device types and internally routed them to different different drivers. Those internal drivers were invisible to userspace. With the idxd driver transitioned to a proper bus device-driver model, the legacy behavior needs to be preserved due to it being exposed to user space via sysfs. Create a compat driver to provide the legacy behavior for /sys/bus/dsa/drivers/dsa. This should satisfy user tool accel-config v3.2 or ealier where this behavior is expected. If the distro has a newer accel-config then the legacy mode does not need to be enabled. When the compat driver binds the device (i.e. dsa0) to the dsa driver, it will be bound to the new idxd_drv. The wq device (i.e. wq0.0) will be bound to either the dmaengine_drv or the user_drv. The dsa_drv becomes a routing mechansim for the new drivers. It will not support additional external drivers that are implemented later. Reviewed-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Dave Jiang <dave.jiang@intel.com> Link: https://lore.kernel.org/r/162637468705.744545.4399080971745974435.stgit@djiang5-desk3.ch.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
13 lines
331 B
Makefile
13 lines
331 B
Makefile
ccflags-y += -DDEFAULT_SYMBOL_NAMESPACE=IDXD
|
|
|
|
obj-$(CONFIG_INTEL_IDXD) += idxd.o
|
|
idxd-y := init.o irq.o device.o sysfs.o submit.o dma.o cdev.o
|
|
|
|
idxd-$(CONFIG_INTEL_IDXD_PERFMON) += perfmon.o
|
|
|
|
obj-$(CONFIG_INTEL_IDXD_BUS) += idxd_bus.o
|
|
idxd_bus-y := bus.o
|
|
|
|
obj-$(CONFIG_INTEL_IDXD_COMPAT) += idxd_compat.o
|
|
idxd_compat-y := compat.o
|