From patchwork Thu Jul 6 06:20:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Aneesh Kumar K.V" X-Patchwork-Id: 13303225 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]) by smtp.lore.kernel.org (Postfix) with ESMTP id 27F4AEB64DC for ; Thu, 6 Jul 2023 06:21:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BAF668D0003; Thu, 6 Jul 2023 02:21:05 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B5ED38D0001; Thu, 6 Jul 2023 02:21:05 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A261F8D0003; Thu, 6 Jul 2023 02:21:05 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 94EA48D0001 for ; Thu, 6 Jul 2023 02:21:05 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 5871F1602DA for ; Thu, 6 Jul 2023 06:21:05 +0000 (UTC) X-FDA: 80980189290.15.9BACF32 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by imf17.hostedemail.com (Postfix) with ESMTP id 0FD8040017 for ; Thu, 6 Jul 2023 06:21:02 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=PSIEEvlz; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf17.hostedemail.com: domain of aneesh.kumar@linux.ibm.com designates 148.163.156.1 as permitted sender) smtp.mailfrom=aneesh.kumar@linux.ibm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1688624463; 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-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=oYAMm/qlF6KWXhkyOfkxp0baHcGpJr9j07VeHVtF4WA=; b=nzg4n/jux4wvSrDGUvGfzluyTtY9Cz/GDsmgZl6Qh/JHmPo68m3cwCcxiQge+p4AadDpYn e5mCg+Y+rANa8NKxg7L0+cUPohjZ3nvrsJg5q9m4Ksi2/YYjcQFlxFJBjk4RhUmPDU+Ter 09v1fW2gBqt72ZXvBW6JNNguoe1NTQg= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=PSIEEvlz; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf17.hostedemail.com: domain of aneesh.kumar@linux.ibm.com designates 148.163.156.1 as permitted sender) smtp.mailfrom=aneesh.kumar@linux.ibm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1688624463; a=rsa-sha256; cv=none; b=Z1jgepz2XCLYHiFY6RqM2Uob3E8luP6+F9N+gfZFeRV/PNdPwLv7NyB8hM3o9tDLd90NPr FrHFIUE6d0+6Fl5V3gGHcKLgHYPucPIc7U4i7vVhAdXVh85TTJFS0VevmS2thGIY4Xycas WoUzG6DOiJBxq5sUfHJHlWf8lW9hMxE= Received: from pps.filterd (m0353726.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3666HGWs030694; Thu, 6 Jul 2023 06:21:01 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=oYAMm/qlF6KWXhkyOfkxp0baHcGpJr9j07VeHVtF4WA=; b=PSIEEvlzQsuB7ytS3J1hr7NDYSW0jMynKDum+Gg7N06LtbEdYgsj6B8Jx0QrcGtRIX7u ZhVkF/mrGIrUKag9Xa2ONu/qQ7Ep4vtb29CVJfuyooJgTRFyGk98Dbu0k6igurRvuXSi hCtnip1WvGrE+YE/kpHADEElrLeqO4jR57tBxmvCpTs3MrH94eJNzgW4LHCXywFx03pu fVbjA5AyPGA5096LwPCkl3HfcJJnHZL3tXEnC912TkDe4WT9UiWDWRcLwFd3dnaF1aSR OhlbHYIes6EwkWePpGmZCRgE3TLyUHLvb+4z3ZyQ6uynw9kE2M88DqWfpqorqdH9FHLs Jg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rnr7702b0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jul 2023 06:21:01 +0000 Received: from m0353726.ppops.net (m0353726.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3666JAH6003499; Thu, 6 Jul 2023 06:21:00 GMT Received: from ppma02dal.us.ibm.com (a.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.10]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rnr7702ah-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jul 2023 06:21:00 +0000 Received: from pps.filterd (ppma02dal.us.ibm.com [127.0.0.1]) by ppma02dal.us.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 36660ruV016300; Thu, 6 Jul 2023 06:20:59 GMT Received: from smtprelay06.dal12v.mail.ibm.com ([9.208.130.100]) by ppma02dal.us.ibm.com (PPS) with ESMTPS id 3rjbs6m7cu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jul 2023 06:20:59 +0000 Received: from smtpav01.dal12v.mail.ibm.com (smtpav01.dal12v.mail.ibm.com [10.241.53.100]) by smtprelay06.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3666Kweb1180216 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 6 Jul 2023 06:20:58 GMT Received: from smtpav01.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9363858058; Thu, 6 Jul 2023 06:20:58 +0000 (GMT) Received: from smtpav01.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B862858061; Thu, 6 Jul 2023 06:20:56 +0000 (GMT) Received: from skywalker.in.ibm.com (unknown [9.109.212.144]) by smtpav01.dal12v.mail.ibm.com (Postfix) with ESMTP; Thu, 6 Jul 2023 06:20:56 +0000 (GMT) From: "Aneesh Kumar K.V" To: linux-mm@kvack.org, akpm@linux-foundation.org Cc: Yu Zhao , "Aneesh Kumar K.V" Subject: [PATCH v2 0/5] Avoid building lrugen page table walk code Date: Thu, 6 Jul 2023 11:50:39 +0530 Message-ID: <20230706062044.816068-1-aneesh.kumar@linux.ibm.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: HGSqk6TjBiD0FcamuLjourqKtVfus6j5 X-Proofpoint-ORIG-GUID: KN_f6ZOuMJ3yrVEQSDbGaaXUyt219yLs X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-06_02,2023-07-06_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 malwarescore=0 spamscore=0 mlxscore=0 bulkscore=0 mlxlogscore=486 lowpriorityscore=0 impostorscore=0 priorityscore=1501 clxscore=1015 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307060052 X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 0FD8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+QC49eN6ff83l1fHNZEBoltV8a2s1z7/0t+5SeRNCccaAioH9bQmwP176hF1pe/8VZsjO+ZFqsNWYE2CtRYYfsJOF5UwkAEjJj5tjvRoqK/y9Gluex9AjSDklNxVQ4CG9NjY= 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: This patchset avoids building changes added by commit bd74fdaea146 ("mm: multi-gen LRU: support page table walks") on platforms that don't support hardware atomic updates of access bits. Aneesh Kumar K.V (5): mm/mglru: Create a new helper iterate_mm_list_walk mm/mglru: Move Bloom filter code around mm/mglru: Move code around to make future patch easy mm/mglru: move iterate_mm_list_walk Helper mm/mglru: Don't build multi-gen LRU page table walk code on architecture not supported arch/Kconfig | 3 + arch/arm64/Kconfig | 1 + arch/x86/Kconfig | 1 + include/linux/memcontrol.h | 2 +- include/linux/mm_types.h | 10 +- include/linux/mmzone.h | 12 +- kernel/fork.c | 2 +- mm/memcontrol.c | 2 +- mm/vmscan.c | 955 +++++++++++++++++++------------------ 9 files changed, 528 insertions(+), 460 deletions(-)