From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D4537CCD1A5 for ; Sun, 26 Oct 2025 14:19:41 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C1F2A8E016C; Sun, 26 Oct 2025 10:19:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BF6D18E0150; Sun, 26 Oct 2025 10:19:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AE5008E016C; Sun, 26 Oct 2025 10:19:40 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 986BF8E0150 for ; Sun, 26 Oct 2025 10:19:40 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 135AB58D97 for ; Sun, 26 Oct 2025 14:19:40 +0000 (UTC) X-FDA: 84040473720.04.B9201C8 Received: from MW6PR02CU001.outbound.protection.outlook.com (mail-westus2azon11012030.outbound.protection.outlook.com [52.101.48.30]) by imf01.hostedemail.com (Postfix) with ESMTP id 1443140002 for ; Sun, 26 Oct 2025 14:19:36 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=aUj+IRv5; dmarc=pass (policy=reject) header.from=nvidia.com; spf=pass (imf01.hostedemail.com: domain of ankita@nvidia.com designates 52.101.48.30 as permitted sender) smtp.mailfrom=ankita@nvidia.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1761488377; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=Vkkse/YCPhiM7IeSw5aVTcy7msUuRv8QaE1VftLvlMU=; b=yERSOd1dn+5ya2GcFcAT25+7DIFGBGuebNLltj508PPctr38oVJJ3bOzn8c++7UWkC3KBM JfgWRV5w90Pgae8NgMHmKmtbx8WyLA8gUjW2HrVhGtCrZF16YnB5WhS+AS11t9RLQV5pHY UiA141Jha4vL6bdRrjbC3yMUfS4vSPE= ARC-Authentication-Results: i=2; imf01.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=aUj+IRv5; dmarc=pass (policy=reject) header.from=nvidia.com; spf=pass (imf01.hostedemail.com: domain of ankita@nvidia.com designates 52.101.48.30 as permitted sender) smtp.mailfrom=ankita@nvidia.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1761488377; a=rsa-sha256; cv=pass; b=K88M7NoENCbi8/BUBNp8ARUZ/LlG2J5PQxVyR2UTX3+UfTnjUSXqr/SLpMlpklmIkNGfry XtO+qxSsPn9I/wdnmbelcJUws39mjlM3D7hG3Phu3r6Y6Mk4BgctMG4xXEY5RekrbAhfsE 6NbG9Sa9r59nVvX0g1zTOs173NxxEko= ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hyPDnZLE+w2ztO/ND6UcaRYfu5/NpAdjOXcBBWj6ER7DcsUXFukPzTvOdegGBIjdLz5wPqBc7P0Rev3nP/E41bseYAnMQeltd0gZXMSkLNExn54PoyvUMypR6Fj8YP/7gWt9zfwGFEugTc4dujsyRJviLLxWpQJwEx54bNtf1kEFhypM4kqbslyBaDXQDFLxSWk7srwEXdqgWCOUd9PqUxdOHM8sDXUZwLOi4rxESQBwAvwmCLA8uKTCK8yaE5wg5p0MKlQrz2b+SmP2j52MVZEmIS7aBzkF/IvBXxgUebq1lTNFO/0eOZ037NACCgdYEVnmvacJeIhNtT4AMX+TDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Vkkse/YCPhiM7IeSw5aVTcy7msUuRv8QaE1VftLvlMU=; b=O9ejhQuo4O92dE8JlLCgMWcyyY7UpOXKe7yMd+fxBhKqIUfUh8W0RcI7WElVwxFD0XKqqG6lwvGNIZyUhyWPbJSYm2Y0gAcuDa/3GQ3l8U6tmfLdJ5id1mhn8MKWzHdZeScZRo8by7rrRxJsH7H02+1UZ3xs4jfX8HcjGW56JMpvcD5vzp3aNyum+qJTK24cRMsq8Ek9nXfXOZWAxrjvrQ1PjM6lt93LPsHHB6y7WxkRFXFVW2dUU+VwFfMBOymX4usO8GE303no8W4aRIW5zgACCK6jPQ/F5debpc/vfy0/W3xzuN5AYrrQzV7j3hhl3sxemtteQwZuGqw0MCE9IA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Vkkse/YCPhiM7IeSw5aVTcy7msUuRv8QaE1VftLvlMU=; b=aUj+IRv5JC4VovFuswLLZ1NBRSwtgVxbUPN5VvNj2bil2LP12qzmhoaiwhV8EKQJgOspCqBdpx0b+rp3acTsy/9/DgkefekX8WGm4NjEU7nWlSj8Rk8D3+kh8XLyKwVCKWc31a2O3v/kG0+y+FN9xo8wm7LDGqWC9MbaACM7b3XwzJW7TajTgye7trz3t7dNAQ4lwLWv9tRIDO/B4RKfCwSfCoFaS5/StQCEgNeXjrsZH8UAj1JvZzmr4R85NhdpOS0afLEzMC4XtdaKFPOojYyxH28pdkcnWAbeJ3cCw+iI0j5SrE6zyX+LW/oW9yOfJE9BqycD/BNAjcdS6fx72g== Received: from DM6PR05CA0057.namprd05.prod.outlook.com (2603:10b6:5:335::26) by DS7PR12MB5790.namprd12.prod.outlook.com (2603:10b6:8:75::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9253.17; Sun, 26 Oct 2025 14:19:32 +0000 Received: from DS1PEPF00017097.namprd05.prod.outlook.com (2603:10b6:5:335:cafe::fe) by DM6PR05CA0057.outlook.office365.com (2603:10b6:5:335::26) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9275.5 via Frontend Transport; Sun, 26 Oct 2025 14:19:26 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by DS1PEPF00017097.mail.protection.outlook.com (10.167.18.101) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9275.10 via Frontend Transport; Sun, 26 Oct 2025 14:19:31 +0000 Received: from rnnvmail202.nvidia.com (10.129.68.7) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.34; Sun, 26 Oct 2025 07:19:22 -0700 Received: from rnnvmail201.nvidia.com (10.129.68.8) by rnnvmail202.nvidia.com (10.129.68.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Sun, 26 Oct 2025 07:19:21 -0700 Received: from localhost.nvidia.com (10.127.8.12) by mail.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20 via Frontend Transport; Sun, 26 Oct 2025 07:19:21 -0700 From: To: , , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , , , , , , , , , , Subject: [PATCH v4 0/3] mm: Implement ECC handling for pfn with no struct page Date: Sun, 26 Oct 2025 14:19:16 +0000 Message-ID: <20251026141919.2261-1-ankita@nvidia.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF00017097:EE_|DS7PR12MB5790:EE_ X-MS-Office365-Filtering-Correlation-Id: 0267edf0-d235-497a-dccd-08de149aae93 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|36860700013|82310400026|7416014|376014|921020|13003099007; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?l116OUSf7suddr5jla/zpE/8wHviigDw+yyU1dbuP5+/GxsXEogXRVR4SLoD?= =?us-ascii?Q?EoTqa6eL2SI/93KMgIu2J7lno4KHvSwjiSBLwqvhMDc9tQSERhfUSXvDFdwR?= =?us-ascii?Q?uw0/Gaxgv6P8l0OZL4kTtWvuC/RSkrHguuwdzAHy+pzjyHvWMLbWQGiGyfEN?= =?us-ascii?Q?SMMDRDoNb9ds5nnZm+ft/GwPUGftyFumDtmBOAB5BrbysuHwXGFlUoGfQnJf?= =?us-ascii?Q?VN58FLKVDnrD90vWyyIbBgbIJvPxUOLGlKQtsmuk664MgiYR5G8rbSTWAY7O?= =?us-ascii?Q?24z0Uf6aDSuCvn8bUzviWczG+5aDcRhDqCI35FNE2r6jurHktFbmLvdzE+gT?= =?us-ascii?Q?ju+OqzYqqiYqivBgCdCMDxJF4BR/bW8gvRLMsALRHUw5iru8PUejQWwBKBxX?= =?us-ascii?Q?B1FCeC5ddWw9xLZuSTX/sqZ3o7upj/hJGQRs5OeRigwZ0bU2eAdYT3ciJYvD?= =?us-ascii?Q?+AUZLosFGCPrCZeA+wsIGHPZ5OPkZPz5lszOpdWzpuTGkiwg4kFA6oKvHhyi?= =?us-ascii?Q?H6kYJZK6qzLhtZaacDGom63DhBEngX8OtIWp8XnkrccFtVmY9wOy6VpKo2qY?= =?us-ascii?Q?JFzzGBHo2tu+4Gb4zVyPipJAz2kbwJOVmCekYmhM5Sfwi8u1yHdfI6x83/9D?= =?us-ascii?Q?BBAskbQdK3I3jyBT8dSmi/knsULQyZOD4kE5VFNax0TNMpqJQRRNiK3YQ8il?= =?us-ascii?Q?ts+hPwuwm7ySukIaFcO9FDG73mdIzAulusfePE2cxIWedOyceTxT2L/K6rsN?= =?us-ascii?Q?o5fCDg2AiUCFW2P3Lnuq1+XBsadnH5bddxMY5/gE5TnuSxQ0Gqaob6Ohi1Qs?= =?us-ascii?Q?Dnm4KzahcBzYrI2CAgFXusIq2x6PBrhEdvw/GcFTF7M1PFP3vndavXq3Vu1i?= =?us-ascii?Q?dWKqQe8u9MoF4xSIf2WB6yeiOtd0z0nP7ZWDVgTS4IIVglGRE92T3P3QBT06?= =?us-ascii?Q?R4iMkF084jnLy8j2OYuqAQ3Gw/WwTPPNEgDW4LBa4HWhcCNNDzkh2cKK2+fe?= =?us-ascii?Q?joD8tNfTRJYJNHm9djr8n0nyYc9Lhqr+gpueutoOxAz0ASO8OqpH330y64w/?= =?us-ascii?Q?cwHvIYl67bf22On6tzXS9avQlGLqOAnR35XAyQNxnxVB9LAFxPYoYtd1NY5l?= =?us-ascii?Q?GNV5donqOnkxc/iljA5GF3rqPM1QfL1nubgXDeIbJeiNAmKVfmoQyxxA2Yvg?= =?us-ascii?Q?w4iP8At17WvKqAo4qPL2ECjNELEfEDE7fE8d+y9kNUNAcvjRbRZ7lp6OcS/3?= =?us-ascii?Q?I1StAdex3fMbTravbAD3qd+q1YwuWPtWb/PSkPT4QTydBftJi0Z+9iwaertq?= =?us-ascii?Q?UuuxxBKJqGvao5gaTY5xz/sSzVwVEF8d7W+fWuOiFYSExJvVwu+kuhevV3y0?= =?us-ascii?Q?MeujE929RBPkKFD0X8TuvTHABYdKZX3WkQcG0XBhS4StTJT++PBYHhNhBqmR?= =?us-ascii?Q?r84ivKOd1M+BhuZu5s9Br60KuMyDNqPxUC6fN+dAPEhU+8t0Re12T27En5JC?= =?us-ascii?Q?n2FqjDDA3YarUXPF/nn3FjUd0Ynu19KxP6bo3UE+17BZ+oHYLRz7UWzjYGB1?= =?us-ascii?Q?ATCHOxGoUfT7WVclu1CaUtm91eRID4BXpe37Jth2MSJyQThUbbUEE5lIFpof?= =?us-ascii?Q?nQ=3D=3D?= X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230040)(1800799024)(36860700013)(82310400026)(7416014)(376014)(921020)(13003099007);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Oct 2025 14:19:31.9030 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0267edf0-d235-497a-dccd-08de149aae93 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DS1PEPF00017097.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB5790 X-Rspam-User: X-Rspamd-Queue-Id: 1443140002 X-Rspamd-Server: rspam03 X-Stat-Signature: 1fob7o7kepu8afnosu9j5cpjdw5o5p5e X-HE-Tag: 1761488376-573601 X-HE-Meta: U2FsdGVkX19W4UnvEqQdy8s6U19B8s0p0zk1s0EZeLxPFEesZ3vw4ocFloKllBy50vaAyqsmtz86NYIaMiOTdZmbXKoB6icAvGNfAOwKkX27qll/ZzCldMbsXbpS4mhihJB3pR3MiZ+Ytr9z83edDQJ6gf7btFouR/CJeFZTnjkvHM/BbYFNnGpr4k1daRgywwsXAjzc74g6sSMEwH9xvaPlTDVsLVrV6RiHX+Srn5+dWMwtNTvwTJ5QnhCIazZ4VaJ1Qz7e2HaQ7NiYz32Q5oWFrMHQpeEZyjqzdDLUNUM6Mx1pRAATQdvHMIm3fJFy+ealy8gQ4w2j+BsNA6Y0U4/d3y8MHa+EGRepU34HF5UAVXoUsKHlMqvw2IsVhW6sIVggfn8UVOWRtb58rgCS55Rm2JxtvArGRq60I+lMz88CtV2EqjxmLcBSscQObeuZqRD5EuPicAxa85M33WJiia+brLUtDiuYot9LSdPLxX2R3qLDZp/AWxtd1BD3enmde1CezjPefdv8qFKZzsexg0Btn79sy3z0w0bWHyJ8ttmDTt/FnAQZZ2ZKqhfvAWIAiDLL0AdzQ33D4oTwA7TW6D3hqRxDHFnXrG/lGM45XUps3G7fo4oqETlAz7Hxai0BIzwl68UDMyMXLEZekblgRi0t9x85/fBGAXseiAfzqjq8/r53KT39OB7df85mLzy/NTojNikYpBiAxIhPTsl0NMYNVRqKPPyD1UVde+70MQlZPNyhUi9LldktPO5UNg0CKYrx4l7iUQhJK/LEM11zSEte7eMp9xKKdtmXne0FM8gR1HOkbbxvslgxSwW0Jwh5qw11bVTXIkRo74caX/UoDSS33gLJ0NYkBVw+FE6SEKVjeeOwoI/NQjwGJ/qPfLPEtZgFfQV52u0ccA8gm0STfM7UroQgK/0G5nkrOESj44UAkf2ECN/9H/Mf32d3o8VkOAtvdHzt65IuN9gmdvN deXYrXGo +O/4jWGSiNMWwxDwFbvJEszlfPa2P5QTY2ShCrqia/zK2BMCDUUFruI1Y3so8ioOZHHVFubC0AS0EoIUSG3WJYMMU/IY7uqqDqxE+lvJ3LExblfYauDWRlFluBVsj4uwA4pUWJLUBdVpwpsXay4w5rEvik6GL7+5wnokCja85hDty4PwTsHLp2Yv/v0PDl1mhXBGOdSJRFlK2rM6J4wgzxfdrRSt6Xb8mxxqxjjkYmwHJtHHIK6ngh1cOZXM0n7h9cN98e8rxHnM4g6SyzYUr7jyDfVVP1m6RUuqR+MH+hgUc4bROUVwKjPQK1CfOYKyBr7MmZ4qIbnqhNg60aycr66f5uTgOTveMCqLSL+zE0bovTgyJzbbQl8x9AlIDqaVCV20HZZzluAxPGiyVwCQkGWIU+CSKS4S3/RuHBKvo+8fuRadyoWQpQFmpuNB2ZX31i/PTJ1U8kHsPgbI= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: Ankit Agrawal Poison (or ECC) errors can be very common on a large size cluster. The kernel MM currently handles ECC errors / poison only on memory page backed by struct page. The handling is currently missing for the PFNMAP memory that does not have struct pages. The series adds such support. Implement a new ECC handling for memory without struct pages. Kernel MM expose registration APIs to allow modules that are managing the device to register its device memory region. MM then tracks such regions using interval tree. The mechanism is largely similar to that of ECC on pfn with struct pages. If there is an ECC error on a pfn, all the mapping to it are identified and a SIGBUS is sent to the user space processes owning those mappings. Note that there is one primary difference versus the handling of the poison on struct pages, which is to skip unmapping to the faulty PFN. This is done to handle the huge PFNMAP support added recently [1] that enables VM_PFNMAP vmas to map at PMD or PUD level. A poison to a PFN mapped in such as way would need breaking the PMD/PUD mapping into PTEs that will get mirrored into the S2. This can greatly increase the cost of table walks and have a major performance impact. nvgrace-gpu-vfio-pci module maps the device memory to user VA (Qemu) using remap_pfn_range without being added to the kernel [2]. These device memory PFNs are not backed by struct page. So make nvgrace-gpu-vfio-pci module make use of the mechanism to get poison handling support on the device memory. Patch rebased to v6.17-rc7. Signed-off-by: Ankit Agrawal --- Link: https://lore.kernel.org/all/20251021102327.199099-1-ankita@nvidia.com/ [v3] v3 -> v4 - Added guards in memory_failure_pfn, register, unregister function to simplify code. (Thanks Ira Weiny for suggestion). - Collected reviewed-by from Shuai Xue (Thanks!) on the mm GHES patch. Also moved it to the front of the series. - Added check for interval_tree_iter_first before removing the device memory region. (Thanks Jiaqi Yan for suggestion) - If pfn doesn't belong to any address space mapping, returning MF_IGNORED (Thanks Miaohe Lin for suggestion). - Updated patch commit to add more details on the perf impact on HUGE PFNMAP (Thanks Jason Gunthorpe, Tony Luck for suggestion). v2 -> v3 - Rebased to v6.17-rc7. - Skipped the unmapping of PFNMAP during reception of poison. Suggested by Jason Gunthorpe, Jiaqi Yan, Vikram Sethi (Thanks!) - Updated the check to prevent multiple registration to the same PFN range using interval_tree_iter_first. Thanks Shameer Kolothum for the suggestion. - Removed the callback function in the nvgrace-gpu requiring tracking of poisoned PFN as it isn't required anymore. - Introduced seperate collect_procs_pfn function to collect the list of processes mapping to the poisoned PFN. v1 -> v2 - Change poisoned page tracking from bitmap to hashtable. - Addressed miscellaneous comments in v1. Link: https://lore.kernel.org/all/20240826204353.2228736-1-peterx@redhat.com/ [1] Link: https://lore.kernel.org/all/20240220115055.23546-1-ankita@nvidia.com/ [2] Ankit Agrawal (3): mm: Change ghes code to allow poison of non-struct pfn mm: handle poisoning of pfn without struct pages vfio/nvgrace-gpu: register device memory for poison handling MAINTAINERS | 1 + drivers/acpi/apei/ghes.c | 6 -- drivers/vfio/pci/nvgrace-gpu/main.c | 45 ++++++++- include/linux/memory-failure.h | 17 ++++ include/linux/mm.h | 1 + include/ras/ras_event.h | 1 + mm/Kconfig | 1 + mm/memory-failure.c | 146 +++++++++++++++++++++++++++- 8 files changed, 210 insertions(+), 8 deletions(-) create mode 100644 include/linux/memory-failure.h -- 2.34.1