Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp501434pxb; Thu, 9 Sep 2021 06:00:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzOCHZAnO1NhVfzuFydlcF1A++Zd9iHpVvKu9I3NxGET6o0RV6+1GvB+W8o/qQbuGKWQiO X-Received: by 2002:a17:906:49d5:: with SMTP id w21mr3446131ejv.30.1631192411974; Thu, 09 Sep 2021 06:00:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631192411; cv=none; d=google.com; s=arc-20160816; b=odJD7MyH29I3ON8lIWaae5zxrFH7OGxVk6XiAOThGhz41vBmUR8RltFosPN1cRXDWV 63uZuGNnG9xHKpmgSAC/I8L8BXzTZFF24OtwC4vso6KzE4PC2nXAwi5ros0FYbbCoDe5 LybpQn2qhUEzaiE/vhnF04ekCdGoBYNny0A/51wWTSZGq1vtiatspsDfwrKJTBs0EdV0 6wJQRkwhM9b0YZ7tuqkOU9Uzvle0lEw28iO9VmzFJ6ZlS9i7RS+N5Z4nkXBPjDkbVcM1 ZpFhHPTd72LeYPjoleJ/4DL3jCNiUlTfdenRNYfCSKFAQCnr1fCjVkQVVypOoxwBC5lB C9rQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=gSFnJEHhEH7xOPrg+lyYXLZiOzIp/jTWuykNAgZY0nk=; b=TQrQ7BlKrRjlssleHog/dKTK4HDtK0QxBJohcuQeb4G7T61NOrKCiK/+rCntPTNKU7 9Q/XdfF/u0nwiJhrt91HEZLLV9Pk5OCu2hYE/hzyXwR6sFyDzADzVAunzevycKRklslt VtbO4ZynKnIwX5BXzKS5U/KofcjgbPufetuLl/QLMTk0unFFGg6HbmK7xlj5ywm3sgI3 pj3Anour59Thi3QqJ4upQ/xfb9mPg8I1nGMVnuqN23wZ+yUDu2X5g6OWvqLzzNdzc2xs z2xkMhTX9woIqZlIYGaWC9SjDUg28YtS4NVLaYran0xJmcGlrWeHsYiJCfjXwAkqnC6R E1mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SI03uRkn; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w21si1769665edt.523.2021.09.09.05.59.44; Thu, 09 Sep 2021 06:00:11 -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=@kernel.org header.s=k20201202 header.b=SI03uRkn; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354384AbhIIM6S (ORCPT + 99 others); Thu, 9 Sep 2021 08:58:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:55940 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355117AbhIIMlC (ORCPT ); Thu, 9 Sep 2021 08:41:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 17D4A61BBE; Thu, 9 Sep 2021 11:55:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631188509; bh=12siGeLuNRMNegAARWNe0txf5wjF4ptGz5s0ho4zFTw=; h=From:To:Cc:Subject:Date:From; b=SI03uRknSp4iI+9F4WlxXjmqEHGtOmdZ0Mw0+nbqTaQazxLiHw90KmdWsSiWQeTac X7bNXftpbNI+tXBOp04yYS3tSt1/wz67mv+YhzKBs+Xjb31Toj8NqtXuOTFpE5ZkRU ESabJFd8KLkpzjLydurhmdO8zqpJmMmZXF2x187t+VRIbbgem5K6I4QCam1FNs58iI OfHVpl4ces0ir7uiPBpsQlLsVdobBwzNdTEruC2Mhv69x0poFvQzhSSO4m0f77hThE QUWp7ZooIyInLYcJmFLaE2HQ8MRHm6CM5gSs9FrzO782b7QvkVJimrX+ROdP5Szkdd Qm95T4+8+/L/A== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Luben Tuikov , Andrey Grodzovsky , Alexander Deucher , Alex Deucher , Sasha Levin , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 5.4 001/109] drm/amdgpu: Fix amdgpu_ras_eeprom_init() Date: Thu, 9 Sep 2021 07:53:18 -0400 Message-Id: <20210909115507.147917-1-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore 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