Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp243697pxf; Wed, 10 Mar 2021 05:31:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0n/x0zAWBY2rl0muR0Zem2r9m7bC6iNkK10/m6osbi+c+YFdH7aQbr4dvmJrwxdvn2H6Q X-Received: by 2002:a17:906:3648:: with SMTP id r8mr3811673ejb.58.1615383078510; Wed, 10 Mar 2021 05:31:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615383078; cv=none; d=google.com; s=arc-20160816; b=NNKfCKIfjmNLhk1gY6LeugLZxfwoZJOWkTP6nQMh71S5OFt9xE5P4kEWfz/wZONLf1 JgBfu9oFNIHQumdI6IL2wDtuNDY7HPUyLE++BV4QRK0NyTDclx8WSGVg8w7TkylpdQDz NK+LWKmrQjuxcGwwy2et7p9PAKzodgEJLfRVRA9CufwT/GsQC8oNwe2qJL/I3RDR1vMf s3YNUDs7MDHWCxkZ/DD2EzGBEfi4RixWUyR3G0Aj4orjoPII2QJSQPdm3dXHNi9SeNLM INQxEj7201ePAluCCaXf1Z1zAS6PSOCsSEroJt0tkUaGZAnsRZ3U74N+eYRr8Wz3jXez 19xw== 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=q59SothqfH8GLtbFkEgiiMzxp2gJ42UIgMqg8SC0Y3c=; b=JdbV1g76IwNIcqsZ2rie3kgCTpIsRoF528fEPOAx/UJ+1quSAUaFrmVhDiD627WIgr sY7BXcqJAflfnZdFfC4oLfLzZpN4tUbTQlJM+YiY9/rh6qJxuvFGsWoJCZw+4pO8zl7O r5fNyml3Fu9dmS7hZEYgxWBxw1Tzr4wqSWIUFASDMpAqfgbvxU8SEci8WqJ8dV86yVDw 6IZCUU7rGIpwmGXWME9DKKMe7sV0qTQsR6RouCUv5F73NRqGN3ARt6sNBtIcNh0Qk0i9 slYhnT1A15Ef2aXWLv7VqN6LZEPxBszq/46vJvxZRYwAxp1RI0+1BcdSykSsLiTtOkje VDpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="d6aVz/Lv"; 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 a4si11674378ejv.296.2021.03.10.05.30.53; Wed, 10 Mar 2021 05:31:18 -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="d6aVz/Lv"; 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 S233150AbhCJN2A (ORCPT + 99 others); Wed, 10 Mar 2021 08:28:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:46628 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233214AbhCJNZG (ORCPT ); Wed, 10 Mar 2021 08:25:06 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id EFAC164FFC; Wed, 10 Mar 2021 13:25:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615382706; bh=S/7YqJowUu7mr8v7DdJSfZ8c/UGkSNjW14yt8/iWBCY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d6aVz/LvrGmfZEMZWInSN3WaKTZeqwoCQPLzz9YecF13h7/p1dLNTDdQFIDObXPiU QgQmNUmElFypxOTK5yDT+6aamN5l5L/U/l5rK1bhzFfbrVgtKwlwgPRnYSYR4fpDuY unYJRA2O2x0z/b4sHjjlR/A7FKIohUyCY96/IYD4= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kevin Wang , Lijo Lazar , Alex Deucher Subject: [PATCH 4.19 08/39] drm/amdgpu: fix parameter error of RREG32_PCIE() in amdgpu_regs_pcie Date: Wed, 10 Mar 2021 14:24:16 +0100 Message-Id: <20210310132319.995385177@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210310132319.708237392@linuxfoundation.org> References: <20210310132319.708237392@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: Greg Kroah-Hartman 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 @@ -239,7 +239,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) return r; @@ -282,7 +282,7 @@ static ssize_t amdgpu_debugfs_regs_pcie_ if (r) return r; - WREG32_PCIE(*pos >> 2, value); + WREG32_PCIE(*pos, value); result += 4; buf += 4;