Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2536869imw; Sun, 17 Jul 2022 10:58:48 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tQcJfGNgOtyP8RiVu2S/vwhC2RNlOMNvblYP6aJ+yYmsqsEQIwo/aLAWM+ZtAj1RHouaOs X-Received: by 2002:a17:902:8bc5:b0:16c:f48b:d5b5 with SMTP id r5-20020a1709028bc500b0016cf48bd5b5mr502318plo.128.1658080728225; Sun, 17 Jul 2022 10:58:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658080728; cv=none; d=google.com; s=arc-20160816; b=PSOmvlMZ60e/EjXca/Pl0aMjG+LxY6/BLEZfi5qswDYE20hwTRpkpO1T/qPWjhdrC4 8wlfs0b7IrKv4xjx2qctqOaDKuTixeCohHfGOs9WZWGuYQXiAyK+ta/w6Y8v9Yl/F7lI vv8oFkCPOdM4uEKdfdN4QiG3ud4fYUvTeaC8dJ0wJoHWYe4A/qDFD9O+7ZipaVtBceow uIqPxTd/TS8GERqocCjcSThnPu+MqzGGMpLtRcX+UojdFDOlIAzOgVf31HQit/2MNt2z 1L9FK+dSbHenoH3gRkAJTboJpax0bZY76XRKNsOtVMmkS3VM7O0MCNohjFD/1DJ+W6/0 6I9g== 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=wWo5nfiIszKM/pVy4I94cp8djYzE87GUS1z1+3Dj3X8=; b=iftOKvVqCYYzPTZsz/W/i8XEI6WrFqqhVKHB7XjYmHYjVN2DetU1xNBWjZISCU2uJV 57IJYQeB/m1efBmPF3A8UHhInj/XsDpXD3ygN7ZaExNzrmsNgSxTEAuYMTWqC55K4Js3 fLkPad4H/IwBocU3cKW/ZGj5KRvHAv6SucpDuXW8Qa+IYGkycngA9gNJ+iDPVEjwOM53 uqMLMDJ4Ilo4OJOJO8Ctvq0/pDcntPI158WBLfI++3lgb8H5Jbp53aMUHN5ovVZvUx1Q Gr1IduT90fTXR0qByvc8fcaDLrvlwVtzGGTRrYC6Vyg/6fwPHTK+lA9Zg4mzDjb85+QN jcPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@usp.br header.s=usp-google header.b=saLG7Jfv; 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=QUARANTINE sp=NONE dis=NONE) header.from=usp.br Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i2-20020a170902c94200b00164027788e8si15111194pla.254.2022.07.17.10.58.25; Sun, 17 Jul 2022 10:58:48 -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=@usp.br header.s=usp-google header.b=saLG7Jfv; 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=QUARANTINE sp=NONE dis=NONE) header.from=usp.br Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230232AbiGQRsT (ORCPT + 99 others); Sun, 17 Jul 2022 13:48:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbiGQRsR (ORCPT ); Sun, 17 Jul 2022 13:48:17 -0400 Received: from mail-oa1-x2e.google.com (mail-oa1-x2e.google.com [IPv6:2001:4860:4864:20::2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F5C110574 for ; Sun, 17 Jul 2022 10:48:16 -0700 (PDT) Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-10bd4812c29so18621388fac.11 for ; Sun, 17 Jul 2022 10:48:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usp.br; s=usp-google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=wWo5nfiIszKM/pVy4I94cp8djYzE87GUS1z1+3Dj3X8=; b=saLG7Jfv/cpv45n+vut19GSIYCg0J4XcllVl0Aam+FMQb5sH5WDf/oZLHiJNqHixjZ ZZnTfYb2Hd5kBPab1/jtADZ9c+D5U9MuLSLVEc2VvkbWMsQ1wpldAj0rgGiLfKbsIfuI ilvDi6vtACVJ52c+rXIEEkQ7lJAKn/GP/oXoaxMU5wgT9ys2j3Y8FZ52sB+3db2fHGR0 ssQ5PK1WKyH1pjuczTuP0UDSIp4/8LpF/bnWiAjuYhIAhGEoQKTknIFKukoY/OrSweo/ ilSHXU4ccKOKQA0+tkx3/kVrglt2HndWhkm12mrJvsb/CBD5FIJeysiM651RUk/K+YPn SHjA== 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=wWo5nfiIszKM/pVy4I94cp8djYzE87GUS1z1+3Dj3X8=; b=vLduTVXekayxs9wOPo2U4eAmzlOQUYIdwnRkCX7ZrDOkTaRI8Ufr3RDcPyq+giAkkg WZSKxfJ50VoZlNFXHSMzqfZSbxg+AFB0cwF2zhhU/fE2nJDUeRliS8l2S0hkHM3H40px c5ANqp66L1wvyrNJ9eyErsd8HB8E6rIafE+NKjuHZp3NwY9zqyB5heSc/x48foNEYdVy ymKR5qA3SUVxS7agCZFBHnjkp8kzhlH308lXbH38ZjATQTqw1krHnxW4BBfRm/GIPwD/ glaJc2xVYqudw0z6PNcYDmUUvs9Ip0YNsC2VoF5noWsV5JhfwYQLOF+y231HpkxCcpOe iqIw== X-Gm-Message-State: AJIora8UwjbBPlORFVHe+nXJukDbuslMZsh9sB5ByiwN4Vd0tubqe/ck Oja+LMvqGHzxZgQJu2koaCeVxw== X-Received: by 2002:a05:6871:b0d:b0:10c:10bf:1276 with SMTP id fq13-20020a0568710b0d00b0010c10bf1276mr12608104oab.185.1658080095178; Sun, 17 Jul 2022 10:48:15 -0700 (PDT) Received: from [192.168.1.195] ([187.36.234.139]) by smtp.gmail.com with ESMTPSA id x27-20020a9d459b000000b0061c68a35fdfsm2470857ote.9.2022.07.17.10.48.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 17 Jul 2022 10:48:14 -0700 (PDT) Message-ID: <99aedd6c-0254-9712-a7d7-d94c0be31086@usp.br> Date: Sun, 17 Jul 2022 14:48:04 -0300 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: 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, Javier Martinez Canillas , =?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: =?UTF-8?Q?Ma=c3=adra_Canal?= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 7/14/22 21: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... As a matter of fact, for GCC 12, the warning -Wframe-larger-than= doesn't show up due to compiler improvement, but for GCC 11.3, it does. As I have GCC 12 on my machine, I didn't even get the warning. Anyway, I'll separate the test into multiple functions to avoid any problems related to stack size. Best Regards, - Maíra Canal > One workaround would be to split up the test case functions into smaller chunks. > > [1] https://lore.kernel.org/linux-kselftest/20210929212713.1213476-1-brendanhiggins@google.com/ > [2] https://lore.kernel.org/linux-kselftest/20220113165931.451305-1-dlatypov@google.com/ > > Daniel