Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp476565iof; Mon, 6 Jun 2022 07:06:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcgGYbbOECOZmdFnbPusu+hXs5nQQ24BOkK2b/t39vCumV4Up7pMUrGDyn7vIlQCkNpVHF X-Received: by 2002:a17:902:e5cc:b0:167:5526:ea68 with SMTP id u12-20020a170902e5cc00b001675526ea68mr15189175plf.133.1654524405751; Mon, 06 Jun 2022 07:06:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654524405; cv=none; d=google.com; s=arc-20160816; b=09MPC6G04mX/27FF+JVBe3pQ62/6Ng2/YCz6ZLUjoNFwq5ij+v/zlQ0BipaGHbw/xB fpEbCXos8ueiO7OY16sn0nILRuX2MRjZ0t23gaahxoVcFKlz9fyWE0u4vcOP+BdRp+D1 bi3fjlTwv8udYuYn8MObxRtiAU2TD7YvVoWjFM3ksgfLTsfmp1It0BZbndKI5Gk0xvd0 nT4VZ3b9l52+GP9xflUaeFh+n5m9ZloO3i/qqNlTJWo5VMfZJ4jrqA/VxZq8K22kwCP2 sTSBfJhB8BJG1GqCCputwIRsNEeYNM2vXGfS57mRgIRlfqMqzZwYFQL18jPHfxn/kQWE Z1Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=JO3uf90VYuDzOsaAFOhdlrZDhya56oTpSDsv/mUF4IE=; b=hG5WuKUH0+VSf4uC/iyOd5uxCRn8Cq92xAqHCUf28HNZnmu4uJjAqCEYAlEyb7QeFd bRgs9U8efQdlSCNj9Noq0I6R4K4Y2kofQX7DnHLEzL03FJPk5Sbqj7MealbaF5+AYv88 3CFQETClFonzXcqBwex7qCEEO68fQj+vHWAWFBR2YkmcCsD5cX4Yg/Cp5WoKbfxW+vwG tiovQElrH+0e2lfTcB0fp1/lLwy7g7D5OSrftKpWWybiEziDxjKaW3zk+eOSIuUo/NG6 hyG+zJu9cjymuunrdN6f1o+Yz3oXEZt2ut4cYcyvXI8HKftDBgp5HlyxdJgyX+iJ4oEV +A1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm1 header.b=w8hbVrvs; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=eG8cAwfA; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id z20-20020a630a54000000b003f5f0a26aaasi19469921pgk.592.2022.06.06.07.06.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 07:06:45 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm1 header.b=w8hbVrvs; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=eG8cAwfA; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E2F85220F9; Mon, 6 Jun 2022 06:52:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239440AbiFFNw1 (ORCPT + 99 others); Mon, 6 Jun 2022 09:52:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239429AbiFFNwY (ORCPT ); Mon, 6 Jun 2022 09:52:24 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE952175A3 for ; Mon, 6 Jun 2022 06:52:23 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 37096320091A; Mon, 6 Jun 2022 09:52:22 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 06 Jun 2022 09:52:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1654523541; x=1654609941; bh=JO3uf90VYu DzOsaAFOhdlrZDhya56oTpSDsv/mUF4IE=; b=w8hbVrvso6Urf1H3+tCPrbSRmF F9x0nC5bkAfesPw5qE8GxI+JeuX36afQuHvbae1QqD1d0qNwYnqTqcrnXVc/1e5I Zg/l7VBbvnCTj5ZlGxFgLYYkFTXfxXiZPN1VrebXQoKlvOW+Jyg67dc3Q0mI4uyj 2G4P0lSr7S21GhLkk8ZEJpsnr3VN1msNotgFJMF3bGGmYhTX7llMq5cDCX3A+mcB 4z6IRtaSOV3KRG03HsozZ9jbJMIlBS5wedEhlAB+za2KEjRtGf3xXZ+IZ2cUvWsI YjNJNhtr64BQDwNh4iwt4IJGOIN5+Co4OBme5gEfLVxt39lVdwy+SPyv7Czg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1654523541; x=1654609941; bh=JO3uf90VYuDzOsaAFOhdlrZDhya5 6oTpSDsv/mUF4IE=; b=eG8cAwfA2gti21UxC/QyrXy8ii0BN18epUqqtqIMnui7 PzDuIPu8Xr/Ghx7DyLuKMR5gZ2unbeIyLCZ2Tun8dY1nALxA1ndiXuV29U60lpXk IYdmNYxvnj4cUshCRVFjI4KqODazMOcyLkDjEv2u3iv8rGxIc3T0qYF/lTO0VoAj p/AqouSCqq/p4rqzjKWeN42V+j6eDF2DJ6Kb7+ZfArvhpwPl20nUEG/E62NVxQuE s+XEdlvO9U6Q22D6hEMb7RKnqeerldonPKtNyUng01SzBcyO4N6iJR+KqjQx01hc E42++zJxbIbxQokjvnha4y63XZJgUHsvkasKuIv9Rw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedruddtvddgieelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtudenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpeejveefheefkeeiffegveelveetgffffeektdefuefhtedtgeejhefggedu ffffudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 6 Jun 2022 09:52:20 -0400 (EDT) Date: Mon, 6 Jun 2022 15:52:19 +0200 From: Maxime Ripard To: Javier Martinez Canillas Cc: =?utf-8?B?Sm9zw6kgRXhww7NzaXRv?= , davidgow@google.com, dlatypov@google.com, tzimmermann@suse.de, maarten.lankhorst@linux.intel.com, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] drm/format-helper: Add KUnit tests for drm_fb_xrgb8888_to_rgb332() Message-ID: <20220606135219.nwhp4fdawg2qjeam@houat> References: <20220606095516.938934-1-jose.exposito89@gmail.com> <20220606095516.938934-2-jose.exposito89@gmail.com> <20220606134242.h6kuqn4zbpmc2rql@houat> <576ed6ef-b961-9214-2c9b-56cb5b493b4e@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bilcjadqyeu5dusd" Content-Disposition: inline In-Reply-To: <576ed6ef-b961-9214-2c9b-56cb5b493b4e@redhat.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 --bilcjadqyeu5dusd Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable hi, On Mon, Jun 06, 2022 at 03:49:57PM +0200, Javier Martinez Canillas wrote: > Hello Maxime, >=20 > On 6/6/22 15:42, Maxime Ripard wrote: > > Hi, > >=20 > > On Mon, Jun 06, 2022 at 11:55:16AM +0200, Jos=E9 Exp=F3sito wrote: > >> Test the conversion from XRGB8888 to RGB332. > >> > >> What is tested? > >> > >> - Different values for the X in XRGB8888 to make sure it is ignored > >> - Different clip values: Single pixel and full and partial buffer > >> - Well known colors: White, black, red, green, blue, magenta, yellow > >> and cyan > >> - Other colors: Randomly picked > >> - Destination pitch > >> > >> How to run the tests? > >> > >> $ ./tools/testing/kunit/kunit.py run --kunitconfig=3Ddrivers/gpu/drm \ > >> --kconfig_add CONFIG_VIRTIO_UML=3Dy \ > >> --kconfig_add CONFIG_UML_PCI_OVER_VIRTIO=3Dy > >=20 > > It's not clear to me why you would need VIRTIO here? The Kunit config > > file should be enough to run the tests properly > > >=20 > It's needed or otherwise KUnit will complain with: >=20 > ./tools/testing/kunit/kunit.py run --kunitconfig=3Ddrivers/gpu/drm/.kunit= config > [15:47:31] Configuring KUnit Kernel ... > Regenerating .config ... > Populating config with: > $ make ARCH=3Dum O=3D.kunit olddefconfig > ERROR:root:Not all Kconfig options selected in kunitconfig were in the ge= nerated .config. > This is probably due to unsatisfied dependencies. > Missing: CONFIG_DRM=3Dy, CONFIG_DRM_KUNIT_TEST=3Dy > Note: many Kconfig options aren't available on UML. You can try running o= n a different architecture with something like "--arch=3Dx86_64". >=20 > The following works correctly but it won't use User Mode Linux: >=20 > ./tools/testing/kunit/kunit.py run --kunitconfig=3Ddrivers/gpu/drm/.kunit= config --arch=3Dx86_64 But then, can't we add them to .kunitconfig? We should avoid that gotcha entirely Maxime --bilcjadqyeu5dusd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYp4GkwAKCRDj7w1vZxhR xT6PAQDhwfp2fjJmUMUJPnpt4aT/XrvencrUwbHEHr3BC5MJmAEArrmm08IruivD HYAgDNsHi3OXg1TE3K/2v9c95skILAw= =d37x -----END PGP SIGNATURE----- --bilcjadqyeu5dusd--