Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3983826pxb; Mon, 4 Oct 2021 14:24:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvF+UcHsL3IkdbgsndKOeS6gcPSQOJgS/aXwntxosvunojOxmp3c8I456fX5vfhBLz4pCP X-Received: by 2002:a17:90a:4e43:: with SMTP id t3mr39402214pjl.163.1633382695172; Mon, 04 Oct 2021 14:24:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633382695; cv=none; d=google.com; s=arc-20160816; b=qCEO4fknzwXv4ljx986ZifFR8O94Yxsk3uxgEIdlpWSbRMwpqJybP5C/4jgMYozXNu Vps+6iJk2qFMzd+74i5rErbasOT7MsWFNZc5wy3aMthcZ/ciM+7rDJi7WvXngYVDzlx4 ObZco+0PtC9JUpUZ6ppLllzMSuJpfHSR3S+Sr+bcP7Ag2b9X1T2GpXPtGuN6sK7UdN7L j+J4wupdGUumqOjJLjT2mW+EP3e+aswwBsZfPBnXPJVnjklVjQWzvKyiAZPYCsJWEquT hNbvCX3XRNhyjUyRV9KPx8MsvYIxdiVtifH6wbSnL2+U9WiOyOcXJCwFBjA0RizM8R7s p0IQ== 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=1Qznrk+FrU2uqIAJNmgkxMQhmmvtV4Q3n2Qe4rn3cKg=; b=F8o3RYpCV2wKtHUu7Cb6GbH8gLHybrgAjvGEQBnfsZAUfzZwwKzum53uxj1HcTv+5x raA0qnSI8J8My1PEClUOCXSOsJecYLebox+fo1JYZtwZWwzMK3eFsysCiILE7wl/9Irq A1TWewfkIiSGCv98jE8yGpbAITyFJcEJ56VPyYDBG5sQ4vhGgIUlkz5lZbQJSmPZ1nFl cEB1ux7DTmA91quZbV/3ULVrwO6i/eb0LhzC+mM6YtrzcVz3N2RySHclO33GZ3zratUh TBOCBhhdASj+yDvhPSxrCNE8tUx/ntBHLwYuaGYu/c2b9YzA25rvx2YqSlJngEajlG3J JQvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BTVFE4kN; 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 r2si18415093pjr.143.2021.10.04.14.24.42; Mon, 04 Oct 2021 14:24:55 -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=BTVFE4kN; 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 S237819AbhJDNe6 (ORCPT + 99 others); Mon, 4 Oct 2021 09:34:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:47126 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237701AbhJDNdI (ORCPT ); Mon, 4 Oct 2021 09:33:08 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C217263223; Mon, 4 Oct 2021 13:14:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633353294; bh=vI/ThSmCYCnrsLHSHczvncB2LQJS+cvNs/OvwovcF64=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BTVFE4kNHx7VKmoyUMHqbQGCODYxHXaW3CYRN0IuPK92waN/MeNi3G/FywUqZewtY uRCtNt2AQKFa55xkz90uzG/TKSgT0SH/hU/i9gdVKJZtnHk3Fd1ctwkdc6f72QUjTk 5kFwNN6h8Ui/+HZlgzdfjRNCStd8BzlMHSTkJRx0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hawking Zhang , Le Ma , Alex Deucher Subject: [PATCH 5.14 072/172] drm/amdgpu: correct initial cp_hqd_quantum for gfx9 Date: Mon, 4 Oct 2021 14:52:02 +0200 Message-Id: <20211004125047.321124595@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211004125044.945314266@linuxfoundation.org> References: <20211004125044.945314266@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: Hawking Zhang commit 9f52c25f59b504a29dda42d83ac1e24d2af535d4 upstream. didn't read the value of mmCP_HQD_QUANTUM from correct register offset Signed-off-by: Hawking Zhang Reviewed-by: Le Ma Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c @@ -3598,7 +3598,7 @@ static int gfx_v9_0_mqd_init(struct amdg /* set static priority for a queue/ring */ gfx_v9_0_mqd_set_priority(ring, mqd); - mqd->cp_hqd_quantum = RREG32(mmCP_HQD_QUANTUM); + mqd->cp_hqd_quantum = RREG32_SOC15(GC, 0, mmCP_HQD_QUANTUM); /* map_queues packet doesn't need activate the queue, * so only kiq need set this field.