Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2006643rwe; Fri, 2 Sep 2022 07:15:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR46yErB6qafv+yVCLsN5Es27cOJ28xvymPV91XkvJ1EvyqAxdXqo9fdO3HYCrKFTAh3qrd8 X-Received: by 2002:a05:6a00:24c2:b0:52e:7181:a8a0 with SMTP id d2-20020a056a0024c200b0052e7181a8a0mr36645193pfv.57.1662128114367; Fri, 02 Sep 2022 07:15:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662128114; cv=none; d=google.com; s=arc-20160816; b=F5cLqKnWuq9Vo1cdEJTyAn2+4WoQPJKESJzSDbMlKlMZXQ93dG7BfOV2ocTAS+TCkp Ku/ExsxLJI7Ukfq+Iu2qxBp6YiT2zZeWBM3fMXZjJ062NNf1wCNfWQiteY+1ofu0fOy+ PMHCR8qmX9TlOhPzC0Xwg1P8u84FOdl9xAwC8Ws1PtTkm0uiDs1AwtdNqpINqSlg3Udt NmacbYVPFrlZQMeRePOMrogWTSr7x1OnK+GRvJOxmKv8tIN9DgUgyDaFyyaxUfKfv3TP g2Zs5taVY1AEVIPghxhE4EkuhLd8/xv/ErdBb2j48ZMW6mdATG6OQZx6K3tBPo0CTDp8 R0Qg== 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=QKsMvo817CpVKKwtqXSvw4ruuM+yanQtePv8v+kAMNI=; b=puigSGWzeAuZ5FaQYYxfT7nyxDZohYASczgxPksTFcY1ZlStdwosWmgK05ZWS6Za2T 0kpMP6P+E6ifOL5oihSE53DvEB9GFbcGs2744dEeKHutDHI7uxwuO5Du24Ohq+iz+8WS gdL4jL33U4Lm4NreYw+kCn+cfbAIIoYq9eBNuMPxBPUIM/EiYZKwmAzOpyXBCbNOMA7e ULGq/+NaFwglhhUIBvwPNPwrCymJFZIETpYrTuXLISD05/yndxPysATjBD6ioePlA5te /qBv7GgPZsHCbR9C4EG0Dh+uh4KlYnIN+jbAp2KFe4Cw3x37D4UJH7bxrj9CYZyvbfbP XP4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0CuJhO4M; 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 g35-20020a632023000000b00408dc9c0b98si2230409pgg.32.2022.09.02.07.14.58; Fri, 02 Sep 2022 07:15:14 -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=0CuJhO4M; 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 S237966AbiIBMx1 (ORCPT + 99 others); Fri, 2 Sep 2022 08:53:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237955AbiIBMwr (ORCPT ); Fri, 2 Sep 2022 08:52:47 -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 0ED2DC6E8C; Fri, 2 Sep 2022 05:37:25 -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 4256FB82AE0; Fri, 2 Sep 2022 12:36:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 866E2C433C1; Fri, 2 Sep 2022 12:36:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1662122182; bh=oDWp68Ak99AvOvb/+yh5XbIXaQUzblhv9yQDlBb2sfM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0CuJhO4Mga/O3aGm+TPV9n1DJgzWXmIuGfdU7Bo88MFKYqXnnCAHVScbooteZEgG6 H0cqlUPba7JxUJ3MKpxoq1bmeH+C6i8FKR5koDrPQTOlrP4js2UCi9Fh0EsD6NVLFS pPShsY/DJWK/uHeqptaJGBeO7Ja0T3r8/Tsgy4pE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Anthony Koo , Tom Chung , Leo Ma , Daniel Wheeler , Alex Deucher , Sasha Levin Subject: [PATCH 5.19 39/72] drm/amd/display: Fix HDMI VSIF V3 incorrect issue Date: Fri, 2 Sep 2022 14:19:15 +0200 Message-Id: <20220902121406.061356332@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220902121404.772492078@linuxfoundation.org> References: <20220902121404.772492078@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,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: Leo Ma [ Upstream commit 0591183699fceeafb4c4141072d47775de83ecfb ] [Why] Reported from customer the checksum in AMD VSIF V3 is incorrect and causing blank screen issue. [How] Fix the packet length issue on AMD HDMI VSIF V3. Reviewed-by: Anthony Koo Acked-by: Tom Chung Signed-off-by: Leo Ma Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- .../drm/amd/display/modules/freesync/freesync.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/amd/display/modules/freesync/freesync.c b/drivers/gpu/drm/amd/display/modules/freesync/freesync.c index 03fa63d56fa65..948151e735739 100644 --- a/drivers/gpu/drm/amd/display/modules/freesync/freesync.c +++ b/drivers/gpu/drm/amd/display/modules/freesync/freesync.c @@ -615,10 +615,6 @@ static void build_vrr_infopacket_data_v1(const struct mod_vrr_params *vrr, * Note: We should never go above the field rate of the mode timing set. */ infopacket->sb[8] = (unsigned char)((vrr->max_refresh_in_uhz + 500000) / 1000000); - - /* FreeSync HDR */ - infopacket->sb[9] = 0; - infopacket->sb[10] = 0; } static void build_vrr_infopacket_data_v3(const struct mod_vrr_params *vrr, @@ -686,10 +682,6 @@ static void build_vrr_infopacket_data_v3(const struct mod_vrr_params *vrr, /* PB16 : Reserved bits 7:1, FixedRate bit 0 */ infopacket->sb[16] = (vrr->state == VRR_STATE_ACTIVE_FIXED) ? 1 : 0; - - //FreeSync HDR - infopacket->sb[9] = 0; - infopacket->sb[10] = 0; } static void build_vrr_infopacket_fs2_data(enum color_transfer_func app_tf, @@ -774,8 +766,7 @@ static void build_vrr_infopacket_header_v2(enum signal_type signal, /* HB2 = [Bits 7:5 = 0] [Bits 4:0 = Length = 0x09] */ infopacket->hb2 = 0x09; - *payload_size = 0x0A; - + *payload_size = 0x09; } else if (dc_is_dp_signal(signal)) { /* HEADER */ @@ -824,9 +815,9 @@ static void build_vrr_infopacket_header_v3(enum signal_type signal, infopacket->hb1 = version; /* HB2 = [Bits 7:5 = 0] [Bits 4:0 = Length] */ - *payload_size = 0x10; - infopacket->hb2 = *payload_size - 1; //-1 for checksum + infopacket->hb2 = 0x10; + *payload_size = 0x10; } else if (dc_is_dp_signal(signal)) { /* HEADER */ -- 2.35.1