Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1911270pxb; Thu, 16 Sep 2021 20:01:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbBZrGbayW1WhmSASGdu/aceyEVqKOoaUcK2Wm36Ajn5V4pWUxisY1RT7SfF2ImAau/tVz X-Received: by 2002:a92:d30c:: with SMTP id x12mr6279267ila.245.1631847672022; Thu, 16 Sep 2021 20:01:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631847672; cv=none; d=google.com; s=arc-20160816; b=OyJ3apsN8cMSdscS46U0gfOCHbto6IwulgdOs5zghHPhzH8oYh3nOTjmsx2sTBsewT ykK/9/v50va3VgGam116sTcg27crIjIPtV27ocwbjrQNzOOeiEOaLXJlM8/d3ISLqkb8 X3thT7tFQUeDFaMm7UtwsqnUc7oCgaOJWjmMfW1ZiNzUkbnCAJwr28xC/mTrxAsKxVC6 XCeYSwpMCkrcmINsZRA+j8mssNr3tjmkBfxjGqeDJ0rvEdHsc95beZjF7VydGK38UXbO VSyLKkI4DvucfMi4V/KOL36HuumUwjH7roBapCuhmhrE1h/JbuB9ODn0lxDl2fTXNzCi jHbA== 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=f5wIQx7jWgGFMDoFjKignO43Hk9IVIWjDWavLkhcPAM=; b=AnGJ5ngznmc1scG9Eh8MkNc7RhAecQxgJ25sDs9TceKiVxLo74rAaVkuJl8Xqf+K3L inhe8CXQYHicvrq0pDFteH05W3uMKoYvbonz2wRGtVYdtkipSbmzQZdUvfLMORdqPnwH p9RjMYVFwYiklbWH0Jhgd57N3QSSH1PfPaojdXhv4Hq2JIUuGY7VskAjnF/vf6WH7Lo6 mAzzvG8J0oD559F1eBTL7Ci6TshbmnRQcLtJS1dE53YbFvPMkbRq8UiXaSpzxaRrfkES J3ExVaal4UtPCRI3xjHS4pHiVze0boHww6lUInA7frRHAft8Dc/82Di/Qfog+jYdfc0P EmFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fkrcOQwY; 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 n3si4161684ilj.23.2021.09.16.20.00.59; Thu, 16 Sep 2021 20:01:12 -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=fkrcOQwY; 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 S1352938AbhIPR31 (ORCPT + 99 others); Thu, 16 Sep 2021 13:29:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:43506 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351941AbhIPRUA (ORCPT ); Thu, 16 Sep 2021 13:20:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4766A61B7B; Thu, 16 Sep 2021 16:41:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631810515; bh=JMuvoOMn0WXbrk8IZIC+V8mXCbi5cEU69e4oQiPf2E0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fkrcOQwY3vGotA6ZY3CNfnV8Lh0mDXqKkZWNMmw1/3hskbnf+HqzyWWlWwnfmS8yV 0IV+zsf9Uqz4d/aBJyUoAQoezLX+Z20q57AZkSIDdzFwmH7dcXJUxGVerdgbMggSWj lGle7gkXf3gW24QGFPyqgouHVAMyvLxbqEBYVkXk= 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.14 162/432] drm/amdgpu: Fix amdgpu_ras_eeprom_init() Date: Thu, 16 Sep 2021 17:58:31 +0200 Message-Id: <20210916155816.238341955@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155810.813340753@linuxfoundation.org> References: <20210916155810.813340753@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 38222de921d1..8dd151c9e459 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c @@ -325,7 +325,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