Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3854460pxp; Tue, 15 Mar 2022 07:34:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6URB8NnGx2kxdwLUog4BtdYQ5S2q4TkM0Dc6tzTB/tDd+dG3bS30Fw59zcBnBbolpiMa5 X-Received: by 2002:a17:90b:17ca:b0:1bf:6188:cc00 with SMTP id me10-20020a17090b17ca00b001bf6188cc00mr5091609pjb.2.1647354880756; Tue, 15 Mar 2022 07:34:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647354880; cv=none; d=google.com; s=arc-20160816; b=wSdx9kr1pD+kMDExyJFR8aNsejpkgs48wsjrSKZeqrJuPsKogz1EHdgTWaRp2vYvBG QUQEqMb9RFxq5VJway2z1f8U/vFWqaB53KJQ+1YlZiDqfuP8MiD6VLvbV0UXXrOxLF9K s+Oo3DRfiAwuKukKuh8tnXdm54BAOzur6IwU154LKXgAqhGBLBe9K3SZNVE/mcPFcbpe /i5i/xGbANccSy7KyfsLxDKcKlgarT/BWqIBnbeftpX3k5aH6vz8x4EE13er1UDfBUwl O2y7uxwxGPzhLzV4eM65QeRX0fLWPGENb4KrWXNz792KM5SaNqsVV0BeU13ydAd/7DpH /Wuw== 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=1NKoOtec9KI3INomBp3fgOJh/dmPLVM/hK4fF1DAubs=; b=Zh2Afg+1SmYjH+lKVx1CsM/KKL8tVmWdwMnqjOqWEYcrXmc3CWPjKzVdmB4YashTaR n1haqM4hCkPSuh9N8NmLDuHjVo06/KXW+m3n1wGC++t07GjpeU6tKveKqOp5crRndwGR 9iOZZHP7dhdIw2f2x7HA0PJ8XXe8YMsCuhDvZXWaatwna3tixGioyl0f/suZQKA/6qeM sZg+FW1plvPvVtp5esiXmQTZvuNEm+RAMpoB61JmnvOkv/h4+O9T4xLqUqrEb6MdEHZF m7xgzA/BD8THkIyBFctytQ60UQUrEZtQaFxayZUAV+1y+mcOFF18uReWbvBuDoDG+YJV RKiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PgHO61u4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e16-20020a170903241000b001530c6e985csi18178209plo.513.2022.03.15.07.34.23; Tue, 15 Mar 2022 07:34:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PgHO61u4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240791AbiCNMMO (ORCPT + 99 others); Mon, 14 Mar 2022 08:12:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241490AbiCNMIq (ORCPT ); Mon, 14 Mar 2022 08:08:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64DB54EA02; Mon, 14 Mar 2022 05:05:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5D9D161348; Mon, 14 Mar 2022 12:05:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67602C340EC; Mon, 14 Mar 2022 12:05:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1647259517; bh=iFsjWznm3SrnPCRqCcEAQ2tUS6+ySlC58zxri+CXmAQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PgHO61u4UsbPwqYkJGYqWIAFy7nTaRG1AB2CRR4Y7hJ1dx/nNsW5XqQ8HmQW0jg2G SZ7gzzX9fKZh2RHxydhfTlD/CWlGVVXO/PxgeqndYhRlC5si3PB6DYq98xmfD2QU9B VrDsWGChX5zL6/szZKSxklzhuS/BF4jPljUGyJ6A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jernej Skrabec , Maxime Ripard , Sasha Levin Subject: [PATCH 5.15 025/110] drm/sun4i: mixer: Fix P010 and P210 format numbers Date: Mon, 14 Mar 2022 12:53:27 +0100 Message-Id: <20220314112743.738669211@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220314112743.029192918@linuxfoundation.org> References: <20220314112743.029192918@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jernej Skrabec [ Upstream commit 9470c29faa91c804aa04de4c10634bf02462bfa5 ] It turns out that DE3 manual has inverted YUV and YVU format numbers for P010 and P210. Invert them. This was tested by playing video decoded to P010 and additionally confirmed by looking at BSP driver source. Fixes: 169ca4b38932 ("drm/sun4i: Add separate DE3 VI layer formats") Signed-off-by: Jernej Skrabec Signed-off-by: Maxime Ripard Link: https://patchwork.freedesktop.org/patch/msgid/20220228181436.1424550-1-jernej.skrabec@gmail.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/sun4i/sun8i_mixer.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/sun4i/sun8i_mixer.h b/drivers/gpu/drm/sun4i/sun8i_mixer.h index 145833a9d82d..5b3fbee18671 100644 --- a/drivers/gpu/drm/sun4i/sun8i_mixer.h +++ b/drivers/gpu/drm/sun4i/sun8i_mixer.h @@ -111,10 +111,10 @@ /* format 13 is semi-planar YUV411 VUVU */ #define SUN8I_MIXER_FBFMT_YUV411 14 /* format 15 doesn't exist */ -/* format 16 is P010 YVU */ -#define SUN8I_MIXER_FBFMT_P010_YUV 17 -/* format 18 is P210 YVU */ -#define SUN8I_MIXER_FBFMT_P210_YUV 19 +#define SUN8I_MIXER_FBFMT_P010_YUV 16 +/* format 17 is P010 YVU */ +#define SUN8I_MIXER_FBFMT_P210_YUV 18 +/* format 19 is P210 YVU */ /* format 20 is packed YVU444 10-bit */ /* format 21 is packed YUV444 10-bit */ -- 2.34.1