Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp506413pxx; Wed, 28 Oct 2020 09:52:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweEC9hW456DlwWkPpz23SlAdwi06pEyCSmaLu3IQ2zvrFiHMuzaU19Od0ibABf7xCcxcWL X-Received: by 2002:aa7:c351:: with SMTP id j17mr8570815edr.70.1603903976307; Wed, 28 Oct 2020 09:52:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603903976; cv=none; d=google.com; s=arc-20160816; b=gDoSmnLPmbTBYozg3SJk3OQV4nQMl1uYuunqIJ/CkYxViQgEQjYDlIGWfd216sSgMU 3rebKIIAPgmK7pHo/dmEE4NUZoM/txdcDR6YRySpI5DvPrDGV5j1SjqbEqJhQcxoQVCX PyqBaMm1BlQ3+7fSUbR23DALiG4hJr4FxtjqGK/UZ6OcsWiIovC6HR/9krHliyVY3Uen C5fP18Y4llcsxipxdi7i6obTpIJaFoBaPjCQiQPhMnE3Hl9elQHwebV1OQsGVNjBA85V 6gRyvyIrqpV4+91G2idAjijHhIj1RfR+ErCkabXjcg0n9beNhfc6QVx+BAGOJuRTWV5u YsAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1/O6j3TGd0q7jI4FgrTEGZhukmC/XkfYaRdLJCpKqBo=; b=jOpRTi/9+O7wfbi1L39Ffcgtt9bTmi6swsRhgC8WswItEXO/OXQBwHnJ6x6UM7EkMS Z4jHH3+/4HfF/cpljX+FJ6deXEtxWnquLbRTuvkX0PTstjXEElhHmPLkBYSx6rRWCRrF elOgODvMqL9NndikX9Edeq9o+O2JcgTZ15qhdBL1E6Y6tJv87T5fmQkWZxNeZhM4pun/ rNZTb4ImoP0HMB1cqUyrqna99+vFYsgcC9iZUzNKmnlcpBha7VUw2dSRFkXBjEzqpziH GgJIr/u4NO9GUdkHjPhHzdfl8kS+NwwHSutTpNqTDWzJux4M9Y4wwbal9yBnu1kWlWpX n30A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uRRc0Z90; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i14si21419edl.282.2020.10.28.09.52.34; Wed, 28 Oct 2020 09:52:56 -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=@kernel.org header.s=default header.b=uRRc0Z90; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1818775AbgJ0RXY (ORCPT + 99 others); Tue, 27 Oct 2020 13:23:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:55256 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1780409AbgJ0Oyn (ORCPT ); Tue, 27 Oct 2020 10:54:43 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F14AF20679; Tue, 27 Oct 2020 14:54:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810482; bh=OLsKuVf6jPXIMWi+0XJdWfm+tHNgMCRxhWDDeUvn96s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uRRc0Z90ZoPMTJiGyN4UPINTupa2xoXlsjTujsXZ5LAuHRk/POeK/v/1QIUHYpFGf itqPOtYm9EQ6acJ4KgUA/DPTm4q3ofnH95q1XU7xnbC6NDcmqdcLz849fNN8xkMb+R kK42KgiHDVmz339wwCkkGEKuOj4inMuBOxWLWVuY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Melissa Wen , Daniel Vetter , Sasha Levin Subject: [PATCH 5.8 155/633] drm/vkms: fix xrgb on compute crc Date: Tue, 27 Oct 2020 14:48:18 +0100 Message-Id: <20201027135529.961685109@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Melissa Wen [ Upstream commit 0986191186128b10b6bbfa5220fc587ed5725e49 ] 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 Signed-off-by: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/msgid/20200730202524.5upzuh4irboru7my@smtp.gmail.com Signed-off-by: Sasha Levin --- 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 4af2f19480f4f..b8b060354667e 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); crc = crc32_le(crc, vaddr_out + src_offset, sizeof(u32)); } -- 2.25.1