intel / idxd-config

Accel-config / libaccel-config
Other
56 stars 35 forks source link

config-wq error message Operation not supported is not clear #49

Closed HackToday closed 7 months ago

HackToday commented 7 months ago

I have system with kernel 5.18

# lsmod  | grep idxd
idxd                  106496  0

# accel-config config-device dsa0
# accel-config config-engine dsa0/engine0.0 --group-id=0
# accel-config config-wq dsa0/wq0.0 --group-id=0 --mode=dedicated --wq-size=16 --type=kernel --name="dsatest" --driver-name=dmaengine --priority=10
libaccfg: accfg_wq_set_str_name: wq0.0: write failed: Operation not supported

dmesg not have any error info. And also from above error "Operation not supported", it is not clear what's not allowed. Not useful for debug. I need to use strace to find details

# accel-config config-wq dsa0/wq0.0 --group-id=0 --mode=dedicated --wq-size=16 --type=kernel --name=dwq1 --driver-name=dmaengine --priority=10
**libaccfg: accfg_wq_set_str_name: wq0.0: write failed: Operation not supported**

it without name, it can success, but enable-wq would complain no name set issue. So it seems confliction for config-wq and enable-wq

# accel-config config-wq dsa0/wq0.0 --group-id=0 --mode=dedicated --wq-size=16 --type=kernel  --driver-name=dmaengine --priority=10
# accel-config enable-device dsa0
enabled 1 device(s) out of 1
# accel-config enable-wq dsa0/wq0.0
failed in dsa0/wq0.0
enabled 0 wq(s) out of 1
Error[0x80040000] dsa0/wq0.0: wq error - name not set
ramesh-thomas commented 7 months ago

This may be an issue with 5.18 kernel. I have been able to change kernel wq name in 5.19 and 6.2,

ramesh-thomas commented 7 months ago

Looks like the upstream kernel did not have this support until version 6.6. I was referring to BKC kernels in my previous comment @fyu1