Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp192062imw; Fri, 15 Jul 2022 00:47:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tGHrpX3VvMBDmTn7fj7bHrPjELhXaxvMjwJP6WEijjF58nPl6EnvU5/aTTQ8u9TtIuaiii X-Received: by 2002:a05:6402:11cb:b0:43a:b592:efbb with SMTP id j11-20020a05640211cb00b0043ab592efbbmr16933274edw.157.1657871239029; Fri, 15 Jul 2022 00:47:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657871239; cv=none; d=google.com; s=arc-20160816; b=SrbSzXgcT7ZJnJlCPYvdcvKadbdtWTaPlu+i4gcVDsfVNb6qlK5t92VbctBtsqlPBn GWNJi9hU66TgQ0TtZGtvpnsgUoBzTU+jO9k0rvVyOkwI4LfnePqutFHLrL1c9vRozvYT In17dDO+jUgUU0VHrL5CgHgWSsL69I/E8JpOMkWh9QIyb3QfRwn9vpvkcWdpvHP9K/A2 i4ojImqR5OZv2QfU0KfXdmimwOrUXrYsszFDcMkhCCoHEKCywocYeKo7vbdTPgFC/24D Zj5iCi/BcTrnmhIhwVci+AnJCffdrb5aOdpigS34yQgt162JnF8MhWsPxzBEqsygQf2C Zfzw== 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=FBVMsqeudLUDrKPrFs7ovavMecKqXiLCpPEb6YK8LdQ=; b=EMZIXe5oBy7OVxP73EblTwYLfEb9lr4ylkNqenvtgbuoVILsHMnp2X2EJyvwbHSvFj GXoleVQAKk2oBf2iNLs9fNA9arixSCISmJwBltgW0kZzHynLZYLRGOXD+6MTiemDcWrM CPlMdq0Y36eBL1kxmZqsd1Pmve6iRMZW/g7xCi4yNEQLvua03FNZIbFVhvY+5Z/NzjAA /nYKdFRwpIUU5YdPApXYkfeIW+J3eVIrNyrr3HPPsyNRL9HeMKyb6mrpGWHWXb5VLY6H Q7ZtcMYiu/h0MrK6HGD3Gfg/XhcH6o0R3nXne6usbjC3M3kxOrX2/RmbDpnqp1aZ1bN2 NOmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KRcS37JJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id js1-20020a17090797c100b0072b9b3d42cbsi6426120ejc.525.2022.07.15.00.46.53; Fri, 15 Jul 2022 00:47:19 -0700 (PDT) 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=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KRcS37JJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230239AbiGOHAT (ORCPT + 99 others); Fri, 15 Jul 2022 03:00:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231389AbiGOHAH (ORCPT ); Fri, 15 Jul 2022 03:00:07 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 860A266B8D for ; Fri, 15 Jul 2022 00:00:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1657868400; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FBVMsqeudLUDrKPrFs7ovavMecKqXiLCpPEb6YK8LdQ=; b=KRcS37JJThPoF3hQqtw87s1fXSDlQrKDj9qZpUIrNTo8GTgDjAIbVmdspSSYcC/k0lBYHw HPQIvy+NXvQ7Jd3re/Js6TUoLuOOImmNcoyusV6Q0Tn/omNFNuwl+jzDaxgzXtZeK5yFou jhzpZoGtCDKkR7hjzd7Wrtt3laxoUw8= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-588-KYS2k0DwPzSjzfpz40n7NA-1; Fri, 15 Jul 2022 02:59:57 -0400 X-MC-Unique: KYS2k0DwPzSjzfpz40n7NA-1 Received: by mail-wm1-f69.google.com with SMTP id 23-20020a05600c229700b003a2eda0c59cso1519253wmf.7 for ; Thu, 14 Jul 2022 23:59:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=FBVMsqeudLUDrKPrFs7ovavMecKqXiLCpPEb6YK8LdQ=; b=vFczTHTkz7Gk8h5/hSfty96PG6G4pCPts8ne5EL5GidRbj+ocmTxZ/uAcgPMaEpkgY gqWV4UPTcChLMR7YQQVObC8MFuPh3onVgiS5kmiTiLhMulWxY8dHARs0df/W0Lq7EGTt oXv4ZaGS3X12Hmairb6jJBZpestBp8ivBg/DkN1sjKGouoiHPq92yVswkMLgbr/nqmIu bUQiYvludPkWd36qMYByv3txHgUBz+phKjvnuFkbqvzsAwW8ywNxd2sJbQUwnXAh+I7U CK/ynSWa3Q3rPdQ7MCEe/RMwU9bA7wdJgtZT5THALAYAEyGp+3Uss+1V1M/LNVWgOkxx lcUQ== X-Gm-Message-State: AJIora91ziecqIfy/1qtRCCTfWApbQOOWZXeCuV0w9BcIpyiJsFZIxm1 J8YQTMa8doWYSrMGZyf+qFkuB2QCKgkEKLNulaFwiQ08sEuIS270g0NZSYlajiJn3QQHBptwPz7 tgtSFE+xWPGhNb8/ntUCWTBqP X-Received: by 2002:a5d:4d46:0:b0:21d:8196:6181 with SMTP id a6-20020a5d4d46000000b0021d81966181mr11294034wru.459.1657868396087; Thu, 14 Jul 2022 23:59:56 -0700 (PDT) X-Received: by 2002:a5d:4d46:0:b0:21d:8196:6181 with SMTP id a6-20020a5d4d46000000b0021d81966181mr11294020wru.459.1657868395855; Thu, 14 Jul 2022 23:59:55 -0700 (PDT) Received: from [192.168.1.165] (22.red-79-153-172.dynamicip.rima-tde.net. [79.153.172.22]) by smtp.gmail.com with ESMTPSA id p19-20020a05600c359300b003a300452f7fsm5389311wmq.32.2022.07.14.23.59.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Jul 2022 23:59:55 -0700 (PDT) Message-ID: <5f9b35b4-09fa-a8a9-3181-cd8cd7898d03@redhat.com> Date: Fri, 15 Jul 2022 08:59:53 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v5 4/9] drm: selftest: convert drm_format selftest to KUnit Content-Language: en-US To: Daniel Latypov , Guenter Roeck Cc: =?UTF-8?Q?Ma=c3=adra_Canal?= , Isabella Basso , magalilemes00@gmail.com, tales.aparecida@gmail.com, mwen@igalia.com, andrealmeid@riseup.net, siqueirajordao@riseup.net, Trevor Woerner , leandro.ribeiro@collabora.com, n@nfraprado.net, Daniel Vetter , Shuah Khan , David Airlie , Maxime Ripard , Thomas Zimmermann , michal.winiarski@intel.com, =?UTF-8?B?Sm9zw6kgRXhww7NzaXRv?= , David Gow , brendanhiggins@google.com, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20220708203052.236290-1-maira.canal@usp.br> <20220708203052.236290-5-maira.canal@usp.br> <20220714235137.GA485839@roeck-us.net> From: Javier Martinez Canillas In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 7/15/22 02:03, Daniel Latypov wrote: > On Thu, Jul 14, 2022 at 4:51 PM Guenter Roeck wrote: >> >> On Fri, Jul 08, 2022 at 05:30:47PM -0300, Maíra Canal wrote: >>> Considering the current adoption of the KUnit framework, convert the >>> DRM format selftest to the KUnit API. >>> >>> Tested-by: David Gow >>> Acked-by: Daniel Latypov >>> Reviewed-by: Javier Martinez Canillas >>> Signed-off-by: Maíra Canal >> >> This patch results in: >> >> Building powerpc:allmodconfig ... failed >> -------------- >> Error log: >> drivers/gpu/drm/tests/drm_format_test.c: In function 'igt_check_drm_format_min_pitch': >> drivers/gpu/drm/tests/drm_format_test.c:271:1: error: the frame size of 3712 bytes is larger than 2048 bytes >> >> presumably due to function nesting. > > This can happen when there's a lot of KUNIT_EXPECT_* calls in a single function. > See [1] for some related context. > There were a number of patches that went into 5.18 ([2] and others) to > try and mitigate this, but it's not always enough. > > Ideally the compiler would see that the stack-local variables used in > these macros don't need to stick around, but it doesn't always > happen... Thanks Daniel for the explanation. > One workaround would be to split up the test case functions into smaller chunks. > Maíra, Could you please look at splitting in smaller chunks to mitigate this issue ? -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat