Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp494052iof; Mon, 6 Jun 2022 07:22:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDalFEinWZb3KshrU8X0eyN5FhvrtV7eWiEuyRFkmAUyafLwqivtrqYL0aygPolHHNZYO1 X-Received: by 2002:a63:2c8a:0:b0:3fa:6b31:5918 with SMTP id s132-20020a632c8a000000b003fa6b315918mr20676459pgs.485.1654525373104; Mon, 06 Jun 2022 07:22:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654525373; cv=none; d=google.com; s=arc-20160816; b=p4c7ZPK5b4XamB6/g7E7U3kW8SiAUh2MWPtX/x7l8fMKdc2DMlENYRPLLwxsmcrzkU JJcQhDQTOo70xFsn2JEeXbPB06sNpQtw00pplF/hhdJrNAUFswvUWN19SrmSitPj/2rq JNmSUBS8JJ0bG8dwb54T0XcETy7VYNISY0wlnr8M+imskZyFGUgS/JZxgUh171pZ+gm/ SuxOeWKkvjrFpsf2HP9Y9T7bfGKuQCTBU9kyhwd1VsyF4QD/HWcST9QRDcw7Sy1GaWWa 47k8wPBpvwb3+/ezw0YSs0DeGAipwe4X/ym5roWMGYc9+4sYLPvNghxGQmhrezIilmEq K5dQ== 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=2tg/LQuqY/dZKlfQNp8Nv2cxpu5KDqfqntDP+vsu7ig=; b=OKkrb6x48QzPlMzMA67UpnNJMCt+jn4PBNDsM0bUx7eAZu79VCN1XU3HRwd9VIlmbj cAvrZTvVZ/ew/8SS1P8j2aBZAgsNDlVP8uAkIB/wEcVPIiIKbdTcXu0UizPSGUssqSGG 2piYLeAmx+t9Dlv+QJVG0T0UiemeO35PR+U83Hkxi89t5i5zA8+QWVs0cvyzFbdBwgeO C0jZwLPErs2E6IklpMxwk8rFJHm1rSqatyYrV33pGnD3Ikkd968Ks4MAreDdsWPmEWXV BO3GuOcdhJPRF2JWqdZumBXZ+sTsUip2+SQVYlzQjCq6vLXMt7sh6GkIoLL+zaccHs/n W+ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm1 header.b=x5d3HP0T; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Cfbr3AFF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k11-20020a170902ce0b00b0015f13887fe4si20036599plg.200.2022.06.06.07.22.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 07:22:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm1 header.b=x5d3HP0T; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Cfbr3AFF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 255A922292; Mon, 6 Jun 2022 07:09:31 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239394AbiFFOJZ (ORCPT + 99 others); Mon, 6 Jun 2022 10:09:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238043AbiFFOJX (ORCPT ); Mon, 6 Jun 2022 10:09:23 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28F961EC56 for ; Mon, 6 Jun 2022 07:09:22 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id B2A473200935; Mon, 6 Jun 2022 10:09:20 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 06 Jun 2022 10:09:21 -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=1654524560; x=1654610960; bh=2tg/LQuqY/ dZKlfQNp8Nv2cxpu5KDqfqntDP+vsu7ig=; b=x5d3HP0ThpnI46zljY1w+GcKy5 tX/Ph9kIAJOKEkF1bbc8bLw9yKmkPrpgNQ/Sbyf3+emwY/qnQ2ZcgOezRvyPUdef ul7cqS2c1OZHZsnB1A1cLbvAoaQkJVJqHh7B1gHYN9So0EFfPziRSU3/ZPEaJfeR 9d66YleW9AVpCksfh+3yLgWwk9GcLgwrsapxGLtwo0fK561EdqRTIogcv+zhP7LJ gLNNI+3EjeXArBCB/b2OFT0us7OfbmvFE2Wzcgu/0s4E38lyeVkVKrjl3Mr+xy1l FLciu6YkB0z4tCjRrY+8VKyVdfoTgwBt3lrUtCCohb0S+mjPk08L15WVnM9g== 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=1654524560; x=1654610960; bh=2tg/LQuqY/dZKlfQNp8Nv2cxpu5K DqfqntDP+vsu7ig=; b=Cfbr3AFFQ+R9BSykxEa163bL+Pviy4whwsDqARZRAOEK RrH36uJFqo4uoFRLFzizD/9d8rURgfUyHvP8DHwbcDUrWKFd2T71ZsOeywf0DaJ+ 22IeSaj5aYoVgyBI6g1if6DUjBycKTNcaRIQhbfhW/YtZHRs3TwuRNbXmXllx6VO hIn1tgmKUea3ac0r1Nppsoh/ngJoQATRQgrtlCHhHA6kKBTKfZ5S0xaOKzmz7Sgr cOlY3ravPcdKn5n6VpWx1rglcDGPJyJ8Wc+wdFX2RSXTrdPr7i6he1NfVruCFtXT pWLNXbHGEtQcu3AbEhyn1vvQZk1KgqmqV1BXiG6lbQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedruddtvddgjeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtudenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpedukeevvdehheeuhefhhfefteeiffefgeffuefgkeetffevgeevgeejteei gffghfenucffohhmrghinhepfhhrvggvuggvshhkthhophdrohhrghenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrgigihhmvgestggvrhhn ohdrthgvtghh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 6 Jun 2022 10:09:19 -0400 (EDT) Date: Mon, 6 Jun 2022 16:09:17 +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: <20220606140917.suwk3uqxzsqeiab2@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> <20220606135219.nwhp4fdawg2qjeam@houat> <78c1eb65-ea78-8744-5382-ea86a56a66f4@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="hinoebkwkjhusomc" Content-Disposition: inline In-Reply-To: <78c1eb65-ea78-8744-5382-ea86a56a66f4@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 --hinoebkwkjhusomc Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 06, 2022 at 03:57:45PM +0200, Javier Martinez Canillas wrote: > Hello Maxime, >=20 > On 6/6/22 15:52, Maxime Ripard wrote: > > hi, > >=20 > > On Mon, Jun 06, 2022 at 03:49:57PM +0200, Javier Martinez Canillas wrot= e: > >> Hello Maxime, > >> > >> On 6/6/22 15:42, Maxime Ripard wrote: > >>> Hi, > >>> > >>> 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/dr= m \ > >>>> --kconfig_add CONFIG_VIRTIO_UML=3Dy \ > >>>> --kconfig_add CONFIG_UML_PCI_OVER_VIRTIO=3Dy > >>> > >>> It's not clear to me why you would need VIRTIO here? The Kunit config > >>> file should be enough to run the tests properly > >>> > >> > >> It's needed or otherwise KUnit will complain with: > >> > >> ./tools/testing/kunit/kunit.py run --kunitconfig=3Ddrivers/gpu/drm/.ku= nitconfig > >> [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= generated .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 runnin= g on a different architecture with something like "--arch=3Dx86_64". > >> > >> The following works correctly but it won't use User Mode Linux: > >> > >> ./tools/testing/kunit/kunit.py run --kunitconfig=3Ddrivers/gpu/drm/.ku= nitconfig --arch=3Dx86_64 > >=20 > > But then, can't we add them to .kunitconfig? > > >=20 > That's what I asked in the previous RFC too. Daniel mentioned that it sho= uldn't > go there because is platform specific (AFAIU, one might want to test it o= n x86, > aarch64, etc) but then I asked why we couldn't have a arch/um/.kunitconfi= g. >=20 > The answer was that's not that simple and some agreement on how to do it = is needed: >=20 > https://lists.freedesktop.org/archives/dri-devel/2022-June/357617.html Thanks for pointing this out. So yeah, it's indeed not very optimal We should probably just document it somewhere in KMS then? It doesn't have to be in this patch series, but I have the feeling that we will end up with that discussion a lot from people frustrated to have spent too much time figuring it out :) Maxime --hinoebkwkjhusomc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYp4KjQAKCRDj7w1vZxhR xcJMAP99qsO7FgUwevO9U74+Tm8BrRBDMWERHZvHOG3KcT4wrwD/QBNjSrBbIMvm xKS0u3DrSP9u+bXKM/YCl/qgLvwRuwM= =8VNg -----END PGP SIGNATURE----- --hinoebkwkjhusomc--