From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18F1FC433F5 for ; Fri, 10 Dec 2021 18:41:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245511AbhLJSoh (ORCPT ); Fri, 10 Dec 2021 13:44:37 -0500 Received: from sin.source.kernel.org ([145.40.73.55]:46758 "EHLO sin.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242028AbhLJSog (ORCPT ); Fri, 10 Dec 2021 13:44:36 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id C277CCE2C89 for ; Fri, 10 Dec 2021 18:40:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 617DCC00446; Fri, 10 Dec 2021 18:40:56 +0000 (UTC) From: Catalin Marinas To: linux-arm-kernel@lists.infradead.org, wangkefeng.wang@huawei.com, will@kernel.org, linux-kernel@vger.kernel.org, Yunfeng Ye Cc: Hewenliang , wuxu.wu@huawei.com Subject: Re: [PATCH v3 1/2] arm64: mm: Rename asid2idx() to ctxid2asid() Date: Fri, 10 Dec 2021 18:40:53 +0000 Message-Id: <163916163109.780317.2105758416817622025.b4-ty@arm.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 9 Dec 2021 09:42:25 +0800, Yunfeng Ye wrote: > The commit 0c8ea531b774 ("arm64: mm: Allocate ASIDs in pairs") introduce > the asid2idx and idx2asid macro, but these macros are not really useful > after the commit f88f42f853a8 ("arm64: context: Free up kernel ASIDs if > KPTI is not in use"). > > The code "(asid & ~ASID_MASK)" can be instead by a macro, which is the > same code with asid2idx(). So rename it to ctxid2asid() for a better > understanding. > > [...] Applied to arm64 (for-next/misc), thanks! [1/2] arm64: mm: Rename asid2idx() to ctxid2asid() https://git.kernel.org/arm64/c/a3a5b763410c [2/2] arm64: mm: Use asid feature macro for cheanup https://git.kernel.org/arm64/c/386a74677be1 -- Catalin From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1AC0CC433EF for ; Fri, 10 Dec 2021 18:42:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=Lf0G4Sk/PgN/0P1LQV9+09M3ibVBF0WLEPKc90BmExU=; b=YlTUJpMwiUy5DQ Qn1ouDFa8VhCw+LMuqLDDdGwseSYzXYBmeLOV22cJEMeQZ4PBB7MAhaWl59+B/T4NyndlmX9I6Eh0 RUmbCHlBe4j9e1ldyHc0prtbXNImbJA4lDd0/xwlG1NvIJdqCfILGER8SBlgkjF50kTpI5bg6f/2F UsA53jPqS4888/0zNca8rTH9KTIsOVJR/FP3mSe6F2xNOUn2dNMWArVUpKfRwI1kDvY5geiPFOD2i LhG2smXohXc1xXQuK/6KN5Dcd9MuC3HRQVmBVJQGRnOkELlhzCaLw9I7AHjmr5vhtmSXrvLy0h7J3 BEf1q61bneCQZ54TjYqg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvkpM-003Eco-0y; Fri, 10 Dec 2021 18:41:04 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvkpI-003EcK-Dd for linux-arm-kernel@lists.infradead.org; Fri, 10 Dec 2021 18:41:01 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2E9DDB8294B; Fri, 10 Dec 2021 18:40:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 617DCC00446; Fri, 10 Dec 2021 18:40:56 +0000 (UTC) From: Catalin Marinas To: linux-arm-kernel@lists.infradead.org, wangkefeng.wang@huawei.com, will@kernel.org, linux-kernel@vger.kernel.org, Yunfeng Ye Cc: Hewenliang , wuxu.wu@huawei.com Subject: Re: [PATCH v3 1/2] arm64: mm: Rename asid2idx() to ctxid2asid() Date: Fri, 10 Dec 2021 18:40:53 +0000 Message-Id: <163916163109.780317.2105758416817622025.b4-ty@arm.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211210_104100_623966_DDD431E7 X-CRM114-Status: GOOD ( 11.67 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, 9 Dec 2021 09:42:25 +0800, Yunfeng Ye wrote: > The commit 0c8ea531b774 ("arm64: mm: Allocate ASIDs in pairs") introduce > the asid2idx and idx2asid macro, but these macros are not really useful > after the commit f88f42f853a8 ("arm64: context: Free up kernel ASIDs if > KPTI is not in use"). > > The code "(asid & ~ASID_MASK)" can be instead by a macro, which is the > same code with asid2idx(). So rename it to ctxid2asid() for a better > understanding. > > [...] Applied to arm64 (for-next/misc), thanks! [1/2] arm64: mm: Rename asid2idx() to ctxid2asid() https://git.kernel.org/arm64/c/a3a5b763410c [2/2] arm64: mm: Use asid feature macro for cheanup https://git.kernel.org/arm64/c/386a74677be1 -- Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel