From patchwork Tue May 18 10:14:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 12264515 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=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,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 4DA76C433B4 for ; Tue, 18 May 2021 10:25:10 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C693461002 for ; Tue, 18 May 2021 10:25:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C693461002 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Nl72mVPer95Gbt25Hxmn4Gnt5n/Ja0GAQQ7ptMI295g=; b=Sz1C4z4kIAKTz48WxCWWlBMQL 5KQjkWFiRZHTjodL66DhQtcpN1RrBowUbDkLlwBxbrjlJMN8jrOdEabQ9L85OO7F9vb9AldyMwJT1 mRdkDgrREfcZVjnq54CiGgiYJX6Aq48Mx551Pa3v3mOF2deyG45bkkGD+HOo96X3JQmZmeV6XZIv5 N4bQF78IF0AB6poM/9iCvg/v1hIYDYlR8SCBGvD1NfIqoEM+JC1azPEEgdORJPV0nLzPmlEnXIyq+ A6xq1ol54cTrRbZqbqAb5BNPqjIxbKOuLq+0bZ4Fcwgze3QBQP8cici1wowIUkQcG+XAFt6s8uvZz 3U7KxIEmw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liwsY-000M6E-DM; Tue, 18 May 2021 10:23:10 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liwlf-000Jz3-Qk for linux-arm-kernel@desiato.infradead.org; Tue, 18 May 2021 10:16:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Sender:Reply-To:Content-ID:Content-Description; bh=jEWCRIYMdURhO5JtnK+67gZ+HOm5FKaplE30C+qT65E=; b=r3aHK59H1Wru6RLnAiOfBpcLzX DJLIxv0umy8KNd051aykY+481+V5wO3EadOLg53XAX8NifOn0w4Hkr8DRWhSzgMrPGRkHejrbLmpP nJoBGi9TNiLwqNAO/mhjBeITwhtWTeZehYyJGcRYod0vrx6Hq09iCOuaz+QpRJadBWeqtVKG31lOo FQ68i/9JuTRHTwe3oXsYE/jyC0wYLr0CFd/rrv9Mu4HQdKCApCRq37aYneK2b64XNaPBESJ1d5FWZ Te3qW/YtkVyzSMn6xEDFOagGkOqePJT/3Mk+RkTD/+bNjd66s6Ew/4QoTrT7bATXbg+Rfvq7QTspo fg/jyfvw==; Received: from mail-eopbgr150042.outbound.protection.outlook.com ([40.107.15.42] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liwld-00EYJl-BG for linux-arm-kernel@lists.infradead.org; Tue, 18 May 2021 10:16:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jm+qkBzq4rb3+O8DRAE2LKJ+oc9Dpmrrsd3qMcnJkPA0V7HLOgJhO+1FKamUAhyUevMl6GTvhQTz2/hY1eqV4qHV5zFi2gtLSMtkn/W3aXTIL8IB4rh/p08OcUUhw8tgq7VisjFdedC7Ixlf9LQQpw66S5ivwUNXD2eRac4ivwAFuC8DoecZKJpV178kboba8ItQT0qdWxau49TSRyWLuiyD+bbbcoGyQrwRQBCszJDMQmw1N1aL4bBK+4MzpXPBPL9Qfta9BFjf+5/tkWFXPq0t9VeiR040h7Cs0dVT+gxbGfnci/pDNkIjfemTT+IJwFS9z8qtVlP7vRl6+z0EXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jEWCRIYMdURhO5JtnK+67gZ+HOm5FKaplE30C+qT65E=; b=L98oqQiVlvJJBNuPRnGD1YeTZfZXOQVzcxMJW82+Q/WEBaJigrTeBtvFNaF9EGFDm4D4XjnyjuKGTj63UgsVcnmKX9ZuAiuw4a5pWZm2wuE3W7fbr9w+7xnp7HElBJoq1QqShR0JeUTGG+XS2tPgdXfTuaTynH7k/62Xy9hOVqJ943gzxbLNk0nqyIuWV4Ozw2uK9hBYMZCoMm38ZfuJvomXk0eEmfrlBnMAZ1hoaquxmpWAzAqkKRcIxtlpOWLlub5BCwB21V834cB7LIrGeMhp3ijgwnabJKHYTndw4V6n/W4XxyMmatMTJZz/IDg2rmBkKncGj8sOYPDZqjXjzw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jEWCRIYMdURhO5JtnK+67gZ+HOm5FKaplE30C+qT65E=; b=g5NW2iJ62lXkyOkTuO5NGFM4n069c0VK/r0Llx8I55pMBjeiePYyshV/udBnc3FBgcbeE7Z7sjRcAZnm7iCduikx1IiOv3rppMvfehTNnekzZOwNtEzFrohbUeZLwg5OknUNUEqyBuHFpl/0rrplYkkHDH/H3DOLBXQmcmzBTQo= Authentication-Results: lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4966.eurprd04.prod.outlook.com (2603:10a6:20b:2::14) by AM5PR0401MB2450.eurprd04.prod.outlook.com (2603:10a6:203:34::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.28; Tue, 18 May 2021 10:15:57 +0000 Received: from AM6PR04MB4966.eurprd04.prod.outlook.com ([fe80::b10a:ad0:a6f5:db9b]) by AM6PR04MB4966.eurprd04.prod.outlook.com ([fe80::b10a:ad0:a6f5:db9b%2]) with mapi id 15.20.4129.031; Tue, 18 May 2021 10:15:57 +0000 From: Dong Aisheng To: linux-arm-kernel@lists.infradead.org Cc: dongas86@gmail.com, Dong Aisheng Subject: [PATCH 2/4] arm64: mm: fix the count comments in compute_indices Date: Tue, 18 May 2021 18:14:03 +0800 Message-Id: <20210518101405.1048860-3-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210518101405.1048860-1-aisheng.dong@nxp.com> References: <20210518101405.1048860-1-aisheng.dong@nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR06CA0217.apcprd06.prod.outlook.com (2603:1096:4:68::25) To AM6PR04MB4966.eurprd04.prod.outlook.com (2603:10a6:20b:2::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by SG2PR06CA0217.apcprd06.prod.outlook.com (2603:1096:4:68::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25 via Frontend Transport; Tue, 18 May 2021 10:15:55 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 07b75ccb-edf0-4363-24d4-08d919e5ed2c X-MS-TrafficTypeDiagnostic: AM5PR0401MB2450: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:486; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: I10tt2xNocxFdWRndtWYgqaEujECn11hCz9WCNREpL5ySYVH4vcRGkzB1wAqpbEl7Mojjjbu6f+9YQnkxeN8IyN8vh9vLcjIaXKBLRKenGrACqJSpkgmFshi1GsjG9LgmPKwmA8zPf93ozxIcQ1NlsCNI6ImC7wPZ55xVF3W3WSsy12zYaCYGjkXvD2Y0Mp3sJRz+EcoZstIdyDPlMeKdp2ECRa+VevyWCkzq+jrFujOcKvG0zqg4R2g74xUIw+Nv5X11gkLShe5Qg99/gU4il/YlQuntMxovnBndYgzd6S08wZYOTlKEiaqjfDBslSSD3NWB0oavfHcYUA1enHCqNu0VzacAgaKV5PYG21uzU8Iq16y4HQRqdxVR41cYivjAYoqQHHO7ryDSxvqvUbazHLCgUqhvSAJyN5C1OybEGxhueceMj5Zku7+AuRCWJVK9se2UdoEgWApN8U8hk2yJd5mzCyWBiSIvaQZHxe0aSjDyqNOGY9PM6rBPJRIs+rIdu4DSeuwAiI4Yd+0OAlEhjlrmWfiJcIi44r4Qg6UuRlgrw2B3rtkNn3rJpuw7fBATaYmW2BTsgjCENRCMjseCctpYlnqkJKULKJmbUxc00o0Td/DRZf9i9B+BVNL1C3YPBEQo+8exhj//haLkUnEBeQVJH3NNKj6JzsbcHFTJOL+0gn5+NVkOONbKjV4GFpq X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR04MB4966.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(346002)(376002)(39850400004)(136003)(366004)(6666004)(316002)(478600001)(6506007)(4326008)(186003)(4744005)(52116002)(16526019)(8936002)(86362001)(6486002)(2906002)(8676002)(2616005)(5660300002)(26005)(66946007)(956004)(66556008)(66476007)(38350700002)(38100700002)(6512007)(6916009)(1076003)(83380400001)(36756003)(69590400013); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: Qa3zGyd3vWwRS7XDw37rR75HRkoPxK0N/I0LmJVDxwr+9o6vQVZ6ybtHHfK5jkpLyBrl/ShFnHbYKY2yNs8uSfaOJdXF7kanTp3ewho2amcgUW5xfOqz+o5CGzek9GloGMkND0EC1eKn+QuP3V2qg4xvS8qh7UBRbfEz1Ca2pXbmQ3ng0deRIWUReoZq6dWOspQ2frMpTle2nasXhxm9LyCbdN6GDTsiE+myXXHPv8PCQL6pw6ectHsEqI7MZteV22GxuO/KJ0cK+DW4BnfnPYeFyUEmZUHmdV9x8/UqkxzVOtbgP9AOlmzoQXCUZHDil55BPIJFEc/Co5ZbU2JNWo9Dj53pkDvE8kuPC/twSkfsE38qooYZjCZcQKwqZc8HoPOpf3dL2cJ+zA9Ncay0sVM+PiYKq+uSHDXMqW8cqKmYXBqTc5y9i0P/eX858Ym7BCg+BWKhAgZpKfH7BfGTsGL+JZxGj1LEBAr/W2Rjawl+cpszxf5kldwfSyislAcN10EeFe8dNBiEALhKLGgeXn7/tM8hAfXmDNjBo3DOWYpsHALCQNQbzwHOW4KZ9fD7tOXRpH3d4Vzk/KhpOGk+WbLOYmGBnUPkIDaFodpDDUTBRPCK3j/UP5WN4fPV9XZoyryu3RbJBjrHXomBOqIHHtSMYwgYE2RS3pALaM2iucyXPvjRHjzcY4Wf2g/gCL0IDjUzEWs06vd0Pqz5BcmxWrqkA0PMROtNO7u5rK6Rm/m/MjxusvxdzLGdJgg7aAzXR2P/vk95ZmLRf7Q15JqZFDY2xRDwvssVIxsyR/dcmdqK21dFF6o09XDBUlqnDAbqsRSOhc+C/DsLO2qFs+FgH2LoL6g8gSPevJDJVRJEHjfTwJ2qV+sETovjHaC42fiCboXZIFB9kRkkVD/gx5dT7C/6AcslvrJcj6QKfwvkyjOqaVf4yEQa+ublbO3XmnEUPDlJ8fcc/2Ay+Yfyi/HU9hWjibvx8GP8249IGi2QHTERmyUHGYBuHW7f1QjuI1cGyKygFvr4Gtikqol6IjosuFVQbCK6abJ+tniG2yjr7/HJ0pLxFNdaUun+CA8Gb2Wuatoj5Yi0tNAkGN0PkLPd2a5GgWtbIraY6KGQaojt0LYPWgFdK47BSW0UOcoyNLiXSwW90WfDghDrhVgY23upMBgvGO5Yu2PW5Hhb4697ZMj6OYJ9IPuN3QJZsQ8lda8g1AiK3C2hKwERCbF/HohJ/5h5/j+dXXyXKeOdZmEABJH0E1ND5/Pn+QzDoR4S8f/2cK8EQwlNK2zPXExEdc33tveVsFVURG58b+BKSj8eQb/dzOYE6iLt3TD2VOf+a9T0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 07b75ccb-edf0-4363-24d4-08d919e5ed2c X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4966.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 May 2021 10:15:57.0272 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: gIOva3E6cvKRn85CdSUJsOaQQO/ioEhazEX0HzZ7fbQk/+uyAKYGj+ryR4vHoLqjY5yBgEncSx2nqrpakLYPEg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0401MB2450 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210518_031601_409124_8CE0C3F0 X-CRM114-Status: GOOD ( 11.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 'count - 1' is confusing and not comply with the real code running. 'count' actually represents the extra entries required, no need minus 1. Signed-off-by: Dong Aisheng Acked-by: Catalin Marinas --- arch/arm64/kernel/head.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/head.S b/arch/arm64/kernel/head.S index 96873dfa67fd..b70db34458ec 100644 --- a/arch/arm64/kernel/head.S +++ b/arch/arm64/kernel/head.S @@ -195,7 +195,7 @@ SYM_CODE_END(preserve_boot_args) and \iend, \iend, \istart // iend = (vend >> shift) & (ptrs - 1) mov \istart, \ptrs mul \istart, \istart, \count - add \iend, \iend, \istart // iend += (count - 1) * ptrs + add \iend, \iend, \istart // iend += count * ptrs // our entries span multiple tables lsr \istart, \vstart, \shift