Message ID | 20240619074911.100434-2-kuan-ying.lee@canonical.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 <linux-mm@archiver.kernel.org>; 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 <linux-mm@kvack.org>; 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 <linux-mm@kvack.org>; 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 <linux-mm@kvack.org>; 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 <linux-mm@kvack.org>; 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 <linux-mm@kvack.org>; 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 <kuan-ying.lee@canonical.com> To: kuan-ying.lee@canonical.com, Andrew Morton <akpm@linux-foundation.org>, Jan Kiszka <jan.kiszka@siemens.com>, Kieran Bingham <kbingham@kernel.org>, Michael Ellerman <mpe@ellerman.id.au>, "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> 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 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: AC25B40006 X-Stat-Signature: sxd9mh6ws4ouurz1ibjoyy94poddrf35 X-HE-Tag: 1718783377-87194 X-HE-Meta: U2FsdGVkX19vRyhBTIF8vHNxosOLHrr2DUKEhlgNHcx1P2N8D6Xsk0NAHuw68vMRW5GDRbTOGZhGIkjQFh2H2ZsEhlBZ0LBE1Ws8iTc3h+IQpRRwIxtBKWhp8tLJAoG71qXZv69WcRfsmDO1OhaAvyAe2T3Iav+TcZ5J/aHntks9vHE0DJldQbOFrzEg/GU+rz82ojwBRFPCxEvbnJLdyYwEm/0GGOqiiYltYJV6OaxogcTe2bHg9k3hhbotpQD1rhhgB07trkaTn7U9dj7Vp8Xu6qz4fZoIoNN2juCQ6M/4Wo1Zt2FkvliXHBM5YQ40VIVLmz0UiijIlVF5PL3fu83ZUhHOIPWEGbDx2qlc8st5LuQ09gt9jJMjf7azr+pQwJ9hYyNaUEjoXcF0dbSkIr3B2PHjKxitQVOpPqPDXJ0B2iSSc5jeNRYtHl0Zui7vbCk7ZKDiZeoqi5J7cjIsvzV6k+AYFD+gmSSahkaIPAkAuKeiRkymJQpmHsDctmGydztcXgzYlYMQTxoA8JbUkQvkiO8MsWw2e9DQt6IKRLVwmS66B55O8Sve6M3DJrAejwgjczloUq5lYNLL96mS5j351KaAV1pLtiYkSzCGbe3hBJJBPInsCQBEwZ41EXVjAlluNgo2GnPyrM2HdKjrsuAbDnrGc84xUiSbW9/jPJ3UYKAQVfJzzf7/HiUZerGqb7//3bLxie/YVuGx2UgOk1ANJ0tUaBfH4v0B46RbDVvbIlgW4NUh5DWtqGfkl/allcBhdpxOFUIEY/Xs173chVr573LUyrV4JUChR4oC1hJFs8I6vEKHIZmnUhxov3OuzjqPFFP5EnqUUqNy7D2c828vrW/zUwjQCLIfPYTUPRyDaALE76XByH6YwGuGD4b8jb+EKvm189udXzATOTOEkxlXGWlrNLbtu2pB0SoJz0H9AfDHHkyeHH+MxcvhlRSg3mwxe9wGrQvZBATSlPC vUw4YD8r JLcroNR8c1igyvCbcjcS/QennzrQYFZeZgnetgOFpWmv2zvNfxxSCxSYSMSHcxS8Tmn0gHqvc2kfzztbY29SXcp0IZX9Foy0pd7lXUQF3KmCuofsNrQTFLrV7RhnELgvhoCIFjw/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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series | Fix GDB command error | expand |
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
Change the definition of MAX_ORDER to be inclusive. Fixes: 23baf831a32c ("mm, treewide: redefine MAX_ORDER sanely") Signed-off-by: Kuan-Ying Lee <kuan-ying.lee@canonical.com> --- scripts/gdb/linux/mm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)