Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp206647lqo; Thu, 16 May 2024 04:07:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUIlYFZRv4qpPWL6/HUegSHDhmQAqKsl043Crrx6nbJRE14X8xcZh0UCzHf4+8lcqz8lmHfbynDfDkMG9u8YFOyCXS2vSRQY3S9h6V5/g== X-Google-Smtp-Source: AGHT+IEkXMzn2LTb2glYmuYn95Z0iLnaQF+IN3IYx9koQ3suaTQgmfkFKc0xVxEONP/z/tM69zGS X-Received: by 2002:a05:620a:1a8c:b0:792:f467:6d40 with SMTP id af79cd13be357-792f4676daemr1053171885a.17.1715857679412; Thu, 16 May 2024 04:07:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715857679; cv=pass; d=google.com; s=arc-20160816; b=M7DvvZ4bV5KwdBglvo8BEMqtLzsyxtfMfbYOx23SAVRPqLtivLuzILx8W/zz/dejgD LmP+tR1A4hMuFrU5RovgUWvz0s/jkni+1XeDSAdkti8TOsTdNdPNz84mCpZlBI8aWyTn XC2e/jERe8Rurp8sJoUkDYCTmEUItU2zn0PMFlmDU+v0rAqsh9U8m/JKeCgJ+/7yNTit cG1eB93bk6o714UGZLP9VnD/Ge81lsGTU9mYo0k8qRfKTYwr80FTiKOKZnLE9GiBeqf3 8gj3md6SeEYL6wIFNOoEWlNJgFxTrG8pd3lW8NK3aFlXi6iqDriF2y65jFnDy2CP4kM7 zhLw== 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=mPzwo8GURkKv057NaSVRyjsaXMP54tiK1Z3Jjq48Yh8=; fh=mTFm2gVqFRavgld8PVuRZekW3TVju3Nz/cfdabIgU9c=; b=xSvrTwZkahqQM1ewX9Q/w2RucgoKIYCQpn7l8F6wBgHDsuflCt0Ra0N1Hn5mmlgioV v/u2arBKziIIFHNZVlcke5adxczcH0eW+g9OwVoIEgTw1D3it/Tb1DBQZCSgOd2MBbv8 EfLDXlqh6dyi9pjdI3fADi0h584RElvLU0AmeBC4mt9sd8PT05SPFQ70fqmeo5HxziZx tet+wxUY47Dy1VeX8qIQO80VYcBw3lYAR65YYmMVQSMJr/zvZtN78W2Hygzs2HXGpXmd Dk9jJmd3M3Bs2vISEQtlI5HtdJuH0KI8Imrj82GUiOQwZf/xFif8VedVj2gMt4owNjlB KLIw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=BkWzfcQ7; 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-180928-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180928-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df8f159c0si156924101cf.808.2024.05.16.04.07.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 04:07:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180928-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=BkWzfcQ7; 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-180928-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180928-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id ED0591C22A4B for ; Thu, 16 May 2024 11:07:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E1AA9145356; Thu, 16 May 2024 11:07:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="BkWzfcQ7" 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 8915D143747 for ; Thu, 16 May 2024 11:07:50 +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=1715857673; cv=none; b=sSGC/lIpwIVKgKyfmCfNuk4ljo16ms/PlGnQ4vZ5ID0Xq0XbUFslkc51ek9UYjTwP0pAwnqH6DQhouF//nEhJBdpAGbv+Pu4pu4dwzuSsRW12MBTEfViIajzayMoLswYuXv7C2hNl2DT0KcpwWghBiNX1dbih2FquZztjv+kRM4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715857673; c=relaxed/simple; bh=9gqLELpHR2tt/0FJipOBxt4jbmFVHB33Z58NxCkuqmo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ox4ghR7mmU4FxndY1/zvSYVIV0IH6agQoddJxQdo/Bn38LB8K4EaVkSrk6MLKQhHyNRYn+IUFUUFsJVy+usXqcalGb50SPsWXHaXkCyvTzf1GPFe+xndpszx0D42RPKXyDZHoNZQj/6mAVox/x1eijKOBlCY5TAg9Ku1EYaZPw0= 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=BkWzfcQ7; 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 4B1ECE0003; Thu, 16 May 2024 11:07:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1715857662; 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=mPzwo8GURkKv057NaSVRyjsaXMP54tiK1Z3Jjq48Yh8=; b=BkWzfcQ7jwfOAqnwEdzMCpV9fr07ChPRZSb7kTF/ShveC6Dx+b9FkN0yLPVQN3cfp+LBeK zSXaZ2OSQHX/Cutzewl1nFTcmBEx9Wjae8YPyZA6jSYOzXNPTtAg2W7HKOWiUk8h8dhO2e RBb9ur7Pk80QXoKNTVB0888jsFMaO9OyecR7Aku7dMpewKrKseU6h6g8XScCIiXR+95hd0 P709tiRf4nf7+V/ocl/QqXM9Ou8y2EyUwDh1LoGnlQaq1XJI/c3Vf/D/a0yaCqaQPg7/h0 lURTKtaMZAcWLEiBK0gbp6CBJHJxoA2tPbzO8TcamimWXhMlVLBPag5scD003w== Date: Thu, 16 May 2024 13:07:36 +0200 From: Louis Chauvet To: =?iso-8859-1?Q?Ma=EDra?= Canal Cc: Rodrigo Siqueira , Melissa Wen , Haneen Mohammed , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , rdunlap@infradead.org, arthurgrillo@riseup.net, 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 v7 11/17] drm/vkms: Remove useless drm_rotation_simplify Message-ID: Mail-Followup-To: =?iso-8859-1?Q?Ma=EDra?= Canal , Rodrigo Siqueira , Melissa Wen , Haneen Mohammed , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , rdunlap@infradead.org, arthurgrillo@riseup.net, 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: <20240513-yuv-v7-0-380e9ffec502@bootlin.com> <20240513-yuv-v7-11-380e9ffec502@bootlin.com> 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: X-GND-Sasl: louis.chauvet@bootlin.com Le 16/05/24 - 07:43, Ma?ra Canal a ?crit : > Hi Louis, > > On 5/13/24 04:50, Louis Chauvet wrote: > > As all the rotation are now supported by VKMS, this simplification does > > not make sense anymore, so remove it. > > > > Signed-off-by: Louis Chauvet > > I'd like to push all commits up to this point to drm-misc-next. Do you > see a problem with it? Reason: I'd like Melissa to take a look at the > YUV patches and patches 1 to 11 fix several composition errors. > > Let me know your thoughts about it. Hi, This version is missing performance numbers and one fix from Pekka, so please don't merge v7. I will push a v8 today (if I have the time to fetch all the performance numbers), with the performance numbers and the fix. Thanks, Louis Chauvet > Best Regards, > - Ma?ra > > > --- > > drivers/gpu/drm/vkms/vkms_plane.c | 7 +------ > > 1 file changed, 1 insertion(+), 6 deletions(-) > > > > diff --git a/drivers/gpu/drm/vkms/vkms_plane.c b/drivers/gpu/drm/vkms/vkms_plane.c > > index 8875bed76410..5a028ee96c91 100644 > > --- a/drivers/gpu/drm/vkms/vkms_plane.c > > +++ b/drivers/gpu/drm/vkms/vkms_plane.c > > @@ -115,12 +115,7 @@ static void vkms_plane_atomic_update(struct drm_plane *plane, > > frame_info->fb = fb; > > memcpy(&frame_info->map, &shadow_plane_state->data, sizeof(frame_info->map)); > > drm_framebuffer_get(frame_info->fb); > > - frame_info->rotation = drm_rotation_simplify(new_state->rotation, DRM_MODE_ROTATE_0 | > > - DRM_MODE_ROTATE_90 | > > - DRM_MODE_ROTATE_270 | > > - DRM_MODE_REFLECT_X | > > - DRM_MODE_REFLECT_Y); > > - > > + frame_info->rotation = new_state->rotation; > > > > vkms_plane_state->pixel_read_line = get_pixel_read_line_function(fmt); > > } > > -- Louis Chauvet, Bootlin Embedded Linux and Kernel engineering https://bootlin.com