ACCEL-CONFIG-CONFIG-WQ(1)
π ACCEL-CONFIG-CONFIG-WQ(1) β the glow-up guide π
okay bestie, welcome to the accel-config config-wq page β this is the one from the accfg manual, and it's literally all about β¨configuring individual attributes of a work queueβ¨. yes, individually, one attribute at a time, like a skincare routine but for hardware. π§ββοΈ
πΈ NAME πΈ
accel-config-config-wq β configure individual attributes of a work queue. that's the whole job. no cap. π
β¨ SYNOPSIS β¨
accel-config config-wq <device name>/<wq name> [<options>]
π¦ EXAMPLE π¦
like, here's what it actually looks like in the wild:
accel-config config-wq dsa0/wq0.0 --wq-size=16
see? device name, slash, wq name, then whatever options your heart desires. iconic. π«
π OPTIONS π
you get so many options, bestie. every single one. no skipping. we're doing all of them. π«Ά
-g,--group-id=β tells the work queue which group id it's rolling with. the group id should be between0and the maximum number of groups per device. and plot twist π β a group id of-1disassociates the work queue from a group. it said what it said.-s,--wq-size=β sets the work queue size used by a work queue. this value should be between0and the maximum workqueue size exposed by the device in themax_work_queue_sizeattribute under device. check the device, not me. π-p,--priorityβ sets the priority of this work queue relative to the other work queues chillin' in the same group. this field ranges from1to15, and the larger value means higher priority. so, like, ifwq1has a priority of6andwq2has priority of2, thenwq1will issue 3 times as many descriptors to the engine compared towq2. math is math. π₯-b,--block-on-faultβ toggles block on fault enable for the work queue. block-on-fault should be either0or1. and here's the tea β β if block on fault is disabled, and a page fault occurs on a source or destination memory access, the operation stops and the page fault is reported to the software. periodt.-t,--thresholdβ configures the threshold for the wq. the set up threshold value should be larger than0and only for "shared" wq, and heads up π β the configured threshold value should be at least1less than the configured wq-size value. the reason? threshold is set for unprivileged users, so you need to reserve at least1space for the privileged user for commands. it's giving "share the snack, leave a crumb for the admin." π-y,--typeβ configures the type for the wq. the wq type can be"kernel"for the kernel user case to request wq, or"user"for the regular character device driver use case to wq. pick your fighter. β-n,--nameβ configures the name for the wq. this can be any string defined by the user. typically it's used for identifying the wq in some unique way, and a possible suggestion would be using a uuid string. name your baby. πβ¨-d,--driver-nameβ specifies the name of the driver to bind. this should be one of the valid wq drivers found in/sys/bus/dsa/drivers. go look, they're right there. π-o,--op-configβ specifies the op config bitmask. the bitmask is of size 256 bits and is entered as 32 bit hex words separated by comma or space. like, for example:
00000000,00000000,00000000,00000000,00000000,00000000,00fc00ff,003f03ff
yes it's a lot of zeros. it ate. π
-m,--modeβ configures the mode for the wq. the wq mode can be set as"dedicated"or"shared". choose wisely, bestie. π¦-c,--max-batch-sizeβ specifies the max batch size used by a work queue. the value should be between1and the device maximum batch size found in themax_batch_sizeattribute under device. and here's the cute part π β if the value is not a power of2, it will be rounded up to the next power of 2. glow-up math.-x,--max-transfer-sizeβ specifies the max transfer size used by a work queue. the value should be between1and the device maximum transfer size found in themax_transfer_sizeattribute under device. and same vibes as above β¨ β if the value is not a power of2, it will be rounded up to the next power of 2.-a,--ats-disableβ toggles whether ATS disable is turned on for the work queue. the value should be either0or1.0indicates ATS is on, and1indicates ATS is off for the work queue. (yes,1means off. it's giving "the flag is the disable flag, bestie." π)-r,--prs-disableβ toggles whether PRS disable is turned on for the work queue. the value should be either0or1.0indicates PRS is on, and1indicates PRS is off for the work queue. same energy, different acronym. π
lowkey reminder: those last two are disable flags, so the0/1situation is flipped from what your brain wants it to be. read twice, configure once. π
π COPYRIGHT π
Copyright (c) 2023 - 2026, Intel Corporation. License GPLv2: GNU GPL version 2 http://gnu.org/licenses/gpl.html. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
and that's the whole page, bestie!! π«Ά this little masterpiece comes to you from accfg 4.1.8+, dated 07/23/2026 β go configure a work queue, you absolute main character. πβ¨ππ¦
π¦ where this page comes from
- ubuntu stonking: accel-config 4.1.9-2build1 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms