From patchwork Mon Jun 14 02:12:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naoya Horiguchi X-Patchwork-Id: 12318033 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94B88C48BDF for ; Mon, 14 Jun 2021 02:12:36 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 42412613AB for ; Mon, 14 Jun 2021 02:12:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 42412613AB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id DB6166B0074; Sun, 13 Jun 2021 22:12:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D90346B0075; Sun, 13 Jun 2021 22:12:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BDFED6B0078; Sun, 13 Jun 2021 22:12:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0069.hostedemail.com [216.40.44.69]) by kanga.kvack.org (Postfix) with ESMTP id 8BC566B0074 for ; Sun, 13 Jun 2021 22:12:35 -0400 (EDT) Received: from smtpin35.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 21E0F584C for ; Mon, 14 Jun 2021 02:12:35 +0000 (UTC) X-FDA: 78250705470.35.24E9B4A Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by imf17.hostedemail.com (Postfix) with ESMTP id 14EBC4080F7B for ; Mon, 14 Jun 2021 02:12:28 +0000 (UTC) Received: by mail-pj1-f48.google.com with SMTP id w14-20020a17090aea0eb029016e9e0e7983so2599661pjy.4 for ; Sun, 13 Jun 2021 19:12:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gIs+Dwa4YB8s9iK40ccyfE3brt/FVPHgMtnsfMB/YQQ=; b=T6rfps4hk8jXV+vVjlPo2YcvZksWU3htx/21N7tanZvOw1EJIj+C4+Z7QgDnMs8k19 E14aahCkAT4lbBVc+ScUGLUViPq5S7xH546wn3WA9h76eiEg1y8B66PFqDuZwJWxyW3H tyBGWK3lvOuY9mDNx8tz1ra2Kiuhh0ieif18SBU7lb/giLWz4h9W+9TcGI0S7WJPXt1Q OkJ4HS3vEZXp4ajy6YER9cO6xuD2gsPqt/A6qitjn3xk9embV12YfuzutQGSGO9pvBRQ EKxFU1wpTs04VqKgkk5ED8bfbe7VJVcnIa/Wx0RapJKmSQ/nPHBUgaA8rfTXPuy1wfQt Jpyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gIs+Dwa4YB8s9iK40ccyfE3brt/FVPHgMtnsfMB/YQQ=; b=CU+p1npDYJ1XVo6QrlSvNii+I1UZpVe90uDq+/N5bxGy1yvskQ/+Pi+CgpQxgjEqlw dfZD6dbgrH7Rma6Kt5hKGcPs21jnJoFjv7sNe74B64cMkLBxCFXq8bPcHdxsHkfE31n5 6xwZo77JXPuydKWWr8f2x0WwkqAXt9pyYqJUjDcYyhxt6m1WXmyWZeiaCD7N3JPq8ixn zR6X3Y44CbhsBSNkQNC7daa4OpsyV+sLIp75qpudQZf2Or7XcD3ajF/4G8Gttcr3jKeK SUBJyAnEaXbllxgNGhyco+1DUDaVHNgCQU5fytbDZNs1oB2aNLEPfHPzDnUMoRhqcRwX 0WdQ== X-Gm-Message-State: AOAM530vY1aZB015/lgVbsKlOnAPtxdV6lFfgriHweq64T0oy3BrMaKI TtaCVmLoJOlvNi13Mp32I72Li2kpFPE6 X-Google-Smtp-Source: ABdhPJxH72pb6ziU7YQ25+rMunImKsUEj2DatwNxJyDtt4XYuDUpNvN3m0N5HJfDfDbZ1rYY0fPhrg== X-Received: by 2002:a17:90a:6304:: with SMTP id e4mr16476639pjj.222.1623636753886; Sun, 13 Jun 2021 19:12:33 -0700 (PDT) Received: from localhost.localdomain (h175-177-040-153.catv02.itscom.jp. [175.177.40.153]) by smtp.gmail.com with ESMTPSA id z14sm10952986pfn.11.2021.06.13.19.12.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Jun 2021 19:12:33 -0700 (PDT) From: Naoya Horiguchi To: linux-mm@kvack.org Cc: Andrew Morton , David Hildenbrand , Oscar Salvador , Michal Hocko , Ding Hui , Tony Luck , "Aneesh Kumar K.V" , Naoya Horiguchi , linux-kernel@vger.kernel.org Subject: [PATCH v1 3/6] mm/hwpoison: introduce MF_MSG_PAGETABLE Date: Mon, 14 Jun 2021 11:12:09 +0900 Message-Id: <20210614021212.223326-4-nao.horiguchi@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210614021212.223326-1-nao.horiguchi@gmail.com> References: <20210614021212.223326-1-nao.horiguchi@gmail.com> MIME-Version: 1.0 X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 14EBC4080F7B Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=T6rfps4h; spf=pass (imf17.hostedemail.com: domain of naohoriguchi@gmail.com designates 209.85.216.48 as permitted sender) smtp.mailfrom=naohoriguchi@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Stat-Signature: nfq9z5ze7iot7ezsq84oipbdqz8nord4 X-HE-Tag: 1623636748-986103 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: From: Naoya Horiguchi Page table pages could have some amount of share on system memory, so define it for a separate page type message. Signed-off-by: Naoya Horiguchi --- include/linux/mm.h | 1 + include/ras/ras_event.h | 1 + mm/memory-failure.c | 1 + 3 files changed, 3 insertions(+) diff --git v5.13-rc5/include/linux/mm.h v5.13-rc5_patched/include/linux/mm.h index c274f75efcf9..45008654f695 100644 --- v5.13-rc5/include/linux/mm.h +++ v5.13-rc5_patched/include/linux/mm.h @@ -3103,6 +3103,7 @@ enum mf_action_page_type { MF_MSG_KERNEL, MF_MSG_KERNEL_HIGH_ORDER, MF_MSG_SLAB, + MF_MSG_PAGETABLE, MF_MSG_DIFFERENT_COMPOUND, MF_MSG_POISONED_HUGE, MF_MSG_HUGE, diff --git v5.13-rc5/include/ras/ras_event.h v5.13-rc5_patched/include/ras/ras_event.h index 0bdbc0d17d2f..2f459f6f87fb 100644 --- v5.13-rc5/include/ras/ras_event.h +++ v5.13-rc5_patched/include/ras/ras_event.h @@ -357,6 +357,7 @@ TRACE_EVENT(aer_event, EM ( MF_MSG_KERNEL, "reserved kernel page" ) \ EM ( MF_MSG_KERNEL_HIGH_ORDER, "high-order kernel page" ) \ EM ( MF_MSG_SLAB, "kernel slab page" ) \ + EM ( MF_MSG_PAGETABLE, "page table page page" ) \ EM ( MF_MSG_DIFFERENT_COMPOUND, "different compound page after locking" ) \ EM ( MF_MSG_POISONED_HUGE, "huge page already hardware poisoned" ) \ EM ( MF_MSG_HUGE, "huge page" ) \ diff --git v5.13-rc5/mm/memory-failure.c v5.13-rc5_patched/mm/memory-failure.c index e7910386fc9c..30d6519ce203 100644 --- v5.13-rc5/mm/memory-failure.c +++ v5.13-rc5_patched/mm/memory-failure.c @@ -708,6 +708,7 @@ static const char * const action_page_types[] = { [MF_MSG_KERNEL] = "reserved kernel page", [MF_MSG_KERNEL_HIGH_ORDER] = "high-order kernel page", [MF_MSG_SLAB] = "kernel slab page", + [MF_MSG_PAGETABLE] = "page table page", [MF_MSG_DIFFERENT_COMPOUND] = "different compound page after locking", [MF_MSG_POISONED_HUGE] = "huge page already hardware poisoned", [MF_MSG_HUGE] = "huge page",