Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp403506rdh; Wed, 7 Feb 2024 08:03:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IHKumDy1EJ3NO0BpqgFhXs2bCnyXpIwwbHID/izhD1zJW7hadpf/07WHFOgmm7Hgq1mE9ko X-Received: by 2002:a05:651c:211c:b0:2d0:c176:ebcc with SMTP id a28-20020a05651c211c00b002d0c176ebccmr4590287ljq.18.1707321823287; Wed, 07 Feb 2024 08:03:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707321823; cv=pass; d=google.com; s=arc-20160816; b=BCRqYApp5ZUDKwcb6m7L/xeh6sw5xUrFhTPFkrUZiWnvb8OVG5eL0cK90tcTyhBK6m 1GUwV2V6JRgRRCeZltioHKxD/7lFL/Y85yvKb0R0KgNVITvEktRt0maCHsNq76zMEKxm tjgRLpTLLNs6t/kwoOXCnmokVX+oB+A+u/26yBJJOxQ/OMOCpZZw+iz2skZzF5/FX9Pr z7RfpOtXCKwmYNglxDZz3UqoDhNlGYXyzDInsdmf42ivVhmfr+Pi8ZCckRM+c1JvU17M VTlOH6jseRouYRkI52IaPzfFWA9f/GZUJSdxh/YSiNdaQB/btgF+DZW38E+1WqgZC/PD YKRw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=DMJ2m5Th6qWplrx0t7J61CsGhja3NucIGbS+faRx7/A=; fh=9zpG8EDLQqiWIz+f9YaOKib6PAaVxfwn2R9Zb6gqIVY=; b=j35sDSprly34EVS/RSZ6sFFY5iM1Lk3XprK3X7itqmawn2hcdk8UiotW8mjvBLk3eJ Qzk2SBBUnjq8a2rHlnFxKz5yTbNZqIiixBTk7T2Qm/9YyH4jKTzjBxi8ryhtFf2KvNl1 i0E0k5e2aIG7e2duxTqZSNp1eG+JD7gXcj1H1G3Hk7GZdWQD3UT7dVYe2Yqtx99qiPND AFIAJA7iOHCCQ+KKubjnxGAKpbMtMMEgTaycykG9Hw9ozxLKUmaBbEQ1DTFd2gECu+F0 gV4JXBUexM7DAwdo0YFAbz2zM+1aClOoCi2p6X8XsBxFjraQt5Ze6yTP1+oc5GdvZJ8v T6hw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=EMZwGDA6; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-56748-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56748-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=2; AJvYcCWeudULXSctf1RpUjMS9rM2fYVoEa11maOnkyICe/KtFSibYCSk3ctnZu1pAWTEW81xhBgv/GSM1ZpkAAamCniexxJE3L/jXcL9VzqUSw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id g12-20020aa7c58c000000b0056024727b9asi1010664edq.28.2024.02.07.08.03.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 08:03:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56748-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=EMZwGDA6; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-56748-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56748-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.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 am.mirrors.kernel.org (Postfix) with ESMTPS id E7E681F280F9 for ; Wed, 7 Feb 2024 16:03:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8EBBF8005E; Wed, 7 Feb 2024 16:03:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="EMZwGDA6" Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (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 0033780045 for ; Wed, 7 Feb 2024 16:03:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.196 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707321815; cv=none; b=hEsuJLmIXJoh0GLyK4iJ6WB+usUbsQwq1RuDmqernwf18V6BPYS4qSwsEZSl5agVNaQWA8gvSqA3/N1ia92/1zqgpUPwLDK+dl214ThAvDTDokaKuCtgV2hvzp95Ln25QkmQZymwvpkco4Gp930sG8ppgAgyC2tOT785dml27J0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707321815; c=relaxed/simple; bh=PPznGmhkXlUq37eNefw13UOZ4Md4/hqYu3L9ybT6LHw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LCeltmPScil1QVr1gXDmUrHE6HkbG4M7MPWsM7b/f0e5EMfa7+I8swbIYWT0uSIHywBBA6FLQeBIb2n/69z3an0alV00bZSickEEWv61UFkCJmuhEzv2YR6uxpXGR14KZnSktw+jDLQ27kv7jq8YjyW9nBYQOVxSnaNsVii5hog= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=EMZwGDA6; arc=none smtp.client-ip=217.70.183.196 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 71B90E0003; Wed, 7 Feb 2024 16:03:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1707321808; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=DMJ2m5Th6qWplrx0t7J61CsGhja3NucIGbS+faRx7/A=; b=EMZwGDA6xV2r8cVWsFXSq1IiR7L2EciyAfg1wFvIjlXguHqiOjtrEAuJ361956hIiDzjlY U6pV95ybBs2RWWLJeiZE0qntjU/v5WWuzIWumx1fxOE5PWV2+7l88ypMx1qfrbrDgWllLT gXtiijL8UBi5/z3E1gWHUJitUullmH63jmuLbmH9I+L0Y11OQ+f6NfEH/cddjF2ZvAuhyR 9EpM0iK8bWEf7MmVPwfpMT4O9YW20gwbhtOI2kr8Z8yTxcgMo7juZwb843+FLT4EW3c9Ov CE7Kv1jxMOE82e8+7dgmMc1FhYhCRCXTSljAkjoS1w+M+VaiKkscNZrTajVVBQ== Date: Wed, 7 Feb 2024 17:03:26 +0100 From: Louis Chauvet To: Pekka Paalanen Cc: Arthur Grillo , Miquel Raynal , =?iso-8859-1?Q?Ma=EDra?= Canal , Maxime Ripard , 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: Mail-Followup-To: Pekka Paalanen , Arthur Grillo , Miquel Raynal , =?iso-8859-1?Q?Ma=EDra?= Canal , Maxime Ripard , 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 References: <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> <20240207104407.7b06bac2@eldfell> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240207104407.7b06bac2@eldfell> X-GND-Sasl: louis.chauvet@bootlin.com Hello Pekka, Arthur, [...] > > > 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. > > > > > > I would propose this kind of KMS layout: > > > > > > - 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 > > > > > > 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. > > > > > > 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. > > > > > > 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. > > > > > > Just an idea, what do you all think? > > > > Hi Pekka, > > > > I just finished writing this proposal using IGT. > > > > I got pretty interesting results: > > > > The mentioned commit 8356b97906503a02125c8d03c9b88a61ea46a05a took > > around 13 seconds. While drm-misc/drm-misc-next took 36 seconds. > > > > 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. > > > > 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 I also think it's a good benchmarks for classic configurations. The odd size is a very nice idea to verify the corner cases of line-by-line algorithms. When this is ready, please share the test, so I can check if my patch is as performant as before. Thank you for this work. Have a nice day, Louis Chauvet -- Louis Chauvet, Bootlin Embedded Linux and Kernel engineering https://bootlin.com