Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2530678ybg; Fri, 31 Jul 2020 02:31:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEy5U7SuWvvb6AkfNIRVoJcglc+tEg37Q40l2wrUYgO4u2wjeYISH81DeiIAye8tflmBMi X-Received: by 2002:aa7:c2c6:: with SMTP id m6mr3038265edp.118.1596187906448; Fri, 31 Jul 2020 02:31:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596187906; cv=none; d=google.com; s=arc-20160816; b=PbXJ1IB7b0kxYSU9EgQM3eh1ehb84yXA3fD+pv6h2X/nDN7Hz5fZl4qzx8s9TytDGW o1XOR0DAsbtVITan3/Yh9+rIH57W7qHdO442q2ZIXahfZAQoOy1P8vMzFXIdwHUNo3vN LCj3H1iGv8hs9dmSZb4zv2CMvBQ4if/HUFm+2hDOSfs2ZEJ71eiGyMY3i6XS8hHSw7JH mcbqggx77ZlWQJ31TuxNxR7uGcWtl+98+lYlFVAt64FhKpI/vYVtKNS+EcKTJ21q9p2/ TqpXxs29Su7Jon2hGEGNR0y9Eo4KjFnY1+qUU/MActjg6JqAxxGHQ+3pp1wW4pLHMKQo 5W7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:from :date:dkim-signature; bh=z+0/zjHSuK4YpkaJOtgZNG0mGoncCgYB5r2C7+VJ3D4=; b=xfIfUd8jIM/nt0f+d33abT/791/A04LukPKZw/e3MjPnSASDW9wNrUvIt6NFUxUKwJ xWFQmED/neZrAmdOGgZRLYYEyXq22uJCMKFP8PStLddPjW/5cfonNhR67k52X5t/7bKs U1D/W73PE+4APlqGxwAuerqDVqxG2FSDR/8vqRAQjGGVZov4aJolGOZczkFGai2ioMah G6nI5ivp46/plMlN8NUNKSa/DNuVIsR65k+eamilKiicdf0MUZKrXFSfOQ0KaZkibSUs nF6SZ0BAK/OoA/Mbw2keu0vlFy+uT6wS6p4L40zZGIoxxbcPfsn+9jQNeH9Hooir7PlQ bJOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=R4eDvdiy; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j9si4685980ejx.438.2020.07.31.02.31.23; Fri, 31 Jul 2020 02:31:46 -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=fail header.i=@ffwll.ch header.s=google header.b=R4eDvdiy; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732576AbgGaJ2W (ORCPT + 99 others); Fri, 31 Jul 2020 05:28:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732339AbgGaJ2Q (ORCPT ); Fri, 31 Jul 2020 05:28:16 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89AFAC061574 for ; Fri, 31 Jul 2020 02:28:16 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id l2so16797514wrc.7 for ; Fri, 31 Jul 2020 02:28:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=z+0/zjHSuK4YpkaJOtgZNG0mGoncCgYB5r2C7+VJ3D4=; b=R4eDvdiyjZiAS2M0ScI5ZgcMF2tJ0yokw3apO8UqhsoNlAdBSFkzqPNOIw8Dvrr2Yc wkKkHQFTK73G30dhhTnlZmx5u0RV5cVW6DSgBvmw6PTYQLyxf2dGVEyPKsehu4QW0ifI QQkcZ0RtsuPJQ70TR3ADt+mbAAgIDlzU2ytSY= 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 :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=z+0/zjHSuK4YpkaJOtgZNG0mGoncCgYB5r2C7+VJ3D4=; b=syjTg7BVBjjyoWxYRKIyuHTTUMIaAnEtapDH4QCJfTZZMU6RT2GVnfw2Di0fDKk8I4 DTOYuhpCElGHNf1grp3ZUZK68c2kOeToDAHugUoYJ0OyhDSfocxkikRSQTICJayI9kXu wwjfl2tE1uHqJqbzkIrPRD8OkBDHwkICuVCYFKK7O0Yn1S4IEp6gRiQKW/c7znU+Dvwh x/C7kYOSnvQxRwqXFIIJx2WIDs1AIHNcz3NFLtt/Ca2WEvMJZ3c5RHPnhKmNGfZSMR1J Xn8gYtta5QEa/48jXVg4j+EOGoO8+oZAXALSzdrkDdRTZysI4lIsnHJ0Zf3DCgcI92Uq OVBA== X-Gm-Message-State: AOAM532WHdllXOTvB9srlS3bXlnTDhjf9zCaIoOk7Nn5QaGnRIXMDxfR RfXs1lk1WvTpd8FN8GX9QnE38w== X-Received: by 2002:a5d:4907:: with SMTP id x7mr2890544wrq.166.1596187695348; Fri, 31 Jul 2020 02:28:15 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id z8sm11660814wmf.42.2020.07.31.02.28.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jul 2020 02:28:14 -0700 (PDT) Date: Fri, 31 Jul 2020 11:28:12 +0200 From: daniel@ffwll.ch Cc: Rodrigo Siqueira , Haneen Mohammed , Daniel Vetter , David Airlie , Rodrigo Siqueira , twoerner@gmail.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kernel-usp@googlegroups.com Subject: Re: [PATCH] drm/vkms: fix xrgb on compute crc Message-ID: <20200731092812.GY6419@phenom.ffwll.local> Mail-Followup-To: Melissa Wen , Rodrigo Siqueira , Haneen Mohammed , David Airlie , Rodrigo Siqueira , twoerner@gmail.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kernel-usp@googlegroups.com References: <20200730202524.5upzuh4irboru7my@smtp.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200730202524.5upzuh4irboru7my@smtp.gmail.com> X-Operating-System: Linux phenom 5.7.0-1-amd64 To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 30, 2020 at 05:25:24PM -0300, Melissa Wen wrote: > The previous memset operation was not correctly zeroing the alpha > channel to compute the crc, and as a result, the IGT subtest > kms_cursor_crc/pipe-A-cursor-alpha-transparent fails. > > Fixes: db7f419c06d7c ("drm/vkms: Compute CRC with Cursor Plane") > > Signed-off-by: Melissa Wen Applied to drm-misc-next, thanks for your patch. > --- > drivers/gpu/drm/vkms/vkms_composer.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/vkms/vkms_composer.c b/drivers/gpu/drm/vkms/vkms_composer.c > index 4af2f19480f4..b8b060354667 100644 > --- a/drivers/gpu/drm/vkms/vkms_composer.c > +++ b/drivers/gpu/drm/vkms/vkms_composer.c > @@ -33,7 +33,7 @@ static uint32_t compute_crc(void *vaddr_out, struct vkms_composer *composer) > + (i * composer->pitch) > + (j * composer->cpp); > /* XRGB format ignores Alpha channel */ > - memset(vaddr_out + src_offset + 24, 0, 8); > + bitmap_clear(vaddr_out + src_offset, 24, 8); Yeah that's a pretty good "oops" oversight on review, nice catch! Cheers, Daniel > crc = crc32_le(crc, vaddr_out + src_offset, > sizeof(u32)); > } > -- > 2.27.0 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch