Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp79453ybg; Sun, 31 May 2020 17:29:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPQPqExFOEevK2PotQcqqLPUKnF9ie7R2AXwEIcxdpLzorzoxjABfCNvm6vEWDK0pbmfFI X-Received: by 2002:a05:6402:c0e:: with SMTP id co14mr18742809edb.177.1590971388436; Sun, 31 May 2020 17:29:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590971388; cv=none; d=google.com; s=arc-20160816; b=ONSPWK4vUCZKQkqMtnMYqNVATaldclq6hvlWvpIEHqQHl2gW+DMgCyzBi4MiXK1XHq 8+27oe+mtg+p0hgKKbgqth6c0YlDl+qJbD8GuKL7iS4XRFbUN+GzKx3iRlz//7xeE4se W1U2HlfD/1AcL3dQyNfsoxpL4yPR5s+7+oc2BKQAjcnoCRquuayxk7vC2oGvOMX7L9o9 ACRLcFChNW3tdJ/yQypY9ym/q03ydpLmTDssuU0XXeEdS3/miITMbtiKb+zRlZlWZpMu O5o13FBG90YoGRYMS1nmVTiSCQH+jdRpIVkAE+WotDjwVvcmR3S49WQfEkNT42e8bmmp auNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Kz5ZwOEUDJkALcMr7ODolUJ33dao0Jqn48aQY1x+fvo=; b=aVy2xfVb2WTO9tZTA1D2fYdMsl0oGhy9MCY1gjzg1SQ8ZAofCwjqorNZ//jgmpxXg7 duU7obHdp4XgfU7YtOm7NOl+TL6a5PQWfk3Z5/5gpLwmM5aYafOKTPKT1MFKJApCO+0f GonhknAKlbIhSAYUUZ3aMMat1fAv/+sclRyJLurbkBnTW5VKZBM+jj5zb2CAnJbZoFdj e9XzdrxedrlVoaJ3mG/IAa8NvHccDEiq+9hbMJ8PzXwv/aqTdADzy2M1jY8RGB8vI9pJ T0wIwv3HxQQc5MOstCKqGYziaGLK5IQzgNOPqQYQnRjMqLXkNCuLxXnS+j01Y9QRblFp xjMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JMtde9ZV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c18si9168526edt.202.2020.05.31.17.29.10; Sun, 31 May 2020 17:29:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JMtde9ZV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728463AbgFAAZ1 (ORCPT + 99 others); Sun, 31 May 2020 20:25:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728359AbgFAAZ0 (ORCPT ); Sun, 31 May 2020 20:25:26 -0400 Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8CADC061A0E for ; Sun, 31 May 2020 17:25:26 -0700 (PDT) Received: by mail-qk1-x741.google.com with SMTP id w1so7601084qkw.5 for ; Sun, 31 May 2020 17:25:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Kz5ZwOEUDJkALcMr7ODolUJ33dao0Jqn48aQY1x+fvo=; b=JMtde9ZVi4Xh+zrV7qA5+DDbcshUfkjeaSlLaG92QV5ZAvJ8Imr4JILwl+CrsOWBh5 E8ma1CTQiCghwl/SMoUwdhLqAXPDlHwrnYfJLYSVyn90iZp9IzM5xRcTTIuVGHrKDLAo W8nYA/KDkkR//e3DgGfYye+4Ikkq82u3676C5sX1e8iBKpN3mYfbrwN1TU2Nos/DVoLU APijplTJSSzdEIgqvXKcaHvcs/LGP4OUXfB0W0hyarrKWsMyPunFty+7Q2YbfU+4dG2H kpQZZUZDXkr0rmDKMhhoFu8lfCR/eL1CXt+VXqjepkCjBN0j82X2U71AVyMwxAZ5zs9K USBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Kz5ZwOEUDJkALcMr7ODolUJ33dao0Jqn48aQY1x+fvo=; b=AFJcjw4x7wciS232C0fmgCC+52W2v9bO01SKvQBRcY3DuekxJtDZHGJBynn9oUvXKj EDtDcVYll1wIQElFYnIKvUaDOmYY2bHZOyFybw4ehIQvHLrGbiJ1nVILCuaIZfpUMIFo mHX/CCBMgb1xAlngCv2hs/c2TtudTR50eY+WWUECteO/wB9lph406appGXlmNB1mQ/9L BXX/ub9FBXxbUR/aCTeGnX4OKm/3kr0rW02vNehbUDRTfgqzYZGav2d4lmX6X/rY8+8d RrW8R+xtekrbJwWuRMktfv5Ua+ModUPOAOsGM9KtGbxdzctH/7ghmE1JZKKRkv5oIvgN cCwA== X-Gm-Message-State: AOAM533NaYUKgm/gy7Dg8Pk9FqS3yZYpt/57w5p0jlBtBWU4T2iiSZSp 7XE7czrHC3vWmLRs0c6hR43+d0OY X-Received: by 2002:a37:ef08:: with SMTP id j8mr17850209qkk.442.1590971125701; Sun, 31 May 2020 17:25:25 -0700 (PDT) Received: from smtp.gmail.com (CPE9050ca2539f3-CM9050ca2539f0.cpe.net.cable.rogers.com. [99.241.37.211]) by smtp.gmail.com with ESMTPSA id p16sm11089868qkg.63.2020.05.31.17.25.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 May 2020 17:25:24 -0700 (PDT) Date: Sun, 31 May 2020 20:25:20 -0400 From: Rodrigo Siqueira To: Emil Velikov Cc: Sidong Yang , Daniel Vetter , Haneen Mohammed , David Airlie , "Linux-Kernel@Vger. Kernel. Org" , ML dri-devel Subject: Re: [PATCH] drm/vkms: Optimize compute_crc(), blend() Message-ID: <20200601002520.hajvtpefi7yzvmuq@smtp.gmail.com> References: <20200531131237.24781-1-realwakka@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="uqybjdb5ptkemz4z" Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --uqybjdb5ptkemz4z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, First of all, thanks a lot for all your patch. And thanks Emil for your feedback. I have a suggestion here: Emil: Could you give me your Acked-by or maybe Reviewed-by for the writeback series? With that, I can finally apply the series. Sidong: Secondly, after applying the writeback series, I would suggest you to understand Emil's comments (he already provides the link) and prepare a new patch based on that. Before you submit your patch, I recommend you to test it with https://patchwork.freedesktop.org/series/68352/ and kms_flip. How about that? Best Regards On 05/31, Emil Velikov wrote: > On Sun, 31 May 2020 at 14:12, Sidong Yang wrote: > > > > Optimize looping pixels in compute_crc() and blend(). Calculate > > src_offset in start of looping horizontally and increase it. > > It's better than calculating in every pixels. > > > When you say "optimize" have you observed any actual benefits of the > patch - be that smaller binary, faster execution time, etc? > If there are - mentioned them in the commit message. Otherwise, it > doesn't optimise anything. >=20 > A while back, I've suggested something similar [1] mostly for cosmetic > purposes - doubt there's much benefits beyond that. >=20 > HTH > -Emil > [1] https://patchwork.freedesktop.org/patch/365177/#comment_674314 --=20 Rodrigo Siqueira https://siqueira.tech --uqybjdb5ptkemz4z Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE4tZ+ii1mjMCMQbfkWJzP/comvP8FAl7USuoACgkQWJzP/com vP9qrRAAnB7QXjC0la92oJUZ8yyl0o/C442cO+1HhwiRqrbRGs5Vs87vtzgZ0mDG He5++yIGDNbnPp7eGQSa+9MVb3+/jmfzg7p+WVGLbxSZpQcO4ubR1cbaNVUctt8v HboNRzPGulJgkky3srDRnGuVAc+2Vtq6SvlwqlK/SyB9eQIBT7EpL7Vw8RFL89zW g9IwhXur7wQGkaqvPLgIqJgguGhVvHE++m9LcgMF8+oYWX9VlTkpfieO2YT9t+TO YUqO2Qu/N6xPmcUXYEePXPrkktj+Sv/BREO8PyFIH4WY4o21ztWQ2LAuVb6elpbC dL0F9JZILPZ96ScsjFErf/NqLXSThKw+S5JkKGYRVnelmf8f5QoC060CHQyDF55x Uh5ULTbGSE4HmAotJUfOhKsxvBzalQnMrUdaxmNPwIaXd0eLQ1pqpwHPxcy+ndHz /6LXNTAZiCSDSMBvZ9k8+zJ2blqmpbjo3cqXozC/4pqaZ3zCnDcUtqlpDZlzs34w U8Nlv1/cdYg5ucWXHATqMoafj1J2PhYe4Z9lLXtdmAH2eDbiapn1ahdr58ATs7A1 BAuzzPMUQdqM2azwjzEh/qD06mVKEk8POtySyRjmKrOdBj8cX11AMpL+3obEQWJA TDR1PX1KRXexuLe8dgwx4iwV6e0yL+J+NMxFn22d4xxvA28cpm4= =cya/ -----END PGP SIGNATURE----- --uqybjdb5ptkemz4z--