Message ID | 20241209094227.1529977-3-quic_zhenhuah@quicinc.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 B4775E77173 for <linux-mm@archiver.kernel.org>; Mon, 9 Dec 2024 09:43:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4C59E6B03EE; Mon, 9 Dec 2024 04:43:12 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 475586B03EF; Mon, 9 Dec 2024 04:43:12 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 33D836B03F0; Mon, 9 Dec 2024 04:43:12 -0500 (EST) 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 13F376B03EE for <linux-mm@kvack.org>; Mon, 9 Dec 2024 04:43:12 -0500 (EST) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id B7A7280257 for <linux-mm@kvack.org>; Mon, 9 Dec 2024 09:43:11 +0000 (UTC) X-FDA: 82874931762.18.F5D46AC Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by imf15.hostedemail.com (Postfix) with ESMTP id 9E0A6A0011 for <linux-mm@kvack.org>; Mon, 9 Dec 2024 09:42:48 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b=c1hrRAJJ; spf=pass (imf15.hostedemail.com: domain of quic_zhenhuah@quicinc.com designates 205.220.180.131 as permitted sender) smtp.mailfrom=quic_zhenhuah@quicinc.com; dmarc=pass (policy=none) header.from=quicinc.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1733737374; 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:in-reply-to:references:references:dkim-signature; bh=LtABRAQ0YEr/CI1X8BieMgHVTu9h5oCNjef5fZpS0XE=; b=IlNrvpfFQSh8fqjLnt97LSmeZWabWmcoP8iccLlSxtGTqyCtLAulASlT2Y8fZMnZ7efJ5t RDU8r/WTN4EcKJMDOIE9WUA9zNlQn49EdS7APL2czX+RR1Tb/NnZKY718l94bnSfEtnB1c Dn5OZvYXvXkv1YcHRxX1tV0nS0IUGwo= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b=c1hrRAJJ; spf=pass (imf15.hostedemail.com: domain of quic_zhenhuah@quicinc.com designates 205.220.180.131 as permitted sender) smtp.mailfrom=quic_zhenhuah@quicinc.com; dmarc=pass (policy=none) header.from=quicinc.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1733737374; a=rsa-sha256; cv=none; b=I69gKCnJGxUcQnPDjOb/lBVibwRN5IFVBkcSf1U4Kn79+wWX7hYoph0sUWOITVF/E5PdO/ bx7BrNXARvWSIjHGylHT4f+dc6RUnBAXM33gVXzCPKNPmSvf++FttCWw/KjPvRbavnHIAJ y8gUr4X/xphilq5bTEHw44iNVU1c5sc= Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4B8MMWYR012704; Mon, 9 Dec 2024 09:43:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= LtABRAQ0YEr/CI1X8BieMgHVTu9h5oCNjef5fZpS0XE=; b=c1hrRAJJUL8NJMcq bM+hWcCgUlXoeumzTI0rTfVNnCGanA1GHZUX0iaNAVx0gTD65t7S2hVMHqz/1228 dxZWbR1IC0FpQGAERJJdktQWQDsyF0F5i6wFdOgAODynMMZvo+mtumH+Q2NXpomQ FXfo3RfJbC2L7C9TBvfRz+7QpoiZwP0jDDftWf0hXY0xkjTfwmRWnu1Ra+Z62SgJ 7lS3wvzcfqJbggRwcMEsoh648vPKW9STcPvOHllQGBN14YKsCcA4uR468o5wsBG2 dcxSyy195O1lQyHJPTVumAWygsFdC3PEVuGLXChRKtJ+fvedB93NbkGUWuHVKh0k 4yPoKw== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 43ceetm41g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 09 Dec 2024 09:43:04 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 4B99h322017647 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 9 Dec 2024 09:43:03 GMT Received: from ap-kernel-sh01-lnx.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Mon, 9 Dec 2024 01:42:59 -0800 From: Zhenhua Huang <quic_zhenhuah@quicinc.com> To: <catalin.marinas@arm.com>, <will@kernel.org>, <ardb@kernel.org>, <ryan.roberts@arm.com>, <mark.rutland@arm.com>, <joey.gouly@arm.com>, <dave.hansen@linux.intel.com>, <akpm@linux-foundation.org>, <chenfeiyang@loongson.cn>, <chenhuacai@kernel.org> CC: <linux-mm@kvack.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, Zhenhua Huang <quic_zhenhuah@quicinc.com> Subject: [PATCH v2 2/2] arm64: mm: implement vmemmap_check_pmd for arm64 Date: Mon, 9 Dec 2024 17:42:27 +0800 Message-ID: <20241209094227.1529977-3-quic_zhenhuah@quicinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241209094227.1529977-1-quic_zhenhuah@quicinc.com> References: <20241209094227.1529977-1-quic_zhenhuah@quicinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: gs-sJae984RW_OSNds3kolLIBqleNwa7 X-Proofpoint-ORIG-GUID: gs-sJae984RW_OSNds3kolLIBqleNwa7 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 phishscore=0 spamscore=0 adultscore=0 clxscore=1015 impostorscore=0 mlxlogscore=497 bulkscore=0 suspectscore=0 lowpriorityscore=0 malwarescore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412090075 X-Rspamd-Queue-Id: 9E0A6A0011 X-Rspamd-Server: rspam12 X-Stat-Signature: hbsci45m891tu9xezui4esdnasnpg6hg X-Rspam-User: X-HE-Tag: 1733737368-922877 X-HE-Meta: U2FsdGVkX18GMMsOnW7Zt5MQUKvrHHLh94R70Ie4RmJ2ittcDjI3Nh9dZuHBP7Kqjoj4BW/GJROB91tLuSIOYm3+6311sXJGDRtbhwQXDLEoq6rK1lkv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+T3J08obH+IVzMeTkjr5Q9U/LUz0zw3N7gx3MpE8LlznpJJWtwHJDIJ5C0bAJzwiIUfvM+psl/VlFt5IKYyozFaVi8VL3xRLaEu5iDU3VBrPQo4Xy26/NnVA4CXJTYZ8DdXAKD8mxEw+NZSyHPJ91nNgcFPfgJEK1ns1lzw+uRlGg2c= 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 subsection vmemmap_populate logic
|
expand
|
diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c index fd59ee44960e..41c7978a92be 100644 --- a/arch/arm64/mm/mmu.c +++ b/arch/arm64/mm/mmu.c @@ -1169,7 +1169,8 @@ int __meminit vmemmap_check_pmd(pmd_t *pmdp, int node, unsigned long addr, unsigned long next) { vmemmap_verify((pte_t *)pmdp, node, addr, next); - return 1; + + return pmd_sect(*pmdp); } int __meminit vmemmap_populate(unsigned long start, unsigned long end, int node,
vmemmap_check_pmd() is used to determine if needs to populate to base pages. Implement it for arm64 arch. Fixes: 2045a3b8911b ("mm/sparse-vmemmap: generalise vmemmap_populate_hugepages()") Signed-off-by: Zhenhua Huang <quic_zhenhuah@quicinc.com> --- arch/arm64/mm/mmu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)