Mike Ximing Chen
Reviewed-by: Björn Töpel
Reviewed-by: Dan Williams
---
drivers/misc/dlb/dlb_main.c | 5 ++
drivers/misc/dlb/dlb_main.h | 2 +
drivers/misc/dlb/dlb_resource.c | 110 +++-
drivers/misc/dlb/dlb_resource.h | 2 +
4 files changed, 117 insertions(
quests to map a
queue and then immediately requests to unmap it -- the driver will coalesce
or cancel outstanding operations.
Signed-off-by: Gage Eads
Signed-off-by: Mike Ximing Chen
Reviewed-by: Björn Töpel
Reviewed-by: Dan Williams
---
drivers/misc/dlb/dlb_resource.c | 433 ++
e "dynamic"
operation, when traffic is flowing in the device, will be added in a later
commit.)
Signed-off-by: Gage Eads
Signed-off-by: Mike Ximing Chen
Reviewed-by: Björn Töpel
Reviewed-by: Dan Williams
---
drivers/misc/dlb/dlb_resource.c | 144 +++-
1 file cha
Adds the "dynamic" map procedure and register operations. If a queue map
is requested after the domain is started, the driver must disable the
requested queue and wait for it to quiesce before mapping it to the
requested port.
Signed-off-by: Gage Eads
Signed-off-by: Mike Ximing Chen
R
wait for
it to quiesce before mapping it to the requested port.
Add the code to drain unmapped queues during domain reset. This consists of
mapping a port to the queue, then calling the function to drain a mapped
queue.
Signed-off-by: Gage Eads
Signed-off-by: Mike Ximing Chen
Reviewed-by: Björn
instructs the DLB device to start load-balancing operations.
It corresponds to rte_event_dev_start() function in DPDK' eventdev library.
Signed-off-by: Gage Eads
Signed-off-by: Mike Ximing Chen
Reviewed-by: Björn Töpel
Reviewed-by: Dan Williams
---
drivers/misc/dlb/dlb_ioctl.c| 3
until they are re-assigned to a new
scheduling domain in the future and re-enabled.
Signed-off-by: Gage Eads
Signed-off-by: Mike Ximing Chen
Reviewed-by: Magnus Karlsson
Reviewed-by: Dan Williams
---
drivers/misc/dlb/dlb_resource.c | 448 +++-
1 file changed
-off-by: Gage Eads
Signed-off-by: Mike Ximing Chen
Reviewed-by: Magnus Karlsson
Reviewed-by: Dan Williams
---
drivers/misc/dlb/dlb_main.c | 101 +-
drivers/misc/dlb/dlb_pf_ops.c | 8 +++
2 files changed, 108 insertions(+), 1 deletion(-)
diff --git a/drivers
typically takes multiple iterations. This
process is finite since software cannot enqueue new events to the DLB's
(finite) on-device storage.
Signed-off-by: Gage Eads
Signed-off-by: Mike Ximing Chen
Reviewed-by: Magnus Karlsson
Reviewed-by: Dan Williams
---
drivers/misc/dlb/dlb_hw_types.h |
empty) at that time. Support for these cases will be added in
subsequent commits.
Signed-off-by: Gage Eads
Signed-off-by: Mike Ximing Chen
Reviewed-by: Magnus Karlsson
Reviewed-by: Dan Williams
---
drivers/misc/dlb/dlb_regs.h | 3527 ++-
drivers/misc/dlb/dlb_resou
rations support rte_event_port_link(), rte_event_port_unlink()
and rte_event_port_unlinks_in_progress() functions of DPDK's eventdev
library.
Signed-off-by: Gage Eads
Signed-off-by: Mike Ximing Chen
Reviewed-by: Björn Töpel
Reviewed-by: Dan Williams
---
drivers/misc/dlb/dlb_ioctl.c| 9
yer uses a single inode that is shared with other kernel
components -- calling unmap_mapping_range() on that shared inode would
likely break the kernel.
Signed-off-by: Gage Eads
Signed-off-by: Mike Ximing Chen
Reviewed-by: Magnus Karlsson
Reviewed-by: Dan Williams
---
drivers/misc/dl
the "poll mode". This (device-wide) mode is selected by the driver;
to determine the mode at run time, the driver provides an ioctl for
user-space software to query which mode the driver has configured. In this
way, the policy of which mode to use is decoupled from user-space software.
Si
Gage Eads
Signed-off-by: Mike Ximing Chen
Reviewed-by: Magnus Karlsson
Reviewed-by: Dan Williams
---
drivers/misc/dlb/dlb_hw_types.h | 27 ++
drivers/misc/dlb/dlb_ioctl.c| 63
drivers/misc/dlb/dlb_main.c | 2 +
drivers/misc/dlb/dlb_main.h | 17 +
drivers/misc/dlb/dlb_pf_ops
Add operation to reset a domain's resource's software state when its
reference count reaches zero, and re-inserts those resources in their
respective available-resources linked lists, for use by future scheduling
domains.
Signed-off-by: Gage Eads
Signed-off-by: Mike Ximing Chen
R
omain reset will be added in subsequent commits.
Signed-off-by: Gage Eads
Signed-off-by: Mike Ximing Chen
Reviewed-by: Magnus Karlsson
Reviewed-by: Dan Williams
---
drivers/misc/dlb/dlb_bitmap.h | 74
drivers/misc/dlb/dlb_ioctl.c| 36 +-
drivers/misc/dlb/dlb_main.c | 68
drivers/m
-by: Gage Eads
Signed-off-by: Mike Ximing Chen
Reviewed-by: Magnus Karlsson
Reviewed-by: Dan Williams
---
.../userspace-api/ioctl/ioctl-number.rst | 1 +
drivers/misc/dlb/Makefile | 2 +-
drivers/misc/dlb/dlb_bitmap.h | 32
drivers/misc/dlb
- physical function (PF, as implemented here) or virtual
function/device (support to be added later).
Signed-off-by: Gage Eads
Signed-off-by: Mike Ximing Chen
Reviewed-by: Magnus Karlsson
Reviewed-by: Dan Williams
---
drivers/misc/dlb/Makefile | 1 +
drivers/misc/dlb/dlb_hw_ty
).
Introduce dlb_bitmap_* functions, a thin convenience layer wrapping the
Linux bitmap interfaces, used by the bitmaps in the dlb hardware types.
Signed-off-by: Gage Eads
Signed-off-by: Mike Ximing Chen
Reviewed-by: Magnus Karlsson
Reviewed-by: Dan Williams
---
drivers/misc/dlb/Makefile | 2
on in the patch.
Add a DLB entry to the MAINTAINERS file.
Signed-off-by: Gage Eads
Signed-off-by: Mike Ximing Chen
Reviewed-by: Magnus Karlsson
Reviewed-by: Dan Williams
---
Documentation/misc-devices/dlb.rst | 259 +++
Documentation/misc-devices/index.rst
ll IDA interfaces directly instead
v3:
- Remove DLB2_PCI_REG_READ/WRITE macros
v2:
- Change driver license to GPLv2 only
- Expand Kconfig help text and remove unnecessary (R)s
- Remove unnecessary prints
- Add a new entry in ioctl-number.rst
- Convert the ioctl handler into a switch statement
- Correc
21 matches
Mail list logo