Skip to content

Comments

fix(ixgbe): multiple init of IXGBE_CTRL_EXT_DRV_LOAD#278

Merged
Koichi98 merged 1 commit intomainfrom
fix_ixgbe6
Jan 16, 2025
Merged

fix(ixgbe): multiple init of IXGBE_CTRL_EXT_DRV_LOAD#278
Koichi98 merged 1 commit intomainfrom
fix_ixgbe6

Conversation

@ytakano
Copy link
Collaborator

@ytakano ytakano commented Jan 16, 2025

Description

IXGBE_CTRL_EXT_DRV_LOAD of IXGBE_CTRL_EXT should be set after setting up the device driver once.
Currently, the flag is set up before the driver initialization.
Additionally, it is set up after the driver initialization as follows.

// let hardware know driver is loaded
let mut ctrl_ext = ixgbe_hw::read_reg(&info, IXGBE_CTRL_EXT)?;
ctrl_ext |= IXGBE_CTRL_EXT_DRV_LOAD;
ixgbe_hw::write_reg(&info, IXGBE_CTRL_EXT, ctrl_ext)?;

This PR removes the first set up of IXGBE_CTRL_EXT_DRV_LOAD.

Related links

https://github.com/openbsd/src/blob/8a8057a73cb1964915a1105b223ec749e2c82eb7/sys/dev/pci/if_ix.c#L337-L340

How was this PR tested?

Notes for reviewers

`IXGBE_CTRL_EXT_DRV_LOAD` of `IXGBE_CTRL_EXT` should be set
aftre setting up drivers once.

Signed-off-by: Yuuki Takano <ytakanoster@gmail.com>
@ytakano ytakano requested a review from Koichi98 January 16, 2025 08:12
@Koichi98 Koichi98 merged commit 69f3725 into main Jan 16, 2025
1 check passed
@ytakano ytakano deleted the fix_ixgbe6 branch January 16, 2025 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants