Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alc(4): disable MSI-X by default on Killer cards #1185

Closed
wants to merge 1 commit into from

Conversation

llfw
Copy link
Contributor

@llfw llfw commented Apr 18, 2024

Several users with alc(4)-based "Killer" Ethernet cards have reported issues with this driver not passing traffic, which are solved by disabling MSI-X using the provided tunable.

To work around this issue, disable MSI-X by default on this card.

This is done by having msix_disable default to 2, which means "auto-detect". The user can still override this to either 0 or 1 as desired.

Since these are slow (1Gbps) Ethernet ICs used in low-end systems, it's unlikely this will cause any practical performance issues; on the other hand, the card not working by default likely causes issues for many new FreeBSD users who find their network port doesn't work and have no idea why.

PR: 230807
MFC after: 1 week


cc @emaste as you seem interested in user onboarding issues

/*
* Disable MSI-X by default on Killer devices, since this is
* reported by several users to not work well.
* */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix

@emaste
Copy link
Member

emaste commented Apr 19, 2024

Thanks for the CC, this makes sense to me. Do we know off hand if other operating systems (e.g. Linux or OpenBSD) do this?

Several users with alc(4)-based "Killer" Ethernet cards have reported
issues with this driver not passing traffic, which are solved by
disabling MSI-X using the provided tunable.

To work around this issue, disable MSI-X by default on this card.

This is done by having msix_disable default to 2, which means
"auto-detect".  The user can still override this to either 0 or 1 as
desired.

Since these are slow (1Gbps) Ethernet ICs used in low-end systems, it's
unlikely this will cause any practical performance issues; on the other
hand, the card not working by default likely causes issues for many new
FreeBSD users who find their network port doesn't work and have no idea
why.

PR:		230807
MFC after:	1 week
@llfw
Copy link
Contributor Author

llfw commented Apr 20, 2024

on Linux the bug isn't present, but i spent several hours comparing their driver (alx) to ours and couldn't work out what they're doing differently. i did mail the listed maintainer of the Linux driver to ask for documentation on the chip (Qualcomm is not very forthcoming with this) but no luck.

NetBSD from what i remember doesn't support MSI-X on this card. i'm not sure what OpenBSD does.

i've fixed the comment typo.

Copy link
Member

@bsdimp bsdimp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me...

@bsdimp bsdimp self-assigned this Apr 21, 2024
@bsdimp
Copy link
Member

bsdimp commented Apr 21, 2024

Seems ready. Last call ...

@bsdimp bsdimp added merged and removed ready labels Apr 23, 2024
freebsd-git pushed a commit that referenced this pull request Apr 23, 2024
Several users with alc(4)-based "Killer" Ethernet cards have reported
issues with this driver not passing traffic, which are solved by
disabling MSI-X using the provided tunable.

To work around this issue, disable MSI-X by default on this card.

This is done by having msix_disable default to 2, which means
"auto-detect".  The user can still override this to either 0 or 1 as
desired.

Since these are slow (1Gbps) Ethernet ICs used in low-end systems, it's
unlikely this will cause any practical performance issues; on the other
hand, the card not working by default likely causes issues for many new
FreeBSD users who find their network port doesn't work and have no idea
why.

PR:		230807
MFC after:	1 week

Reviewed by: imp
Pull Request: #1185
@bsdimp
Copy link
Member

bsdimp commented Apr 23, 2024

merged

@bsdimp bsdimp closed this Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants