Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1253875pxa; Thu, 20 Aug 2020 06:51:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1SwMwI4xb/kF4aigRMnExpr3EAJ9enNWAXs3U0zC8iYVqdaHrH9cL9FKn8xxEK3hvRl6t X-Received: by 2002:a17:906:57cc:: with SMTP id u12mr3595320ejr.422.1597931503566; Thu, 20 Aug 2020 06:51:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597931503; cv=none; d=google.com; s=arc-20160816; b=Q6TSXiGSoUq8ms+3lmEEw9o6wOquaEH+gKAfd7fcs+v4WegjbBcu0msY7wI9ZzRrkK /rBkfNxBIrljYw0XmnJCnjuFpRgj/Db0aC3FyB8hsfFIlD46Zfwt2F5VmL/R98skPuyg Nl9djdaCJJBAnbcS1GTL/T7MefIIcbuWje5+7izGn8AcMGgKhCDMmZGdOP/gBimE1yuq zsios046vWU4dKQxmuKSt6Ltj1Ktdh2KFAjUwHT22d53ZwOH2AQGOS8n41k7W2jB2WpO cdFhVl0HdV0ZMZspYffgpb4pjgMz8L3McGrt4v8lMnBX/zwdNRhZ01LCHj7lLH2j1wDe 39ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=REVk+EDSQzJNv6XKXEjNKD6ivKnUovXMdy19aMa8qBg=; b=YBOAdT2dSxjNJ/ryjxoPBBz/pwpHpPVj25lyyUcCEz6xqwn6rGz+zaiHkshzI5E8+g LoHhftj58p6IrwKvuWZPhaJeC3eSRmiEDhzjBJA25aolemu3/kg22CpEk9OkkiU/rQIx 0nY1nxpknbQsC8XzWJrD6Deo5ZvugpB8bRm+xC6gwofV6s44z/6S/lLyE5rrokOQLRR3 P2ehZ90Snx3uT1Zc845XLUFktA+35j8JMhSyt4lPEouuDYEiY2Py3q2ndIwYhHCYPrl5 WFzyzCIfuhTaNIImVxIpUD3jhFyU5FLKB878o/ytlwlLVTdSBtfX63YwRs0anmxe4TSN lSew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fPcggc10; 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 va1si1247704ejb.558.2020.08.20.06.51.19; Thu, 20 Aug 2020 06:51:43 -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=fPcggc10; 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 S1728790AbgHTNo6 (ORCPT + 99 others); Thu, 20 Aug 2020 09:44:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:38982 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728020AbgHTJ2s (ORCPT ); Thu, 20 Aug 2020 05:28:48 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 0123D22CF7; Thu, 20 Aug 2020 09:28:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597915727; bh=SYXWTX+v+/mNoU0TfcdBFAmNqqh497XAu3ylOhZeT2A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fPcggc106yEw3Wv/tfDBtnx14Zk5rOpU2aXY84v3MqwsHn9MtXPj780igS+/3wtkf 6O90dtCfOvI9B1a1MI0GDI1Tra3bxzxZO0tCNjfVpzw1WPc6Y1MSGNt3oZsqxTLf8O zqiY50NZyqdY30rhcK8kwSuKHAUlHneTSbo+XI2w= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Paul Cercueil , Sam Ravnborg Subject: [PATCH 5.8 113/232] drm/ingenic: Fix incorrect assumption about plane->index Date: Thu, 20 Aug 2020 11:19:24 +0200 Message-Id: <20200820091618.291489646@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200820091612.692383444@linuxfoundation.org> References: <20200820091612.692383444@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Paul Cercueil commit ca43f274e03f91c533643299ae4984965ce03205 upstream. plane->index is NOT the index of the color plane in a YUV frame. Actually, a YUV frame is represented by a single drm_plane, even though it contains three Y, U, V planes. v2-v3: No change Cc: stable@vger.kernel.org # v5.3 Fixes: 90b86fcc47b4 ("DRM: Add KMS driver for the Ingenic JZ47xx SoCs") Signed-off-by: Paul Cercueil Reviewed-by: Sam Ravnborg Link: https://patchwork.freedesktop.org/patch/msgid/20200716163846.174790-1-paul@crapouillou.net Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/ingenic/ingenic-drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/ingenic/ingenic-drm.c +++ b/drivers/gpu/drm/ingenic/ingenic-drm.c @@ -386,7 +386,7 @@ static void ingenic_drm_plane_atomic_upd addr = drm_fb_cma_get_gem_addr(state->fb, state, 0); width = state->src_w >> 16; height = state->src_h >> 16; - cpp = state->fb->format->cpp[plane->index]; + cpp = state->fb->format->cpp[0]; priv->dma_hwdesc->addr = addr; priv->dma_hwdesc->cmd = width * height * cpp / 4;