Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3764600pxt; Tue, 10 Aug 2021 10:46:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwfjcitGEpNNXh+1ABsLdFl1CLderjIbaJAEXXXhvOkNGgYWHPyuxzGPKLwBgA+KpRhkdH X-Received: by 2002:a92:194c:: with SMTP id e12mr325526ilm.199.1628617617100; Tue, 10 Aug 2021 10:46:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628617617; cv=none; d=google.com; s=arc-20160816; b=afVqqYNbFN61LWYkLDzDzpnodRhrzQONdpxG4oluUhbsDZnwNzdVfg71xId2Gw17B+ xfumLPFMIZkippvCmk+w+U8oxqDzZ+HARzIFcjVLpoQU8N3bwkLutpgnY1xk8S/2w0rC 3s6vT2fv6xzjehoclv/gChbWlztYGdrCdVdSJM8dW0Wsmq5Bx/xTwNtOEVxsHPu7zdL/ Ezw8SniQyfOaGXm8Zchrgk7Ym6T2rzGusx2PDHNaXZIpBtwVW+IG02jPrpUcBFYnhAzA whhWv6jIXCN5ZP5DkQZL+5EpHO++VPsTeTK9s7Q27dS/7fCZ8XjLtfHLQUNbXfnM57mq UCZg== 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=K0sKlthxU9+oBkYMyDo9rw1XwH7UyNGMIj9dzI2SZeI=; b=lfcLwkZ/ZezY5j16+6x826Nwu+DKjqOUUV/X5xx/rD+uh4z7j+CyZKLErzflMyBOf8 tPl4Wihq8oMaN2o8UZozWI3VBJ/T3eudW9C9IiaCe/wBHBLZtZWN7a8KxaS/b9p+RFWw rbpVRKAFuyDSm3mNjcFQmKzNXXUuiLo5LyDtbzCizUTZkPxkDRuWI7DMKyv7S++PYuWg lX8HGs9Se3iKnBSu2pm5np/NDHgUNKo/8WKrE42MQTWDoGBq6xtrMObih+mHOj+wxgau 8X7c/Qce0o+5Hk8dWq+K2UpYy/kG4Rd1BK08s6gVMpoGC/5E+V4q0ogEjaMZFQOyNXcs 1MuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=m48ktfuY; 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 g7si26809612iov.41.2021.08.10.10.46.45; Tue, 10 Aug 2021 10:46:57 -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=m48ktfuY; 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 S234403AbhHJRqK (ORCPT + 99 others); Tue, 10 Aug 2021 13:46:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:36322 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234974AbhHJRmZ (ORCPT ); Tue, 10 Aug 2021 13:42:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 44ABB6120A; Tue, 10 Aug 2021 17:38:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628617130; bh=kXu17XmRE41++xMi4K3vbwYjOo249Mwqw6Yzvq0JRUc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m48ktfuYCHbvi+iPvCGfKvMqaFgL44XcpyrgURt41c6R/RPdaiWggCT6pEZZGNhol 3rDucAUUMquy+oR4M4fpJb4VXZ0BAH63728ZA+mO1eJXK/2gxe90OFAXx2xYIPof7M 2wEDXlSN5zDTg2YFX2T+h5Sk2TH6UCoN3+YDZPww= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shirish S , Alex Deucher Subject: [PATCH 5.10 058/135] drm/amdgpu/display: fix DMUB firmware version info Date: Tue, 10 Aug 2021 19:29:52 +0200 Message-Id: <20210810172957.657953320@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810172955.660225700@linuxfoundation.org> References: <20210810172955.660225700@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: Shirish S commit 0e99e960ce6d5ff586fc0733bc393c087f52c27b upstream. DMUB firmware info is printed before it gets initialized. Correct this order to ensure true value is conveyed. Signed-off-by: Shirish S Reviewed-by: Alex Deucher 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, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -1301,6 +1301,7 @@ static int dm_dmub_sw_init(struct amdgpu } hdr = (const struct dmcub_firmware_header_v1_0 *)adev->dm.dmub_fw->data; + adev->dm.dmcub_fw_version = le32_to_cpu(hdr->header.ucode_version); if (adev->firmware.load_type == AMDGPU_FW_LOAD_PSP) { adev->firmware.ucode[AMDGPU_UCODE_ID_DMCUB].ucode_id = @@ -1314,7 +1315,6 @@ static int dm_dmub_sw_init(struct amdgpu adev->dm.dmcub_fw_version); } - adev->dm.dmcub_fw_version = le32_to_cpu(hdr->header.ucode_version); adev->dm.dmub_srv = kzalloc(sizeof(*adev->dm.dmub_srv), GFP_KERNEL); dmub_srv = adev->dm.dmub_srv;