Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1803384rbb; Tue, 27 Feb 2024 01:22:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXYIKua0srpDI+29iUMWdFIw5fk1s8zVtGwe9EQDOu/gfPWTH6pNCOn9h6JlMSFjNZIL6i+nP1SCKJCOq8y0/TG5AtNzVRIXj0Ut/pelA== X-Google-Smtp-Source: AGHT+IEgMP5lEPvtto6W/PsCR9821TTY8LT0t50nGSBVPaK/EtcX8WFmejdbwb6B3byhLNrhO2GJ X-Received: by 2002:a05:6a00:2d84:b0:6e5:872:5a03 with SMTP id fb4-20020a056a002d8400b006e508725a03mr7078789pfb.0.1709025720158; Tue, 27 Feb 2024 01:22:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709025720; cv=pass; d=google.com; s=arc-20160816; b=YXpSaYc5J5hnsPTqvd/+br3akH+W9lkLBOfhtKHfKwgOGtqGRlTVkRmYYbduyOXJrL SY8TWBeWK6HUraH2zz3LCT+nUXHsKNJyPcb3vPDV9YFI2hC6BszNrrRVlruTXoYP1ynh HMxWm1r57UqRt8i6TrQThMZ65R84JbNvaGB9JKKdn93e+clhsZ1IRZBYzRG9zwFXOxaI IIulN71oNT+6N867b5SQRiUcHp4LBUIZDVYBSRVnPglz1RbCMMgsgjpdFnfsYGEwCAxK /aCrhII409RLjFIVvjDOcE7tg/hNsk34XySQ8VBMTkAMtQldStjcfeEbSkJq5vuBH8mN osmw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=jTIzJfRCuQ0H8fraCtkbb4PFoKiwp7tec+iugS7Uqn4=; fh=GvZJzhT+zXld1Jf1Cj/zq38EQDLxmBPNyjz8TEpnb5E=; b=E26zVo/ycgHG2ok75pYZkPoSuiht+hSPbvgaoYotVM8g5T6I/R4OKcCfRwEMHOKNzM djSTJYQeZbwuhmXhf0r5G7Ri11aYJ7c27uCidqEN4d5hF/YnCj58fOnCUCugy7FlRhv5 Z7VAWT5CKlZ3fkB/GrQ996apC4k5caQ6JnevdKI1TwBU5sMf7DT797RAsd2uw7nqMrmU qgWe4USznlP6559YPTALfvRBlO/srbIPC5BTXf7P9skL/eSm5Qzcya1IiGRbD1T+Ge4y rMcF9IvCqog9AOtz81z6R/3Mnd2z7KvuKHSrZQ4x/scIblLBuIbWhkGVkMHb4PYx6fGE RVnA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=LrYgYKBI; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-82945-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82945-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id jc31-20020a056a006c9f00b006e502865539si4495749pfb.53.2024.02.27.01.21.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 01:22:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82945-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=LrYgYKBI; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-82945-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82945-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id ABA6B284314 for ; Tue, 27 Feb 2024 09:20:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 581FD136980; Tue, 27 Feb 2024 09:19:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="LrYgYKBI" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 DA34C136663; Tue, 27 Feb 2024 09:19:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709025588; cv=none; b=OwHWQfgEY6dPSfmdI+e2JX9eMw05M30SSjuw4PIIJV3ec94k4bvzs0+v+RtYF85OkbT88u3ntiqWGLUq3mo7ajrkFSirZXudBMFKj/jMTRmjGlkSLCpmRU4CIhhj7N+FKDRGXkuMR/2ppXrHrpgp6MiHokmX9iYEBA0vrygcjzI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709025588; c=relaxed/simple; bh=C/oFzRJOAX2fab2jouBghp4z46x7LVa76qoFEBIuBbo=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rC9SfvY7FLBovNOskdgfHlfknL+5AQmemcY84dhyKwiBE+s8AeH+lmC/y3CRpY7/d4f0XSJuwBEpzwWznANLz6WR+3JUPbKctoAt11bKlAaDiyQMXaAfuug2uQQFmJShM6UgpKSHN7XlTAMp9bDYQNrg9n9P7SKdR3usLFFK2+8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=LrYgYKBI; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1709025583; bh=C/oFzRJOAX2fab2jouBghp4z46x7LVa76qoFEBIuBbo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=LrYgYKBI6DOH/pc/J7Ecmx7ttT5KIkffirla/dzc3bn81fLzhQgOIG0tqaHxOQO6G AHPdsi75rlq8QALWaEZFFOLMnlrwoXdsyiKk1xsOWeCWk0onAN0CikzdPDo16tMImq YWJoWwdmHwyZJ2+OdFQqiXuT0KSOEPJFHGHxbPSZta5y8ETLSOXTSr2mLb5OQZNC3s s+odA/MNkmLG6eIeSllVJiRBIhw9QL149crogYPIumL5bSoOWKlU6Pj6wpLYakO+TV pp6ucS/gstI4ep3IVMV1VXKk+6DvsLdZwz2Eq67loRYD2p2//hDR5NVtGUB+d7f1pL x82SfNoMjKwAg== Received: from eldfell (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pq) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 132A13781FA4; Tue, 27 Feb 2024 09:19:43 +0000 (UTC) Date: Tue, 27 Feb 2024 11:19:41 +0200 From: Pekka Paalanen To: Arthur Grillo Cc: Rodrigo Siqueira , Melissa Wen , =?UTF-8?B?TWHDrXJh?= 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 Subject: Re: [PATCH] drm/vkms: Add information on how to benchmark Message-ID: <20240227111941.061a2892.pekka.paalanen@collabora.com> In-Reply-To: <20240226-bench-vkms-v1-1-515ef91b11c8@riseup.net> References: <20240226-bench-vkms-v1-1-515ef91b11c8@riseup.net> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/Al3K0O_fW7VTKwg+hyaw9T9"; protocol="application/pgp-signature"; micalg=pgp-sha256 --Sig_/Al3K0O_fW7VTKwg+hyaw9T9 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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. >=20 > Signed-off-by: Arthur Grillo > --- > Documentation/gpu/vkms.rst | 6 ++++++ > 1 file changed, 6 insertions(+) >=20 > 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 th= e entire test:: > sudo ./build/tests/kms_flip --run-subtest basic-plain-flip --device "s= ys:/sys/devices/platform/vkms" > sudo IGT_DEVICE=3D"sys:/sys/devices/platform/vkms" ./build/tests/kms_f= lip --run-subtest basic-plain-flip > =20 > +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. > + > + sudo ./build/benchmarks/kms_fb_stress --device "sys:/sys/devices/platf= orm/vkms" > + sudo IGT_DEVICE=3D"sys:/sys/devices/platform/vkms" ./build/benchmarks/= kms_fb_stress Do people need to run both commands? Anyway, a good idea. Acked-by: Pekka Paalanen Thanks, pq > + > TODO > =3D=3D=3D=3D > =20 >=20 > --- > base-commit: eeb8e8d9f124f279e80ae679f4ba6e822ce4f95f > change-id: 20240226-bench-vkms-5b8b7aab255e >=20 > Best regards, --Sig_/Al3K0O_fW7VTKwg+hyaw9T9 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJQjwWQChkWOYOIONI1/ltBGqqqcFAmXdqS0ACgkQI1/ltBGq qqfGJRAApGG99tBnUJJr8a9IT2dsMQqZ46B5JVGCsYV1IR8pQOa7XIuuXgla19vF HcIiUw0SZDclUtRiK5K1p1S6VPR65Yr0wrfBGlmjJDOOoWuGwEcfPbs8e7KThpxr pA55UAzznjP2jXpY70ef5FE4wAbM7Q48zdEjoOd7OREkKMPjuMW0IfuQdGZp7YjZ RzPZPhnqVChBkRwYD5mWs8Au/gMZkaIMedg8hyAhimO6h1GDNA2GMqEFr1DSYv8A TBG/mkIWlCGmb+j6+V7EQzoDZODASTjtf+KRqDlQnfpZB63UnOvt83mqABUM1wYt ltVilQfRO3gUJYbqZchCKj5kce91amQydbnlwgtdeue5JZUYx9XUk6Pz9lOysysV UpCbYTKytIrS+owxhxbsCcsq0P2xeV9g+jT07ZjLU9K78XnKMeL4Tzf+8ssEfWKS zVmBDhaKA0l2RRBB+Md9sQqwmyCufAAz05mmXOduYSvJhZPolp2vqVpVEkrIfQ76 Xmuw1AeC4Iz/3zAdlSL0sQ8xauwT+A/MPGaeNEfxBYjMKZj6Q8adQlQ0yFhTCcF/ +co2b/dSFYu5Pvb0G6nwH9kXGYutsM/BEeY5cXWeqez2U0tegbRSjWX8kxRdQU1i cRAfOOIvgzpqMyWHbPrWPf5KVDV0erWwhuVcIfQuEEfWIsKGPao= =FQV+ -----END PGP SIGNATURE----- --Sig_/Al3K0O_fW7VTKwg+hyaw9T9--