Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1287542rbb; Mon, 26 Feb 2024 05:02:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU6LMR85Fxhqob6k8XNeNml192FlzYAN2UJ5JVBCLJiTbYooCiH8Su3sPRMOF71YHQMatoF2g+fIjRHhiBlIFTzm5BRfDA7YUnrkgP2sg== X-Google-Smtp-Source: AGHT+IGAJOwS68BBI3iVcKmDQSPyHtx5mmg1agroJlCLOSAXFHV79RBXeGWiF0Pcu0UPrsBZLz9m X-Received: by 2002:a05:6a20:d495:b0:19e:bd3e:76e1 with SMTP id im21-20020a056a20d49500b0019ebd3e76e1mr6545600pzb.48.1708952554158; Mon, 26 Feb 2024 05:02:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708952554; cv=pass; d=google.com; s=arc-20160816; b=cFy8W1mYiCaj45nqPZWRDaCHRtGqDSHxxbY5n/KIx/MSEfFeL6s2EODFgSqewSImt8 Jy2r3oGMj0ydfIdEb95WkOaAFtZUrzWw4e7YuWBL6AdR27YUU63nG9gO/O7P47wbB8WB jQhmisKbE1CGNPjG6SJ+FJSpkx7I/ijVcl4iONKJViKD6N1HF9Afpe/EprJ/DbqL0qfp 5MNjMLyKIv+DfvU6bn0nJRCXSxrWuAc5heUFlEFR0oNIg5zVsoXSlLSsSLz3d4aU0f+J Zw+t9E9BM9CJ7q589+3kMR3/gAZSQFoimMQ/5r1Mx4ijzWvTQ6iJWAtStjR5VLL36Ncd C8uQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=zc1RjtY1ARFXv9X7AWb9xg2qefIhvIwrCXvg3e6WynE=; fh=AcSaWiqzzRrpTVQ8kGAT+XhY2JFjcCrR2lFcsudDr3Y=; b=fRtX49qFa4XP2+j4Cr8/cR5Zh6qA/wjS5KdDNoF56+dI2myxDNPpblJSAWTtQKcElJ J7aqnTGaz02BQdcK5fF77Yne8iQjoNl0xne7KK50ArmFEYTEWQTIQJWqv2kQ7HhCR7VE mQv2kTxA/Jcnk7Uq5gbLI5LSpo7LG6/OBF+OUL7F0AGNi2tkIyKocOlT+KgbX/7XfmdS h4YLEgdasx6/bv0TsKn+HjeS2CqGMZWFQUJWJpKIxOCOGEHj1LQmjuipFg14sF7XloOL wc2/UdcKuby3vnNK2b3/3eiCl2TrowQ8wUz6foNo2Exq1fBcwSPbYkOnefZ50rGotKBf lTSQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=BROXfXqQ; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-81358-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81358-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id h17-20020aa786d1000000b006e2f7d4197esi3651266pfo.404.2024.02.26.05.02.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 05:02:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81358-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=BROXfXqQ; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-81358-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81358-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 87AB2B23113 for ; Mon, 26 Feb 2024 12:24:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 15FE4605A2; Mon, 26 Feb 2024 12:24:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b="BROXfXqQ" Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9AF8D604BA; Mon, 26 Feb 2024 12:24:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.97.179.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708950258; cv=none; b=nQbtYArlRZwDiBev+AKKN7GTEaRgUs8gh0innMe9yl+URBXWEefqfG2A+6OmJFr4NWb/7XDiRYdZBvXnjJOrhDPMPydoGj7rfHuPcHGG/33r6p3wNPkHl5Mq9Y7OQZHBMTtFD2rSyEIP9y+tpK7RiuF2XVuO7w6D7QSdTttSY8o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708950258; c=relaxed/simple; bh=uGYKrjt3FLbs0QDjnP1dOXopulEcJJucDWfTeZDvGjk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=gjvKDPECheqPXdjLhSJK61GmyEc20wzS7QHsVb2PkLZC1gSgPQ8FpumAgubw7Txj2kImDvkOg3Lj1MVmQJtUX7dIbfd7H9hJkdKcAWC4HqK629/JiyMR/Mdl1Z+kZLpFN9/VAWoHS1PPA7QtlyMmrETaLokxbAnKBHQxiesbA1I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=igalia.com; spf=pass smtp.mailfrom=igalia.com; dkim=pass (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b=BROXfXqQ; arc=none smtp.client-ip=213.97.179.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=igalia.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=igalia.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=zc1RjtY1ARFXv9X7AWb9xg2qefIhvIwrCXvg3e6WynE=; b=BROXfXqQXZTbIHzw0zpQsN6HXm A9Zq5kJDUduueLDMU05tNBf766hgTB9RrfuLsQ9vFytUWw3IR/SQqHpE1VGGujMI9eeNAs0xNP2Fv GPhVNEujNa+JT+5JdTn3hBcvRm352QvCDhXgFTtQMJ/i7ZGcJAIf7+gxXnqPU/LWoRzN5TuWcLAxH +s0CGxCQN/UTOXasfQCUp5oakmXwMsw6MpPNejJxUzqgo2CIFm9NwulM9N4qmWRpZAIO5qIKv5hjU WDOlq7Ygigcj5WhK+M7BKDJKKNKgY2MD7hENrwfddIEBbsGGQD2odotWzFKv120sE0tovM8j74uxu /NFJ0Sqg==; Received: from [177.34.169.255] (helo=[192.168.0.139]) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim) id 1rea19-003YfT-KA; Mon, 26 Feb 2024 13:23:35 +0100 Message-ID: Date: Mon, 26 Feb 2024 09:23:23 -0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 02/36] drm/tests: helpers: Add atomic helpers Content-Language: en-US To: Maxime Ripard , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , Jonathan Corbet , Sandy Huang , =?UTF-8?Q?Heiko_St=C3=BCbner?= , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: Hans Verkuil , Sebastian Wick , =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-sunxi@lists.linux.dev References: <20240222-kms-hdmi-connector-state-v7-0-8f4af575fce2@kernel.org> <20240222-kms-hdmi-connector-state-v7-2-8f4af575fce2@kernel.org> From: =?UTF-8?Q?Ma=C3=ADra_Canal?= Autocrypt: addr=mcanal@igalia.com; keydata= xjMEZIsaeRYJKwYBBAHaRw8BAQdAGU6aY8oojw61KS5rGGMrlcilFqR6p6ID45IZ6ovX0h3N H01haXJhIENhbmFsIDxtY2FuYWxAaWdhbGlhLmNvbT7CjwQTFggANxYhBDMCqFtIvFKVRJZQ hDSPnHLaGFVuBQJkixp5BQkFo5qAAhsDBAsJCAcFFQgJCgsFFgIDAQAACgkQNI+cctoYVW5u GAEAwpaC5rI3wD8zqETKwGVoXd6+AbmGfZuVD40xepy7z/8BAM5w95/oyPsHUqOsg/xUTlNp rlbhA+WWoaOXA3XgR+wCzjgEZIsaeRIKKwYBBAGXVQEFAQEHQGoOK0jgh0IorMAacx6WUUWb s3RLiJYWUU6iNrk5wWUbAwEIB8J+BBgWCAAmFiEEMwKoW0i8UpVEllCENI+cctoYVW4FAmSL GnkFCQWjmoACGwwACgkQNI+cctoYVW6cqwD/Q9R98msvkhgRvi18fzUPFDwwogn+F+gQJJ6o pwpgFkAA/R2zOfla3IT6G3SBoV5ucdpdCpnIXFpQLbmfHK7dXsAC In-Reply-To: <20240222-kms-hdmi-connector-state-v7-2-8f4af575fce2@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2/22/24 15:13, Maxime Ripard wrote: > The mock device we were creating was missing any of the driver-wide > helpers. That was fine before since we weren't testing the atomic state > path, but we're going to start, so let's use the default > implementations. > > Signed-off-by: Maxime Ripard Reviewed-by: Maíra Canal Best Regards, - Maíra > --- > drivers/gpu/drm/tests/drm_kunit_helpers.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/gpu/drm/tests/drm_kunit_helpers.c b/drivers/gpu/drm/tests/drm_kunit_helpers.c > index ca4f8e4c5d5d..4fb11b938bc1 100644 > --- a/drivers/gpu/drm/tests/drm_kunit_helpers.c > +++ b/drivers/gpu/drm/tests/drm_kunit_helpers.c > @@ -1,6 +1,7 @@ > // SPDX-License-Identifier: GPL-2.0 > > #include > +#include > #include > #include > #include > @@ -14,6 +15,8 @@ > #define KUNIT_DEVICE_NAME "drm-kunit-mock-device" > > static const struct drm_mode_config_funcs drm_mode_config_funcs = { > + .atomic_check = drm_atomic_helper_check, > + .atomic_commit = drm_atomic_helper_commit, > }; > > /** >