From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,T_DKIMWL_WL_HIGH,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1763C04AB1 for ; Thu, 9 May 2019 18:51:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C7447217D7 for ; Thu, 9 May 2019 18:51:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557427901; bh=lJ0C36r+5zsZbM2h3rirBgRczl9F2Y6/33fY0ItqosE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=R2bY3g+NZ83+MsRBjXx2O7vscmffb7RNutM/TarByIum0ACV6Pc0H9bXsAOHirVbq l8ePX6L3UBZLTTsfp4MK0PK38VM/Q6UrQwQjzbYmv5WA3bFm6eip6IFyt3pYfvhjfr JoLIlI+KapEYlTu7kgP7Y8YCyBbSE0oiB7szDxkc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728593AbfEISvk (ORCPT ); Thu, 9 May 2019 14:51:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:45424 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727323AbfEISvh (ORCPT ); Thu, 9 May 2019 14:51:37 -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 6461F2177E; Thu, 9 May 2019 18:51:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557427896; bh=lJ0C36r+5zsZbM2h3rirBgRczl9F2Y6/33fY0ItqosE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iMHA7zBrcVPklm1KiOtiou44LqRw5QhQHNv634KInFvIiD9v6FC7mVW+TKrde6blx WoJH7Cdl8HQhWONaqcvfI3U03aZxtB2K2ixxKIN1FUZYufDGH7r+VE80/nyyVkWpBP XoBvpeRX5NGdJmhDqIIOg6Bun4E/nmFam5eA/3ic= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nicholas Kazlauskas , Tianci Yin , Alex Deucher , Sasha Levin Subject: [PATCH 5.0 45/95] drm/amd/display: fix cursor black issue Date: Thu, 9 May 2019 20:42:02 +0200 Message-Id: <20190509181312.613813762@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190509181309.180685671@linuxfoundation.org> References: <20190509181309.180685671@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 [ Upstream commit c1cefe115d1cdc460014483319d440b2f0d07c68 ] [Why] the member sdr_white_level of struct dc_cursor_attributes was not initialized, then the random value result that dcn10_set_cursor_sdr_white_level() set error hw_scale value 0x20D9(normal value is 0x3c00), this cause the black cursor issue. [how] just initilize the obj of struct dc_cursor_attributes to zero to avoid the random value. Reviewed-by: Nicholas Kazlauskas Signed-off-by: Tianci Yin Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 83c8a0407537b..84ee777869441 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -4455,6 +4455,7 @@ static void handle_cursor_update(struct drm_plane *plane, amdgpu_crtc->cursor_width = plane->state->crtc_w; amdgpu_crtc->cursor_height = plane->state->crtc_h; + memset(&attributes, 0, sizeof(attributes)); attributes.address.high_part = upper_32_bits(address); attributes.address.low_part = lower_32_bits(address); attributes.width = plane->state->crtc_w; -- 2.20.1