Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp637176iof; Mon, 6 Jun 2022 09:47:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRjRn0PvanmO5S1BT7RB+S9yZ9KmWDAmzA/p+VC3Y7Ji0FOTgD9pBNxggTlrJ6nb41dRbW X-Received: by 2002:a17:902:ce92:b0:167:585b:af40 with SMTP id f18-20020a170902ce9200b00167585baf40mr15516741plg.153.1654534063908; Mon, 06 Jun 2022 09:47:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654534063; cv=none; d=google.com; s=arc-20160816; b=yGcY4wZCBKOjv60IIACWJfT1dv/AMs3cH1HFLXSADkjFO1krYcaA5bdyn+HEyftPJF k+wGC3iLKd02KbZaflQdb7EhakT9XLJ7uNEuE+pd8I66yrIxnK7vFtlTf3Na2CigMJk8 533nYq0Zi18/7jVMwPWnv16g5Z7z6BUuEJyHgedZnGcyM8zf12S5USGWcFJaARPx3n3V Gvx6k8GoasDw8N3kgaP4XKtfmkXCN4aA6vYVlEbl0P8Sg982XtRoNzMDgDkF+RjgtzVm UcvqlWjjcdTGSy+FqTn21CgX0Y78q74hQvpa2yuuykopORJNesgBdTFESfl1yhyN6k14 oGLA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=xJwQl/PiEUwiwk52JeaaRavLlxhGbowpTp1ZVoSGKqg=; b=EFfjX+QZdC57GCcLrk++SzREMfTCNpZtDwFhMBAdNx4hhKw9lGxbObdHhAoPDEntIc ft2wf7V3TB0xkcEUxqfyb2idcgg4gS7zSeTKjr3DCYCljkmPfqIyxSZ/vQ4kxxdrI7mz //EeTJjY6dqIWpFpYOLip7PkbzweFc9nwbKEoiOLcBT3nvvpQ5nYMu2eANYYttVfXtnH D2vQN940zmpu/p7iGSv6k50n3ObesvTwFjOMRTF5hAu9/VR/ZcicrSjva9XEpdN67VAI 9TDEn9Xavc43Ec7Zxl0e1Mlzbq8NBlVRaop5CRZt5od4t5ospYs205ffDM1gCVMKnVqP RlPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XAmkm6He; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id o13-20020a17090ac70d00b001df799bfae2si19147825pjt.123.2022.06.06.09.47.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 09:47:43 -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=@gmail.com header.s=20210112 header.b=XAmkm6He; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CFCC0331C22; Mon, 6 Jun 2022 09:30:33 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241765AbiFFQaW (ORCPT + 99 others); Mon, 6 Jun 2022 12:30:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241932AbiFFQaN (ORCPT ); Mon, 6 Jun 2022 12:30:13 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D917132525B for ; Mon, 6 Jun 2022 09:30:10 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id x17so20573917wrg.6 for ; Mon, 06 Jun 2022 09:30:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=xJwQl/PiEUwiwk52JeaaRavLlxhGbowpTp1ZVoSGKqg=; b=XAmkm6HeHfdJZ2x9c75GpfnvFb80dmOF3hQbzJZ3pnpuH2s+eKJ4MTulLbTixbbrzP hX2iLDaET9JJC2ywRNuep0vyoObiTJaQs7e+HJ6ziWBvK7JVOeRqqm5d0vyqLc52lXkK nI7+hM0umb7pILpvQMJfFEEkHGCQUnUoXFlq1GLd+Uxblg/aOOI1zhLlXS/woiwYyIMS yaqJU86mR5V0RVnYUGCBxJgpC9ctLyl2NrokbvLVdQbzS7RfIytd6/O+NMJcggDoF5NZ 2mZ8CV9V5abU1aAX7nuF0Fox0C+tozWfeL4ya7kE+8W6fRmm3mT1YSEmZEPq76hB6wzW rOWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=xJwQl/PiEUwiwk52JeaaRavLlxhGbowpTp1ZVoSGKqg=; b=eH9HT+ufj14M5/aEJiU23sKLLzkE+QzRiA1NBms+eXp+hQOf23Bin5zg51BLfmGvbF Vaw/qhmGv8biLRBpKCu4Eu2tIMaV5Kkv5kfe9SMdPMmQrcJp6O6ijDrHpCetkfzG6Sqe vXnC2tMFTYId1OMGXHVxu8W7ggkYQQ3NOWWHrdDOtwyOXIplVtOVYPnMPT8oZbhyI779 GpLTNndB9ZJVWSlzXfxteAjE/ZuoHefijUiFUxrhkV3LkV4k+gll5RKcsmKAmbBRIZTV HUALQ3kJ1jtqJpNcdcwg3taKKrrF7wYamcmoGLm9QeK05BeyufEkeAkppRsxJd3NDKo2 Ov1g== X-Gm-Message-State: AOAM5311lTbnfkz1okJUF5d6TWoPWQ3iJbcQrYIp+9UKWz1g7KQ4pKPJ o2y6TlqsS5WuVudYcDBdzPM= X-Received: by 2002:a05:6000:716:b0:213:b7d1:adeb with SMTP id bs22-20020a056000071600b00213b7d1adebmr18475559wrb.337.1654533009215; Mon, 06 Jun 2022 09:30:09 -0700 (PDT) Received: from elementary ([94.73.36.128]) by smtp.gmail.com with ESMTPSA id d11-20020adffbcb000000b002183ee5c0c5sm3143096wrs.50.2022.06.06.09.30.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 09:30:08 -0700 (PDT) Date: Mon, 6 Jun 2022 18:30:05 +0200 From: =?iso-8859-1?Q?Jos=E9_Exp=F3sito?= To: Javier Martinez Canillas Cc: davidgow@google.com, dlatypov@google.com, tzimmermann@suse.de, maarten.lankhorst@linux.intel.com, mripard@kernel.org, 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: <20220606163005.GA5274@elementary> References: <20220606095516.938934-1-jose.exposito89@gmail.com> <20220606095516.938934-2-jose.exposito89@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 Hi! Javier Martinez Canillas wrote: > Hello Jos?, > > On 6/6/22 11:55, Jos? Exp?sito 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=drivers/gpu/drm \ > > --kconfig_add CONFIG_VIRTIO_UML=y \ > > --kconfig_add CONFIG_UML_PCI_OVER_VIRTIO=y > > > > Suggested-by: Javier Martinez Canillas > > Signed-off-by: Jos? Exp?sito > > > > --- > > Thanks for addressing the issues pointed out. Patch looks good to me now. > > Reviewed-by: Javier Martinez Canillas Thanks for the quick review Javier :) Javier Martinez Canillas wrote: > By the way, I think you should request an account [0], so that you can push > patches to drm-misc directly. Specially since AFAIU the plan is to add more > KUnit tests in future patch series. > > [0]: https://www.freedesktop.org/wiki/AccountRequests/ I'll request one, thanks for the tip. ------- Maxime Ripard wrote: > > > The following works correctly but it won't use User Mode Linux: > > > > > > ./tools/testing/kunit/kunit.py run --kunitconfig=drivers/gpu/drm/.kunitconfig --arch=x86_64 > > > > > > But then, can't we add them to .kunitconfig? > > > > > > > That's what I asked in the previous RFC too. Daniel mentioned that it shouldn't > > go there because is platform specific (AFAIU, one might want to test it on x86, > > aarch64, etc) but then I asked why we couldn't have a arch/um/.kunitconfig. > > > > The answer was that's not that simple and some agreement on how to do it is needed: > > > > https://lists.freedesktop.org/archives/dri-devel/2022-June/357617.html > > 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 :) My understanding from Daniel's comment [1] is also that at the moment it is not easy to support this use case, so yes, at least copy and pasting the command in the docs should help everyone figure out how to run the tests. Documentation/gpu/drm-internals.rst seems like a good place to add some information about how to run and add tests. I'll send a patch with the docs ASAP. Jose [1] https://lore.kernel.org/dri-devel/CAGS_qxqpiCim_sy1LDK7PLwVgWf-LKW+uNFTGM=T7ydk-dYcEw@mail.gmail.com/