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 5F3C3C04A6A for ; Tue, 1 Aug 2023 20:42:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232672AbjHAUmP (ORCPT ); Tue, 1 Aug 2023 16:42:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229669AbjHAUmL (ORCPT ); Tue, 1 Aug 2023 16:42:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28C0A2106 for ; Tue, 1 Aug 2023 13:41:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7AA2E616FA for ; Tue, 1 Aug 2023 20:41:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34A64C433C9; Tue, 1 Aug 2023 20:41:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690922514; bh=UmykxjBF+sC4aN4OQ8EfvIYebgfE0K7LxRs85fn43fg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WeH44eSsG9xcFFrj+wih+yefO4Nd1y2oXU/izkvZNGEVLYMWas4UYdN/krVJ8IDvk 2oRZC/YX+ezOMpzKcC5UWEA7B6X5lcsA9lBf8n3NPEfAHNEQo9Ume5RAXLLySBhEGN avE9yqBmEpeYKzGzoFqIZ3Dco0dtnqVtKk8ud5pxmmyDzHk32Tfyz3hUZ5AwIKovqU xND8qoW6cRRFcDU2/d4yXsKlcJhtRu+MSHyAFl54PIYfO/pCVpFmb29eEUo8QgwIZS jR8VkCgdvvCbY2R/xNAJkDUm6+BNfajHsdploQkOYiC8Slm+HffWvtIPRwvbpbXpr/ ALP1Xuhl83fMA== From: Will Deacon To: Dawei Li , joro@8bytes.org, robin.murphy@arm.com Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] iommu/arm-smmu-v3: Change vmid alloc strategy from bitmap to ida Date: Tue, 1 Aug 2023 21:41:47 +0100 Message-Id: <169087904450.1290857.11726985177314533259.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 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 Sun, 16 Jul 2023 00:16:21 +0800, Dawei Li wrote: > For current implementation of vmid allocation of arm smmu-v3, a per-smmu > devide bitmap of 64K bits(8K bytes) is allocated on behalf of possible VMID > range, which is two pages for some architectures. Besides that, its memory > consumption is 'static', despite of how many VMIDs are allocated actually. > > That's memory inefficient and lack of scalability. > > [...] Applied to will (for-joerg/arm-smmu/updates), thanks! [1/1] iommu/arm-smmu-v3: Change vmid alloc strategy from bitmap to ida https://git.kernel.org/will/c/1672730cffaf Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev