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

net: rswtich: disable GWCA when removing driver #9

Open
wants to merge 1 commit into
base: v2020.10/rcar-5.1.1.rc7
Choose a base branch
from

Conversation

lorc
Copy link

@lorc lorc commented Feb 3, 2023

We need to disable GWCA for two reasons:

  1. There may be packets coming to the device when U-Boot already transferred control to Linux, but Linux didn't had chance to re-configure GWCA. This may lead to memory corruption, as chains are already active.

  2. Linux will not be able to switch GWCA to DISABLED state, because transition from OPERATION to DISABLED requires that all buffer pointers are released and all transactions are finished. But there are no one who can handle those operations, as U-Boot already exited and Linux is still trying to initialize R-Switch driver.

This fixes issue with DomD unable to initialize network in the parallel mode.

Signed-off-by: Volodymyr Babchuk [email protected]

We need to disable GWCA for two reasons:

1. There may be packets coming to the device when U-Boot already
transferred control to Linux, but Linux didn't had chance to
re-configure GWCA. This may lead to memory corruption, as chains are
already active.

2. Linux will not be able to switch GWCA to DISABLED state, because
transition from OPERATION to DISABLED requires that all buffer
pointers are released and all transactions are finished. But there are
no one who can handle those operations, as U-Boot already exited and
Linux is still trying to initialize R-Switch driver.

This fixes issue with DomD unable to initialize network in the
parallel mode.

Signed-off-by: Volodymyr Babchuk <[email protected]>
@HaiNguyenPham
Copy link
Collaborator

Hi @lorc,

Thanks for your input.
I will check it

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