Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1079877imw; Thu, 14 Jul 2022 17:05:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vt8ZgmoXqziiv9lB3Vd5Oi97JDRyUbrNzeaK4EOn/EMj1wLX7RgzuTHzTENl6tHGvQoJMx X-Received: by 2002:a17:90a:4e05:b0:1ec:8de4:1dd5 with SMTP id n5-20020a17090a4e0500b001ec8de41dd5mr12295948pjh.242.1657843546932; Thu, 14 Jul 2022 17:05:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657843546; cv=none; d=google.com; s=arc-20160816; b=x70JA6US4U9YHPxNK9iR5E7hDll6QDY6j/hCmze+43g9h+sJdWpzW8Y+y5MaEBm6/n CS93o8BxPG/zotGJInEcais8ciEKR1psq53HuyAeCkWYdpRfI0DHWTtZ+hylzfP8aLi4 nTrM00ckpqSgKgMUp6WDhkkjC85iZ95KHUQwyAwzgVTtGECiqbhAn6QtK5UxBR/T9kql ImBILYeEz1fXmRBT666VkAo37og4t47N8Ex81mMuRm4nqDfGuKpKk+fFs+AyRYyMWEVh 7R+wgCq/0DD+Twq+mWniWVZB3fW3ysQu2EOIdIv5gNd10o0w+OJX3m7SLGriK/jjcFjs CIDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=fwraHTEP/uVZ9KCal2b2vqb8PKwKxo0TpTT7XGDLLZE=; b=PPPuuzOGQbL8FdYUGMBgrcAxklkpzSN7glnlGfLQyBgLTscgsSEJZZG9PT3p4Yhw+o OgCZV/GwpjdmnImJuuV3ixd2kxvrZG8O7D2uGsg2SSa5o38A+E6SVOavG84aUAkikas7 vs6yXXqjEWygahBsnAgzbms9DmSHaCM7sJmNerDgtTodJoFwufxZmRk88MVsUBOipShZ H4pcZcjKOvSdaCGA1uA5VNGQ3LPo+DALmaWUB6k0xVE3Mt9BlTgLJ7776ldLX0L/yMNq zlmqj9GIlyPR5XHEETaAesVmQb3q8JfearNmMjYQymfmHaRwJ4gRJHqLeqlUyNEe843W lABQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Ew35vEVT; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q3-20020a17090311c300b0016b8fbdf16bsi1930245plh.403.2022.07.14.17.05.31; Thu, 14 Jul 2022 17:05:46 -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=@google.com header.s=20210112 header.b=Ew35vEVT; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240832AbiGOADX (ORCPT + 99 others); Thu, 14 Jul 2022 20:03:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232546AbiGOADV (ORCPT ); Thu, 14 Jul 2022 20:03:21 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6C5572EC9 for ; Thu, 14 Jul 2022 17:03:20 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id dn9so6196776ejc.7 for ; Thu, 14 Jul 2022 17:03:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=fwraHTEP/uVZ9KCal2b2vqb8PKwKxo0TpTT7XGDLLZE=; b=Ew35vEVTCjHoWMpCvupFCvQMugpO31WL5+yFBGY/4vLy9c/2lHjyL0Qakj48tSo9RH hNkYdoFnwqRm4CGjLZBjKauF7HwHfGWwdC13A/boMmvLWcnyhh4i8G2eTmOcyNcmBCFQ yeSO6zvaQfPtjU23hSBzdEcTDEiS8BtsYVkCCVOdpnAfS95Xcqd83tRWzemWJYIVF0uG FsiLzam4+8VzlAhRc7TuzkTn0CgKium3YJ5axjlQyy4I5FFW0C5IhyyBw1NQz2Wo3RTh 41K8Z0Qz6lO5I0SEC11jKfeGJAfHpc1G123IAYHpBuyPwj8qBz3lhqSa+BaX0q9QQqha KXIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=fwraHTEP/uVZ9KCal2b2vqb8PKwKxo0TpTT7XGDLLZE=; b=niUIF/r3M/R4iKfPLyOF0aTQEiTssr82mKlAYynzTn+h4tngjKZ4udeegEG6HaKPXd l+P9BWylBV4lCtUawde196ZCjKsvx/0hclpII0lvXlmBLDsZK1qYW8q5nsGGWzAHfqyI KKCIrg3LjjG2SiI4IAf9LQKH8/uQi8PCazphSSZ3EYW2vkWVj/xYQ83v+U2k8uEWpVeC hA11Z7LXc0i/d9Lx9SJQvAVE2r9BMfZTWeWc75DmiVp7eUuQ9a8PQnOP+IFLqlP/K9ox pC61x9C3AeMQJ+QCty0qG8Yv7UxT7CJd7VYScz/nLceAh913niE5p+QDcJjKs4sNC2IM yg6w== X-Gm-Message-State: AJIora/x+3Vui/vzMBPwBHkDSv53Nn1phdJ585C8bAxo+aO+xqjZ0BKt 1iBhn86yO0g+wVBbICrel6O4vYjQfJQI5nE13kIEWg== X-Received: by 2002:a17:907:2718:b0:72b:6b65:37dc with SMTP id w24-20020a170907271800b0072b6b6537dcmr10960045ejk.425.1657843399208; Thu, 14 Jul 2022 17:03:19 -0700 (PDT) MIME-Version: 1.0 References: <20220708203052.236290-1-maira.canal@usp.br> <20220708203052.236290-5-maira.canal@usp.br> <20220714235137.GA485839@roeck-us.net> In-Reply-To: <20220714235137.GA485839@roeck-us.net> From: Daniel Latypov Date: Thu, 14 Jul 2022 17:03:07 -0700 Message-ID: Subject: Re: [PATCH v5 4/9] drm: selftest: convert drm_format selftest to KUnit To: Guenter Roeck Cc: =?UTF-8?B?TWHDrXJhIENhbmFs?= , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Thu, Jul 14, 2022 at 4:51 PM Guenter Roeck wrote: > > On Fri, Jul 08, 2022 at 05:30:47PM -0300, Ma=C3=ADra 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=C3=ADra Canal > > This patch results in: > > Building powerpc:allmodconfig ... failed > -------------- > Error log: > drivers/gpu/drm/tests/drm_format_test.c: In function 'igt_check_drm_forma= t_min_pitch': > drivers/gpu/drm/tests/drm_format_test.c:271:1: error: the frame size of 3= 712 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 func= tion. 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... One workaround would be to split up the test case functions into smaller ch= unks. [1] https://lore.kernel.org/linux-kselftest/20210929212713.1213476-1-brenda= nhiggins@google.com/ [2] https://lore.kernel.org/linux-kselftest/20220113165931.451305-1-dlatypo= v@google.com/ Daniel