Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp373344rwi; Mon, 10 Oct 2022 01:20:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5mBdUBrTCdXgiysl4p0dxa45Mueotm6/devLVbKSjM+01mbIwHAlweewIL3WR4gTpKBOTO X-Received: by 2002:a17:907:980e:b0:78d:b6ea:25b3 with SMTP id ji14-20020a170907980e00b0078db6ea25b3mr3090852ejc.98.1665390044542; Mon, 10 Oct 2022 01:20:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665390044; cv=none; d=google.com; s=arc-20160816; b=bvsc3HlE2kHPQwecVMaKIt/22FBLppMsAIDjHfDPTqlmFMJIEdHDgeEa3sHyFu6+pV LzoAq0L0oqden8mhakKq8UVPqauVa9fn7OspvtND4pabvF0QKcb+ss8+zHO3GHOe+RVw N/V3dxhueJbe3Mf5Y50JVBsikyf5uyI8iMZ55Nzc99RILG5T9HdwFmIMfz19Fq+jv76E YE4rhb1msocgGQ1tmynlQNZP6sUAZ5V4Zb0LVSpclBPmUFnDf4myUJbvFmpBDWbTBayP 4yhUEpC6wcU5rxboshUItedeBSkZPVL/SmV/cNkqJceHkE7Mnpgs9f9hYQiG6VH8KUqt Bh8A== 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=o7pm0spC/cvXjyxb/YL4OoE6HF59P08eDws6y9mm5SU=; b=E8eMmzeMy5fOAaotJwloMKfKOSiS9+sJjdyRXKAknUzn8ITCl/u5FX/5OB4KCuZIPX OH1qW6rGgpr0Lb4yzlDn+6GYR1npS+65vMpIZYFfm128cfkcaQCETHcMpyTBy1oRB7Os JMNlWwYgT064jsY7iIYjPuAzgDJuDG4+Uik6X21bFbMW+XO1zcmyrBcDSewDG75pLI4q xXyWoYq8Naeh+zR8Ih3M8gIukzEB83MWnm9EPx6jL6cfhvdpSaOiS5C01isPykedsP9+ R+SfTP8AOl2JYy2Sag0SL0Vm8Um8VCplsRa82wii9ae9hIoiPtkqaNPl7UshZoapvEw5 HvoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=G51x2Cyi; 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 sa36-20020a1709076d2400b00780805b99ccsi8776473ejc.648.2022.10.10.01.20.18; Mon, 10 Oct 2022 01:20:44 -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=G51x2Cyi; 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 S232255AbiJJHP3 (ORCPT + 99 others); Mon, 10 Oct 2022 03:15:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232152AbiJJHNe (ORCPT ); Mon, 10 Oct 2022 03:13:34 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF5A15EDD1; Mon, 10 Oct 2022 00:09:00 -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 ams.source.kernel.org (Postfix) with ESMTPS id E4F81B80E5D; Mon, 10 Oct 2022 07:08:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F4B9C433D6; Mon, 10 Oct 2022 07:08:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1665385738; bh=CI2x29Kh96i4pZ8HOsJ5fJRoVt7QxvZwLaxm9zV61KA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G51x2CyiQ5JJSczSOclEJ/2fbSeSt6UTeJ3IwWXpGiOvfH6gEi43tTF751/60c2Tm cq/UKXIOlUFDKsnyUJmpsydilDNe+5vz98xsHsyR1WnOwRTBaxMQZRJAP6bXogCa+S kj9I/2b3w4Frm0Eg0SdXfyyrDs2agK5xamg+WG2M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dmytro Laktyushkin , Wayne Lin , Hugo Hu , Daniel Wheeler , Alex Deucher , Sasha Levin Subject: [PATCH 5.15 26/37] drm/amd/display: update gamut remap if plane has changed Date: Mon, 10 Oct 2022 09:05:45 +0200 Message-Id: <20221010070331.970858371@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221010070331.211113813@linuxfoundation.org> References: <20221010070331.211113813@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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 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: Hugo Hu [ Upstream commit 52bb21499cf54fa65b56d97cd0d68579c90207dd ] [Why] The desktop plane and full-screen game plane may have different gamut remap coefficients, if switching between desktop and full-screen game without updating the gamut remap will cause incorrect color. [How] Update gamut remap if planes change. Reviewed-by: Dmytro Laktyushkin Acked-by: Wayne Lin Signed-off-by: Hugo Hu Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c index 9f8d7f92300b..0de1bbbabf9a 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c +++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c @@ -1513,6 +1513,7 @@ static void dcn20_update_dchubp_dpp( /* Any updates are handled in dc interface, just need * to apply existing for plane enable / opp change */ if (pipe_ctx->update_flags.bits.enable || pipe_ctx->update_flags.bits.opp_changed + || pipe_ctx->update_flags.bits.plane_changed || pipe_ctx->stream->update_flags.bits.gamut_remap || pipe_ctx->stream->update_flags.bits.out_csc) { /* dpp/cm gamut remap*/ -- 2.35.1