From: Yazen Ghannam <yazen.ghannam@amd.com>
To: Guenter Roeck <linux@roeck-us.net>, <x86@kernel.org>,
Yazen Ghannam <yazen.ghannam@amd.com>
Cc: Mario Limonciello <mario.limonciello@amd.com>,
<linux-edac@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<linux-hwmon@vger.kernel.org>, <babu.moger@amd.com>
Subject: [PATCH v4 0/8] Enhance AMD SMN Error Checking
Date: Thu, 6 Jun 2024 11:12:53 -0500 [thread overview]
Message-ID: <20240606-fix-smn-bad-read-v4-0-ffde21931c3f@amd.com> (raw)
Hi all,
This set implements more robust error checking for AMD System Management
Network (SMN) accesses.
Patches 1-3:
- Pre-patches in AMD64 EDAC and K10Temp modules.
- Required in order to avoid build warnings with the
introduction of the __must_check attribute in patch 4.
Patch 4:
- Introduces __must_check attribute for SMN access functions.
Patches 5-6:
- Optional cleanup patches in k10temp.
- Not required for the SMN access issue, but I thought they may
be good to do.
Patches 7-8:
- Minor changes in k10temp.
- Fix W=2 warnings found during build testing.
Thanks,
Yazen
Changes in v4:
- Rebased on tip/x86/urgent.
- Reword commit message for patch 4.
- Dropped stable tags.
- Included additional tags from Guenter.
- Link to v3: https://lore.kernel.org/r/20240523-fix-smn-bad-read-v3-0-aa44c622de39@amd.com
Changes in v3:
- Added tags from Guenter and Mario.
- Removed unused variable in patch 2.
- Added patches 7 and 8 to fix extra warnings in k10temp.
- Link to v2: https://lore.kernel.org/r/20230615160328.419610-1-yazen.ghannam@amd.com
Changes in v2:
- Address return code comments from Guenter.
- Link to v1: https://lore.kernel.org/r/20230516202430.4157216-1-yazen.ghannam@amd.com
To: Guenter Roeck <linux@roeck-us.net>
To: x86@kernel.org
To: Yazen Ghannam <yazen.ghannam@amd.com>
Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: linux-edac@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-hwmon@vger.kernel.org
Yazen Ghannam (8):
EDAC/amd64: Remove unused register accesses
EDAC/amd64: Check return value of amd_smn_read()
hwmon: (k10temp) Check return value of amd_smn_read()
x86/amd_nb: Enhance SMN access error checking
hwmon: (k10temp) Define helper function to read CCD temp
hwmon: (k10temp) Reduce k10temp_get_ccd_support() parameters
hwmon: (k10temp) Remove unused HAVE_TDIE() macro
hwmon: (k10temp) Rename _data variable
arch/x86/include/asm/amd_nb.h | 4 +--
arch/x86/kernel/amd_nb.c | 39 ++++++++++++++++++++----
drivers/edac/amd64_edac.c | 69 ++++++++++++++++++++++++-------------------
drivers/edac/amd64_edac.h | 4 ---
drivers/hwmon/k10temp.c | 62 +++++++++++++++++++++++++-------------
5 files changed, 115 insertions(+), 63 deletions(-)
base_commit: c625dabbf1c4a8e77e4734014f2fde7aa9071a1f
change-id: 20240329-fix-smn-bad-read-2ee9ddcf3989
next reply other threads:[~2024-06-06 16:13 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-06 16:12 Yazen Ghannam [this message]
2024-06-06 16:12 ` [PATCH v4 1/8] EDAC/amd64: Remove unused register accesses Yazen Ghannam
2024-06-12 20:24 ` [tip: x86/misc] " tip-bot2 for Yazen Ghannam
2024-06-06 16:12 ` [PATCH v4 2/8] EDAC/amd64: Check return value of amd_smn_read() Yazen Ghannam
2024-06-12 20:24 ` [tip: x86/misc] " tip-bot2 for Yazen Ghannam
2024-06-06 16:12 ` [PATCH v4 3/8] hwmon: (k10temp) " Yazen Ghannam
2024-06-12 20:24 ` [tip: x86/misc] " tip-bot2 for Yazen Ghannam
2024-06-06 16:12 ` [PATCH v4 4/8] x86/amd_nb: Enhance SMN access error checking Yazen Ghannam
2024-06-12 20:24 ` [tip: x86/misc] " tip-bot2 for Yazen Ghannam
2024-06-06 16:12 ` [PATCH v4 5/8] hwmon: (k10temp) Define helper function to read CCD temp Yazen Ghannam
2024-06-12 20:24 ` [tip: x86/misc] hwmon: (k10temp) Define a helper function to read CCD temperature tip-bot2 for Yazen Ghannam
2024-06-06 16:12 ` [PATCH v4 6/8] hwmon: (k10temp) Reduce k10temp_get_ccd_support() parameters Yazen Ghannam
2024-06-12 20:24 ` [tip: x86/misc] " tip-bot2 for Yazen Ghannam
2024-06-06 16:13 ` [PATCH v4 7/8] hwmon: (k10temp) Remove unused HAVE_TDIE() macro Yazen Ghannam
2024-06-12 20:24 ` [tip: x86/misc] " tip-bot2 for Yazen Ghannam
2024-06-06 16:13 ` [PATCH v4 8/8] hwmon: (k10temp) Rename _data variable Yazen Ghannam
2024-06-12 20:24 ` [tip: x86/misc] " tip-bot2 for Yazen Ghannam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240606-fix-smn-bad-read-v4-0-ffde21931c3f@amd.com \
--to=yazen.ghannam@amd.com \
--cc=babu.moger@amd.com \
--cc=linux-edac@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=mario.limonciello@amd.com \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®