Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1861107rbb; Tue, 27 Feb 2024 03:45:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX1JffgTOoBuJn9oLeWo1UNiItb6qgTqpQw+j71BAAvyeYrYKPNBg301Moo/EwzyAfwO+Aq7AgsWOQxYJELM3qNURedLCTwjH6VLi8cmg== X-Google-Smtp-Source: AGHT+IFOHYliVbJ2jkyLNqc0XBFFY0dNqkcNf20RA4Lhv5fMSOIoWlrVewt2OFA+DbFmewk8JSap X-Received: by 2002:a92:d30d:0:b0:365:1dbc:a4f0 with SMTP id x13-20020a92d30d000000b003651dbca4f0mr10038343ila.31.1709034330459; Tue, 27 Feb 2024 03:45:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709034330; cv=pass; d=google.com; s=arc-20160816; b=SmVZhT0OTlVJqLgrMZvOMq5Ukc2CKvN5YuPLhF1VXvXxoby7gNQua9vf4FvGdgDlTY gck4Ws8YBWKdtEBOt7St6ipBzBToEF86RamYtpaomHaz7Txh9+XPz01v2MOEiYpDDy71 AbE4KC3WEW+j4wN+xnim48sP+DPDP7+P4i+fehzxZVrBZ6h9QlYtIQzeDFL85BbE/+FZ L9P5mAgDkKN0qEle+Z+sH1BynJIT7A1SAc5KG/ewJVotwHfc0guQqEHlpeGxtXsPerNH JNfnKnW1Arc52yTsAlMBce2jR77H47NhMl/Y8FJBuSI3MhzLdMOqx/OKcNMYVSqqDoz9 VeGQ== 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:content-language :references:cc:to:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=b0skYuHOcLhi+gN66Adk2sh2JZaFWCG5TNNtqm2zQWI=; fh=gVYUIX4SuZh5/sggD3Q12gCP/n6MLDv7rPdMqciw5GQ=; b=o5rKPaM404UtkYEgHsbpXSA9M2eQPJLLheaeRoawFwPocum8ELxHbJUg9s5m+OQlaf ys0LPIHyvbkf72iPVWx5szQP6AqWcCHtcVmdgN0XgFuFTjVRzxAbHkd0x8KMND93fkMt c4nfdlZHmocrcfUvShwByhwGaWVoeZPDJD9MxAGqrnA/M2Q5SeuQ4D1/IS/GNIa5MUrG RFkFUvMFoJOVkyXl4tGLeLUjMcqHYHk9kmz7TWfy//CXb5ET4K4GN7LIbb0oBvAeeDD+ e3T+iqCKi+mQPKPMfOlcRPkaJZfxm5Zqs1XmMHay3YiMSkbs7qKQlxGIPyiOFlecODUi Z4tg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=dqJg9RIE; 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-83140-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83140-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ka34-20020a056a0093a200b006e546e355b3si1227832pfb.125.2024.02.27.03.45.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 03:45:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83140-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=dqJg9RIE; 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-83140-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83140-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C915E2813DD for ; Tue, 27 Feb 2024 11:45:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 40D3A13A243; Tue, 27 Feb 2024 11:45:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=riseup.net header.i=@riseup.net header.b="dqJg9RIE" Received: from mx0.riseup.net (mx0.riseup.net [198.252.153.6]) (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 940DA130E48; Tue, 27 Feb 2024 11:45:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.252.153.6 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709034306; cv=none; b=AAcQdWglmJrTF7vx1E2R9mP0/x9MXLPvgJWwI+sQAPvKZ1ACytKX5XAr1qp/h27z6fLpTgcJ9PbFfhz8wf+USEgFhHw1uvBI1fXLkJfF3bS7HL52aNUz51jVfdH+zlYGt1AY9RYxPpGAsTO7yobpXHZkNnzVrIq/7q8te32j32A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709034306; c=relaxed/simple; bh=reB1Odb45/l1dvPXc/JgyVKuOjKvEdq6Kb78XAUVaxU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=RiAicTEk57Y3AMEkV9qtDvNQR2O6RCjFKqY65uD+SUj5KmxOmKCj8RAHRV9dskHAjQpzoI9AsSh83WVJmHNsx96BONSaRNhC9PJcD0v+m3o5hTzBbWwUEgh3E/ZhfiR/ySSIPGrQrHoMdhlGBKmDV4H9QJP/cE/EB98c5PbM6Ac= 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=dqJg9RIE; arc=none smtp.client-ip=198.252.153.6 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 mx0.riseup.net (Postfix) with ESMTPS id 4TkbJH3rPtz9sjZ; Tue, 27 Feb 2024 11:45:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1709034303; bh=reB1Odb45/l1dvPXc/JgyVKuOjKvEdq6Kb78XAUVaxU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=dqJg9RIE8eu8y2cKu+9cnGHYFnsGUkL7ueJyGDO2S1kJDFRYprUsj2yzAkh5kWxWi Q2QIhVdaUsO9DDLumxdp3NlRr5JXaHFpL84dxbh+hM3qT1ZaxOf2VNQvXfac1Wy9C+ jupyHQB4Crd79qLolye0CPSa5Sjiz6c6DWNjUyGg= X-Riseup-User-ID: 32958693706746C82A54B118B535079799FE5CF83FAE7455EBE508B6A3F4C0A7 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews01-sea.riseup.net (Postfix) with ESMTPSA id 4TkbJB4cHjzJqCg; Tue, 27 Feb 2024 11:44:58 +0000 (UTC) Message-ID: <8ac7bf91-fbce-4403-a801-9dfee39ea802@riseup.net> Date: Tue, 27 Feb 2024 08:44:52 -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 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> Content-Language: en-US From: Arthur Grillo In-Reply-To: <20240227111941.061a2892.pekka.paalanen@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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? > >> + >> + 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, >