Skip to content

net: rswtich: disable GWCA when removing driver - #9

Open
lorc wants to merge 1 commit into
renesas-rcar:v2020.10/rcar-5.1.1.rc7from
lorc:pr_stop_rswitch
Open

net: rswtich: disable GWCA when removing driver#9
lorc wants to merge 1 commit into
renesas-rcar:v2020.10/rcar-5.1.1.rc7from
lorc:pr_stop_rswitch

Conversation

@lorc

@lorc lorc commented Feb 3, 2023

Copy link
Copy Markdown

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 volodymyr_babchuk@epam.com

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 <volodymyr_babchuk@epam.com>
@HaiNguyenPham

Copy link
Copy Markdown
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