Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2353570pxb; Mon, 20 Sep 2021 19:52:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJXDhyZ5FQFOYYKeeQ+h1+yJ3CAtJ0a56lOmiYRtfQ3gOlWNaP5hAaDnGhmrlF+AS8rgzV X-Received: by 2002:a50:9dc4:: with SMTP id l4mr8442784edk.208.1632192722767; Mon, 20 Sep 2021 19:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192722; cv=none; d=google.com; s=arc-20160816; b=Gf1+DaETH9IfY2/n1+TivMJOE330zovmPbuovbYDAlpNRKECryCU1xOGgxSO/2qoyo JWTIV0mK6gPXi0vKRoPsFCe2gcmkHYkTgnwVXRvnGF0i2PcNbiJjK84SJl2XdPnlXo+r NQTq4EeFX929fz8Faq8oJvueFvbWOBNYB+aI9Gp0McT3A/5aalmFbMVp34CT5sSIlB3d 0G9dkans+lGN/wnIcpQMh904kY8AR2ThVzweL1r/iQMqEjkNCbugdvkHekhXxPca+hp1 mG+V7q6iijfP/BkwCaFs/prBcJRkdYsPM70tMCMTr0KPs9/JcrSwhRrzv9x4ExJrO0lv qDow== 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=+A9AeaSwYV9g6+UyAYy7h1LIr6o7V/vwwQx35AqlFkw=; b=u3jxBW/dOZ9KAjH8jHS/B0kR1aRm9ZHxnXDi6sDgW2fpgHUAgSXZqP6JW8Y7YQla4n kBYmaBWzryMnIUbzdCbzNW6N2noRRlSHp+o3iEi+QN1TC9YKX0j6Fd7aZYv386nzTHer U+0hd9IRKeF0uF4WzgT4rHO2M0dlKj44IjG3xrVcE4+y6r2e5Nv+ADNueGZfsZDDfrhC So6qZC5KyWxr9zb4NCrfOJ2NSBlcZm6ctIsrKnnhqX2gb+H13mdbaY9yFivU7T8bSWI8 1C9tqD433kRUjzQRx+mZLoCBgkP97TIxLSnHu1RJmhr0J/4keHvdt5UKp4C0h0/UlsU0 4AHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SS4ZGoQ7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r2si16577950eda.616.2021.09.20.19.51.38; Mon, 20 Sep 2021 19:52:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SS4ZGoQ7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1349159AbhITSlH (ORCPT + 99 others); Mon, 20 Sep 2021 14:41:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:53062 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380105AbhITSgX (ORCPT ); Mon, 20 Sep 2021 14:36:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0186B61462; Mon, 20 Sep 2021 17:29:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158959; bh=R8WwoA9dgNBx8r/MeqzbMfPPh/4rnNix0yGpnXR+tX0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SS4ZGoQ7TI4yUYfjpx4LdoctmXm27J9y5LzfJLeWU7WG8i+N2EOD5iMveljfzllC7 +B3Cdq2cNcV4lQGWyHUpAKMvru6TBP7Bgrs6jzdiIuUmEMLxeOEHfIPUgrPeZk9QS1 yUt4PouEuuzbV9v2DifxTqjqwPG1n2FTEe1kqcCE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nicholas Kazlauskas , Alex Deucher , Aaron Liu , Harry Wentland Subject: [PATCH 5.14 012/168] drm/amd/display: Fix white screen page fault for gpuvm Date: Mon, 20 Sep 2021 18:42:30 +0200 Message-Id: <20210920163922.056034928@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163921.633181900@linuxfoundation.org> References: <20210920163921.633181900@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nicholas Kazlauskas commit a70939851f9ced298dc7d523374b8c4d05239caf upstream. [Why] The "base_addr_is_mc_addr" field was added for dcn3.1 support but pa_config was never updated to set it to false. Uninitialized memory causes it to be set to true which results in address mistranslation and white screen. [How] Use memset to ensure all fields are initialized to 0 by default. Fixes: 64b1d0e8d500 ("drm/amd/display: Add DCN3.1 HWSEQ") Signed-off-by: Nicholas Kazlauskas Acked-by: Alex Deucher Acked-by: Aaron Liu Reviewed-by: Harry Wentland Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -998,6 +998,8 @@ static void mmhub_read_system_context(st uint32_t agp_base, agp_bot, agp_top; PHYSICAL_ADDRESS_LOC page_table_start, page_table_end, page_table_base; + memset(pa_config, 0, sizeof(*pa_config)); + logical_addr_low = min(adev->gmc.fb_start, adev->gmc.agp_start) >> 18; pt_base = amdgpu_gmc_pd_addr(adev->gart.bo);