Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp168941rdh; Wed, 7 Feb 2024 00:45:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IHVojxULCIHjNAjRPfsxk48yZaCZPs1GAXcX6ylTzJfAvsMCyjOTgMXICuFfyraiIUyIJHz X-Received: by 2002:a05:620a:4620:b0:785:46d6:6453 with SMTP id br32-20020a05620a462000b0078546d66453mr6882672qkb.32.1707295537022; Wed, 07 Feb 2024 00:45:37 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVhUKjtmeb6pnpoXMY+s1GzcbKQAx6pi1YsH/rR/QpoCR8gBJKjEtqkyrmI04FDgEOIHttvhRfuBZRYDyqyhyzdxWfdAIMoZ/Vo7aRXYA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id i19-20020a05620a0a1300b007855a7b80e1si670363qka.82.2024.02.07.00.45.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 00:45:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56137-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@haloniitty.fi header.s=default header.b=Yj5qMK8F; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-56137-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56137-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 729671C211CE for ; Wed, 7 Feb 2024 08:45:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7DAE624208; Wed, 7 Feb 2024 08:44:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=haloniitty.fi header.i=@haloniitty.fi header.b="Yj5qMK8F" Received: from whm50.louhi.net (whm50.louhi.net [77.240.19.51]) (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 0585F20B0E for ; Wed, 7 Feb 2024 08:44:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=77.240.19.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707295468; cv=none; b=PdCuQFMcv5jBFJhnn55nAzZLGEkkWVnILq08+LCGCVcvFSzWsMS7km0L8Ur1syhg6g+z7SOfSgWxJek24MwqzUUWSdsTwg5fKffOOtBZ2Z7ySzpmrrSA9vFIUZ3zaKFPILieOcKLTDccEMAI8A/uMl9Jmv2Q4HHimpT5Tiyv/tA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707295468; c=relaxed/simple; bh=PLWVHtXp1su+keqeAZfr5JdA50OHHDttPlQGFKWS0q0=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=W8dACBIx9B6lHRJ1deSmWiJp814J1mlKqvfBkuaXz6i4DC5mEaIVXdS7Ol4Hk4dyzZnwmYVXc2ZPwKQOIYYIak5OOBjNCQcQImlioFyp12T45Ycnnas4b4EGcEDzVp+CBIujQy90MadPlaMq5lnbQo0k/SiH07dTdrFsp7W/kTw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=haloniitty.fi; spf=pass smtp.mailfrom=haloniitty.fi; dkim=pass (2048-bit key) header.d=haloniitty.fi header.i=@haloniitty.fi header.b=Yj5qMK8F; arc=none smtp.client-ip=77.240.19.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=haloniitty.fi Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=haloniitty.fi DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=haloniitty.fi; s=default; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding: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=PLWVHtXp1su+keqeAZfr5JdA50OHHDttPlQGFKWS0q0=; b=Yj5qMK8Ff40MlGMbZXtV4xxuUa C2ESwpngeeC9mvEVI8EseU+/oubJEKJxV35tYX0+pXK8vjyLS878XglqJ5yFAjKdLNr0/7RdHTdhG x4bYGCsG1anmihKeLrPtSPLsnHciffgIkBAS3RF+RAOfc8SOAf++LtTI420ZWugjvr6NOshL/NCjr LZUSOgUkTjq2M34AYtJSM7b8iN7+xVU0XH6bLt33TLh1cgKqyQ/Hf4B7ml4zS3XSAu2lb/kxQnJMr wNq5D3+kA2hMtbWFIfQR1KxtAIbrg8C40dnYlc+lWIGtQVisNfEAqzPwhyWLyakkRMjZk66/1elPV dKGvQlLQ==; Received: from [194.136.85.206] (port=41242 helo=eldfell) by whm50.louhi.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1rXdXU-0002TR-2b; Wed, 07 Feb 2024 10:44:16 +0200 Date: Wed, 7 Feb 2024 10:44:07 +0200 From: Pekka Paalanen To: Arthur Grillo Cc: Miquel Raynal , =?UTF-8?B?TWHDrXJh?= Canal , Maxime Ripard , Louis Chauvet , Rodrigo Siqueira , Melissa Wen , Haneen Mohammed , Daniel Vetter , Maarten Lankhorst , Thomas Zimmermann , David Airlie , marcheu@google.com, seanpaul@google.com, nicolejadeyee@google.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com Subject: Re: [PATCH 2/2] drm/vkms: Use a simpler composition function Message-ID: <20240207104407.7b06bac2@eldfell> In-Reply-To: References: <20240201-yuv-v1-0-3ca376f27632@bootlin.com> <20240201-yuv-v1-2-3ca376f27632@bootlin.com> <20240202105522.43128e19@eldfell> <20240202102601.70b6d49c@xps-13> <3nofkwzgnf4yva2wfogdbii47ohpi2wm5vp6aijtg3emxyoowt@twyreqz7ai3g> <20240202131322.5471e184@xps-13> <20240202174913.789a9db9@eldfell> <20240202170734.3176dfe4@xps-13> <20240202214527.1d97c881@ferris.localdomain> 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_/7U02RGhYx/VlMaBtD=1CoDj"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - whm50.louhi.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - haloniitty.fi X-Get-Message-Sender-Via: whm50.louhi.net: authenticated_id: pekka.paalanen@haloniitty.fi X-Authenticated-Sender: whm50.louhi.net: pekka.paalanen@haloniitty.fi X-Source: X-Source-Args: X-Source-Dir: --Sig_/7U02RGhYx/VlMaBtD=1CoDj Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Tue, 6 Feb 2024 14:57:48 -0300 Arthur Grillo wrote: > On 02/02/24 16:45, Pekka Paalanen wrote: .. > > Would it be possible to have a standardised benchmark specifically > > for performance rather than correctness, in IGT or where-ever it > > would make sense? Then it would be simple to tell contributors to > > run this and report the numbers before and after. > >=20 > > I would propose this kind of KMS layout: > >=20 > > - CRTC size 3841 x 2161 > > - primary plane, XRGB8888, 3639 x 2161 @ 101,0 > > - overlay A, XBGR2101010, 3033 x 1777 @ 201,199 > > - overlay B, ARGB8888, 1507 x 1400 @ 1800,250 > >=20 > > The sizes and positions are deliberately odd to try to avoid happy > > alignment accidents. The planes are big, which should let the pixel > > operations easily dominate performance measurement. There are > > different pixel formats, both opaque and semi-transparent. There is > > lots of plane overlap. The planes also do not cover the whole CRTC > > leaving the background visible a bit. > >=20 > > There should be two FBs per each plane, flipped alternatingly each > > frame. Writeback should be active. Run this a number of frames, say, > > 100, and measure the kernel CPU time taken. It's supposed to take at > > least several seconds in total. > >=20 > > I think something like this should be the base benchmark. One can > > add more to it, like rotated planes, YUV planes, etc. or switch > > settings on the existing planes. Maybe even FB_DAMAGE_CLIPS. Maybe > > one more overlay that is very tall and thin. > >=20 > > Just an idea, what do you all think? =20 >=20 > Hi Pekka, >=20 > I just finished writing this proposal using IGT. >=20 > I got pretty interesting results: >=20 > The mentioned commit 8356b97906503a02125c8d03c9b88a61ea46a05a took > around 13 seconds. While drm-misc/drm-misc-next took 36 seconds. >=20 > I'm currently bisecting to be certain that the change to the > pixel-by-pixel is the culprit, but I don't see why it wouldn't be. >=20 > I just need to do some final touches on the benchmark code and it > will be ready for revision. Awesome, thank you very much for doing that! pq --Sig_/7U02RGhYx/VlMaBtD=1CoDj Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJQjwWQChkWOYOIONI1/ltBGqqqcFAmXDQtcACgkQI1/ltBGq qqfDMA/+OHdgULaTTkKq/qKGNggOmqKIsJHFC7spImj86x3TGqtux3BPoJx0AjfC DhvbCtp1lB95QdtPxDNn6IOxVLP2OEXwaqYtx7+xh3E8p+Ih4IgxeyDg+1N+jEga h8PEp6nq4oWC86QCv4wfe4q6fXOtS78zsSXwXaJFlc+m9LNmAfHhlfmIlEc5TUFI ZiaPWeRi6e6GbnAlRlMdeUlA24hnDgoDXJRy3ofADb8+zDCL5OCieCjiln3DGjH4 qlwSVt2pi5qW3syELecQIMDfJ6m3n6eAmdaRTiRurkVniO9RFASSR0d7q9OtFHHP KLtzIJmDhk2i8O3dmCrVIZTK4IvOiTadSkLcZLXBct19y0v/Bj3PDcIt1vt4lwpT +lpxOuXs+lKXm5fleoPgW+8w/uwsLxR7JYXJ71EFLVZeFMQVOjxI+H34oivauMew N5pP+RSbaqIDkghCvJ2Ef1kBeUfqmce9G8rip7oPQSYgNNnozczLsXX67o+/VFOB m/w/5853A4kKBwgzXugSYQTA/cmPlGmtJvj6Qy3VMl7jkk13S3rtiodx5SWL2fPP gcZPhIBW2BFJNQjEoRgygL9FkWWyppWs0BkGIm+SjqfQnwqWifBEhdlmPKAzDj+s /kgrM8kx0Z0r5Q874ZwlhCKXk7RrqkbzWCtTsLS9Niyf8ZqZcjE= =x6Do -----END PGP SIGNATURE----- --Sig_/7U02RGhYx/VlMaBtD=1CoDj--