Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2107290rbb; Tue, 27 Feb 2024 10:47:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV0JW/vkp/8wdvT8jL5EhEKH67kUGtKu9YSmQ3XrnyeobFGd4ZzqV6jP2Hp9XqXcQf62DmAIFLVa1rHYUw/ofLqpM5gY+yHcXwHf/OSCg== X-Google-Smtp-Source: AGHT+IFDMUb1UrYm2vzOdtHoB0D5BDyNzu27S0ij9MTOt7yrjpXaSvVq1Udkl8pFD3pg+tPO5lGV X-Received: by 2002:a17:906:f0c5:b0:a43:9e1f:240e with SMTP id dk5-20020a170906f0c500b00a439e1f240emr2200311ejb.60.1709059653924; Tue, 27 Feb 2024 10:47:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709059653; cv=pass; d=google.com; s=arc-20160816; b=VQA5L3r+p4l13a91yZ3gzAnngQ4GehvD7OaN8TZZXKK9xcwgJixWj8rYerKUhCttyZ 72ThUxjpanjrjXeMc5U52QGePxOZqRkgBvFoJiLSAH6OYJpe8qtg/BcmXCqTvp/d2FvK yFupGFB9BkdYy+wtKnQNBqgPqTgmnWAe4vjq9p1EXWlRQ9DoKnF/B8hoWf1PnAOIgqkC nA9grk7M4KDKUnyL3JnFqqm9InN9d8oQP4JECvmkHQuwQaoq5omxKloQWH3EOST61OjY odpfTT+SRdLAR9tqZAzRZOjYhJLFnAwvNmY5djOP1mNqdJx+lFgdvQmapSZZIbsrzfbo YzEA== 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:references:to :content-language:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=0731CbtzdkPI7c2S3cSlevSpOGh1CpbSlexdjApMqOo=; fh=wJmM4SmlfcOUFct1zMM5xR8003FmzrhnYXR3W1VqZCo=; b=nGrzfyux0xIpp45aF6e8Aq9nEevp/NPnPYOmxbe6MV6CzajgNxglWJFMCtJvzkSZSo XHKXasP8UyWsMEd+/R/BpQiX9IPiEA5vEjyCrPxqwwJJH4ZhrggN2fbYbPdrD1JZOjbP vKCcBQ4g7FwgYSV2TnGMIHiOCyAx772fl5WjROgvAkBZqhloSfGMXwCyi+FJSoBf/mR7 IhOo0joGAckwXuhUWDP04dqj2ZIBfz//HRt2kN2F0n59yPTRwPzBt8Za9q1D5qGYNR33 XQxudx1GgOMrVlKWdulkQhoHsZy8mL+P+YB+cnbg9DbvMWRduy6nVli5WzQndQOItsKa R5PQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=tZatd4uG; 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-83856-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83856-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id g21-20020a170906199500b00a3f4b35cc31si954700ejd.132.2024.02.27.10.47.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 10:47:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83856-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=@riseup.net header.s=squak header.b=tZatd4uG; 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-83856-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83856-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 am.mirrors.kernel.org (Postfix) with ESMTPS id AB96E1F22458 for ; Tue, 27 Feb 2024 18:47:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C09B74F200; Tue, 27 Feb 2024 18:47:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=riseup.net header.i=@riseup.net header.b="tZatd4uG" Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) (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 4E1E71F61D for ; Tue, 27 Feb 2024 18:47:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.252.153.129 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709059647; cv=none; b=fl+M7psXF4pSBVzXqw70e6VHFzIfvaAc2zzWJmxDwVU3lpHszLAPCVEraWUDV3ZVPQHcW2rskKQTPxhd6mlPdMb3WcM+BZQT9V+hUnWQ78MGLjIKoUBXvOIjwcLPAbslPkCt3egC9PGskzimZ/6mc6j9OYbLLy75NjMAa9BLUVY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709059647; c=relaxed/simple; bh=OCLERH5BUNWNqVAWRAIL2bEHXqesBK/d6BgnZQmH44Y=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=ajiMZ2Re+SUygsI/WZSUDAkF34AA+X1CtuZl/TGEzj+fmEV8saFj7M+BeaedKV9bLwv0KbYVZY657fZvFdPKX7V7LQnxytILS4A8opR7J1Rd2lmN0VAdBZEzctO4WgxRjc8wOZODMlXnMchPaMrKqflhtrvgZOYjSeuIgrzWa90= 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=tZatd4uG; arc=none smtp.client-ip=198.252.153.129 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 mx1.riseup.net (Postfix) with ESMTPS id 4TkmgV1bw0zDqZN; Tue, 27 Feb 2024 18:47:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1709059638; bh=OCLERH5BUNWNqVAWRAIL2bEHXqesBK/d6BgnZQmH44Y=; h=Date:Subject:To:References:From:In-Reply-To:From; b=tZatd4uGVm2YCRCBLMi8R93U94cS4xMt6Tr0tv1rUgnjpt08yWOu9QkJu0fv1F/Of x+IOUwY9RvRuyw8wFgzxvyRS2Fh02r+AQ99roFn/R0Qptyxvgx6Kep2eSaSHEbdsTG 21zlNb4GepAfgsCyp8mQogVleFOtaCx80+IFy3PA= X-Riseup-User-ID: 4842AE2A53495A92D3F8DE93B2A9FBC67B6744533455E55C8FD1A06C80127020 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews01-sea.riseup.net (Postfix) with ESMTPSA id 4TkmgM5zShzJpbF; Tue, 27 Feb 2024 18:47:11 +0000 (UTC) Message-ID: <592e5da7-7aac-4735-ae8f-625402e381ae@riseup.net> Date: Tue, 27 Feb 2024 15:47:08 -0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH v3 3/9] drm/vkms: write/update the documentation for pixel conversion and pixel write functions Content-Language: en-US To: 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 , 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> From: Arthur Grillo In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 27/02/24 12:02, Louis Chauvet wrote: > 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. > */ > Hi, This looks good to me. Best Regards, ~Arthur Grillo > Kind regards, > Louis Chauvet > >> Best Regards, >> ~Arthur Grillo > > [...] >