Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1979427rbb; Tue, 27 Feb 2024 07:10:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVPnQvZs8HWqdr7CBIxw3vwT8ah6PKOS/s5UN1/egmH2AatQ53tk5VvIylOGMxVB7G3tiZ8qsWxSaJia3rR8/zKkI9NQUacYKGF4N0zew== X-Google-Smtp-Source: AGHT+IG9ZTrsGs2HjRGUMUBcguu7a/rjUQmRo3y7gvVz/Vper1pb8B6JzNiEs3HyB/jFFN1I6Q6L X-Received: by 2002:a92:cd4a:0:b0:365:3d96:4b98 with SMTP id v10-20020a92cd4a000000b003653d964b98mr9182495ilq.2.1709046613298; Tue, 27 Feb 2024 07:10:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709046613; cv=pass; d=google.com; s=arc-20160816; b=KYUgiCeQqXshbVo7pg/XdnOd8xqqwfZhF1AaiOmzCO5v5Wd3/zXleOopiAb3UrGKNl HAKNuB044vbK8g0gREkuigRn8mnK490xXIynpdoMJtBiikkSJf4hnEu6GG3x4oURyw5g MI6a/MDOiggitqU7e3qAw18nz2zDdMWeNT9HAwJnxzJctWCk1O53vImLphpGEVPFwELf +yu56NQlaJo61msjq5/8/xx9QbEHh/kNIhXGDag1TmTJRIxCqGMSgayQeK2QrWlAeHKa 9NqODEKcifWOUdnD+LRYFH17PUPZvx6w0vr4ogyrwVmorn3zWhNHnQTCeUAFkNbiIHDv Ik2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding: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=aUOCVxfpOI9uiHHy1Cy0BnVynULM022d0cPPHRoVqbw=; fh=pEOvsqHZyKeBaOjoipg1u26T/dNaZ9UU6E/qX0hC/Lo=; b=I+bapI0sIWMLyV3v/2u6iWOWCtQjPNUt/7TPUD2HJ44cr2QQhhyV5TGsB8rVoqwzxR BUvMltpZyDsoI/VLkICL7/GPm/dSEjuHLskGBsSWWYo1P5X25ocq6Kw9RcNLGlQle3x/ bdv8DLO7wgP1XuBTax5If+hDNOHKP2M4SJitSGMfax28wyinTgoP+F0rlmqnLBPrpnem TMTzk04Wys9Q1d5wVzsomSzROwCZ93x8Vjw80IIbbNTLakusm70+Jgu8PoogcslVp2sw eUBMoCX9p/MSXxYsvR7tJTYaJmzH1++mo1Uk36NJFtaTxOCNFpx3PvUR7LJxg9rysYsx Ao8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=c0yxvVGn; 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-83467-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83467-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id w62-20020a626241000000b006e4c395c9d2si5554126pfb.77.2024.02.27.07.10.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 07:10:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83467-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=@bootlin.com header.s=gm1 header.b=c0yxvVGn; 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-83467-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83467-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A5E2E2890E1 for ; Tue, 27 Feb 2024 15:06:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0483C14EFCE; Tue, 27 Feb 2024 15:02:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="c0yxvVGn" Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) (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 3DA8314AD06 for ; Tue, 27 Feb 2024 15:02:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709046143; cv=none; b=i+T54Gyo8Rzy2xhHEb3ZtPS5sBVblPJQNugToKoNiyekaEcx8YUINPKVo8Jeg/bTjEeVAxBGqzqKL2gDByqQCcGEDH+0lTzLNEBc+zQdftQ7nR4x6owNl6OWdxHnbKalTMfeDj31fxpzYMbWExYrGPsZ9z9zahTA0o+9m6eQBbs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709046143; c=relaxed/simple; bh=6Sj+Oj6kjb2jhgnpvZOrjdYYd/X2xH/aPuZPT6+qN9I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=r1xxkkBj4fSMaWrRUcDOuKxSMv9P3n/GgzinrGvSL8/gkDuVxD1PNUo60Unh6PVPfUn1KhD4rAEkEhl9lDTma04Z2imDy8GMuAxfYpRWLlLkj1ZWTi8mcabhIG43vwcTztVAdznsoRUN2E8gLRvUSeaCNR9/JE2LAxUtlSeJID0= 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=c0yxvVGn; arc=none smtp.client-ip=217.70.183.198 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 C54CDC000F; Tue, 27 Feb 2024 15:02:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1709046133; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aUOCVxfpOI9uiHHy1Cy0BnVynULM022d0cPPHRoVqbw=; b=c0yxvVGn99xoQcWd5VVOwbG+XxEzwO3fuHzxkATT/dylpI9GjiWsbZ0UCJimKTPH1ow6OF HL6zNPACnOGa3dZJjYRkRpfGyFOBHx0Rz2KDVvn3vccHuOIwiA5SnD1uWWglxSJKrIJYVX 8UJ2Kqglz/Pv0f+jAjrtaM3YcJXgu86e5xIbiwVibz/hxN1TRI8TDeGSWZ/oFdoQd9FgWZ atPWxkiuyWx+Au40C2o+vxJjzP58kSwoquvZLEVIxGGvA0uVzJ6KmU+m5RZCQEPFp2rcSB O5GKBnZgIPAWoZ+vuJ6IOJz9qQ9R+EAMxhga8l5AQoO3d+ZNLxu9tFItJvRf2A== Date: Tue, 27 Feb 2024 16:02:10 +0100 From: Louis Chauvet To: Arthur Grillo Cc: Rodrigo Siqueira , Melissa Wen , =?iso-8859-1?Q?Ma=EDra?= Canal , Haneen Mohammed , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Jonathan Corbet , pekka.paalanen@haloniitty.fi, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, jeremie.dautheribes@bootlin.com, miquel.raynal@bootlin.com, thomas.petazzoni@bootlin.com, seanpaul@google.com, marcheu@google.com, nicolejadeyee@google.com Subject: Re: [PATCH v3 3/9] drm/vkms: write/update the documentation for pixel conversion and pixel write functions Message-ID: Mail-Followup-To: Arthur Grillo , Rodrigo Siqueira , Melissa Wen , =?iso-8859-1?Q?Ma=EDra?= Canal , Haneen Mohammed , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Jonathan Corbet , pekka.paalanen@haloniitty.fi, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, jeremie.dautheribes@bootlin.com, miquel.raynal@bootlin.com, thomas.petazzoni@bootlin.com, seanpaul@google.com, marcheu@google.com, nicolejadeyee@google.com References: <20240226-yuv-v3-0-ff662f0994db@bootlin.com> <20240226-yuv-v3-3-ff662f0994db@bootlin.com> <406988be-48a4-4762-9c03-7a27c8e7b91e@riseup.net> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <406988be-48a4-4762-9c03-7a27c8e7b91e@riseup.net> X-GND-Sasl: louis.chauvet@bootlin.com Le 26/02/24 - 10:07, Arthur Grillo a ?crit : > > > On 26/02/24 05:46, Louis Chauvet wrote: > > Add some documentation on pixel conversion functions. > > Update of outdated comments for pixel_write functions. > > > > Signed-off-by: Louis Chauvet > > --- > > drivers/gpu/drm/vkms/vkms_composer.c | 4 +++ > > drivers/gpu/drm/vkms/vkms_drv.h | 13 ++++++++ > > drivers/gpu/drm/vkms/vkms_formats.c | 58 ++++++++++++++++++++++++++++++------ > > 3 files changed, 66 insertions(+), 9 deletions(-) > > > > diff --git a/drivers/gpu/drm/vkms/vkms_composer.c b/drivers/gpu/drm/vkms/vkms_composer.c > > index c6d9b4a65809..5b341222d239 100644 > > --- a/drivers/gpu/drm/vkms/vkms_composer.c > > +++ b/drivers/gpu/drm/vkms/vkms_composer.c > > @@ -189,6 +189,10 @@ static void blend(struct vkms_writeback_job *wb, > > > > size_t crtc_y_limit = crtc_state->base.crtc->mode.vdisplay; > > > > + /* > > + * The planes are composed line-by-line. It is a necessary complexity to avoid poor > > + * blending performance. > > At this moment in the series, you have not yet reintroduced the > line-by-line algorithm yet. Maybe it's better to add this comment when > you do. Is it better with this: /* * The planes are composed line-by-line to avoid heavy memory usage. It is a necessary * complexity to avoid poor blending performance. * * The function vkms_compose_row is used to read a line, pixel-by-pixel, into the staging * buffer. */ > Also, I think it's good to give more context, like: > "The planes are composed line-by-line, instead of pixel-by-pixel" And after PATCHv3 5/9: /* * The planes are composed line-by-line to avoid heavy memory usage. It is a necessary * complexity to avoid poor blending performance. * * The function pixel_read_line callback is used to read a line, using an efficient * algorithm for a specific format, into the staging buffer. */ Kind regards, Louis Chauvet > Best Regards, > ~Arthur Grillo [...] -- Louis Chauvet, Bootlin Embedded Linux and Kernel engineering https://bootlin.com