Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1895198rbb; Tue, 27 Feb 2024 04:54:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWJwhhsDgisvpG2zAvKpJOjlxALgSYj10bLJuITmJ5oCJltItltfX2qVJLA8SJHGbsKyOdgUeH98Ra5Ca3TKFoMVL1PAVxRMW0x9B01Pg== X-Google-Smtp-Source: AGHT+IHWA7MrkbAFJ4N+e7cCsCzB7KQs8QhyRCyvMC+sjAYrdxDHKUy4U++yI2lFLegCnKK85UtR X-Received: by 2002:a17:90a:430d:b0:29a:998a:cdf1 with SMTP id q13-20020a17090a430d00b0029a998acdf1mr8414470pjg.35.1709038482997; Tue, 27 Feb 2024 04:54:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709038482; cv=pass; d=google.com; s=arc-20160816; b=AvmTtXVdaDkVHQd8oDciVzKmp5kFEfl6mE/nL61iBr9us/g8Lod/pomGSlHpY0Sf8X JLVlue6QiMVH090xGdarfx1vCZLbp2qC8ey9GXyRVQK+DufFZ7uqX3xkqETKKBSy3BHJ hprjQGS20+WtUpL7KkFBP7gZYROC3445+/c17we5e9BWKE+Qmql/ePSnMUyewt0tEzh4 SRdw0RZfvCy7u77GhmCudJnNBCyaiEHjsBiP5RxlJqhFvsLhyq7UJT1EQari6tSsC+rt BIJHT1fD/77fD+PuSKizmcMVWBHmIt2vgWFDX0O7mbSM0FXzELtAunrVVeJorCZN12fI H6AA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=2TEYSgM3gRq1QM9XADbPQzaz8L7XULGTTTi8yb0nAFk=; fh=gVYUIX4SuZh5/sggD3Q12gCP/n6MLDv7rPdMqciw5GQ=; b=JNvzCGiKWi+paAMq6Sd8Er9u1LP4zuklVeyVPI+SrX4o2U8RdxPF9QZkJxO8AnmVFq FTqfvM+Kdb2swZywqX/vyQ1wTKDNiNo/attQsrB7h9wUzoq+HoKP7b/frZeyujy4qiSV PXeXG/M+kc5F9V3zFoNN8JSMtPBmFVd4U271KBQ/Nmq3hsiuaA5RjGKVxZIoiJllkRio ZWtiweigeKbAbjTpCAQ7dGCw6CNNKfjzN+ediSau8MK/tYZUvwNJ8ayDXO9iqKkwn0Jk 3TRB9Anur0jKFv3AeX/1EDcHkuiXliRW8X4eAJjTWIvLnHvmCKHH7wUKQ336lVYDLBc8 nAWA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=mQYuSXA9; arc=pass (i=1 spf=pass spfdomain=riseup.net dkim=pass dkdomain=riseup.net dmarc=pass fromdomain=riseup.net); spf=pass (google.com: domain of linux-kernel+bounces-83233-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83233-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id e12-20020a17090a728c00b0029a9952d7f8si5533381pjg.83.2024.02.27.04.54.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 04:54:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83233-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=mQYuSXA9; arc=pass (i=1 spf=pass spfdomain=riseup.net dkim=pass dkdomain=riseup.net dmarc=pass fromdomain=riseup.net); spf=pass (google.com: domain of linux-kernel+bounces-83233-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83233-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net 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 E6C55B21492 for ; Tue, 27 Feb 2024 12:30:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D9E91384BF; Tue, 27 Feb 2024 12:30:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=riseup.net header.i=@riseup.net header.b="mQYuSXA9" Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) (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 6A28C13A87C; Tue, 27 Feb 2024 12:30:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.252.153.129 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709037009; cv=none; b=oqRcVpralyQZ8lbtfVEpBXwtcppPbZ7Zsdu7ACIzED/uZTFpMUFLqIX4SyV/SSUAOdnQAYrJiQQ41G1Jy2RjB6gG8ehiE2bHkpDyETzQqDbnCtTGVT/a8f7+X1Hib1Yuw+RVnhEAfX4DAw472PeRDMvOL4EB3Enj0qN/ddtxlk0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709037009; c=relaxed/simple; bh=4Oml5WGpUWGH4E2pAWDmHJLXIurGcZNjrQiigLwRZxw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=cZoN4pF4sizYZFA2ayciOLzGI7NTKwPPs4/gGR+EdgmzIXTkggwGhHy49oqeGuj2PcQsxfgquqp3Y5QD7gr7/MzjT5ogcART1Kd5saF6xI47/w/LIlII6BG3b01td4KDmNKC33ua4p50gshMyliiu64mGA/i8QaLOPwQ2YSFIxc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riseup.net; spf=pass smtp.mailfrom=riseup.net; dkim=pass (1024-bit key) header.d=riseup.net header.i=@riseup.net header.b=mQYuSXA9; arc=none smtp.client-ip=198.252.153.129 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riseup.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=riseup.net Received: from fews01-sea.riseup.net (fews01-sea-pn.riseup.net [10.0.1.109]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx1.riseup.net (Postfix) with ESMTPS id 4TkcJG3RP2zDqxh; Tue, 27 Feb 2024 12:30:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1709037006; bh=4Oml5WGpUWGH4E2pAWDmHJLXIurGcZNjrQiigLwRZxw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=mQYuSXA9hwz4kYJiAqIkpx33zjljXzNw0McZ/d8AEb4W6ypvWOENBZfqVS8Qi3TK5 hFaGS6zD8qKMJj5f6oDZl7wONjgkB/ngwXWKqQpZ9uaju56h8e8FU9hQjrX4UVQRD5 OtuptIXcDjwf18nqJPFXsHic7+YBeLheLXpyNrhk= X-Riseup-User-ID: 3F2DEF444453EB7DD4603CFBCDDEB278E8EE48B49FA58E4A5F087EA6FADAFF74 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews01-sea.riseup.net (Postfix) with ESMTPSA id 4TkcJ955ZgzJpbF; Tue, 27 Feb 2024 12:30:01 +0000 (UTC) Message-ID: <0892593d-0fd9-4381-b2bd-843627bd2723@riseup.net> Date: Tue, 27 Feb 2024 09:29:58 -0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH] drm/vkms: Add information on how to benchmark Content-Language: en-US To: Pekka Paalanen Cc: Rodrigo Siqueira , Melissa Wen , =?UTF-8?Q?Ma=C3=ADra_Canal?= , Haneen Mohammed , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Jonathan Corbet , dri-devel@lists.freedesktop.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240226-bench-vkms-v1-1-515ef91b11c8@riseup.net> <20240227111941.061a2892.pekka.paalanen@collabora.com> <8ac7bf91-fbce-4403-a801-9dfee39ea802@riseup.net> <20240227135545.62dd5f57.pekka.paalanen@collabora.com> From: Arthur Grillo In-Reply-To: <20240227135545.62dd5f57.pekka.paalanen@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 27/02/24 08:55, Pekka Paalanen wrote: > On Tue, 27 Feb 2024 08:44:52 -0300 > Arthur Grillo wrote: > >> On 27/02/24 06:19, Pekka Paalanen wrote: >>> On Mon, 26 Feb 2024 17:42:11 -0300 >>> Arthur Grillo wrote: >>> >>>> Now that we have a defined benchmark for testing the driver, add >>>> documentation on how to run it. >>>> >>>> Signed-off-by: Arthur Grillo >>>> --- >>>> Documentation/gpu/vkms.rst | 6 ++++++ >>>> 1 file changed, 6 insertions(+) >>>> >>>> diff --git a/Documentation/gpu/vkms.rst b/Documentation/gpu/vkms.rst >>>> index ba04ac7c2167..6d07f79f77ff 100644 >>>> --- a/Documentation/gpu/vkms.rst >>>> +++ b/Documentation/gpu/vkms.rst >>>> @@ -89,6 +89,12 @@ You can also run subtests if you do not want to run the entire test:: >>>> sudo ./build/tests/kms_flip --run-subtest basic-plain-flip --device "sys:/sys/devices/platform/vkms" >>>> sudo IGT_DEVICE="sys:/sys/devices/platform/vkms" ./build/tests/kms_flip --run-subtest basic-plain-flip >>>> >>>> +If you are developing features that may affect performance, you can run the kms_fb_stress >>> >>> s/can/must/ >>> >>>> +benchmark:: >>> >>> before and after, and report the numbers. >> >> Did you mean to write the benchmarks logs here? > > I mean people should be required tell their before and after numbers in > either commit message (my preference) or in series cover letter (if > benchmarking commits is not useful). > > With the addition of YUV support in VKMS, maybe the benchmark needs to With the upcoming addition, I've sent a patch to arbitrarily change the formats on the benchmark via command-line options. It's not adding a new case, but maybe just this could already help. https://lore.kernel.org/all/20240226-kms_fb_stress-dev-v1-0-1c14942b1244@riseup.net/ Best Regards, ~Arthur Grillo > start printing YUV numbers separately as a new case. > > > Thanks, > pq > >> >>> >>>> + >>>> + sudo ./build/benchmarks/kms_fb_stress --device "sys:/sys/devices/platform/vkms" >>>> + sudo IGT_DEVICE="sys:/sys/devices/platform/vkms" ./build/benchmarks/kms_fb_stress >>> >>> Do people need to run both commands? >> >> No, they don't, just two options. >> >> Best Regards, >> ~Arthur Grillo >> >>> >>> Anyway, a good idea. >>> >>> Acked-by: Pekka Paalanen >>> >>> >>> Thanks, >>> pq >>> >>>> + >>>> TODO >>>> ==== >>>> >>>> >>>> --- >>>> base-commit: eeb8e8d9f124f279e80ae679f4ba6e822ce4f95f >>>> change-id: 20240226-bench-vkms-5b8b7aab255e >>>> >>>> Best regards, >>> >