Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8989669ybi; Tue, 23 Jul 2019 19:34:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqy0UelGYlhi6+o4FxDm6mNEvCCy2itI8tX/bToU1iFh0jWHgaq5jFLKvCOYtvuqhg6CxEHu X-Received: by 2002:a17:90a:9f0b:: with SMTP id n11mr46904324pjp.98.1563935662312; Tue, 23 Jul 2019 19:34:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1563935662; cv=pass; d=google.com; s=arc-20160816; b=PbqYcZ4dY0sUgxIvMqkr/TS3T4wEI9wfSYzQptrM1Ps4tf1z467w3ahmfs5xt1snfh r6CsR7ihUBX8ncTidfxt+U5FdbWhdV4Zrbh3usW0FPuHmHJlEXPy/uyC8s7fxeNcOfVc XYLeho7MNk/CRJHPLAUWvirCSQ4aemsiLOok6wXQjR+rK0jk1q9HtolReFNsly7VOG48 +jS5eJe2fpbmTuozwyonrGkNOZMwlkdsfAN4HDGxuB7QdAbqkgOxtuG1La5Dl4IsgXRE FHjJchlrlG8+dqI21TWm1u/rW3Fk1xIAfK4Vi2yvwbCGCijrlQgppzR/xLthLJ+V5dLb nZvA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature; bh=XUgcURHfBDQDRmujLonKqDPZyQx0QFaUwC0jVuzPfko=; b=rwmbYPo3RnyjVLjt5ZF8HQ8z8BYNunGnFsxKzciYUyqsu1ZGPuY/rOqJKhfxZVfA4f kK1MJJOAgKtodgibCNc2V9PL6a8A7aX3dmL20g01AwWICd4PqLnCseMldn2SWqCUoV3s FvVOS/FfIx7iLVvMVwjfLZJsm+YcpHpyaXVWa7IRfDBqQh4zbI4zcuoMtDLrUbjDEf/a 0MkxNptyYeJl7xaK9fIydfm/IBnuCR8ILE3WXf+YN8lly32Jazn4pZqLWLJZsj64Si2Y am5ioMZyX3fw7WEKlj6wTqhW+sqZjSHHiP84hOtERZSKxn01/9/Q5pEURgZ4jXpActSS GhnA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector2 header.b="l/Gfzq3K"; arc=pass (i=1 spf=pass spfdomain=mellanox.com dkim=pass dkdomain=mellanox.com dmarc=pass fromdomain=mellanox.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l143si12902053pfd.162.2019.07.23.19.34.06; Tue, 23 Jul 2019 19:34:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector2 header.b="l/Gfzq3K"; arc=pass (i=1 spf=pass spfdomain=mellanox.com dkim=pass dkdomain=mellanox.com dmarc=pass fromdomain=mellanox.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392307AbfGWWJh (ORCPT + 99 others); Tue, 23 Jul 2019 18:09:37 -0400 Received: from mail-eopbgr150070.outbound.protection.outlook.com ([40.107.15.70]:13123 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731838AbfGWWJg (ORCPT ); Tue, 23 Jul 2019 18:09:36 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Knxp4e2U65DX+PoIORIoEGrQ4cObKgNSwZFswRfLRJwgNL+Ryy2ozONSFK9N8BdwkBNQedzFM6R7/Jz4yfIM4kuO41JZFAWsmPDnxe1rtylxoI8yOEJB9MZ0dlbt/1YcKw8Kub3OI+1kTyiD/qy134wE8yzstHUe6Xk7Zp8me1BqHDR597W4hCMurkcnoEHB86AV+8Vmdqw5ERgc7FZSSdAKdPIIYtkGJmt1jU/CsavtKDNcBML7Uemm3z3VHEkY2ZRl37GEG/LVtLam8u7i3j+6hse1UTPCpiZM+dZuXNSAZT23Cic2dSLvluaeRR8MU23p3ldsOdnVr3whBhzT5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XUgcURHfBDQDRmujLonKqDPZyQx0QFaUwC0jVuzPfko=; b=VzfHiYZmEZOUWci5zpHERpI324pLT2S6tYIgk++tPnvzbUffbfyYA1V7c4GVMSTce8Nb6QG+PdSG39TWFagso0xcQ9LmRlZPj+rQGvESumB82I8EkQH13V3/Z+Yx+24T+OEIMD7UBEF2sd7UDl3ygT/fWwbQUx5EQK8UOxR4toPWj3+/ldj8DJle5J4FLqUgUMnqTX2ZpaiLD+LM8CFJ7y6QGikDGJtwetLhHMHkcgfai7hD5XfgLONBU9ih8X+GhsFTtsriGpoHZHyhQisfKTyX71WDRQa6tJKGVDfPJKp9gPIvGrG4wd2p5Eiskgy5KCahWgZVxHdoF9qMXMIReQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=mellanox.com;dmarc=pass action=none header.from=mellanox.com;dkim=pass header.d=mellanox.com;arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XUgcURHfBDQDRmujLonKqDPZyQx0QFaUwC0jVuzPfko=; b=l/Gfzq3K5TBD/Vy70wciTvxCG6wjO7S9VWu8/MSB6VGNVcruthFjG5FO4bWTHiF7ITZL0UlZ6QHkG7KwarZ9vH0hY/RJVUllzSpValjahEi8aKcGZEx5xxqk2IQYVjvlBzsQIZ5ZrRYWozrROTQyl81L9C1sd1s7k5XOlswZ4WQ= Received: from DB6PR0501MB2759.eurprd05.prod.outlook.com (10.172.227.7) by DB6PR0501MB2680.eurprd05.prod.outlook.com (10.172.226.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2094.16; Tue, 23 Jul 2019 22:09:28 +0000 Received: from DB6PR0501MB2759.eurprd05.prod.outlook.com ([fe80::7148:ecd4:3a7f:f3f]) by DB6PR0501MB2759.eurprd05.prod.outlook.com ([fe80::7148:ecd4:3a7f:f3f%11]) with mapi id 15.20.2094.011; Tue, 23 Jul 2019 22:09:27 +0000 From: Saeed Mahameed To: "davem@davemloft.net" , Tariq Toukan , "arnd@arndb.de" CC: "linux-rdma@vger.kernel.org" , "jackm@dev.mellanox.co.il" , Erez Alfasi , Moshe Shemesh , Eli Cohen , "linux-kernel@vger.kernel.org" , Jiri Pirko , "netdev@vger.kernel.org" , "clang-built-linux@googlegroups.com" Subject: Re: [PATCH net-next] [net-next] mlx4: avoid large stack usage in mlx4_init_hca() Thread-Topic: [PATCH net-next] [net-next] mlx4: avoid large stack usage in mlx4_init_hca() Thread-Index: AQHVQJ57thGXqeHaWUeyAhcQSxLAJKbYxVaA Date: Tue, 23 Jul 2019 22:09:27 +0000 Message-ID: <8a76a11a6a7ad2dae93f52b9e243aa79103279ae.camel@mellanox.com> References: <20190722150204.1157315-1-arnd@arndb.de> In-Reply-To: <20190722150204.1157315-1-arnd@arndb.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.32.4 (3.32.4-1.fc30) authentication-results: spf=none (sender IP is ) smtp.mailfrom=saeedm@mellanox.com; x-originating-ip: [209.116.155.178] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 07297a12-0b6f-4d77-27ae-08d70fba6dfd x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:DB6PR0501MB2680; x-ms-traffictypediagnostic: DB6PR0501MB2680: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 0107098B6C x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(376002)(346002)(136003)(396003)(39860400002)(366004)(189003)(199004)(14454004)(66476007)(66446008)(4326008)(8676002)(76116006)(66946007)(64756008)(66556008)(54906003)(110136005)(91956017)(76176011)(102836004)(68736007)(316002)(5660300002)(66066001)(86362001)(7736002)(486006)(6486002)(118296001)(478600001)(26005)(71190400001)(99286004)(8936002)(71200400001)(53936002)(2616005)(6512007)(476003)(305945005)(25786009)(446003)(2906002)(6246003)(81156014)(14444005)(256004)(36756003)(229853002)(6116002)(58126008)(2501003)(186003)(3846002)(81166006)(6506007)(11346002)(6436002);DIR:OUT;SFP:1101;SCL:1;SRVR:DB6PR0501MB2680;H:DB6PR0501MB2759.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 4kna+UzpsHSKqlrFYANndPlg/i2Z4omXh4VRfZOsPGaxzhBaWTaGxnhmRHErYnoJPa4T99mCw53bMmFhNmrnSdg5PWvPPNlSkWlb5W4spZifgdPKfqf5Mv6ZQLJotMiafwBdj4imd1aWpWYV1KFH/6S1tyb1Dc660fgkkk0kIS3yp2+zEFhcqgdPTvX6uWmaH9bWhFVguzdpb6tr2l+GyF3woVc3d7pXBeOrx0l8slB9tXXen/ZE7K/w8NxESyeq/xIiIzkDBEAipfrdjMJA1menbKEGSwb/MHIwh1VpRQTfE39ruA+4eVrw82nQSEJihSqwCCBgMOIQal2XEQ3fl5YvO/LmB67xlY8MH4d7B82HJTfsUtAvHZnnC3unXJ3h32OMjlhYiBYiQ5TCFFqMqvicMYfdYYPAKVqVFQmSDjY= Content-Type: text/plain; charset="utf-8" Content-ID: <088FEE3FCBC0FD40BE612FD7F24EE14C@eurprd05.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 07297a12-0b6f-4d77-27ae-08d70fba6dfd X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Jul 2019 22:09:27.8526 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: saeedm@mellanox.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2680 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gTW9uLCAyMDE5LTA3LTIyIGF0IDE3OjAxICswMjAwLCBBcm5kIEJlcmdtYW5uIHdyb3RlOg0K PiBUaGUgbWx4NF9kZXZfY2FwIGFuZCBtbHg0X2luaXRfaGNhX3BhcmFtIGFyZSByZWFsbHkgdG9v IGxhcmdlDQo+IHRvIGJlIHB1dCBvbiB0aGUga2VybmVsIHN0YWNrLCBhcyBzaG93biBieSB0aGlz IGNsYW5nIHdhcm5pbmc6DQo+IA0KPiBkcml2ZXJzL25ldC9ldGhlcm5ldC9tZWxsYW5veC9tbHg0 L21haW4uYzozMzA0OjEyOiBlcnJvcjogc3RhY2sgZnJhb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