Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp1221220rwj; Fri, 23 Dec 2022 15:01:55 -0800 (PST) X-Google-Smtp-Source: AMrXdXsMa0FzEXO27JYbI/bcbk7vxWVFzO4gHAU6WGS9lz18zICzCzLfqa/MXxUXtcriN+1HYx9Y X-Received: by 2002:a17:906:6a1a:b0:7b9:ee36:6153 with SMTP id qw26-20020a1709066a1a00b007b9ee366153mr11922816ejc.2.1671836514915; Fri, 23 Dec 2022 15:01:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671836514; cv=none; d=google.com; s=arc-20160816; b=C+U9dZqi2GkwkyLMsfDuwBugE2CDHuvPq++lasCIwTj669F2l47X8ERMBzTk8k1Dqu Dg4JWvqlG63St6QJGni+Q88JvHafOvXsz5msA6ssQv6ihvmJ0VPfDgLuFJuymflmmbj6 CDaDm6R8dxEFjg/6C4M6FJbGwNuCD++6vPn1JaC7LWSgBtUuMk69xrRDD6e0UjvlCBPV Kls46qYstfuvw3R/sK21+etHPFv6LvZARiBkKecSXXNTk3OWIjKJd5yJCti91FuxN40H p/p+xmbzUd2Kb6iFuA/0Rhwc4cvxNJSKwSZIjZuWfefyEhlCatZqqjk9VlaoxN4dVpYr 8Btg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=YhlmX038fEtdxHekWSWN0VPbSS5RA2dz6m5q0kGEkWE=; b=V614W/ODzFIh0+DMl99ix6xvv8AphwI4sdd8N3G07M0gEianibC6Hb3GcNTKbIvlzI 2rkb0yvozGTh/M50OKDIATitVqHN2zwnOn248E3PEt7/eNE9b0St5sygKtrMXbyfiDU8 PJkutlujTOBscGM55Xeh+i8+zSlIIPpprnb8/aLZiu7xgfuDozHP6M/gxw35NQxBdYyp JfVElyAHc8Mi1qoo7wImL1my6N7XBvvj/YIdwceXp+Ng0cAr3a7Y7vN9kkfKOpQAGNg1 xHFe4iuVLO4EIqSmXG1NIrdMJ5fBSz0gUwmIusnn9U/7XQEdqr+xVhxzR39ESE4SKxuL 0Qhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=bmxvCIqm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ji19-20020a170907981300b007c157940720si3706740ejc.440.2022.12.23.15.01.39; Fri, 23 Dec 2022 15:01:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=bmxvCIqm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231192AbiLWW16 (ORCPT + 64 others); Fri, 23 Dec 2022 17:27:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229650AbiLWW1z (ORCPT ); Fri, 23 Dec 2022 17:27:55 -0500 Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2178E1AF0D for ; Fri, 23 Dec 2022 14:27:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=YhlmX038fEtdxHekWSWN0VPbSS5RA2dz6m5q0kGEkWE=; b=bmxvCIqmHjr4bysp7+reM6Pq1J 7FNOPK3oR4BYAySBv/4a1yBEUft29tzSdQJn5pPFbBcvCsphu7gPb68MhrK/BKGrBE99+PAG2j1Ku zsRzrA+GFaH9cvbWI/+8SwxVHBIZFLwCRmTxrHrqgP5xIzf+aQ0GlopUI32Q0/Dk0P4R1DyvyPgNx rFetNgL74E6PAndYcgcNuufnfc9Piali5Q4FAT5X2cDZ4SDSoGQzudzzja5dhjxVxGe89wt1BaiRy ocw6q1ZxOICdnkFaYp0OiMC7YkwdNu2sX8fy0PDmijV7QGYlSg6pVOBUkU0+D9E5G9AzvcDNacL1y TKf5AWYg==; Received: from [187.36.234.139] (helo=[192.168.1.195]) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim) id 1p8qVm-008rDq-Vz; Fri, 23 Dec 2022 23:27:31 +0100 Message-ID: <6d3486ef-db9d-6b53-096e-00c961a5424b@igalia.com> Date: Fri, 23 Dec 2022 19:27:24 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH] drm/tests: reduce drm_mm_test stack usage Content-Language: en-US To: Arnd Bergmann , David Airlie , Daniel Vetter Cc: Arnd Bergmann , Tom Rix , Daniel Latypov , llvm@lists.linux.dev, Nick Desaulniers , Javier Martinez Canillas , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Nathan Chancellor , =?UTF-8?Q?Ma=c3=adra_Canal?= References: <20221215163511.266214-1-arnd@kernel.org> From: =?UTF-8?Q?Ma=c3=adra_Canal?= In-Reply-To: <20221215163511.266214-1-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/15/22 13:34, Arnd Bergmann wrote: > From: Arnd Bergmann > > The check_reserve_boundaries function uses a lot of kernel stack, > and it gets inlined by clang, which makes __drm_test_mm_reserve > use even more of it, to the point of hitting the warning limit: > > drivers/gpu/drm/tests/drm_mm_test.c:344:12: error: stack frame size (1048) exceeds limit (1024) in '__drm_test_mm_reserve' [-Werror,-Wframe-larger-than] > > When building with gcc, this does not happen, but the structleak > plugin can similarly increase the stack usage and needs to be > disabled, as we do for all other kunit users. > > Signed-off-by: Arnd Bergmann Applied it to drm-misc-next-fixes with the small checkpatch fix. Best Regards, - MaĆ­ra Canal