Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp471139iof; Mon, 6 Jun 2022 07:02:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFOlPtCS/YIcNAJhymj0NQwIoYkqx9d70pFjVSIikuHyMP0i1o9lcEpXwZgLqetT+Mozls X-Received: by 2002:a17:902:cec2:b0:163:e44a:c678 with SMTP id d2-20020a170902cec200b00163e44ac678mr24179669plg.137.1654524144898; Mon, 06 Jun 2022 07:02:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654524144; cv=none; d=google.com; s=arc-20160816; b=Dtf09WiFt0Cay/NS/hFiBiASmPVBzORTkXF8MsjlUpBCaMLALv2p0N6balQeAWa7yj 9jV0xnFzCThQvC+hTeZ1FYbf9tvsJqR7jAcE1wNsfO9KqcBBXWfEGB2mtt5duFLHbPKw IX1jptz8PevCZCtodpllKpUGwJ0ooQ4P3Xt+AUe539gkqegIHd13TKJIpTvDhcU1/yiq HsKjV47EGUGFZkw/sewI/gLxvtfJdsCXkmSZCJQGHEP6n0/y+/Qxaa2p57YcBklPyc3F OkAUCvg5bjT4i7RllVaMDoYHwN/9ci8YB9LKBMFF25RyLD6HpPdhXwLs/YfVPOfd37Np QlZg== 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=b4qn3cjI7HqyUIxd4oKh+0A1P3k2mR1E2+5cIHyDYGM=; b=t0vNr4aGC9JySft0c00UXkOTigrpZ2YoZ3vd7Gb+Os6qQU6JXh9kOM+Mmeb0iKc+jO f1nclIdl6jFknQoi9spOFUmel4TMHc/3FR/rWELD1Qy+4Kw0jJp9pza7GSIEtVCvONjc itxKqUXVt4x56GY4McEZ0C/zeOCrFCiuOqI8YNRc/04DMX8GLjPlXMaml3U6O5OL6o2K Kvhbm4oamu/ppL1y5DkDktCwdmh5AeHgRuM7Rt5VcuVbWUXi4zrKy3np5Ah3IX/8VyR4 spasUeWkpNwi2WuMb2AbP1hULdbPO/Sl/z1Sz6VlV8h9Ns0kK23jzUCKGurN3cbmOUJS Anjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Y8aQlRby; 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=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i2-20020a17090332c200b001640aa6d40bsi23836954plr.79.2022.06.06.07.02.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 07:02:24 -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=@redhat.com header.s=mimecast20190719 header.b=Y8aQlRby; 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=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BF78811E487; Mon, 6 Jun 2022 06:50:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239282AbiFFNuO (ORCPT + 99 others); Mon, 6 Jun 2022 09:50:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239329AbiFFNuG (ORCPT ); Mon, 6 Jun 2022 09:50:06 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CA3DE10F379 for ; Mon, 6 Jun 2022 06:50:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654523403; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=b4qn3cjI7HqyUIxd4oKh+0A1P3k2mR1E2+5cIHyDYGM=; b=Y8aQlRby5WN0dqdtNJcXOEd2mZehiz9OrQp2UF/zt0A75H11h0N2uTD9zEs1xhzR13lf1j T9W/BXamHpoANCKhvXJCdcg8xvvOvdNfuT7L/0dgnOIC+cfvztga6r2SdFLLHj2uf+PZbk VIMTsvr2UKBeOu7z78QGsSyGnDpawnc= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-94-nDj4Z9_VNeekF9UgFSdnzw-1; Mon, 06 Jun 2022 09:50:00 -0400 X-MC-Unique: nDj4Z9_VNeekF9UgFSdnzw-1 Received: by mail-wm1-f72.google.com with SMTP id p24-20020a05600c1d9800b0039c51c2da19so715323wms.0 for ; Mon, 06 Jun 2022 06:50:00 -0700 (PDT) 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=b4qn3cjI7HqyUIxd4oKh+0A1P3k2mR1E2+5cIHyDYGM=; b=Wyacrjc9EXBaTZ24hCm6RFutK/NPDATH0rLE52GkUPrOMJLO277TnsnNAjsSKfV8HT CuNGZaBfIiyKMaB5iZo6qH0WqqRHQir4QRyGLM6dsIJLOU/BGDJZOetBr+8HoWRBUjMF on29tIB2Q9hqvYyiMoZEwBnEmXv3+9ARUxueRQtSpvqZdAfRKmIPwiZMcvFeZdshpgDa tA2Vhc2wdWbNTovnI+toGH5/v0Tm62SIYdiTpme23L3ks+mQ2bpa9/jclIGv0RVSqnMF D6ftnaO5s3Nxb9H1OC3gQCJA7eCJwbOmzCR+Wu3VOB5K7a8VYOn1dwLv1gtAARZm1OkC vELw== X-Gm-Message-State: AOAM531KktvPfCEOE/A9KDjXbSouVoNnNmJDy8GfGoja0NJ+7cW0Hqun R/072bJ/EJCO89OANIu/7NBjfPvvwe1vCfTq12BA6O2X6KhOJ0xtTbwfnGodQ9lHNaNsMa3Xulj MpCL1bGjOBjVzrC1SEvtBkXQS X-Received: by 2002:a05:600c:19c8:b0:398:c5db:aeba with SMTP id u8-20020a05600c19c800b00398c5dbaebamr44023368wmq.199.1654523399303; Mon, 06 Jun 2022 06:49:59 -0700 (PDT) X-Received: by 2002:a05:600c:19c8:b0:398:c5db:aeba with SMTP id u8-20020a05600c19c800b00398c5dbaebamr44023339wmq.199.1654523399055; Mon, 06 Jun 2022 06:49:59 -0700 (PDT) Received: from [192.168.1.129] (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id s8-20020a5d69c8000000b002102b16b9a4sm15245571wrw.110.2022.06.06.06.49.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Jun 2022 06:49:58 -0700 (PDT) Message-ID: <576ed6ef-b961-9214-2c9b-56cb5b493b4e@redhat.com> Date: Mon, 6 Jun 2022 15:49:57 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH 1/1] drm/format-helper: Add KUnit tests for drm_fb_xrgb8888_to_rgb332() Content-Language: en-US To: Maxime Ripard , =?UTF-8?B?Sm9zw6kgRXhww7NzaXRv?= Cc: 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 References: <20220606095516.938934-1-jose.exposito89@gmail.com> <20220606095516.938934-2-jose.exposito89@gmail.com> <20220606134242.h6kuqn4zbpmc2rql@houat> From: Javier Martinez Canillas In-Reply-To: <20220606134242.h6kuqn4zbpmc2rql@houat> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Hello Maxime, On 6/6/22 15:42, Maxime Ripard wrote: > Hi, > > On Mon, Jun 06, 2022 at 11:55:16AM +0200, 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 > > 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=drivers/gpu/drm/.kunitconfig [15:47:31] Configuring KUnit Kernel ... Regenerating .config ... Populating config with: $ make ARCH=um O=.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=y, CONFIG_DRM_KUNIT_TEST=y Note: many Kconfig options aren't available on UML. You can try running on a different architecture with something like "--arch=x86_64". 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 -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat