Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp711557rdh; Thu, 26 Oct 2023 13:33:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHY8v7CaWIfhmYOwaa/m1eEOXf1VH63rmB4bdosH/xc6ZWglvqofU0STMZihle1XrCpwbmB X-Received: by 2002:a81:ae41:0:b0:5a7:b942:c3fe with SMTP id g1-20020a81ae41000000b005a7b942c3femr546680ywk.16.1698352433180; Thu, 26 Oct 2023 13:33:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698352433; cv=none; d=google.com; s=arc-20160816; b=MNwtUHdfIMLn60PfLQ3Ie6PjH1047Ci3Thlmvk3uQJLIIl/kgC0YaavBIT5aR4tsJL XCRuM0jPZ3hrZEOJ2QhfOn6Pcf9fjmvS3rObT52okPXXN2UtdLMpQG1L9N2m51d4jet7 eFNYfYhL+PCu5J/RntAWxWEVPThPDsyGNjQsHXliV88vYH+5+/MepxfKC/DDpALhMM6g HppBX9fFg78gCxyRMJNdye/cB+eq8Dhh8Emli77Xcl3nBbLkq6JM0aa499gkCCkR0sRL 1gLhQmpZyQcZi7p+x9nxpQOQ8U3yLCezKN/6tf1UcORr0GHLeyury61sNzVBrjiexQZ3 CdXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=j3tk+oe4LZw1thVxrSHhxg7YiJq4jgOvzV867gqOGjc=; fh=C6RdyCBeBJxtPQbCpqQfqSQkxv2MsjsEWoS+BrhWGDo=; b=nVdY2+Y7WjO/4X7GuyH3bpjMkaFxXTq9N5F+EiDgdZKTBrarzCtn+Sho9Da/jZZ1Mc /LpKEwVm219Zw3dLCCKql0Ufroxs6QqDpBzye/GmwNfeC3Ck5XpYRKpxPmhK9QUz8CUY flT4SdVFyDvmSU+/PVLoYOzqbKPiwHRhyJauCTQ6gl22/yF8qdbpOpSaFLz3x8rmVeOa a9Vw3R8E+6Y2nF0dJbQVKUlNfV7e5sMPZLoJ7fD8HJbmG7LwTz0cx+5j2dIBNGr3unW0 ko2bUQaHx4fKcuJ79XilYDgIuWRr8AIhp0GqTrKRywBtbVBSPnCO+1Z5yCrMWT5AJHZp K2Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kwiboo.se header.s=fe-e1b5cab7be header.b=CqAJyFeI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kwiboo.se Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id t198-20020a0deacf000000b0059f4a234c85si185623ywe.97.2023.10.26.13.33.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 13:33:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kwiboo.se header.s=fe-e1b5cab7be header.b=CqAJyFeI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kwiboo.se Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 84F3681C8D83; Thu, 26 Oct 2023 13:33:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231861AbjJZUde (ORCPT + 99 others); Thu, 26 Oct 2023 16:33:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbjJZUdd (ORCPT ); Thu, 26 Oct 2023 16:33:33 -0400 Received: from smtp.forwardemail.net (smtp.forwardemail.net [149.28.215.223]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EC21191 for ; Thu, 26 Oct 2023 13:33:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: From: References: Cc: To: Subject: MIME-Version: Date: Message-ID; q=dns/txt; s=fe-e1b5cab7be; t=1698352404; bh=j3tk+oe4LZw1thVxrSHhxg7YiJq4jgOvzV867gqOGjc=; b=CqAJyFeIsT6eSLAibN2Oypjza3vA6nY0sMI24lhSgB1RTkaIzK+Tc0rVANje6uUD4fF+UgpmZ xMRQb9xbJHO1aePuqQ0GDNQ9wtV6tOuUpcBv3rW/Gvp8fkrBGBMAGhAUhddM7sZe8+zX7LPSymk EkAez8fREIeZ0IXRM/oqVQ/02iFJ1fm+2nYbNBTQvj81VaQu3yDP3INoxF4Fsne1UL9GJEcTyEI nY/PXyaWZjBB2v9MC2Ji/rJEMI36+P1vs0rH0rYHg8YAe9GeYNYYWCkiZA/D2TqoTJJ5nom8rms 7Mllq9nGkKJslxE0EPCXUqKvoBheG95kJBpu88ZrKlDQ== Message-ID: <2307c147-fe6f-4e80-874c-0f306bc6ea81@kwiboo.se> Date: Thu, 26 Oct 2023 22:33:19 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] drm/rockchip: vop: Fix color for RGB888/BGR888 format on VOP full Content-Language: en-US To: Christopher Obbard , Heiko Stuebner , Sandy Huang , David Airlie , Daniel Vetter , Tomasz Figa Cc: Andy Yan , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org References: <20231026191500.2994225-1-jonas@kwiboo.se> From: Jonas Karlman In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Report-Abuse-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Complaints-To: abuse@forwardemail.net X-ForwardEmail-Version: 0.4.40 X-ForwardEmail-Sender: rfc822; jonas@kwiboo.se, smtp.forwardemail.net, 149.28.215.223 X-ForwardEmail-ID: 653acd145956f7edd77b4fc4 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 26 Oct 2023 13:33:49 -0700 (PDT) Hi Chris, On 2023-10-26 22:02, Christopher Obbard wrote: > Hi Jonas, > > On Thu, 2023-10-26 at 19:14 +0000, Jonas Karlman wrote: >> Use of DRM_FORMAT_RGB888 and DRM_FORMAT_BGR888 on e.g. RK3288, RK3328 >> and RK3399 result in wrong colors being displayed. >> >> The issue can be observed using modetest: >> >>   modetest -s @:1920x1080-60@RG24 >>   modetest -s @:1920x1080-60@BG24 >> >> Vendor 4.4 kernel apply an inverted rb swap for these formats on VOP >> full framework (IP version 3.x) compared to VOP little framework (2.x). >> >> Fix colors by applying different rb swap for VOP full framework (3.x) >> and VOP little framework (2.x) similar to vendor 4.4 kernel. >> >> Fixes: 85a359f25388 ("drm/rockchip: Add BGR formats to VOP") >> Signed-off-by: Jonas Karlman > > Reviewed-by: Christopher Obbard > Tested-by: Christopher Obbard > > Since you missed adding my *-by tags in v2. > Thanks, and sorry about that ;-) Regards, Jonas