Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1709847pxb; Mon, 8 Mar 2021 04:37:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJz8W4M1N5SpH4VNXCSOdvwgVoEfVnzp4qmpLEB3DavAdr/MwFDDG7MuE7J9m9K0WMDyuQyG X-Received: by 2002:a17:906:1386:: with SMTP id f6mr14663376ejc.45.1615207043204; Mon, 08 Mar 2021 04:37:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615207043; cv=none; d=google.com; s=arc-20160816; b=kQoN9lgS/BOponq+3Fc6gIgZiOlvHjETmD+ShUOMI+nBZzIOdXCsCfomvys3BHiktq qpM0eFrIvPSWHzJUej4f+UKIZYlMdZXhJIeT9tCcGAuUAef1OEZ1PC8zVapHTdvi6k8S 3wV2+wLdZsVoCiwauQLasBJUpHa60da3zWV6OnbCG8jcyvSiWLymeb0v3dh4xbcHL9UU RUI0qKLEcsnwh208oix1Bbbz0eQ9u7Tg8oQdzW4uoEpJYPjNhfH4qqpTQ1Rec2kzc/w4 4fKKKtHszZrVwAl/66hA1J7sl4joMBUqucJ2uo8HUEgJNOazv2fmVYtX2U+YyPc9jLHV eVug== 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=QmsXVAHKfGJg/k6lUOz1Y4yFBi36x/DjJOBZFRx3iCA=; b=oy6SwKkUwMqmU972QBcYokwkRpTJZVYQ+kSz+CmU5x4A4po+glojZWnsB+CBAgIZga iwh/gJp79sQ407ergrcuUhnDiUxJ7ZcgLBPjhdd6qh1qKuGUPMCaBm+togiEMXnt04R6 jBqwKqN9aVD5ylo2Gkj0FZZ4drjx5podLN3YKJM+fZTjK1xzCQPTqCgeNggeShY/FjDv N7Le6ur211mEd2UcjRXaH0mz9KbPWf44cpeaqN18FUjw2UlbZtzgqNVvMxVhIVBRbqnu cyTb6EvpUTVu6ZCR3xavct2bGVSXmaQIjFYLcbaPooEFf6fn/WSx6QGIn8GMetTmponE LqQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Pkc4HSWI; 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 a3si6576636ejd.543.2021.03.08.04.37.00; Mon, 08 Mar 2021 04:37:23 -0800 (PST) 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=Pkc4HSWI; 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 S232146AbhCHMfg (ORCPT + 99 others); Mon, 8 Mar 2021 07:35:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:44216 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232064AbhCHMfL (ORCPT ); Mon, 8 Mar 2021 07:35:11 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6E54864EBC; Mon, 8 Mar 2021 12:35:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615206910; bh=Rh/ElCYixtjbU3HjllVEZDy8BptIUC+6CwBIuGiiYNA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Pkc4HSWIGGntrRL9r9t8v+rMYifDfyR8PUEHSwgXs12Pd/5Zp5Q0GZdRfo2aowz9D sQ1qV9hO+klQvxZp0Fbbb1M2YAvNhPlZVPo/o7XrIwivYki8bf33gNPkJ2Xa0WW79/ ZhPSLGI/vL6tEIDb8ToNwlQRPaAvwiNoaVh0wDdE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kevin Wang , Lijo Lazar , Alex Deucher Subject: [PATCH 5.10 22/42] drm/amdgpu: fix parameter error of RREG32_PCIE() in amdgpu_regs_pcie Date: Mon, 8 Mar 2021 13:30:48 +0100 Message-Id: <20210308122719.214925954@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210308122718.120213856@linuxfoundation.org> References: <20210308122718.120213856@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: Kevin Wang commit 1aa46901ee51c1c5779b3b239ea0374a50c6d9ff upstream. the register offset isn't needed division by 4 to pass RREG32_PCIE() Signed-off-by: Kevin Wang Reviewed-by: Lijo Lazar Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c @@ -355,7 +355,7 @@ static ssize_t amdgpu_debugfs_regs_pcie_ while (size) { uint32_t value; - value = RREG32_PCIE(*pos >> 2); + value = RREG32_PCIE(*pos); r = put_user(value, (uint32_t *)buf); if (r) { pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); @@ -422,7 +422,7 @@ static ssize_t amdgpu_debugfs_regs_pcie_ return r; } - WREG32_PCIE(*pos >> 2, value); + WREG32_PCIE(*pos, value); result += 4; buf += 4;