Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2339633pxb; Mon, 20 Sep 2021 19:22:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw89W/NJZwUwJKTo8MR8u7vaKjzjDLhjmPU92Q3q9j1N85IVYn6Ohyc4b9bk3uP+p5mt9+c X-Received: by 2002:aa7:d7d5:: with SMTP id e21mr33355903eds.27.1632190944430; Mon, 20 Sep 2021 19:22:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632190944; cv=none; d=google.com; s=arc-20160816; b=gPPVPp3h2jrZiRPVuzEVk30KxcCIPJriFILWF68tVNuOoysbHHVI4OcGgKHbdZe7LV qq1amoDzDBSAQNS/NnvUsfUWI3/+PDHOCUwy8fsVPJasOBtbR8QYNhOlopcS9QznPvDP Daz4EiEYD1lkhXCMM5Ryx1byCIdHb0cCZisPccbxJasZtZbKVL+Umy1cIeTz7SZKhJyz TFQOedZHg+m8oKlhjg33Vvqhyu+ommTZmSHvEd4XPDFJ0mlp33BfjaZ+47zNhMOODihM iZo1i2hGG8Im9EyLdqlugoliImagbiCkWH/IuiiPwOQtuILPkkKTA53D9zRZgdcC9Xpo HSIA== 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=gSFnJEHhEH7xOPrg+lyYXLZiOzIp/jTWuykNAgZY0nk=; b=TCu8513EttkQgULiG8kWxwjSlNDozcA5dsjYNtwrTYqRs2sxAsHS9gvWG9A+trp3mO DsPsPX18wXcFzy/DD5SxEwaTqoMEF1xA2+CSFTr4wydkM6JPvX9Fw2x2n5fyFdeLAMN/ czKCahjRUlSfLeS5LziGFJKxzInucif/ebm/O4cVdTLYtBWacuD5keAeauAQXEM0HgW0 Gjmr0I9A7DusPmVIPxHqAdM4uqqaysa9xYYC60AHGlhbs7CfF6wsAAcmQBxNdUK46Fsb BFz1QGlHrN7TxvVCDxAa1JRPSj8Ha6MGgGvX3fsWl7Ko98SBvaTDtEyVBy7nBjcJzIdu ZslA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BRQBt++f; 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 i13si18050299edq.512.2021.09.20.19.22.00; Mon, 20 Sep 2021 19:22:24 -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=BRQBt++f; 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 S1358937AbhITSLb (ORCPT + 99 others); Mon, 20 Sep 2021 14:11:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:33278 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358065AbhITSFZ (ORCPT ); Mon, 20 Sep 2021 14:05:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D338C61A05; Mon, 20 Sep 2021 17:17:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158256; bh=12siGeLuNRMNegAARWNe0txf5wjF4ptGz5s0ho4zFTw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BRQBt++f7eSwm5qsUJD9j+oGqvvtZ7MKMKlMOFBEP+3bpmnvpyPqmd86PlWc38d57 mRqofPqwgIOKXvg1ie7towv04M7JLNPRwqIAHnsHrYUv9yxUYoB27lXhBHxYXah5W8 c4Vi3B6Syf0Yo3VNTgbmKPYJreT8lUrwAJX7OpM4= 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.4 072/260] drm/amdgpu: Fix amdgpu_ras_eeprom_init() Date: Mon, 20 Sep 2021 18:41:30 +0200 Message-Id: <20210920163933.579121842@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163931.123590023@linuxfoundation.org> References: <20210920163931.123590023@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 8a32b5c93778..bd7ae3e130b6 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c @@ -138,7 +138,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