Page MenuHomeFreeBSD

Improved logging of gtaskqueue failues
ClosedPublic

Authored by shurd on Sep 21 2017, 6:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 21, 5:53 AM
Unknown Object (File)
Nov 18 2024, 11:48 PM
Unknown Object (File)
Nov 9 2024, 10:15 PM
Unknown Object (File)
Nov 4 2024, 2:20 PM
Unknown Object (File)
Oct 11 2024, 8:27 AM
Unknown Object (File)
Oct 9 2024, 9:08 AM
Unknown Object (File)
Sep 26 2024, 8:54 PM
Unknown Object (File)
Sep 12 2024, 6:21 PM

Details

Summary

Check the return code of intr_setaffinity() and log any errors
it returns. When a qid is not located, log an error before returning
failure.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sbruno requested changes to this revision.Sep 21 2017, 7:51 PM
sbruno added inline comments.
sys/kern/subr_gtaskqueue.c
793 ↗(On Diff #33271)

pedantic nit. Do you want to explicitly put the function name in the printf() calls here or should we use func ?

Basically, all these printf() calls should be one way or the other.

This revision now requires changes to proceed.Sep 21 2017, 7:51 PM

Use func for all messages

This revision is now accepted and ready to land.Sep 21 2017, 9:00 PM
This revision was automatically updated to reflect the committed changes.

Hi Stephen,

Just wanted to mention that this patch is causing warning messages with bnxt driver during load.
If there is any thing missing in bnxt driver, we will implement. kindly let me know.

bnxt0: using 12 rx queues 12 tx queues
bnxt0: Using MSIX interrupts with 13 vectors
taskqgroup_attach_cpu: setaffinity failed: 3
taskqgroup_attach_cpu: setaffinity failed: 3
taskqgroup_attach_cpu: setaffinity failed: 3
taskqgroup_attach_cpu: setaffinity failed: 3
taskqgroup_attach_cpu: setaffinity failed: 3
taskqgroup_attach_cpu: setaffinity failed: 3
taskqgroup_attach_cpu: setaffinity failed: 3
taskqgroup_attach_cpu: setaffinity failed: 3
taskqgroup_attach: setaffinity failed: 3
taskqgroup_attach: setaffinity failed: 3
taskqgroup_attach: setaffinity failed: 3
taskqgroup_attach: setaffinity failed: 3
taskqgroup_attach: setaffinity failed: 3
taskqgroup_attach: setaffinity failed: 3
taskqgroup_attach: setaffinity failed: 3
taskqgroup_attach: setaffinity failed: 3
bnxt0: Ethernet address: 00:0a:f7:c4:b2:c0

Thanks,
Chenna.

Hi Stephen,

Just wanted to mention that this patch is causing warning messages with bnxt driver during load.
If there is any thing missing in bnxt driver, we will implement. kindly let me know.

bnxt0: using 12 rx queues 12 tx queues
bnxt0: Using MSIX interrupts with 13 vectors
taskqgroup_attach_cpu: setaffinity failed: 3
...
taskqgroup_attach: setaffinity failed: 3
...
bnxt0: Ethernet address: 00:0a:f7:c4:b2:c0

I should have a patch that fixes these issues today or tomorrow. It appears the rid parameter does not actually expect an rid.

Thanks for the heads-up.