Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1700307pxb; Thu, 16 Sep 2021 13:20:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5+A5jSwrhqhF8CzzpEY4s1ezD4iJ9vYvWjrJE65UWZNX4A2nd+dLz1BnEUCd9mIllOZMP X-Received: by 2002:a17:906:4a0b:: with SMTP id w11mr8517012eju.265.1631823620766; Thu, 16 Sep 2021 13:20:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631823620; cv=none; d=google.com; s=arc-20160816; b=WHQ2NDH9zFpzVtx76jDMTA+rlN9cpp3ZCR6rLLxqne/1B/O82XgIDpuASA1m5qGTYH wZE+R86IC47L6rnLBY1EylL4syFI1tMPWbWe6W5PD2cJbJXmpgJqb7lcany5VZ4ykWvA Pb3v2X5qQ+BBTXHEN7vF9OSR0OH3UL4bX5Cm6fHK7a1jVFlqpldomybycQVr1FaooeFE UPyve7XYSmtE2y6Yco2yu+nP7cJX/Yz1FfCJeJvD45fuIiIAG1fen9dpG/jaGoBgPX45 vTZZ0rMDZrVyZ83rq7HM1wsoDFHuLEAOGc6oXsZMKrd5FSwfeQVuHzUS/stdE42VPlzL +Q8w== 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=nq+9WQ06birmCcAfSNf5/+zyiEcOhZE9j87i5UU8D6Q=; b=f4GZaCvEN5qHu+dpcK5N1PtHHt5ZmftG7LRFU2DN/jRXoqhPtSti8tJsU6DQnM5hf/ GIKWx+725km9dxHz3KLOGy/b7wTHFd/Jw8xSMAspiXsH6barMlHqKIxH5oxvDaekBqZw 3k4E01PhhA+NGqt4c8UFcdL0494DLW620aAuCQ62z1OuXeaVMk7qEE8lfBnMXnzJZoNg YPxwVFgcz5a0NVtSSz3srgwap1n3XWUw5u4ss2kT5HVCTrsRHz0udFdXi6Ye/y+Y+hvq 0bVAuEgSQbv1EY3taoLXvp/9YWdnkyEdMcrODxxBUd2B56qel3mizT0WkQCcybfwu7i9 KWfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=e6lSyOXs; 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 m9si5877088ejj.143.2021.09.16.13.19.57; Thu, 16 Sep 2021 13:20:20 -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=e6lSyOXs; 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 S240918AbhIPQVr (ORCPT + 99 others); Thu, 16 Sep 2021 12:21:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:48650 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237151AbhIPQNA (ORCPT ); Thu, 16 Sep 2021 12:13:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C16596138E; Thu, 16 Sep 2021 16:09:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808579; bh=66PsxHGFF27Jtkv9Tx0NBeYhrP2C21IWHYups0lC3cM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e6lSyOXsy/0+vHZARH9O2ujbf/458MNmWJlRGTCiUEP4dJXox1ngp5CLNoJhZVJXu X5pOqYID3GdLOZyU8hOYonzWijunhHI6x6ndFiXCysXpYGOIt+OwOB+o6HhiHxR6WM QvHWkU4BSHjL68Is3ugzRMxRI8JT7C3nCdeq/dQE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andrey Grodzovsky , Alexander Deucher , Luben Tuikov , Alex Deucher , Sasha Levin Subject: [PATCH 5.10 111/306] drm/amdgpu: Fix amdgpu_ras_eeprom_init() Date: Thu, 16 Sep 2021 17:57:36 +0200 Message-Id: <20210916155757.864667295@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@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: Luben Tuikov [ Upstream commit dce4400e6516d18313d23de45b5be8a18980b00e ] No need to account for the 2 bytes of EEPROM address--this is now well abstracted away by the fixes the the lower layers. Cc: Andrey Grodzovsky Cc: Alexander Deucher Signed-off-by: Luben Tuikov Acked-by: Alexander Deucher Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c index 0e64c39a2372..7c3efc5f1be0 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c @@ -305,7 +305,7 @@ int amdgpu_ras_eeprom_init(struct amdgpu_ras_eeprom_control *control, return ret; } - __decode_table_header_from_buff(hdr, &buff[2]); + __decode_table_header_from_buff(hdr, buff); if (hdr->header == EEPROM_TABLE_HDR_VAL) { control->num_recs = (hdr->tbl_size - EEPROM_TABLE_HEADER_SIZE) / -- 2.30.2