From patchwork Sun Jan 7 12:56:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Borislav Petkov X-Patchwork-Id: 185729 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp523223dyq; Sun, 7 Jan 2024 04:57:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IHvU84kp8qUApxmBOWOKi4O3F8HwLe/qoEk2BIegnfD1GO2HZKI5uCsl+9tZSeIPUKjni2m X-Received: by 2002:a17:906:f1c9:b0:a28:5573:aa6a with SMTP id gx9-20020a170906f1c900b00a285573aa6amr943241ejb.52.1704632245317; Sun, 07 Jan 2024 04:57:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704632245; cv=none; d=google.com; s=arc-20160816; b=URLsllW1ls7wHUfNF0jRVn4soyJnAaTcEUpgNH/2hTPw+z6BaQKvd/wVY111crukPu FPc2/oYBT6suvP9O4ep0K8WevRcsFhuqSr3Apa8j3DJZXDeHpFGZzMqwWl+AWxa77PhJ FHxoOjRsmmtRLU1163Qq5wk3PvEVqTAWWhtIpnjv6updGlhD0dboRZRQDufQ+vEDl7OY 0mMFMZiEiDRwXZJwNlZzKmCDXmp28WYQ/BoMWH1MdRvwStuUY3uHv8JSPqQTJoKNyKWY 06cd7hx5fVjTKTwicCcNqJC3jSmFgpcvV2anq9u0GWxHqulZmH4Y8VDgaF9BRJateD3R D2vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=wY32Z7/3lgoSyXYC+87XpGQX8RmNGRz5d5SrIr3DRyQ=; fh=5ZjxVYKXeWzXrQtuvh8WKOTEKQBUJ80ckFoMga5XCYE=; b=mCtN+J/pG4gT3huH0xycwEo1pDEc/w5P+rFdkVxPs8KXpqisRFBJYCvX/TCU+mukhy tKt4TnHN5k332W30RSnlZmF0nvqVKkjMsNHKzpkYqGUntbnmQkbaU6sU3bVdIC9IrLnS 0nQVQCF31PwTCePlTpUwUpP8vJpud/X2DLQXqCzzH4gDPokwXpdIgtkEItX/RXGQ9gW0 3yWYNwJqFCKzGQNsndUGNb5NBaE6dU35NnAR5CeEVvnZYTVbeLNUiS+ououEVdWoaNdI ORnHUPiU/GZy318g8XQdSD6cz/IsulBZYuoyop9Je9FQSWdPtogfZ0I8fppgB4dP7lWu bwVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=YHnRe3YC; spf=pass (google.com: domain of linux-kernel+bounces-18862-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18862-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gg16-20020a170906e29000b00a27b19f39a9si2177595ejb.441.2024.01.07.04.57.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jan 2024 04:57:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18862-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=YHnRe3YC; spf=pass (google.com: domain of linux-kernel+bounces-18862-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18862-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D3AFA1F2197E for ; Sun, 7 Jan 2024 12:57:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6B89E134C0; Sun, 7 Jan 2024 12:57:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="YHnRe3YC" X-Original-To: linux-kernel@vger.kernel.org Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 23681134A0 for ; Sun, 7 Jan 2024 12:57:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 09F2340E01F9; Sun, 7 Jan 2024 12:57:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id cNWX0paTR2NN; Sun, 7 Jan 2024 12:57:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1704632222; bh=wY32Z7/3lgoSyXYC+87XpGQX8RmNGRz5d5SrIr3DRyQ=; h=Date:From:To:Cc:Subject:From; b=YHnRe3YCbfIZ+3DjKAZlSJ+4/9zevCG3t3dhxiVHLZ/PviOK9xtrTrc/FTi6/rz9j 7/EZyvmYLPDhwatCQXTm9dXITg5R9p6YqUnB2+F+hdgL12CIx2JWIBRVdlwfIIMbQa dtlwh1R904c11MHiGDevdZS0lsTOubVOzaobwIcg4J62yKJoT1buR05LO1/bIE0G5N ZJHr884dwbd9i93zY7xF7vtjE6pjqCwYuTpP7IgLOQ+a+txAejkqVDNzipSuhXxpCB BAj9WDBRqM+VShBW7yeMtl9Hv4sUuiKtvGbd4MYXOzFUk8jt1qT8TaOXI/x0ioKmn5 H1At2U23v2D+Ddf3IwCRQf3OVsOQDpJPniLJ+zZwCYl88jIMFyTQaJLOB6kjIXMqin DSBl1cpA7tIpdSIpxGWUoeMJh1o2TdbwuZ2G87C8BsiAiIxcj4iFzWB5FAQJt8/mLw 9eYmyZ3B0vFgv1ZLtSqCw/jEON9CtNlBAm6tO8UaVNYeOPxXRhAqTTQkMpcQHjXlLV uI3+WQceG0iyLnEjvfeBHkGlq0msNFp6WbDcJIOubdNaKHncVcrbQDmTWUR9EfTh/c YDaplh4yUKxSkTHvswOMfq/DEjMa35hnVevoSJKNjU1MDVn5RzwD27ASY37SsjOxnK 86j6z4uBhcGJPUKROYMCS8tE= Received: from zn.tnic (pd9530f8c.dip0.t-ipconnect.de [217.83.15.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id E73E440E016C; Sun, 7 Jan 2024 12:56:58 +0000 (UTC) Date: Sun, 7 Jan 2024 13:56:53 +0100 From: Borislav Petkov To: Linus Torvalds Cc: x86-ml , lkml Subject: [GIT PULL] ras/core for v6.8 Message-ID: <20240107125653.GAZZqflcax9rVtvbcj@fat_crate.local> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787436461228403468 X-GMAIL-MSGID: 1787436461228403468 Hi Linus, please pull a bunch of RAS changes for v6.8. Thx. --- The following changes since commit b85ea95d086471afb4ad062012a4d73cd328fa86: Linux 6.7-rc1 (2023-11-12 16:19:07 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/ras_core_for_v6.8 for you to fetch changes up to 1f68ce2a027250aeeb1756391110cdc4dc97c797: x86/mce: Handle Intel threshold interrupt storms (2023-12-15 14:53:42 +0100) ---------------------------------------------------------------- - Convert the hw error storm handling into a finer-grained, per-bank solution which allows for more timely detection and reporting of errors - Start a documentation section which will hold down relevant RAS features description and how they should be used - Add new AMD error bank types - Slim down and remove error type descriptions from the kernel side of error decoding to rasdaemon which can be used from now on to decode hw errors on AMD - Mark pages containing uncorrectable errors as poison so that kdump can avoid them and thus not cause another panic - The usual cleanups and fixlets ---------------------------------------------------------------- Borislav Petkov (AMD) (1): Documentation: Begin a RAS section Muralidhara M K (2): EDAC/mce_amd: Remove SMCA Extended Error code descriptions x86/MCE/AMD: Add new MA_LLC, USR_DP, and USR_CP bank types Nikolay Borisov (1): x86/mce: Remove redundant check from mce_device_create() Tony Luck (3): x86/mce: Remove old CMCI storm mitigation code x86/mce: Add per-bank CMCI storm mitigation x86/mce: Handle Intel threshold interrupt storms Yazen Ghannam (2): x86/mce/inject: Clear test status value x86/mce/amd, EDAC/mce_amd: Move long names to decoder module Zhiquan Li (1): x86/mce: Mark fatal MCE's page as poison to avoid panic in the kdump kernel Documentation/RAS/ras.rst | 26 ++ Documentation/index.rst | 1 + arch/x86/include/asm/mce.h | 4 +- arch/x86/kernel/cpu/mce/amd.c | 80 +++--- arch/x86/kernel/cpu/mce/core.c | 72 +++-- arch/x86/kernel/cpu/mce/inject.c | 1 + arch/x86/kernel/cpu/mce/intel.c | 304 +++++++++------------ arch/x86/kernel/cpu/mce/internal.h | 66 ++++- arch/x86/kernel/cpu/mce/threshold.c | 115 ++++++++ drivers/edac/mce_amd.c | 526 +++--------------------------------- 10 files changed, 457 insertions(+), 738 deletions(-) create mode 100644 Documentation/RAS/ras.rst