Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp461048iof; Mon, 6 Jun 2022 06:51:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyC6UGP8bsNksHb2xaLjFh3/Pxjw2rkowoJo10s6i7svRCBEG1SsR0tuGr/gxHbWjtru4nH X-Received: by 2002:a17:90a:8546:b0:1e8:61e8:7b2a with SMTP id a6-20020a17090a854600b001e861e87b2amr11733373pjw.228.1654523511487; Mon, 06 Jun 2022 06:51:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654523511; cv=none; d=google.com; s=arc-20160816; b=e340v0PGrDpKqygxYVdcdCzGPbpiCOnAvUVkvT74hdEtZc0hQ1CobXf5rtyP3ASv5O ktp2YPQBw1Kbnf+l8NNmXqgQq/MblDslqE9dzEYG/3PAxx0f7LPBN49zvFkdb8bIaz3s I7w2dG8Ifc+l9+B1X5Q+Chth8tDRoTwX7uWRLQJAgaTsylgBQNZwZH6SRV/zVQyG0pbK vWPbNQBUOT2MMmCSCcsIxG3ZTrkCeHIV+eogXDJD9fRwcXVFTOpG9oGc3wGPfuw8ePe1 xP+LYjGqYXoJs4arwEuGt+rfpnT8Rlr2jZ5mrN/mz9inSMYDJVWYpLxq70GUxDecqYeG GvSg== 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=8qoXnoqYpBHw1hBc7oMi8KrfARACS0m8xSrOHvWHVRQ=; b=gEgvoH1/DpeztclMiPtJUcxE4I/29N15H9DGE2foRuOJp7HI3V6NWjRY4FJGsMdv46 w3nuHWLb7L60GVpKCw6agXpCQ2KeYETCJcn417rMj+Qb0kY0SW+3SLIlzulCsPZiixjf sI5iC4wjDIqr9Gr/W5yJYVSDQpcwzyIR8GqsGtDnzmISZyVYKO0t0Z7wFcwdY/jiZ4Ik gGO2F6ZW38zEwzd1F08IXiAjVME85CLFO/GGPJVo831rvmjzcRHf0yQ1HssiVgcWcDyv j1o2m9L8TTObKI10WFi08P8kwO9rwNJZHC+ERZ7geLRQkLcSIyqrBtqCE78wg4Q1Qqq4 pB3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UtO+g8ZJ; 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 c4-20020a056a000ac400b00518dcc47bc7si23221661pfl.55.2022.06.06.06.51.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 06:51:51 -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=UtO+g8ZJ; 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 A770E24AEEE; Mon, 6 Jun 2022 06:40:40 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239092AbiFFNkb (ORCPT + 99 others); Mon, 6 Jun 2022 09:40:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239078AbiFFNk2 (ORCPT ); Mon, 6 Jun 2022 09:40:28 -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 77B8C9CF37 for ; Mon, 6 Jun 2022 06:40:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654522825; 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=8qoXnoqYpBHw1hBc7oMi8KrfARACS0m8xSrOHvWHVRQ=; b=UtO+g8ZJN8gyRWuFORByS89SnT3I5ZCPG8o9kLEjUSdK9+Wb9uSZqrImkphWqTHMT7xJzO VIY3d4uZcXqEAn4R5UdnWcuMQnQpwoadtL4HXiE+MYv1G6CdK1HaC8QO3roksETVdtzE2m vBnlK0xb/13olPaVP9KUqr/+VzxqAco= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-74-JK7SlUnvO_Gavfv36vCWpw-1; Mon, 06 Jun 2022 09:40:24 -0400 X-MC-Unique: JK7SlUnvO_Gavfv36vCWpw-1 Received: by mail-wm1-f70.google.com with SMTP id ay1-20020a05600c1e0100b0039c3a3fc6a4so4799044wmb.4 for ; Mon, 06 Jun 2022 06:40:24 -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=8qoXnoqYpBHw1hBc7oMi8KrfARACS0m8xSrOHvWHVRQ=; b=XiNZsw2PA32DMkB5hBPtFjq6gi2EhJAV1gsOBtE3jNH8HQ3yRPSfghqU+pfGDNlDnj UBZqj2BhrKIe+S/VnBDO1NB/MdHFz7rwF82fNdnHBbm+tT7KOKAxMPx8AwuAXloLpY0O OLsKqgImfJ5kNLXU24pwEat96V7EuivBpDz/uxZnJkSueB9SaIWspibdxZqhE9lZRryg 2jyX9PAUQjhQx4GDarKJRd2uibzOAb7opJCa1BlqbBLOzXBrjgi9zdbDqN+PZSD2ZctO Tyb+KEO7NitPda1i9wsEk9In65G1HNU00YanuKbn2rU4pjxuSq/L4LcgVuLhWHT3qUTU mk+Q== X-Gm-Message-State: AOAM532B0q2xGgeS0231g0OnP6S40+fuC1jn4tNVdfseFNTz+uVB/gAF bDyBBarq3ZPly4vTy3bJn/4zT9rrmFeaIaB/ze8qe2TIy/IXYaRLvbxgQucOjWtvlj0D0aYW3sR 4DDyYPb9MXHX0wCAJmc4IExuu X-Received: by 2002:adf:f403:0:b0:218:82e:4c9e with SMTP id g3-20020adff403000000b00218082e4c9emr6360624wro.247.1654522822988; Mon, 06 Jun 2022 06:40:22 -0700 (PDT) X-Received: by 2002:adf:f403:0:b0:218:82e:4c9e with SMTP id g3-20020adff403000000b00218082e4c9emr6360601wro.247.1654522822756; Mon, 06 Jun 2022 06:40:22 -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 h6-20020adfa4c6000000b0020fe61acd09sm16056329wrb.12.2022.06.06.06.40.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Jun 2022 06:40:22 -0700 (PDT) Message-ID: Date: Mon, 6 Jun 2022 15:40:20 +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: =?UTF-8?B?Sm9zw6kgRXhww7NzaXRv?= 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 References: <20220606095516.938934-1-jose.exposito89@gmail.com> <20220606095516.938934-2-jose.exposito89@gmail.com> From: Javier Martinez Canillas In-Reply-To: <20220606095516.938934-2-jose.exposito89@gmail.com> 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 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 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/ -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat