Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1431237ybz; Wed, 29 Apr 2020 22:24:55 -0700 (PDT) X-Google-Smtp-Source: APiQypLMvxMnDdSPiOFPYXQauSu4rl4f2toRccmqaAEYFtTF8TLAwzCVRSNrC0nlln22Odboxese X-Received: by 2002:a17:906:3296:: with SMTP id 22mr1120222ejw.195.1588224295557; Wed, 29 Apr 2020 22:24:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588224295; cv=none; d=google.com; s=arc-20160816; b=e5PntNGNC7VIiUF4972P6bhokbU4ARQbLb1dWB7YYK8Az3rFonC0VHR8McwaKjgPQ+ /fWjUrCSqyDCoLVnzedZVYcli8Xn3G39j28puVnRXwqb0ZUfAsdbwb4ycrQaOmjuVhBv n9cPnTT/Dqr60BhDxkQa50QzRfcEbMukC1j1ZU0yz7BRMvrqT31DqTwoJOexaLqtxOUp sKYwDTQHB0cbXh+5sCHlGzI1gQExPLiFd9xzhNMKwHxVBI5Whii7IfNXE+xfmculFhKo 1LsIWts/aMxMoIwcZjpTGK1d7AhrqhQx6Xmmj/IP3TfuXXFSUIVeGPrq9dWPuL6ZoF0d eFvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=lY1wKU1cDj+nX0xhSENgjfMuHQXqk+b2FG419VOi9uI=; b=WQpJTBrn5ncVAuVe7QuKt78jewvNMnixmRicowrL3Bal/+Q5eAA2TmmRb4mtPPZRXx AJANz888+WYI7MvmGcJDgmZQlmZkGqn4BJvnbfSadOKsUv96OL0PVJoM6Gs3xwVh7c5m TwcIo4Jx5xkHxd4D5ApcYjazzfql9vMmbQkX0V7yO8n+3+jejOkIatJFSyJ0ImLdu4bj KQ90xsp67G5I3wUsoBdUid2iS7y/tJQlmB4erab6lSKvnosltB53Isd03rNs6ygA6HZS U/mo/BeiotVq4ufPJcgLFX1YH5x5bzB63mdRZMs1iWmqBD9soJ0/tpdPF1kcZ2SgqBSc 1n3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wFETOcuS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i14si4743719ejr.238.2020.04.29.22.24.31; Wed, 29 Apr 2020 22:24:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wFETOcuS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726476AbgD3FWD (ORCPT + 99 others); Thu, 30 Apr 2020 01:22:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:46354 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726180AbgD3FWD (ORCPT ); Thu, 30 Apr 2020 01:22:03 -0400 Received: from localhost (unknown [213.57.247.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 095692082E; Thu, 30 Apr 2020 05:22:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588224122; bh=1p0oH7YrVSof02HvpE/Mwk52Jg02jQcL9hzueBwTQjs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wFETOcuSpA6cWjmhNxTlbehrldwW6BolQSq4gendapIEf47FUUT3raBVV6Ztkz1TJ O3kFOAy5ZNvY6418jydrSdcFWq4Ocw7OudLM5xkyhq/ePOwuRAVcPNHztPGE/U4gaz rqBPiRV+POM6K4DJSVmdZ0JKTpFJJBpxLodwckh4= Date: Thu, 30 Apr 2020 08:21:57 +0300 From: Leon Romanovsky To: Arnd Bergmann Cc: Saeed Mahameed , "David S. Miller" , Moshe Shemesh , Greg Kroah-Hartman , netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net/mlx5: reduce stack usage in qp_read_field Message-ID: <20200430052157.GD432386@unreal> References: <20200428212357.2708786-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200428212357.2708786-1-arnd@arndb.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 28, 2020 at 11:23:47PM +0200, Arnd Bergmann wrote: > Moving the mlx5_ifc_query_qp_out_bits structure on the stack was a bit > excessive and now causes the compiler to complain on 32-bit architectures: > > drivers/net/ethernet/mellanox/mlx5/core/debugfs.c: In function 'qp_read_field': > drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:274:1: error: the frame size of 1104 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] > > Revert the previous patch partially to use dynamically allocation as > the code did before. Unfortunately there is no good error handling > in case the allocation fails. > > Fixes: 57a6c5e992f5 ("net/mlx5: Replace hand written QP context struct with automatic getters") > Signed-off-by: Arnd Bergmann > --- > drivers/net/ethernet/mellanox/mlx5/core/debugfs.c | 12 +++++++++--- > 1 file changed, 9 insertions(+), 3 deletions(-) Thanks Arnd, I'll pick it to mlx5-next. I was under impression that the frame size was increased a long time ago. Is this 1K limit still effective for all archs? Or is it is 32-bit leftover? Thanks