Message ID | cover.1712066778.git.davthompson@nvidia.com |
---|---|
Headers | show |
Series | mlxbf_gige: stop interface during shutdown | expand |
Acked-by: Bartlomiej Zolnierkiewicz <bartlomiej.zolnierkiewicz@canonical.com> This commit is cherry-picked from the linux-next tree which should be mentioned in the cherry-pick line. However this can be fixed while applying. On Tue, Apr 2, 2024 at 4:15 PM David Thompson <davthompson@nvidia.com> wrote: > > BugLink: https://bugs.launchpad.net/bugs/2059951 > > SRU Justification: > > [Impact] > The mlxbf_gige driver shutdown() is invoked during reboot > processing, but the stop() logic is not guaranteed to execute > on all distros. If stop() does not execute NAPI remains enabled > during system shutdown and can cause an exception if NAPI is > scheduled when interface is shutdown but not stopped. > > [Fix] > The networking interface managed by the mlxbf_gige driver must > be stopped during reboot processing so that it is put into a > clean state and driver callbacks won't be called. > > [Test Case] > * Put BF platform into a reboot loop > * Ensure that BF platform brings up "oob_net0" interface each reboot, > and that no mlxbf_gige driver exceptions occur > > [Regression Potential] > There is low potential for regression as this brings in upstream content. > > [Other] > None > > David Thompson (1): > mlxbf_gige: stop interface during shutdown > > .../net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) >
Acked-by: Jose Ogando <jose.ogando@canonical.com> Similar comment, specify that this comes from linux-next. On Wed, 2024-04-03 at 14:57 +0200, Bartlomiej Zolnierkiewicz wrote: > Acked-by: Bartlomiej Zolnierkiewicz > <bartlomiej.zolnierkiewicz@canonical.com> > > This commit is cherry-picked from the linux-next tree which should be > mentioned in the cherry-pick line. However this can be fixed while > applying. > > On Tue, Apr 2, 2024 at 4:15 PM David Thompson > <davthompson@nvidia.com> wrote: > > > > BugLink: https://bugs.launchpad.net/bugs/2059951 > > > > SRU Justification: > > > > [Impact] > > The mlxbf_gige driver shutdown() is invoked during reboot > > processing, but the stop() logic is not guaranteed to execute > > on all distros. If stop() does not execute NAPI remains enabled > > during system shutdown and can cause an exception if NAPI is > > scheduled when interface is shutdown but not stopped. > > > > [Fix] > > The networking interface managed by the mlxbf_gige driver must > > be stopped during reboot processing so that it is put into a > > clean state and driver callbacks won't be called. > > > > [Test Case] > > * Put BF platform into a reboot loop > > * Ensure that BF platform brings up "oob_net0" interface each > > reboot, > > and that no mlxbf_gige driver exceptions occur > > > > [Regression Potential] > > There is low potential for regression as this brings in upstream > > content. > > > > [Other] > > None > > > > David Thompson (1): > > mlxbf_gige: stop interface during shutdown > > > > .../net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c | 10 > > ++++++++-- > > 1 file changed, 8 insertions(+), 2 deletions(-) > > >
Applied to jammy:linux-bluefield/master-next. Thanks. -- Best regards, Bartlomiej On Tue, Apr 2, 2024 at 4:15 PM David Thompson <davthompson@nvidia.com> wrote: > > BugLink: https://bugs.launchpad.net/bugs/2059951 > > SRU Justification: > > [Impact] > The mlxbf_gige driver shutdown() is invoked during reboot > processing, but the stop() logic is not guaranteed to execute > on all distros. If stop() does not execute NAPI remains enabled > during system shutdown and can cause an exception if NAPI is > scheduled when interface is shutdown but not stopped. > > [Fix] > The networking interface managed by the mlxbf_gige driver must > be stopped during reboot processing so that it is put into a > clean state and driver callbacks won't be called. > > [Test Case] > * Put BF platform into a reboot loop > * Ensure that BF platform brings up "oob_net0" interface each reboot, > and that no mlxbf_gige driver exceptions occur > > [Regression Potential] > There is low potential for regression as this brings in upstream content. > > [Other] > None > > David Thompson (1): > mlxbf_gige: stop interface during shutdown > > .../net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) >