From patchwork Wed Jun 19 07:49:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuan-Ying Lee X-Patchwork-Id: 13703497 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 3994BC27C53 for ; Wed, 19 Jun 2024 07:49:41 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8820B6B03EB; Wed, 19 Jun 2024 03:49:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 832CA6B03ED; Wed, 19 Jun 2024 03:49:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6AC276B03EE; Wed, 19 Jun 2024 03:49:40 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 48F766B03EB for ; Wed, 19 Jun 2024 03:49:40 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id B416E140E4B for ; Wed, 19 Jun 2024 07:49:39 +0000 (UTC) X-FDA: 82246863678.09.2791FF3 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by imf12.hostedemail.com (Postfix) with ESMTP id AC25B40006 for ; Wed, 19 Jun 2024 07:49:37 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=canonical.com header.s=20210705 header.b=ulgggEqW; spf=pass (imf12.hostedemail.com: domain of kuan-ying.lee@canonical.com designates 185.125.188.123 as permitted sender) smtp.mailfrom=kuan-ying.lee@canonical.com; dmarc=pass (policy=none) header.from=canonical.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1718783374; 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:in-reply-to:references:references:dkim-signature; bh=CM0tJabmgofzChC2Jf92TOGwoJKVUZCa/x4U+pACuQQ=; b=LTG9ZOtERuTdF+ziThlxxSmXYuZG7jW3h+OBfReh+WvAJdHANWkf5gKIR6yQWLD7DHfeBc FXM+Ji27/dPNSh6bTRsyumwhrVv4UnDUfrEUdMps7EIeGV90VXd+vpdnABK9lFrluElZwz EcPE9nXwrBUsUtU77vjyhyIaGzsCAfQ= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=canonical.com header.s=20210705 header.b=ulgggEqW; spf=pass (imf12.hostedemail.com: domain of kuan-ying.lee@canonical.com designates 185.125.188.123 as permitted sender) smtp.mailfrom=kuan-ying.lee@canonical.com; dmarc=pass (policy=none) header.from=canonical.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1718783374; a=rsa-sha256; cv=none; b=rjR56GPFoutNs8b2TZb+Sf8jteg+8UkRUoCiu4lolQjkoT/l6AtUPjm9m+PCpQA13vdZZC 976Xp9SkKQwZ86rAEY/28hqRIQRi67ERgCeDgVlyTBHj3Lj/fI5mjbC/HYG5qgxmZkmHmB b1UhiPXyCC9cFsxgAlTaJkLixEIjZFA= Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 6BF443FB60 for ; Wed, 19 Jun 2024 07:49:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1718783376; bh=CM0tJabmgofzChC2Jf92TOGwoJKVUZCa/x4U+pACuQQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ulgggEqW/Q2TnCo/u+gTMHU0ocAc48aR0ZDfI3KKXMrruJQ7v15ueqXWnrQmEVJcC jquzgJCesgFGrlIuIfAYVzYVx+roObBhZMzj2ab54y9aOoCOhcnlWu6S3Z6FUeSx9R f6SH6OYO6Hxzknoua7VnQ/JfTAz2q68rcKomiq7kAqtqlaC0qxALGso8qJjZD5WBPo 5aC1iklvMa0mL7RBgkJZdeZOlj3W748DqEgB4BrxLerIT65y7s6uoUWWQbT5DuA8VC 9ZxcjWDIxPwv4jf9QN8Ig0xgK0vnub3xinhkvKtmKGNaNO8rm9NCz+Insfycqtpy0O 0dFGIIiKce8Mw== Received: by mail-pg1-f199.google.com with SMTP id 41be03b00d2f7-70d8b7924e7so1981068a12.2 for ; Wed, 19 Jun 2024 00:49:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718783375; x=1719388175; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CM0tJabmgofzChC2Jf92TOGwoJKVUZCa/x4U+pACuQQ=; b=CooKjWFXSXznTuLgeTW+F7IUKEyUYNB00k7K26GEmHkixosiC9TamnZbHQGDwi+5kF aN3pCsKl0XHli2H1Lal4rA/pzzuRbHwYOjj9E1TItYb96o4CrMsaAelHtKdSZud1+WD2 xo3tTK6mlHbwr++QZU4/Aw/q3THZnqUbSVKyQ9iiMXqG9NA/fEGvO6JdDB2KZiXbg9py wuzC6DDpf7OlMO7KifXytx3fm8PxpqeU2tljrvwcN0AMtE9QjmGzxaEOFsHDq1THPMwE OzTOycvuxNjQw/hR6mNhreYGJnM5SjEkI8rE2zEBLcWJ49sEwBtOSNzfjHITftg3IfoC 51zg== X-Gm-Message-State: AOJu0Yyuft7K6le8653XDNvG1ig25gqtkJEVXZzmOOCBDgRJAzNXsjV8 fMVGR3lioScHKcb5byNwa58iXx6PhK8sXKcxIB3P1n3LNLS5+IMzCqofz4xbiB5v4ee/L+9VbO0 bzwpy2cFPmmCW7FwV+UEUxA62h958qlGTw/IwT1nWYiV2uwH/xIsAt7qWHTB/EcsB X-Received: by 2002:a05:6a21:7898:b0:1b6:3fc5:d08b with SMTP id adf61e73a8af0-1bcbb5f69b3mr2061135637.40.1718783374841; Wed, 19 Jun 2024 00:49:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFueb25CpMA0VBGCJYkQ2zZBzAZ9sDnZv2oTRH0EbyjQXTFuYV8CxfuiByai7Dd1DCYSMiqZA== X-Received: by 2002:a05:6a21:7898:b0:1b6:3fc5:d08b with SMTP id adf61e73a8af0-1bcbb5f69b3mr2061100637.40.1718783373464; Wed, 19 Jun 2024 00:49:33 -0700 (PDT) Received: from kylee-ThinkPad-E16-Gen-1.. ([122.147.171.160]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-705ccb3cdc6sm10076908b3a.138.2024.06.19.00.49.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jun 2024 00:49:33 -0700 (PDT) From: Kuan-Ying Lee To: kuan-ying.lee@canonical.com, Andrew Morton , Jan Kiszka , Kieran Bingham , Michael Ellerman , "Kirill A. Shutemov" Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/6] scripts/gdb: redefine MAX_ORDER sanely Date: Wed, 19 Jun 2024 15:49:06 +0800 Message-Id: <20240619074911.100434-2-kuan-ying.lee@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240619074911.100434-1-kuan-ying.lee@canonical.com> References: <20240619074911.100434-1-kuan-ying.lee@canonical.com> MIME-Version: 1.0 X-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: AC25B40006 X-Stat-Signature: sxd9mh6ws4ouurz1ibjoyy94poddrf35 X-HE-T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tmn0gHqvc2kfzztbY29SXcp0IZX9Foy0pd7lXUQF3KmCuofsNrQTFLrV7RhnELgvhoCIFjw/MJrem50hcu9yq3ZQ1WEWh9RsWfhXF5XB0YWDYxZ51VnTlYhOvhFlmUPdgnh4bSTCtqFAdJU8tpym1K2zJ1fwMYCmWBzR/k1c3zWh0Q5sAYb9bwcTwKyd1Z7SCpEZ4J9xVnYfySmcWAR3WjI7ontKdS+wWlw3X63VKPFDEY3dYdDHRSIYyozAVExkeh6Sr/1KQESmIrQnNLnKdZCaBt6bZfo/fDEtFVks4B9aCIB0= 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: Change the definition of MAX_ORDER to be inclusive. Fixes: 23baf831a32c ("mm, treewide: redefine MAX_ORDER sanely") Signed-off-by: Kuan-Ying Lee --- scripts/gdb/linux/mm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/gdb/linux/mm.py b/scripts/gdb/linux/mm.py index 515730fd4c9d..30738f174fe2 100644 --- a/scripts/gdb/linux/mm.py +++ b/scripts/gdb/linux/mm.py @@ -59,9 +59,9 @@ class aarch64_page_ops(): if str(constants.LX_CONFIG_ARCH_FORCE_MAX_ORDER).isdigit(): self.MAX_ORDER = constants.LX_CONFIG_ARCH_FORCE_MAX_ORDER else: - self.MAX_ORDER = 11 + self.MAX_ORDER = 10 - self.MAX_ORDER_NR_PAGES = 1 << (self.MAX_ORDER - 1) + self.MAX_ORDER_NR_PAGES = 1 << (self.MAX_ORDER) self.PFN_SECTION_SHIFT = self.SECTION_SIZE_BITS - self.PAGE_SHIFT self.NR_MEM_SECTIONS = 1 << self.SECTIONS_SHIFT self.PAGES_PER_SECTION = 1 << self.PFN_SECTION_SHIFT From patchwork Wed Jun 19 07:49:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuan-Ying Lee X-Patchwork-Id: 13703498 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 AFE60C27C53 for ; Wed, 19 Jun 2024 07:49:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3C9186B03EE; Wed, 19 Jun 2024 03:49:44 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 350546B03EF; Wed, 19 Jun 2024 03:49:44 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1C9956B03F0; Wed, 19 Jun 2024 03:49:44 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id F03D66B03EE for ; Wed, 19 Jun 2024 03:49:43 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 9FF4D120E6F for ; Wed, 19 Jun 2024 07:49:43 +0000 (UTC) X-FDA: 82246863846.16.3E2684B Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by imf11.hostedemail.com (Postfix) with ESMTP id 8F54B40013 for ; Wed, 19 Jun 2024 07:49:41 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=canonical.com header.s=20210705 header.b=WbA6xlFu; spf=pass (imf11.hostedemail.com: domain of kuan-ying.lee@canonical.com designates 185.125.188.123 as permitted sender) smtp.mailfrom=kuan-ying.lee@canonical.com; dmarc=pass (policy=none) header.from=canonical.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1718783374; 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:in-reply-to:references:references:dkim-signature; bh=THUI5NvIeZrnSRinnC10PYx0agCfUTpnm+UcAy2EO1o=; b=xZ76PhNr1Bbg4d6N4Y+AlhBxFbisrJx7j8+9tVh9Je8EOsaIpiT+OyHpwAmcbz68Plaau+ NoQJEk/tmHHg+tTmtPE+efIrG4VLyIQWxqxQcOCacVXAc7UlCIv2A4fje54zxWMJC7jJB3 LfN5Te4NSQ2leUiTeaUyng7kNxUuZLc= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1718783374; a=rsa-sha256; cv=none; b=w4eqsfKPsgE+NE+OOBVyY+ekut9Po7PdxJqzn/8cMn+fg8vn+lM3So8cYXrQGCvZet+KkC it7AGERg0XLyMTz3fRcwIk3edTCzB+WzFzAJSdO3ZfdiVue2Q5jSV8a6jj/i9MHq5hGtjC eFS0bkR6j1cVwc/skQlMTX3oKGoIN2U= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=canonical.com header.s=20210705 header.b=WbA6xlFu; spf=pass (imf11.hostedemail.com: domain of kuan-ying.lee@canonical.com designates 185.125.188.123 as permitted sender) smtp.mailfrom=kuan-ying.lee@canonical.com; dmarc=pass (policy=none) header.from=canonical.com Received: from mail-ot1-f71.google.com (mail-ot1-f71.google.com [209.85.210.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 14EFE3FE5E for ; Wed, 19 Jun 2024 07:49:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1718783379; bh=THUI5NvIeZrnSRinnC10PYx0agCfUTpnm+UcAy2EO1o=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=WbA6xlFuxJfQ8av03EvaYOAYzOYfMVgxUPEviFMIOMyhZmC5XvcgFtUKmOg8YbjSD a+QIs06WWgkkCe/yp30iQFj9NOkOLJbtkJcE+nzxYlBGmkvib1wKcHAECtGSNvur/s 3kOpCNKvaQTeUurhEnCjXiLABy36RcI/AWMxq512Jd24+nrNWBmrs30X+RLhDEzitj PYx686625xVFWfMnikhjOuF5ZYciVnMygEXAS+1HiUnWcKFEtM1sYQBE3pWB9TiUgA 62xItkPWgCWb8wVafJp+8K0FlrhgsyUDWt2hozhb/KY1EeuECIIHnp0glMDsw/tqjZ VxZzNb7LheV3A== Received: by mail-ot1-f71.google.com with SMTP id 46e09a7af769-6f91043c447so7919461a34.2 for ; Wed, 19 Jun 2024 00:49:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718783378; x=1719388178; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=THUI5NvIeZrnSRinnC10PYx0agCfUTpnm+UcAy2EO1o=; b=YBrrFyhfKlyAhZjFUQD+qafgtTu1nCiQ3x/O1mngBqUuICy9jWEnsyCpdR6trcsYle TRO+IFO7iTfIW82dl4AVuavgutRxanWCfFwt/x8Z4I3rj15Q4df4yUcgdm9dXqMt3gXN 5iAmc44b6qJHbSkdIntzsGNpD8m1FhLJNP5GiYsDVaF6fcA2x/UpOxyj3xd9cR1R77Cj 9FTlr10ebLnnYS548K+eaPiq/lxjRed8kPyA+13KR0RApz1qUk8KL2HW72RG37I6IM5r PfqYlGP053ipvnzKWhCjFm+hUxDm07+TW+NLfiFpkAkxtAPQWN2k9hKRxqpbVLAFVrBC mFjA== X-Gm-Message-State: AOJu0YzRCbbTB9REE3D3tPtIS9d6GXpuNXvGMIMYqOsST1ZacyE+BX61 QtQrXlOjyM9apk1XfPpwEvVHl/Us6Ek0Bz37+IVrPg55pB4BAi195IgaEL5RTciqMVnsKodU3Wi WdHWfGGm3/WM3WmBgY4y/gWTrQNio/qsnuTL4JJ91/O6JYjVvpy9xSIQQzWviZDbF X-Received: by 2002:a05:6808:1911:b0:3d5:108a:5ae6 with SMTP id 5614622812f47-3d51b96722amr2358281b6e.9.1718783377905; Wed, 19 Jun 2024 00:49:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFvqqwOkWAVcy2DXi/y2o9V8ky7bncsfLdc9P9N+pDGm8XKr790lPV7PrpkM+U9Sq9PZxDzUQ== X-Received: by 2002:a05:6808:1911:b0:3d5:108a:5ae6 with SMTP id 5614622812f47-3d51b96722amr2358275b6e.9.1718783377588; Wed, 19 Jun 2024 00:49:37 -0700 (PDT) Received: from kylee-ThinkPad-E16-Gen-1.. ([122.147.171.160]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-705ccb3cdc6sm10076908b3a.138.2024.06.19.00.49.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jun 2024 00:49:37 -0700 (PDT) From: Kuan-Ying Lee To: kuan-ying.lee@canonical.com, Andrew Morton , Jan Kiszka , Kieran Bingham , Catalin Marinas , Ard Biesheuvel , Mark Rutland Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/6] scripts/gdb: rework module VA range Date: Wed, 19 Jun 2024 15:49:07 +0800 Message-Id: <20240619074911.100434-3-kuan-ying.lee@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240619074911.100434-1-kuan-ying.lee@canonical.com> References: <20240619074911.100434-1-kuan-ying.lee@canonical.com> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 8F54B40013 X-Stat-Signature: 8nqafqzifp5xmuxtpfmhiwdxoid4s6kc X-HE-Tag: 1718783381-826973 X-HE-Meta: U2FsdGVkX19Pjeb94ykJIomWVG4VQ+s8H2BSWYzmISSK0uOeosWYWshHvQwTghDG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m8tcHdaORQy1iirVRa9En5tkw7S3RD+RqKOcqKspi4RwW2HMVgVD1TLzmNzTQHwaznORUi590aN/nTwZWdBtLEmHyHLzUKi5Pc2BNBzcxgkKQYFSWd5yAPyTO6qcOwNkNAxXj4Pz5t+kdeN7I1CgU7tWJsAk0UbHgApfTnNa 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: After we enlarge the module VA range, we also change the module VA range in gdb scripts. Fixes: 3e35d303ab7d ("arm64: module: rework module VA range selection") Signed-off-by: Kuan-Ying Lee --- scripts/gdb/linux/mm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gdb/linux/mm.py b/scripts/gdb/linux/mm.py index 30738f174fe2..e0461248abe2 100644 --- a/scripts/gdb/linux/mm.py +++ b/scripts/gdb/linux/mm.py @@ -33,7 +33,7 @@ class aarch64_page_ops(): def __init__(self): self.SUBSECTION_SHIFT = 21 self.SEBSECTION_SIZE = 1 << self.SUBSECTION_SHIFT - self.MODULES_VSIZE = 128 * 1024 * 1024 + self.MODULES_VSIZE = 2 * 1024 * 1024 * 1024 if constants.LX_CONFIG_ARM64_64K_PAGES: self.SECTION_SIZE_BITS = 29 From patchwork Wed Jun 19 07:49:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuan-Ying Lee X-Patchwork-Id: 13703499 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 531CEC27C53 for ; Wed, 19 Jun 2024 07:49:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D8F2F6B03F0; Wed, 19 Jun 2024 03:49:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D13BC6B03F1; Wed, 19 Jun 2024 03:49:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B22EC6B03F2; Wed, 19 Jun 2024 03:49:48 -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 8BCBF6B03F0 for ; Wed, 19 Jun 2024 03:49:48 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 2B10C140522 for ; Wed, 19 Jun 2024 07:49:48 +0000 (UTC) X-FDA: 82246864056.16.5DF40E2 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by imf15.hostedemail.com (Postfix) with ESMTP id 158B4A0003 for ; Wed, 19 Jun 2024 07:49:45 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=canonical.com header.s=20210705 header.b=fMH3FnHx; spf=pass (imf15.hostedemail.com: domain of kuan-ying.lee@canonical.com designates 185.125.188.123 as permitted sender) smtp.mailfrom=kuan-ying.lee@canonical.com; dmarc=pass (policy=none) header.from=canonical.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1718783381; 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:in-reply-to:references:references:dkim-signature; bh=B30QvcofR9KiWrZLYpcmSs9yQbLcW6coRoJpHxt3rTM=; b=lBIvtOO16PbVgnXosluz508o6pjVCKaZVFKyetoy2q676ty/broFeJPRXeQgB98G6mtmCs /t4ucoZqw3J/mfmV/FnyVF6Xq9XhkqvDGyTxMQhYl9gii697S/8sN3P/7/VlMxfZL+RkhU IsPmTWSvHIgyQvce3836/j0eWmWhd5Q= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=canonical.com header.s=20210705 header.b=fMH3FnHx; spf=pass (imf15.hostedemail.com: domain of kuan-ying.lee@canonical.com designates 185.125.188.123 as permitted sender) smtp.mailfrom=kuan-ying.lee@canonical.com; dmarc=pass (policy=none) header.from=canonical.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1718783381; a=rsa-sha256; cv=none; b=oCN9gFwZuI02WNxsfov5VMq/WJYr69xTDkHLrUH1I3o6h1T6fnBU1CsVm8XRxkVmIEW4P6 X7C3tLAM1zkC5CKuITUuppqgBoAzPXj9Za/+AyVwvtSsFs3gT32O5KYXWX3enaBG2zOI+D 5wOoLorYkXlDsBOJSfe2zFF/7aQhFwc= Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 478043FB60 for ; Wed, 19 Jun 2024 07:49:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1718783382; bh=B30QvcofR9KiWrZLYpcmSs9yQbLcW6coRoJpHxt3rTM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=fMH3FnHxYovYnAvcb7DZxOm6Z3+vMPTY9DEzWSl+PTQmrgag7Dm0yjUSvZut+C7lh 0Lra7UCukvy7F3fYIhGgwPcF5UhDPX2rvS4xpmkvSHSSE90FkA+1X4Ig84YaEhc+vM D3bJJy1BO85qVFb1jd+123G52X4I4IAYGeP9MDwqhTh0LxI2MEy2bArjAsGb0TlFEI Av99nNDoYuIrqrwp4ortrCYW//pfTBKw5MMwVkoG3sn7uZmU0p3QBLXNPRiiFKDRWA N9t+Q7z3YTRbiH3uPWJpMb0nT6J9X0/i2lPRDwABTqUO0xRlZXs1eCbbFlSIRJHX88 yBaXkmHGm6jCA== Received: by mail-pf1-f198.google.com with SMTP id d2e1a72fcca58-706345802a3so510212b3a.1 for ; Wed, 19 Jun 2024 00:49:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718783380; x=1719388180; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=B30QvcofR9KiWrZLYpcmSs9yQbLcW6coRoJpHxt3rTM=; b=Ga03/afQm6MoIfmIxZYYQnNfMHWTlnI7aD7pyv5O18t7LxNeGGLSgsve22h/U8oDzA W8HJSJkCK5v/N3t70+ANXK/UHXRwsPJvPOP4QW79ZRrOJK8TwrdkYBjiRvXHdW58iC+0 JDEPP9+PjXImuI1HgF5IHaXzl54ghpruQhgHxvWwUM0mC8Up7OHksAwry8PP4qsj4yow r8yUaZBHu4sCEW8LUa4U/hGG0tLscDrdYNzqgYGTDtUdPSVVDtmv9wL8RkVCWtQeIW8F x+PFTAysIyY6C38WX0TWjAzPpXaBsBppADQlyYTf2b6qHMo75HciQdpaMobyUkH/bws0 tNcQ== X-Gm-Message-State: AOJu0Yy/O3u5xz5u9Ngiw0yWWCFm3F+thgYy5JwRlm141Ffpnfae2ReB l1ogC+36R22cAAFMRHaMyugSSWWRGCteeXR7AJwTIbmG2Gn+g+bkyiD51713YVygdQtCUEC4rVl Px0DLGMwaoEVBQYo1CiCvztvEGM479yNEvZ75ZJHDDOnip7oZpqVoyI9mu8ijw8qQ X-Received: by 2002:a05:6a00:11df:b0:706:29e6:2ed2 with SMTP id d2e1a72fcca58-70629e639efmr1635529b3a.5.1718783380569; Wed, 19 Jun 2024 00:49:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHp2ee+jTm37JUPAalohhD7m060pnacLcLav948WEvUrYPHLjCwC2idv1NnXncRv5b8z3MMUg== X-Received: by 2002:a05:6a00:11df:b0:706:29e6:2ed2 with SMTP id d2e1a72fcca58-70629e639efmr1635520b3a.5.1718783380213; Wed, 19 Jun 2024 00:49:40 -0700 (PDT) Received: from kylee-ThinkPad-E16-Gen-1.. ([122.147.171.160]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-705ccb3cdc6sm10076908b3a.138.2024.06.19.00.49.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jun 2024 00:49:40 -0700 (PDT) From: Kuan-Ying Lee To: kuan-ying.lee@canonical.com, Andrew Morton , Jan Kiszka , Kieran Bingham , Mark Rutland , Ard Biesheuvel , Catalin Marinas Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/6] scripts/gdb: change the layout of vmemmap Date: Wed, 19 Jun 2024 15:49:08 +0800 Message-Id: <20240619074911.100434-4-kuan-ying.lee@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240619074911.100434-1-kuan-ying.lee@canonical.com> References: <20240619074911.100434-1-kuan-ying.lee@canonical.com> MIME-Version: 1.0 X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: 158B4A0003 X-Stat-Signature: natdzb6uhxntg5ydh8ap3gaorxtu3ojm X-Rspam-User: X-HE-Tag: 1718783385-797141 X-HE-Meta: U2FsdGVkX1+nlGQhxRPR25XzFfZ2QEOxS8ox240tjlT4xM0jOysoUMcJp4BzRCfdbYYnIJ+fmSAP8dT+t85JYelAbOWJruS4WOxGSnBHAGOPMt7SHUQpYrAStHn8HltZdVcho2cXR9ycPWgoth4VjjSNBnE0yMSknHue6DBJFwrbDEvcKRt9tYZATGgVZUgEwDnUf3HT20KSJq82FBM1tecBcMJTC9Ywe22p8JSdMGC2UZ/5OBaMChfUPaYPc3pFCpH3p8HQWy+tYuTgqQxi5pZ+bzhUGaKs4slSsELY9biOdrgP0OsRtdfzWuuXsKprJIO1ei26jZmG+HSnEahw4XdPcBG/zCFYr0ssFYbLBbNasqYM6Jtcl2yI0uhPAJ+AhJM20WMhNHtYgAfPVoxvMyY7LWFs1gn8rvcOjGje6YizCKOa0Nh6qhreu8SYYZRsaBjzrlpLf3aWLiMUP524e0s/CxSYOw1OxGCC+WP8auy+SqpPJfaZt6GZ5YAqbPobCC5G/23IG1R8Ts/OIg53TZEclhqRzVU/EUJ8vv7P/F6Tq+umvbppNsvJX6UPqTsN6ooN8c44P0X462RCEiR7KSMlCcl1h+oSAPZoyDuuIO43csafi5m99zaceQAvgFHjjQE5KBkig51n57x5nL1tfQSD6fRAi2UWGg9SJBkrN7foK1k3mQWwQTdQqncUas6y3Ut1AXOv1HundlYq/ujFWTjpTZ4M7JrQZUu8MrjFXXsaRDe1tHf06X+k00gZ+eG4dLGIEhp6Ow9KrV0SBhciSUm9RxJIFAI8csHEnp3wr4yew3pC1UKnvT+DaDNIfqnwNfbQpb8Tj4gZRT4THULUuMAbLwfMY2xiW22wp9Q4JAQILpXDE6BgRodECCw02rPm33AW1/Egfef5KDjifTr2U56C20Oz/pa8blO/iA8z9HC/jmbJbMFNb8JMimG29W2q6z94JuDq8+I4oH4Z/HE C15Si3P7 k2tSlijHU3oBKF1cFLkMdzexrKMK1A9lqoQaDjZ2/4MFfiW0RNm8BDAOevVx+0dXhOfE20bCP3MUCX5PV72OH9CcKumzPfDEL/slIuG1EOvLrnNEjlftR2uao/U0iVjqir7KJZZTnrFaY38Pjd6oWZrJB55IYr7sK/GQIr99Nm/JmUl+H8VzRX7fyvt64dJG3KVq2ccZ6iEk0sM27P9XoTa1TbGkVs5QRSp2kHd67iz/2jxFmzWyA7IbD8n9oL6WM9HFKrC86yNBuVcLzqZqJwjTGAysibd5TUB39MKIIq1MMQ+lcJ6LgLTXg6Fc3dV47h6hd 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: We need to change the layout of vmemmap in gdb scripts after commit 32697ff38287 ("arm64: vmemmap: Avoid base2 order of struct page size to dimension region") changed it. Fixes: 32697ff38287 ("arm64: vmemmap: Avoid base2 order of struct page size to dimension region") Signed-off-by: Kuan-Ying Lee --- scripts/gdb/linux/mm.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/gdb/linux/mm.py b/scripts/gdb/linux/mm.py index e0461248abe2..f8b9be3f43e8 100644 --- a/scripts/gdb/linux/mm.py +++ b/scripts/gdb/linux/mm.py @@ -89,10 +89,10 @@ class aarch64_page_ops(): self.MODULES_VADDR = self._PAGE_END(self.VA_BITS_MIN) self.MODULES_END = self.MODULES_VADDR + self.MODULES_VSIZE - self.VMEMMAP_SHIFT = (self.PAGE_SHIFT - self.STRUCT_PAGE_MAX_SHIFT) - self.VMEMMAP_SIZE = ((self._PAGE_END(self.VA_BITS_MIN) - self.PAGE_OFFSET) >> self.VMEMMAP_SHIFT) - self.VMEMMAP_START = (-(1 << (self.VA_BITS - self.VMEMMAP_SHIFT))) & 0xffffffffffffffff - self.VMEMMAP_END = self.VMEMMAP_START + self.VMEMMAP_SIZE + self.VMEMMAP_RANGE = self._PAGE_END(self.VA_BITS_MIN) - self.PAGE_OFFSET + self.VMEMMAP_SIZE = (self.VMEMMAP_RANGE >> self.PAGE_SHIFT) * self.struct_page_size + self.VMEMMAP_END = (-(1 * 1024 * 1024 * 1024)) & 0xffffffffffffffff + self.VMEMMAP_START = self.VMEMMAP_END - self.VMEMMAP_SIZE self.VMALLOC_START = self.MODULES_END self.VMALLOC_END = self.VMEMMAP_START - 256 * 1024 * 1024 From patchwork Wed Jun 19 07:49:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuan-Ying Lee X-Patchwork-Id: 13703500 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 75ECEC2BA15 for ; Wed, 19 Jun 2024 07:49:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DDA006B03F2; Wed, 19 Jun 2024 03:49:52 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D88766B03F3; Wed, 19 Jun 2024 03:49:52 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BDDBE6B03F4; Wed, 19 Jun 2024 03:49:52 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 9C5B96B03F2 for ; Wed, 19 Jun 2024 03:49:52 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 12B211C20AE for ; Wed, 19 Jun 2024 07:49:52 +0000 (UTC) X-FDA: 82246864224.03.71B1005 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by imf20.hostedemail.com (Postfix) with ESMTP id DBD961C0007 for ; Wed, 19 Jun 2024 07:49:49 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=canonical.com header.s=20210705 header.b=u01Bj4zE; spf=pass (imf20.hostedemail.com: domain of kuan-ying.lee@canonical.com designates 185.125.188.122 as permitted sender) smtp.mailfrom=kuan-ying.lee@canonical.com; dmarc=pass (policy=none) header.from=canonical.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1718783385; a=rsa-sha256; cv=none; b=nVXo8HGnfrh93wFyZOfeOCAEu0KRsy47OdyibnZt39pvlAInGteH0z8azlfYwAC0oJrMo2 1qft6kcUVjdQdggHFTHdDalFh3fCNE8kvTr9YsvjavkimJYWI/lVkZBtfj9fCrA7y1zKp9 95m31RmjnNtqe63FiU8oT7HUmxf2wqk= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=canonical.com header.s=20210705 header.b=u01Bj4zE; spf=pass (imf20.hostedemail.com: domain of kuan-ying.lee@canonical.com designates 185.125.188.122 as permitted sender) smtp.mailfrom=kuan-ying.lee@canonical.com; dmarc=pass (policy=none) header.from=canonical.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1718783385; 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:in-reply-to:references:references:dkim-signature; bh=3Ah02osWSKxjYX+LIDMgTigloGH2VX07SWnwSlI81uk=; b=OdijYLVNuFSx/srDmsAxOgJGlJRQVUsC+aaZ76SZ836M75UJmousvk8XKMf749JJ1iH69z XKD8mPV7aoayoKeIOViUrtedQE8DwRzAotJ74idYW7z4+ZPklH1O2TJIC7CdVt/l7fhK6T tRaePSvg1SKwg9cebmTh8DywbGe1qq8= Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 407663F456 for ; Wed, 19 Jun 2024 07:49:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1718783388; bh=3Ah02osWSKxjYX+LIDMgTigloGH2VX07SWnwSlI81uk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=u01Bj4zEOhhNc1KdS70Enb95fFl19Ymix4exLToMwhcd/tcgJF0LtemK0hzu7klz5 VtptqM+3t5IKp2+E94E/nmlL72YZ17JCEl+VsKnqUkYdcRBDlppZFn+EfGC1uyOJQX a4gxMhQHXsyCW1lM2AK9B26oLUSq2AkLjZV+1gQagRVyFQSf1G7q0skKoz1lBrKtj6 Wp9BG58NyGkaZ4kSza6tUzj7SnCQ5Y19RaFCGGwr7oD91CYEhygkZAo3Cha7elddfb sdi6OeT9ydj6QnCEEXYmV75p4RRhH+Thn5Gk3xaYpj6X/BSka2Jxt7aOmmth+OzkaM +Sg8WJb1cRqog== Received: by mail-pf1-f198.google.com with SMTP id d2e1a72fcca58-6fc395e8808so5790868b3a.0 for ; Wed, 19 Jun 2024 00:49:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718783387; x=1719388187; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3Ah02osWSKxjYX+LIDMgTigloGH2VX07SWnwSlI81uk=; b=HtZsQ9g1GbfHbQCuzv6CK0gQTQdG9tqeYiTkryMhcBZBsXZ5Jk3EoBZe2xYLru7Yat EYKXJ8cxOE8m1chm23TWOZ0Q2xgJGW0hRvxUWDC+j7OMyYSIxHriqFp9f0mZpWPawsBz tJQehgATXxUin/Kn9KTim5c4jRIickrP9EC+tHc4bXs/37pQVW5RzGOdfDz6V2vr84XT b6wrlcrNhjHOLOGpG+YGemboMr6qofq9Jtji1I/DPNSisEpyKKkG1u5JkIdvLFVfObWW ST88t8gzV71lu52+GplqxoP/euKPmgBEWKxIGQiWtnkppnpq5UN0sxc0q8lK+0ZGhXmn +Ntw== X-Gm-Message-State: AOJu0Yw/2XcJdKDDtAwHkQQw3/NbtZN6mlifwm8cj5BwISdHwMcFziRt DIwoMkhydueP+cxwsqVG7Nsg3J6S5XPcy19vMYhhVvESfJlvD6pP1mgj6avjEyNBG/2xlQ1+bTK 6C244a/Ce2j7v4DMgYDIHW8Zr5oJ+F4Y8oxbGxOe6/oLdbJ/mFH4M6t3Xw2zarSUP X-Received: by 2002:a62:ae1a:0:b0:704:16ec:4669 with SMTP id d2e1a72fcca58-70629c14fe2mr1657544b3a.6.1718783386859; Wed, 19 Jun 2024 00:49:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE0rN6YZTz94hdqcDgk8EAa6XjBgKmH0rULofVtMvz/AXKqwgcKzr4E+OVq+bIe48UJo1uPZg== X-Received: by 2002:a62:ae1a:0:b0:704:16ec:4669 with SMTP id d2e1a72fcca58-70629c14fe2mr1657509b3a.6.1718783385529; Wed, 19 Jun 2024 00:49:45 -0700 (PDT) Received: from kylee-ThinkPad-E16-Gen-1.. ([122.147.171.160]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-705ccb3cdc6sm10076908b3a.138.2024.06.19.00.49.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jun 2024 00:49:45 -0700 (PDT) From: Kuan-Ying Lee To: kuan-ying.lee@canonical.com, Andrew Morton , Jan Kiszka , Kieran Bingham , Catalin Marinas , Ard Biesheuvel Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/6] scripts/gdb: change VA_BITS_MIN when we use 16K page Date: Wed, 19 Jun 2024 15:49:10 +0800 Message-Id: <20240619074911.100434-6-kuan-ying.lee@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240619074911.100434-1-kuan-ying.lee@canonical.com> References: <20240619074911.100434-1-kuan-ying.lee@canonical.com> MIME-Version: 1.0 X-Stat-Signature: b1qy5t1mzu56qfhhd3ar7h5zn95egj7r X-Rspamd-Queue-Id: DBD961C0007 X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1718783389-508197 X-HE-Meta: U2FsdGVkX19NzSK514Wh0cuKWS6IjjYtCMXttDGKgfuu1czb9lMErjzmsEFjefbGPC+0YokR8YK7zbJwXNt2ynmWdGNQBn6aO/MI+P20o07ziWwmPEqK3DTFwoJCEOqTKunA2GkfWztMb/CoF3tS7V10W38bIsxaAFvD7hbLp0j2TUcp7Vytj5KgBiGZwq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6L2y+Sw1NHdYbSzxEEHizjdAYXruG/bSYp13kR4zHGentJbJYxA8kvd2XgZLarxkZIjHT9l/91vVp6fVzOGXHl0= 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: Change VA_BITS_MIN when we use 16K page. Fixes: 9684ec186f8f ("arm64: Enable LPA2 at boot if supported by the system") Signed-off-by: Kuan-Ying Lee --- scripts/gdb/linux/mm.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/gdb/linux/mm.py b/scripts/gdb/linux/mm.py index 200def0e4b9a..7571aebbe650 100644 --- a/scripts/gdb/linux/mm.py +++ b/scripts/gdb/linux/mm.py @@ -47,7 +47,10 @@ class aarch64_page_ops(): self.VA_BITS = constants.LX_CONFIG_ARM64_VA_BITS if self.VA_BITS > 48: - self.VA_BITS_MIN = 48 + if constants.LX_CONFIG_ARM64_16K_PAGES: + self.VA_BITS_MIN = 47 + else: + self.VA_BITS_MIN = 48 tcr_el1 = gdb.execute("info registers $TCR_EL1", to_string=True) tcr_el1 = int(tcr_el1.split()[1], 16) self.vabits_actual = 64 - ((tcr_el1 >> 16) & 63) From patchwork Wed Jun 19 07:49:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuan-Ying Lee X-Patchwork-Id: 13703501 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 859BBC27C53 for ; Wed, 19 Jun 2024 07:49:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 108206B03F4; Wed, 19 Jun 2024 03:49:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0B7E06B03F5; Wed, 19 Jun 2024 03:49:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E73A46B03F6; Wed, 19 Jun 2024 03:49:55 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id C03A96B03F4 for ; Wed, 19 Jun 2024 03:49:55 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 4CE93A3390 for ; Wed, 19 Jun 2024 07:49:55 +0000 (UTC) X-FDA: 82246864350.27.BEE1623 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by imf23.hostedemail.com (Postfix) with ESMTP id 3434914000C for ; Wed, 19 Jun 2024 07:49:52 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=canonical.com header.s=20210705 header.b=sZ6nBALH; spf=pass (imf23.hostedemail.com: domain of kuan-ying.lee@canonical.com designates 185.125.188.122 as permitted sender) smtp.mailfrom=kuan-ying.lee@canonical.com; dmarc=pass (policy=none) header.from=canonical.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1718783387; 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:in-reply-to:references:references:dkim-signature; bh=+Z6PIWkhLWvItlz4Fqmv/v1cM41RjY2eqsQ7JQg3TVM=; b=uSYKriRmMVodEn/L3AkgYE9u/vR53B/8z4lup78HNIIJo9llv+QlCfUHl57DdUai/SE0vh 2vkDz/gMzRRvBGId3WYMYsfE20bH4VrNUM/h1FrwlCH7pdEJpg9NRdzQ3NojNVFebF/A82 TD9K5xqS7nQuCk669cY7M6MCB5lzIIY= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=canonical.com header.s=20210705 header.b=sZ6nBALH; spf=pass (imf23.hostedemail.com: domain of kuan-ying.lee@canonical.com designates 185.125.188.122 as permitted sender) smtp.mailfrom=kuan-ying.lee@canonical.com; dmarc=pass (policy=none) header.from=canonical.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1718783387; a=rsa-sha256; cv=none; b=gBxnfB+lb55djCLY3zv+Jf4joBaNAO/mexbztwUuFSxuJi/pv1hrZwZdFJeAGA0bvRvaga Np7GS9XaHlFD4I6+d71xNMVBfiXx/NtVxEMRmT5lezlEFt52ALW7zv2mYtc4HaLIi3qKOu fhDFmbjQfyFQqYwKdoLSPhAtl0UJHrU= Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 8A0E63F67A for ; Wed, 19 Jun 2024 07:49:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1718783391; bh=+Z6PIWkhLWvItlz4Fqmv/v1cM41RjY2eqsQ7JQg3TVM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=sZ6nBALHlx056d9Lv09vlvluguvFoKiwMgadV8h+lAo/XaBGR3cULWjfF63jlDAF8 Dxoj5BppvmOOIut90pkX9HU8kvDiGWMTmo1VdU13SSP0XUikzZJby1rmPGu3ZmnrFq 1oScB43sZq3Zt2WOvsErmFtpzR1tL6KQy+LRZaJ10XTGhbEPaKcGNYWINN6tZfPwfF NYhI3gu7qrcJcDkVqJfJ8ttFqgqS7YvEPItN3wEMCuxRuQV+H7RmF32ENGK8SOzbvd NSdLr4XmcXQHRLjqO6jYK2vE1GLSAK4C1lAy1tplhrINkgulns0vouvntM9HeKAJVs sSv1EAiM4Jz0Q== Received: by mail-pf1-f198.google.com with SMTP id d2e1a72fcca58-706345802a3so510325b3a.1 for ; Wed, 19 Jun 2024 00:49:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718783390; x=1719388190; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+Z6PIWkhLWvItlz4Fqmv/v1cM41RjY2eqsQ7JQg3TVM=; b=uhUizRHHMLwJxIiPeZkslYgA1sLVYVTBN3ORniRMci46uNbAPjv6pDu2JukraKleVV VkXdbOqzEYr9IdKHEUpJn1Mrj3ZTm8Vt9mzzrbefoyDfUTMeE3l9MlK318IE8/a3omzC ZKq9nwnO7BhZ3EGeNC6aOPbA/lmRLOxTrH5/855mFEuXWGbr4lyn3COZBOiCmwO8Eqs0 2diBCSoLGFZMJHllV4Xh2frPPS0DXv3qareC3L49NneC0ePNs/bYl4ivlL9Hl6G8rtjq 3Kiz7RKdNa1MN/dmbkW7oPT6mw9gvYZ86DDN2gQTXEe2ZX9WBggtqpBApSCcunfgofOZ TuvQ== X-Gm-Message-State: AOJu0YwjOdPAZKz8tOn67UnN6Wu1AdJ6Ti5rKzwB9GCzXsvn8ItwpGUU rVEK/faKP23Ng0e4AzbOvToOm1WhkuL4fRPq7dp00VKMUEweCENup4A5OOMtYpZsH5GDe2giF4i LQaIN4hAVvItsogqcCQtXVL+l8Qw9iMgNn9/jQGjXVMzz7H4Jy/Mlj7KgF06Iseyr X-Received: by 2002:a05:6a20:3219:b0:1af:96e8:7b9c with SMTP id adf61e73a8af0-1bcbb5e2c01mr1830060637.47.1718783390166; Wed, 19 Jun 2024 00:49:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH1iF4A/y2B2hwDQfIT/eUeqxoyRy14g5sQYr2UmEdpWhzAQpQaAnzac+jnykGR3Ot6xCIhJA== X-Received: by 2002:a05:6a20:3219:b0:1af:96e8:7b9c with SMTP id adf61e73a8af0-1bcbb5e2c01mr1830050637.47.1718783389848; Wed, 19 Jun 2024 00:49:49 -0700 (PDT) Received: from kylee-ThinkPad-E16-Gen-1.. ([122.147.171.160]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-705ccb3cdc6sm10076908b3a.138.2024.06.19.00.49.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jun 2024 00:49:49 -0700 (PDT) From: Kuan-Ying Lee To: kuan-ying.lee@canonical.com, Andrew Morton , Jan Kiszka , Kieran Bingham , Vlastimil Babka , Marco Elver , Peter Collingbourne , Oscar Salvador Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/6] scripts/gdb: rename pool_index to pool_index_plus_1 Date: Wed, 19 Jun 2024 15:49:11 +0800 Message-Id: <20240619074911.100434-7-kuan-ying.lee@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240619074911.100434-1-kuan-ying.lee@canonical.com> References: <20240619074911.100434-1-kuan-ying.lee@canonical.com> MIME-Version: 1.0 X-Stat-Signature: docpjhmw1er5ungyhn43e7iwgyw4fwwn X-Rspam-User: X-Rspamd-Queue-Id: 3434914000C X-Rspamd-Server: rspam02 X-HE-Tag: 1718783392-239627 X-HE-Meta: U2FsdGVkX18ELF1iHa2s9PbGedsRJC8v12ZRepH10YsfzqRtNufKzru7hqqEGF7D2kfPQyK8DmcNhmOyT3OhMvXpdbYKWWaATI1tlxVmoq+dm6mZTyaLqYHo8BE+MT0DbwQZwxWAgsnGYOqDM4GDf2aMJvjgE3eUUl+Eka7whW5EYv9NkcUbwaYKqgkYGHykEGbWc6SRM+iHqsPhBKm5ybVzLxGTQaliHcqJ3ZDJPR88ZIci3XReS+Y5/x7Jyu96PB5DzDDm4YvdBviQAoixzqhwKcCFRnP9MoW147AAmWanfMyRR4UFZhzmQ4FKi4peSMhEQAF6WVTSyS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-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: We encounter the following issue after commit a6c1d9cb9a68 ("stackdepot: rename pool_index to pool_index_plus_1"). (gdb) lx-dump-page-owner --pfn 262144 ... Python Exception : There is no member named pool_index. Error occurred in Python: There is no member named pool_index. We rename pool_index to pool_index_plus_1 to fix this issue. Fixes: a6c1d9cb9a68 ("stackdepot: rename pool_index to pool_index_plus_1") Signed-off-by: Kuan-Ying Lee --- scripts/gdb/linux/stackdepot.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/gdb/linux/stackdepot.py b/scripts/gdb/linux/stackdepot.py index 0281d9de4b7c..bb3a0f843931 100644 --- a/scripts/gdb/linux/stackdepot.py +++ b/scripts/gdb/linux/stackdepot.py @@ -27,14 +27,18 @@ def stack_depot_fetch(handle): offset = parts['offset'] << DEPOT_STACK_ALIGN pools_num = gdb.parse_and_eval('pools_num') - if parts['pool_index'] > pools_num: + if handle == 0: + raise gdb.GdbError("handle is 0\n") + + pool_index = parts['pool_index_plus_1'] - 1 + if pool_index >= pools_num: gdb.write("pool index %d out of bounds (%d) for stack id 0x%08x\n" % (parts['pool_index'], pools_num, handle)) return gdb.Value(0), 0 stack_pools = gdb.parse_and_eval('stack_pools') try: - pool = stack_pools[parts['pool_index']] + pool = stack_pools[pool_index] stack = (pool + gdb.Value(offset).cast(utils.get_size_t_type())).cast(stack_record_type.get_type().pointer()) size = int(stack['size'].cast(utils.get_ulong_type())) return stack['entries'], size