[lkml]   [2020]   [Jan]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] mlx5: work around high stack usage with gcc
From: Arnd Bergmann <>
Date: Sat, 4 Jan 2020 22:51:44 +0100

> In some configurations, gcc tries too hard to optimize this code:
> drivers/net/ethernet/mellanox/mlx5/core/en_stats.c: In function 'mlx5e_grp_sw_update_stats':
> drivers/net/ethernet/mellanox/mlx5/core/en_stats.c:302:1: error: the frame size of 1336 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]
> As was stated in the bug report, the reason is that gcc runs into a corner
> case in the register allocator that is rather hard to fix in a good way.
> As there is an easy way to work around it, just add a comment and the
> barrier that stops gcc from trying to overoptimize the function.
> Link:
> Cc: Adhemerval Zanella <>
> Signed-off-by: Arnd Bergmann <>

Saeed, please take this.

Thank you.

 \ /
  Last update: 2020-01-06 22:35    [W:0.056 / U:0.704 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site