Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp741917imm; Thu, 13 Sep 2018 07:06:40 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYusEkyyA88YbavmDHUAKjW0OvxlAlVpbvEaltdJPU9BvKx9YvQvMtdS4cdIOOw6RZfqOrA X-Received: by 2002:a62:7983:: with SMTP id u125-v6mr7624162pfc.177.1536847600489; Thu, 13 Sep 2018 07:06:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536847600; cv=none; d=google.com; s=arc-20160816; b=aSVPLJyFxdJ8WKLG9vDjc495ULx+0WJwSvgTX5vGCfXWic4/F3pjzLsiD3PAd4txQM tQp2vBNq9rgs3IHS9FJRnXztoxC4zTod/3ZIUTq5HS0H5qa/Y7EO6OXjYPFIlrE61aPc 5W6Ak3EGJPEikY2mB0lwkbyNG2bLev3GrODmKDICGwks8y8zS2fN7E+RALIXVkX4S2ky CdgI91Uk2y/aU/boDjSfONoUuYiQc2SBf/dTl1brSXMMRrgsoaKTvAbFJK8zKl7+WNQ7 UHoPNrZJboejUDGdOBFpG9gvxopjIdbFmZoabiC4tkpvwt2LV5bBtrA1RaSVeAY1pIwz g15A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=sXsj04HDPrTFlNkLWt0UaLC2kCVNI3NIrMSHPAui/LE=; b=hyfC9rl81flr5w9TfqK5PSKbZtPF8BjXhFfTTFKYwleQf1bI73bne/3ILFiAYAcjPZ 6ZP3aiFCIjyIBKb4fF3YmbirfjpsPoZ39AvnoDxPfpQzwO/nyKC/LSr4SvxcKZqnliVD MeXscTKdjvqNlyixHQkBCbsU/Ltxz4L7GGvWxQ/Mp7TXxFBzipQPVdsE4hhidbtMmDcP S0Apg7/RYTdixdIYYgssgFIK0XAideqyoMJFGZQgV0yHjreadKg9md6Aug6wXSeZwFom XGAOcAfz6miLUDaqaGlbH7NjukYqX/+LzXOY/tVq51qokr4v8hT/aJoM0wWi/bgCh9Uh vUbw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 14-v6si4400033plb.230.2018.09.13.07.06.19; Thu, 13 Sep 2018 07:06:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732104AbeIMTOS (ORCPT + 99 others); Thu, 13 Sep 2018 15:14:18 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:35406 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727566AbeIMTOS (ORCPT ); Thu, 13 Sep 2018 15:14:18 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 9CA36D35; Thu, 13 Sep 2018 14:04:38 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, James Zhu , Alex Deucher , Huang Rui , Likun Gao Subject: [PATCH 4.18 174/197] drm/amdgpu: update tmr mc address Date: Thu, 13 Sep 2018 15:32:03 +0200 Message-Id: <20180913131848.521425547@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180913131841.568116777@linuxfoundation.org> References: <20180913131841.568116777@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: James Zhu commit 435198f33b56d7b875a8173a0227ddf0de285aa1 upstream. Update tmr mc address with firmware loading address which is returned from PSP firmware Signed-off-by: James Zhu Reviewed-by: Alex Deucher Acked-by: Huang Rui Reviewed-by: Likun Gao Signed-off-by: Likun Gao Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c @@ -131,6 +131,11 @@ psp_cmd_submit_buf(struct psp_context *p msleep(1); } + if (ucode) { + ucode->tmr_mc_addr_lo = psp->cmd_buf_mem->resp.fw_addr_lo; + ucode->tmr_mc_addr_hi = psp->cmd_buf_mem->resp.fw_addr_hi; + } + return ret; }